use tensorlogic_ir::TLExpr;
#[inline]
pub(super) fn is_true_const(expr: &TLExpr) -> bool {
matches!(expr, TLExpr::Constant(v) if *v == 1.0)
}
#[inline]
pub(super) fn is_false_const(expr: &TLExpr) -> bool {
matches!(expr, TLExpr::Constant(v) if *v == 0.0)
}