aboutsummaryrefslogtreecommitdiffstats
path: root/backends/smt2
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-03-03 14:15:49 +0100
committerClifford Wolf <clifford@clifford.at>2018-03-03 14:15:49 +0100
commit3ced2cca6e924bf748851580563b42d835aa099b (patch)
treeac9ec15f14fbd7b20263ab6e4628cef2e9d3fd1e /backends/smt2
parentcabc3c59e043e55a35187914281b9a1fcc10b072 (diff)
downloadyosys-3ced2cca6e924bf748851580563b42d835aa099b.tar.gz
yosys-3ced2cca6e924bf748851580563b42d835aa099b.tar.bz2
yosys-3ced2cca6e924bf748851580563b42d835aa099b.zip
Fix smtbmc smtc/aiw parser for wire names containing []
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'backends/smt2')
-rw-r--r--backends/smt2/smtbmc.py2
1 files changed, 1 insertions, 1 deletions
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)