added an .assert pragma and mentioned the pragmas in the changelog

This commit is contained in:
Araq 2020-04-02 12:57:15 +02:00
commit d01fca974d
4 changed files with 8 additions and 4 deletions

View file

@ -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])