zenna / Spec.jl

MIT License
4 stars 0 forks source link

Variable Capturing #7

Open zenna opened 4 years ago

zenna commented 4 years ago

Implement variable capturing for post conditions.

To be able to write postconditions for mutating functions, we might need to "capture" the input, copying it before it is mutated so that we can use it the post condition. E.g. in sort!(x), we want to say that after computation, x is the sorted version of x before the computation.