mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15:31 +00:00
Merge branch 'unstable' into contrib
This commit is contained in:
commit
4879b8db7a
53 changed files with 8472 additions and 691 deletions
|
@ -337,6 +337,15 @@ void ite_example() {
|
|||
std::cout << "term: " << ite << "\n";
|
||||
}
|
||||
|
||||
void ite_example2() {
|
||||
std::cout << "if-then-else example2\n";
|
||||
context c;
|
||||
expr b = c.bool_const("b");
|
||||
expr x = c.int_const("x");
|
||||
expr y = c.int_const("y");
|
||||
std::cout << (ite(b, x, y) > 0) << "\n";
|
||||
}
|
||||
|
||||
/**
|
||||
\brief Small example using quantifiers.
|
||||
*/
|
||||
|
@ -889,6 +898,7 @@ int main() {
|
|||
error_example(); std::cout << "\n";
|
||||
numeral_example(); std::cout << "\n";
|
||||
ite_example(); std::cout << "\n";
|
||||
ite_example2(); std::cout << "\n";
|
||||
quantifier_example(); std::cout << "\n";
|
||||
unsat_core_example1(); std::cout << "\n";
|
||||
unsat_core_example2(); std::cout << "\n";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue