Skip to content

Commit 6a10e83

Browse files
Remove SMT exists
1 parent efa0d1b commit 6a10e83

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

src/smt.rs

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -263,19 +263,20 @@ impl BaseSort for SMTBool {
263263
SMTBoolValue::BvSlt(Box::new(a), Box::new(b))
264264
}
265265
);
266+
// Not working for now
266267
// (smt-exists <smt-real-const> <smt-real-bool>)
267268
// e.g. (smt-exists (smt-real-const "x") (smt-= (smt-real-const "x") (smt-real 0.0))
268-
add_primitive!(
269-
eg,
270-
"smt-exists" = |var: SMTRealValue, body: SMTBoolValue| -> SMTBoolValue {
271-
{
272-
let SMTRealValue::Const(name) = var else {
273-
panic!("smt-exists first argument must be smt-real-const");
274-
};
275-
SMTBoolValue::RealExists(name, Box::new(body))
276-
}
277-
}
278-
);
269+
// add_primitive!(
270+
// eg,
271+
// "smt-exists" = |var: SMTRealValue, body: SMTBoolValue| -> SMTBoolValue {
272+
// {
273+
// let SMTRealValue::Const(name) = var else {
274+
// panic!("smt-exists first argument must be smt-real-const");
275+
// };
276+
// SMTBoolValue::RealExists(name, Box::new(body))
277+
// }
278+
// }
279+
// );
279280
}
280281
}
281282

tests/polynomials/polynomial-basic.egg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,6 @@
102102
(Coefficient 3.0 (Mul (Var "x") (Mul (Power (Var "y") 2) (Var "z")))))
103103
(Coefficient -2.0 (Power (Var "w") 2))))
104104

105-
(run-schedule (saturate (run)))
105+
(run-schedule (saturate (run :until (= e1 e2))))
106106

107107
(check (= e1 e2))

0 commit comments

Comments
 (0)