projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cabc3c5
)
Fix smtbmc smtc/aiw parser for wire names containing []
author
Clifford Wolf
<clifford@clifford.at>
Sat, 3 Mar 2018 13:15:49 +0000
(14:15 +0100)
committer
Clifford 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
patch
|
blob
|
history
diff --git
a/backends/smt2/smtbmc.py
b/backends/smt2/smtbmc.py
index e43ed8855237f51e8ca4f28c82e43f3da0f2fa94..70e6ae6fdfe8e17848abeef66cc354548a1bb7e2 100644
(file)
--- 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)