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
41
lib/theory_seq_empty.h
Normal file
41
lib/theory_seq_empty.h
Normal file
|
@ -0,0 +1,41 @@
|
|||
/*++
|
||||
Copyright (c) 2011 Microsoft Corporation
|
||||
|
||||
Module Name:
|
||||
|
||||
theory_seq_empty.h
|
||||
|
||||
Abstract:
|
||||
|
||||
<abstract>
|
||||
|
||||
Author:
|
||||
|
||||
Nikolaj Bjorner (nbjorner) 2011-14-11
|
||||
|
||||
Revision History:
|
||||
|
||||
--*/
|
||||
#ifndef _THEORY_SEQ_EMPTY_H_
|
||||
#define _THEORY_SEQ_EMPTY_H_
|
||||
|
||||
#include "smt_theory.h"
|
||||
|
||||
namespace smt {
|
||||
class theory_seq_empty : public theory {
|
||||
bool m_used;
|
||||
virtual final_check_status final_check_eh() { return m_used?FC_GIVEUP:FC_DONE; }
|
||||
virtual bool internalize_atom(app*, bool) { if (!m_used) { get_context().push_trail(value_trail<context,bool>(m_used)); m_used = true; } return false; }
|
||||
virtual bool internalize_term(app*) { return internalize_atom(0,false); }
|
||||
virtual void new_eq_eh(theory_var, theory_var) { }
|
||||
virtual void new_diseq_eh(theory_var, theory_var) {}
|
||||
virtual theory* mk_fresh(context*) { return alloc(theory_seq_empty, get_manager()); }
|
||||
virtual char const * get_name() const { return "seq-empty"; }
|
||||
public:
|
||||
theory_seq_empty(ast_manager& m):theory(m.get_family_id("seq")), m_used(false) {}
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
#endif /* _THEORY_SEQ_EMPTY_H_ */
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue