From f1857c9955c9e8a3397e97c5f0db62d19b89f561 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Povi=C5=A1er?= Date: Wed, 13 Nov 2024 17:51:11 +0100 Subject: [PATCH] abc_new: Fix help crash --- passes/techmap/abc_new.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/passes/techmap/abc_new.cc b/passes/techmap/abc_new.cc index 2c3eef7489f..5be8239163e 100644 --- a/passes/techmap/abc_new.cc +++ b/passes/techmap/abc_new.cc @@ -161,7 +161,7 @@ struct AbcNewPass : public ScriptPass { } std::string script_save; - if (mod->has_attribute(ID(abc9_script))) { + if (!help_mode && mod->has_attribute(ID(abc9_script))) { script_save = active_design->scratchpad_get_string("abc9.script"); active_design->scratchpad_set_string("abc9.script", mod->get_string_attribute(ID(abc9_script))); @@ -173,7 +173,7 @@ struct AbcNewPass : public ScriptPass { run(stringf(" read_xaiger2 -sc_mapping -module_name %s -map2 %s/input.map2 %s/output.aig", modname.c_str(), tmpdir.c_str(), tmpdir.c_str())); - if (mod->has_attribute(ID(abc9_script))) { + if (!help_mode && mod->has_attribute(ID(abc9_script))) { if (script_save.empty()) active_design->scratchpad_unset("abc9.script"); else