projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d61a91
)
yosys-smtbmc: Fix reused loop variable.
author
Marcelina Kościelnicka
<mwk@0x04.net>
Fri, 10 Sep 2021 02:55:48 +0000
(
04:55
+0200)
committer
Marcelina Kościelnicka
<mwk@0x04.net>
Fri, 10 Sep 2021 11:34:58 +0000
(13:34 +0200)
Fixes #2999.
backends/smt2/smtbmc.py
patch
|
blob
|
history
diff --git
a/backends/smt2/smtbmc.py
b/backends/smt2/smtbmc.py
index be27a3d097ce5166544cbb925ef016e4abe3b7e9..e5cfcdc08a4cbdeb4c6356622f53b8ed955530a2 100644
(file)
--- a/
backends/smt2/smtbmc.py
+++ b/
backends/smt2/smtbmc.py
@@
-771,12
+771,12
@@
def write_vcd_trace(steps_start, steps_stop, index):
if gotread:
buf = data[:]
- for i in reversed(range(len(tdata))):
+ for i
i
in reversed(range(len(tdata))):
for k in range(width):
- if tdata[i][k] == "x":
- tdata[i][k] = buf[k]
+ if tdata[i
i
][k] == "x":
+ tdata[i
i
][k] = buf[k]
else:
- buf[k] = tdata[i][k]
+ buf[k] = tdata[i
i
][k]
if not asyncwr:
tdata.append(data[:])