Whiley / WhileyCompiler

The Whiley Compiler (WyC)
http://whiley.org
Apache License 2.0
217 stars 36 forks source link

Runtime checking Old Static Variable Accesses #1122

Closed DavePearce closed 2 years ago

DavePearce commented 2 years ago

The following from StaticVar_Valid_15 is not currently supported:

method inc()
requires var >= 0
ensures old(var) < var:
    var = var + 1

The problem is that, whilst the interpreter copies the entire heap, this does not include any static variables!

DavePearce commented 2 years ago

The plan is to move statics from CallStack into Heap.