3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-07-19 10:52:02 +00:00

introduce fresh term when none is available in context or model to fix #2456

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2019-08-04 11:56:03 -07:00
parent c7dc420b3b
commit 59f69bbe0d
3 changed files with 19 additions and 8 deletions

View file

@ -23,18 +23,16 @@ Revision History:
namespace smt {
bool checker::all_args(app * a, bool is_true) {
unsigned num_args = a->get_num_args();
for (unsigned i = 0; i < num_args; i++) {
if (!check(a->get_arg(i), is_true))
for (expr* arg : *a) {
if (!check(arg, is_true))
return false;
}
return true;
}
bool checker::any_arg(app * a, bool is_true) {
unsigned num_args = a->get_num_args();
for (unsigned i = 0; i < num_args; i++) {
if (check(a->get_arg(i), is_true))
for (expr* arg : *a) {
if (check(arg, is_true))
return true;
}
return false;