Open sakehl opened 2 months ago
Indeed, the tutorial was written for old VerCors, where wands were encoded into methods. PR #760 changed that, instead mapping VerCors wands to Viper wands, also modifying the syntax in the process. It seems that the wiki wasn't updated accordingly. Feel free to update the wiki :) Some notes:
create
is now package
, as you already realiseduse
is no longer needed for the permission footprint, Viper usually figures it out automaticallyuse
for boolean facts can be expressed as an assert
statement inside the package
block if needed, IIRC. You didn't need it in your example, so I'm not sure how relevant this is (or if it really works that way). I think this is also how you guide the automatic footprint inference if that fails, but I'm not sure.qed
became obsolete
I was trying to write a simple example of wands, and the tutorial does not help at the moment: link
This example does work, so maybe we could replace it in the tutorial.