3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-06 17:44:09 +00:00

Fix bug in smtio unroll code

This commit is contained in:
Clifford Wolf 2017-02-26 14:39:07 +01:00
parent 66a1617b69
commit 6e152f7aa1

View file

@ -215,9 +215,8 @@ class SmtIo:
stmt = stmt.strip()
if self.nocomments or self.unroll:
if stmt.startswith(";"):
return
stmt = re.sub(r" ;.*", "", stmt)
stmt = re.sub(r" *;.*", "", stmt)
if stmt == "": return
if unroll and self.unroll:
stmt = self.unroll_buffer + stmt