mirror of
https://github.com/Z3Prover/z3
synced 2025-06-13 09:26:15 +00:00
fix #5226
This commit is contained in:
parent
30e904bfa4
commit
a8ccbd7103
1 changed files with 10 additions and 2 deletions
|
@ -2984,8 +2984,16 @@ namespace z3 {
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
operator Z3_fixedpoint() const { return m_fp; }
|
operator Z3_fixedpoint() const { return m_fp; }
|
||||||
void from_string(char const* s) { Z3_fixedpoint_from_string(ctx(), m_fp, s); check_error(); }
|
expr_vector from_string(char const* s) {
|
||||||
void from_file(char const* s) { Z3_fixedpoint_from_file(ctx(), m_fp, s); check_error(); }
|
Z3_ast_vector r = Z3_fixedpoint_from_string(ctx(), m_fp, s);
|
||||||
|
check_error();
|
||||||
|
return expr_vector(ctx(), r);
|
||||||
|
}
|
||||||
|
expr_vector from_file(char const* s) {
|
||||||
|
Z3_ast_vector r = Z3_fixedpoint_from_file(ctx(), m_fp, s);
|
||||||
|
check_error();
|
||||||
|
return expr_vector(ctx(), r);
|
||||||
|
}
|
||||||
void add_rule(expr& rule, symbol const& name) { Z3_fixedpoint_add_rule(ctx(), m_fp, rule, name); check_error(); }
|
void add_rule(expr& rule, symbol const& name) { Z3_fixedpoint_add_rule(ctx(), m_fp, rule, name); check_error(); }
|
||||||
void add_fact(func_decl& f, unsigned * args) { Z3_fixedpoint_add_fact(ctx(), m_fp, f, f.arity(), args); check_error(); }
|
void add_fact(func_decl& f, unsigned * args) { Z3_fixedpoint_add_fact(ctx(), m_fp, f, f.arity(), args); check_error(); }
|
||||||
check_result query(expr& q) { Z3_lbool r = Z3_fixedpoint_query(ctx(), m_fp, q); check_error(); return to_check_result(r); }
|
check_result query(expr& q) { Z3_lbool r = Z3_fixedpoint_query(ctx(), m_fp, q); check_error(); return to_check_result(r); }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue