mirror of
https://github.com/Z3Prover/z3
synced 2025-04-22 16:45:31 +00:00
reorganizing the code
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
9c057b87d1
commit
f57d4b1b19
34 changed files with 602 additions and 181 deletions
|
@ -30,9 +30,9 @@ add_lib('old_params', ['model', 'simplifier'])
|
|||
add_lib('cmd_context', ['tactic', 'rewriter', 'model', 'old_params', 'simplifier'])
|
||||
add_lib('substitution', ['ast'], 'ast/substitution')
|
||||
add_lib('normal_forms', ['rewriter', 'old_params'], 'ast/normal_forms')
|
||||
add_lib('pattern', ['normal_forms'], 'ast/pattern')
|
||||
add_lib('parser_util', ['ast'])
|
||||
add_lib('smt2parser', ['cmd_context', 'parser_util'])
|
||||
add_lib('pattern', ['normal_forms', 'smt2parser'], 'ast/pattern')
|
||||
add_lib('macros', ['simplifier', 'old_params'], 'ast/macros')
|
||||
add_lib('grobner', ['ast'], 'math/grobner')
|
||||
add_lib('euclid', ['util'], 'math/euclid')
|
||||
|
@ -64,4 +64,5 @@ add_exe('shell', ['api', 'sat', 'extra_cmds'], exe_name='z3')
|
|||
add_exe('test', ['api', 'fuzzing'], exe_name='test-z3')
|
||||
add_dll('api_dll', ['api', 'sat', 'extra_cmds'], 'api/dll', dll_name='z3')
|
||||
|
||||
mk_auto_src()
|
||||
mk_makefile()
|
||||
|
|
|
@ -414,4 +414,17 @@ def mk_makefile():
|
|||
else:
|
||||
print "Type 'cd %s; make' to build Z3" % BUILD_DIR
|
||||
|
||||
# Generate automatically generated source code
|
||||
def mk_auto_src():
|
||||
mk_pat_db()
|
||||
|
||||
# TODO: delete after src/ast/pattern/expr_pattern_match
|
||||
# database.smt ==> database.h
|
||||
def mk_pat_db():
|
||||
c = _Name2Component['pattern']
|
||||
fin = open('%s/database.smt2' % c.src_dir, 'r')
|
||||
fout = open('%s/database.h' % c.src_dir, 'w')
|
||||
fout.write('char const * g_pattern_database =\n')
|
||||
for line in fin:
|
||||
fout.write('"%s\\n"\n' % line.strip('\n'))
|
||||
fout.write(';\n')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue