Guest User

Untitled

a guest
Dec 18th, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. import stainless.lang._
  2.  
  3. object Eval {
  4. def foo: Int = {
  5. // assert(false)
  6. 43
  7. } ensuring { _ + 58 == 100 }
  8.  
  9. def goo = 1
  10.  
  11. def bar = { "hello, stainless!" } ensuring { _ => 0 < goo }
  12.  
  13. def foobar = { "failure in foo's PC" } ensuring { _ => 0 < foo }
  14.  
  15. def loop = {
  16. var x = 0
  17. while (x < 10) {
  18. // x += 1
  19. }
  20. true
  21. }.holds
  22. }
Add Comment
Please, Sign In to add comment