mirror of
https://github.com/Z3Prover/z3
synced 2025-05-09 00:35:47 +00:00
Z3 sources
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
3f9edad676
commit
e9eab22e5c
1186 changed files with 381859 additions and 0 deletions
58
lib/theory_dummy.h
Normal file
58
lib/theory_dummy.h
Normal file
|
@ -0,0 +1,58 @@
|
|||
/*++
|
||||
Copyright (c) 2006 Microsoft Corporation
|
||||
|
||||
Module Name:
|
||||
|
||||
theory_no_arith.h
|
||||
|
||||
Abstract:
|
||||
|
||||
<abstract>
|
||||
|
||||
Author:
|
||||
|
||||
Leonardo de Moura (leonardo) 2008-12-30.
|
||||
|
||||
Revision History:
|
||||
|
||||
--*/
|
||||
#ifndef _THEORY_DUMMY_H_
|
||||
#define _THEORY_DUMMY_H_
|
||||
|
||||
#include"smt_theory.h"
|
||||
|
||||
namespace smt {
|
||||
|
||||
/**
|
||||
\brief Do nothing theory. Tracks whether theory expressions were internalized.
|
||||
When theory expressions were internalized, it returns FC_GIVEUP in the final_check_eh.
|
||||
*/
|
||||
class theory_dummy : public theory {
|
||||
bool m_theory_exprs;
|
||||
char const * m_name;
|
||||
void found_theory_expr();
|
||||
|
||||
protected:
|
||||
virtual bool internalize_atom(app * atom, bool gate_ctx);
|
||||
virtual bool internalize_term(app * term);
|
||||
virtual void new_eq_eh(theory_var v1, theory_var v2);
|
||||
virtual bool use_diseqs() const;
|
||||
virtual void new_diseq_eh(theory_var v1, theory_var v2);
|
||||
virtual void reset_eh();
|
||||
virtual final_check_status final_check_eh();
|
||||
virtual bool build_models() const {
|
||||
return false;
|
||||
}
|
||||
|
||||
public:
|
||||
theory_dummy(family_id fid, char const * name);
|
||||
virtual ~theory_dummy() {}
|
||||
|
||||
virtual theory * mk_fresh(context * new_ctx) { return alloc(theory_dummy, get_family_id(), m_name); }
|
||||
|
||||
virtual char const * get_name() const;
|
||||
};
|
||||
};
|
||||
|
||||
#endif /* _THEORY_DUMMY_H_ */
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue