added an .assert pragma and mentioned the pragmas in the changelog
This commit is contained in:
parent
df8e0e7f0c
commit
d01fca974d
4 changed files with 8 additions and 4 deletions
|
|
@ -1030,7 +1030,7 @@ proc track(tracked: PEffects, n: PNode) =
|
|||
when defined(drnim):
|
||||
if pragma == wAssume:
|
||||
addFact(tracked.guards, pragmaList[i][1])
|
||||
elif pragma == wInvariant:
|
||||
elif pragma == wInvariant or pragma == wAssert:
|
||||
if prove(tracked, pragmaList[i][1]):
|
||||
addFact(tracked.guards, pragmaList[i][1])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue