From: Clifford Wolf Date: Sat, 3 Mar 2018 13:15:49 +0000 (+0100) Subject: Fix smtbmc smtc/aiw parser for wire names containing [] X-Git-Tag: yosys-0.8~191 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3ced2cca6e924bf748851580563b42d835aa099b;p=yosys.git Fix smtbmc smtc/aiw parser for wire names containing [] Signed-off-by: Clifford Wolf --- diff --git a/backends/smt2/smtbmc.py b/backends/smt2/smtbmc.py index e43ed8855..70e6ae6fd 100644 --- a/backends/smt2/smtbmc.py +++ b/backends/smt2/smtbmc.py @@ -338,7 +338,7 @@ def get_constr_expr(db, state, final=False, getvalues=False): if state not in db: return ([], [], []) if getvalues else "true" - netref_regex = re.compile(r'(^|[( ])\[(-?[0-9]+:|)([^\]]*)\](?=[ )]|$)') + netref_regex = re.compile(r'(^|[( ])\[(-?[0-9]+:|)([^\]]*|\S*)\](?=[ )]|$)') def replace_netref(match): state_sel = match.group(2)