mirror of
https://github.com/Z3Prover/z3
synced 2025-04-13 04:28:17 +00:00
links to API (related to issue in z3doc)
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
28cb13fb96
commit
9af4cc0fd6
|
@ -213,11 +213,11 @@ See [``examples/python``](examples/python) for examples.
|
||||||
* Default input format is [SMTLIB2](http://smtlib.cs.uiowa.edu)
|
* Default input format is [SMTLIB2](http://smtlib.cs.uiowa.edu)
|
||||||
|
|
||||||
* Other native foreign function interfaces:
|
* Other native foreign function interfaces:
|
||||||
|
* [C++ API](https://z3prover.github.io/api/html/group__cppapi.html)
|
||||||
|
* [.NET API](https://z3prover.github.io/api/html/namespace_microsoft_1_1_z3.html)
|
||||||
|
* [Java API](https://z3prover.github.io/api/html/namespacecom_1_1microsoft_1_1z3.html)
|
||||||
|
* [Python API](https://z3prover.github.io/api/html/namespacez3py.html) (also available in [pydoc format](https://z3prover.github.io/api/html/z3.html))
|
||||||
* C
|
* C
|
||||||
* C++
|
|
||||||
* Python
|
|
||||||
* Java
|
|
||||||
* C#
|
|
||||||
* OCaml
|
* OCaml
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -335,7 +335,6 @@ namespace smtfd {
|
||||||
else if (m.is_model_value(t)) {
|
else if (m.is_model_value(t)) {
|
||||||
int idx = a->get_parameter(0).get_int();
|
int idx = a->get_parameter(0).get_int();
|
||||||
r = m_butil.mk_numeral(rational(idx), 24);
|
r = m_butil.mk_numeral(rational(idx), 24);
|
||||||
// std::cout << expr_ref(t, m) << " --> " << mk_pp(r, m) << "\n";
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
r = fresh_var(t);
|
r = fresh_var(t);
|
||||||
|
@ -346,8 +345,7 @@ namespace smtfd {
|
||||||
}
|
}
|
||||||
if (is_atom(r) && !is_uninterp_const(r)) {
|
if (is_atom(r) && !is_uninterp_const(r)) {
|
||||||
expr* rr = fresh_var(r);
|
expr* rr = fresh_var(r);
|
||||||
m_atom_defs.push_back(m.mk_implies(rr, r));
|
m_atom_defs.push_back(m.mk_iff(rr, r));
|
||||||
m_atom_defs.push_back(m.mk_implies(r, rr));
|
|
||||||
r = rr;
|
r = rr;
|
||||||
}
|
}
|
||||||
push_trail(m_abs, m_abs_trail, t, r);
|
push_trail(m_abs, m_abs_trail, t, r);
|
||||||
|
@ -1786,6 +1784,7 @@ namespace smtfd {
|
||||||
tout << *m_model.get() << "\n";
|
tout << *m_model.get() << "\n";
|
||||||
);
|
);
|
||||||
|
|
||||||
|
DEBUG_CODE(
|
||||||
bool found_bad = false;
|
bool found_bad = false;
|
||||||
for (expr* a : subterms(core)) {
|
for (expr* a : subterms(core)) {
|
||||||
expr_ref val0 = (*m_model)(a);
|
expr_ref val0 = (*m_model)(a);
|
||||||
|
@ -1799,7 +1798,7 @@ namespace smtfd {
|
||||||
std::cout << "core: " << core << "\n";
|
std::cout << "core: " << core << "\n";
|
||||||
std::cout << *m_model.get() << "\n";
|
std::cout << *m_model.get() << "\n";
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
});
|
||||||
|
|
||||||
if (!has_q) {
|
if (!has_q) {
|
||||||
return is_decided;
|
return is_decided;
|
||||||
|
|
Loading…
Reference in a new issue