You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BMC is failing but what I think it happening is that the assert/assume swap is being carried to later read files. The problem comes from something like this:
In the above, there are three modules (A, B, C), each with a 'contract' (_f suffix). The .sby file is set up to verify module C against its own contract and the contracts of the other two modules. This is why the assert/assumes are swapped over for the A and B contracts (since C is a client module). In my code this fails bmc (regardless of engine) and passes prove. The BMC fails with an error in c.v on a line with an assume statement, but the error message calls it an assertion failure.
This does indeed appear to be a bug in Yosys where the flag for assert-assumes is set high, but never set low (assume-asserts however appears to be set correctly).
BMC is failing but what I think it happening is that the assert/assume swap is being carried to later read files. The problem comes from something like this:
In the above, there are three modules (A, B, C), each with a 'contract' (
_f
suffix). The.sby
file is set up to verify module C against its own contract and the contracts of the other two modules. This is why the assert/assumes are swapped over for the A and B contracts (since C is a client module). In my code this failsbmc
(regardless of engine) and passesprove
. The BMC fails with an error inc.v
on a line with anassume
statement, but the error message calls it an assertion failure.If I change the order of the file reading to:
Then
bmc
doesn't fail (andprove
succeeds). It seems as if the assert/assume swapping is somehow being carried over from one line read to the next.Is this a bug? Am I misunderstanding something? Have I missed something completely obvious?
The text was updated successfully, but these errors were encountered: