}
},
InlinedClauseType::IsRational(..) => match terms[0] {
- Term::Literal(_, Literal::Rational(_)) => {
+ Term::Literal(
+ _,
+ Literal::Rational(_) | Literal::Fixnum(_) | Literal::Integer(_),
+ ) => {
instr!("$succeed")
}
Term::Var(ref vr, ref name) => {
}
},
InlinedClauseType::IsNumber(..) => match terms[0] {
- Term::Literal(_, Literal::F64(..))
- | Term::Literal(_, Literal::Rational(_))
- | Term::Literal(_, Literal::Integer(_))
- | Term::Literal(_, Literal::Fixnum(_)) => {
+ Term::Literal(
+ _,
+ Literal::F64(..)
+ | Literal::Rational(_)
+ | Literal::Integer(_)
+ | Literal::Fixnum(_),
+ ) => {
instr!("$succeed")
}
Term::Var(ref vr, ref name) => {
\+ float([1,2,_]),
\+ (X is 3 rdiv 4, float(X)),
\+ \+ (X is 3 rdiv 4, rational(X)),
- \+ rational(3),
+ rational(3),
\+ rational(f(_)),
\+ rational("sdfa"),
\+ rational(atom),