mirror of
https://github.com/Z3Prover/z3
synced 2025-08-12 06:00:53 +00:00
try th_lemma, update documentation of api functions for creating strings
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
3b4f976118
commit
c6a5aa0cc4
3 changed files with 15 additions and 13 deletions
|
@ -150,6 +150,13 @@ namespace smt {
|
|||
|
||||
literal theory::mk_literal(expr* _e) {
|
||||
expr_ref e(_e, m);
|
||||
if (has_quantifiers(e)) {
|
||||
expr_ref fn(m.mk_fresh_const("aux-literal", m.mk_bool_sort()), m);
|
||||
expr_ref eq(m.mk_eq(fn, e), m);
|
||||
ctx.assert_expr(eq);
|
||||
ctx.internalize_assertions();
|
||||
return mk_literal(fn);
|
||||
}
|
||||
bool is_not = m.is_not(_e, _e);
|
||||
if (!ctx.e_internalized(_e)) {
|
||||
ctx.internalize(_e, is_quantifier(_e));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue