mirror of
https://github.com/Z3Prover/z3
synced 2025-08-22 11:07:51 +00:00
checkpoint
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
ffaf88798d
commit
56ab7a7495
29 changed files with 25 additions and 66 deletions
33
src/tactic/goal_util.cpp
Normal file
33
src/tactic/goal_util.cpp
Normal file
|
@ -0,0 +1,33 @@
|
|||
/*++
|
||||
Copyright (c) 2012 Microsoft Corporation
|
||||
|
||||
Module Name:
|
||||
|
||||
goal_util.cpp
|
||||
|
||||
Abstract:
|
||||
|
||||
goal goodies.
|
||||
|
||||
Author:
|
||||
|
||||
Leonardo de Moura (leonardo) 2012-01-03.
|
||||
|
||||
Revision History:
|
||||
|
||||
--*/
|
||||
#include"goal_util.h"
|
||||
#include"goal.h"
|
||||
|
||||
struct has_term_ite_functor {
|
||||
struct found {};
|
||||
ast_manager & m;
|
||||
has_term_ite_functor(ast_manager & _m):m(_m) {}
|
||||
void operator()(var *) {}
|
||||
void operator()(quantifier *) {}
|
||||
void operator()(app * n) { if (m.is_term_ite(n)) throw found(); }
|
||||
};
|
||||
|
||||
bool has_term_ite(goal const & g) {
|
||||
return test<has_term_ite_functor>(g);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue