public static Z3BoolExpr IsEven(this Z3IntExpr expr1, Z3Context context) { Contract.Assert(expr1 != null); return(context.MkEq(context.MkRem(expr1, context.MkInt(2)), context.MkInt(0))); }