mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 09:05:31 +00:00
add char_decl_plugin
This commit is contained in:
parent
20332c6d3e
commit
32058d9c68
6 changed files with 241 additions and 11 deletions
|
@ -341,10 +341,9 @@ namespace smt {
|
|||
return true;
|
||||
}
|
||||
|
||||
// TBD: seq_factory needs to be replaced by a "char_factory" in the case where theory_char is
|
||||
// a stand-alone theory.
|
||||
void theory_char::init_model(model_generator & mg) {
|
||||
m_factory = alloc(seq_factory, get_manager(), get_family_id(), mg.get_model());
|
||||
m_factory = alloc(char_factory, get_manager(), get_family_id(), mg.get_model());
|
||||
}
|
||||
|
||||
model_value_proc * theory_char::mk_value(enode * n, model_generator & mg) {
|
||||
|
|
|
@ -19,7 +19,7 @@ Author:
|
|||
#include "ast/seq_decl_plugin.h"
|
||||
#include "ast/bv_decl_plugin.h"
|
||||
#include "ast/rewriter/bit_blaster/bit_blaster.h"
|
||||
#include "model/seq_factory.h"
|
||||
#include "model/char_factory.h"
|
||||
#include "smt/smt_theory.h"
|
||||
|
||||
namespace smt {
|
||||
|
@ -43,7 +43,7 @@ namespace smt {
|
|||
bit_blaster m_bb;
|
||||
stats m_stats;
|
||||
symbol m_bits2char;
|
||||
seq_factory* m_factory { nullptr };
|
||||
char_factory* m_factory { nullptr };
|
||||
|
||||
struct reset_bits;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue