mirror of
https://github.com/Z3Prover/z3
synced 2025-04-15 13:28:47 +00:00
add exception handler for debugging #1925
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
d7ecaa2ebb
commit
82e60ab17a
|
@ -695,6 +695,7 @@ def mk_install_tactic_cpp_internal(h_files_full_path, path):
|
||||||
probe_pat = re.compile('[ \t]*ADD_PROBE\(.*\)')
|
probe_pat = re.compile('[ \t]*ADD_PROBE\(.*\)')
|
||||||
for h_file in sorted_headers_by_component(h_files_full_path):
|
for h_file in sorted_headers_by_component(h_files_full_path):
|
||||||
added_include = False
|
added_include = False
|
||||||
|
try:
|
||||||
with open(h_file, 'r') as fin:
|
with open(h_file, 'r') as fin:
|
||||||
for line in fin:
|
for line in fin:
|
||||||
if tactic_pat.match(line):
|
if tactic_pat.match(line):
|
||||||
|
@ -717,6 +718,9 @@ def mk_install_tactic_cpp_internal(h_files_full_path, path):
|
||||||
_logger.error("Failed processing ADD_PROBE command at '{}'\n{}".format(
|
_logger.error("Failed processing ADD_PROBE command at '{}'\n{}".format(
|
||||||
fullname, line))
|
fullname, line))
|
||||||
raise e
|
raise e
|
||||||
|
except e:
|
||||||
|
_loggeer.error("Failed to read file {}\n".format(fullname))
|
||||||
|
raise e
|
||||||
# First pass will just generate the tactic factories
|
# First pass will just generate the tactic factories
|
||||||
fout.write('#define ADD_TACTIC_CMD(NAME, DESCR, CODE) ctx.insert(alloc(tactic_cmd, symbol(NAME), DESCR, [](ast_manager &m, const params_ref &p) { return CODE; }))\n')
|
fout.write('#define ADD_TACTIC_CMD(NAME, DESCR, CODE) ctx.insert(alloc(tactic_cmd, symbol(NAME), DESCR, [](ast_manager &m, const params_ref &p) { return CODE; }))\n')
|
||||||
fout.write('#define ADD_PROBE(NAME, DESCR, PROBE) ctx.insert(alloc(probe_info, symbol(NAME), DESCR, PROBE))\n')
|
fout.write('#define ADD_PROBE(NAME, DESCR, PROBE) ctx.insert(alloc(probe_info, symbol(NAME), DESCR, PROBE))\n')
|
||||||
|
|
Loading…
Reference in a new issue