Fix smtbmc smtc/aiw parser for wire names containing []
authorClifford Wolf <clifford@clifford.at>
Sat, 3 Mar 2018 13:15:49 +0000 (14:15 +0100)
committerClifford Wolf <clifford@clifford.at>
Sat, 3 Mar 2018 13:15:49 +0000 (14:15 +0100)
Signed-off-by: Clifford Wolf <clifford@clifford.at>
backends/smt2/smtbmc.py

index e43ed8855237f51e8ca4f28c82e43f3da0f2fa94..70e6ae6fdfe8e17848abeef66cc354548a1bb7e2 100644 (file)
@@ -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)