mirror of
https://github.com/Z3Prover/z3
synced 2025-05-08 16:25:48 +00:00
checkpoint
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
142bf71b35
commit
9359ab7ce5
124 changed files with 2 additions and 0 deletions
|
@ -1,28 +0,0 @@
|
|||
#include "smt_context.h"
|
||||
|
||||
void tst_smt_context()
|
||||
{
|
||||
front_end_params params;
|
||||
|
||||
ast_manager m;
|
||||
m.register_decl_plugins();
|
||||
|
||||
smt::context ctx(m, params);
|
||||
|
||||
app_ref a1(m.mk_const(symbol("a"), m.mk_bool_sort()), m);
|
||||
app_ref b1(m.mk_const(symbol("b"), m.mk_bool_sort()), m);
|
||||
app_ref c1(m.mk_const(symbol("c"), m.mk_bool_sort()), m);
|
||||
app_ref na1(m.mk_not(a1), m);
|
||||
ctx.assert_expr(na1);
|
||||
ctx.assert_expr(m.mk_or(c1.get(), b1.get()));
|
||||
|
||||
{
|
||||
app_ref nc(m.mk_not(c1), m);
|
||||
ptr_vector<expr> assumptions;
|
||||
assumptions.push_back(nc.get());
|
||||
|
||||
ctx.check(assumptions.size(), assumptions.c_ptr());
|
||||
}
|
||||
|
||||
ctx.check();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue