mirror of
https://github.com/Z3Prover/z3
synced 2025-04-10 19:27:06 +00:00
dealing with issue #402
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
20cfbcd66b
commit
0df4931c4b
|
@ -1816,7 +1816,7 @@ def _mk_quantifier(is_forall, vs, body, weight=1, qid="", skid="", patterns=[],
|
|||
vs = [vs]
|
||||
num_vars = len(vs)
|
||||
if num_vars == 0:
|
||||
raise Z3Exception("Quantification requires a non-empty list of variables.")
|
||||
return body
|
||||
_vs = (Ast * num_vars)()
|
||||
for i in range(num_vars):
|
||||
## TODO: Check if is constant
|
||||
|
|
|
@ -322,6 +322,9 @@ namespace smt {
|
|||
TRACE("internalize", tout << "internalizing:\n" << mk_pp(n, m_manager) << "\n";);
|
||||
TRACE("internalize_bug", tout << "internalizing:\n" << mk_bounded_pp(n, m_manager) << "\n";);
|
||||
if (m_manager.is_bool(n)) {
|
||||
if (is_var(n)) {
|
||||
throw default_exception("Formulas should not contain unbound variables");
|
||||
}
|
||||
SASSERT(is_quantifier(n) || is_app(n));
|
||||
internalize_formula(n, gate_ctx);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue