summaryrefslogtreecommitdiff
path: root/Test/dafny0/Answer
blob: 78982f01835d3ad9cce9575a1c363c5a57fa7fac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106

-------------------- Simple.dfy --------------------
// synthetic program

class MyClass<T, U> {
  var x: int;

  method M(s: bool, lotsaObjects: set<object>)
      returns (t: object, u: set<int>, v: seq<MyClass<bool,U>>):
    requires s;
    modifies this;
    modifies lotsaObjects;
    ensures t == t;
    ensures old(null) != this;
  {
    x := 12;
    while (x < 100)
      invariant x <= 100;
    {
      x := x + 17;
      if (x % 20 == 3) {
        x := this.x + 1;
      } else {
        this.x := x + 0;
      }
      call t, u, v := M(true, lotsaObjects)
      var to: MyClass<T,U>;
      call to, u, v := M(true, lotsaObjects)
      call to, u, v := to.M(true, lotsaObjects)
    }
  }
}

Dafny program verifier finished with 0 verified, 0 errors

-------------------- BQueue.bpl --------------------

Boogie program verifier finished with 8 verified, 0 errors

-------------------- SmallTests.dfy --------------------

Dafny program verifier finished with 3 verified, 0 errors

-------------------- Queue.dfy --------------------

Dafny program verifier finished with 12 verified, 0 errors

-------------------- ListCopy.dfy --------------------

Dafny program verifier finished with 2 verified, 0 errors

-------------------- BinaryTree.dfy --------------------

Dafny program verifier finished with 13 verified, 0 errors

-------------------- ListReverse.dfy --------------------

Dafny program verifier finished with 1 verified, 0 errors

-------------------- ListContents.dfy --------------------

Dafny program verifier finished with 5 verified, 0 errors

-------------------- SchorrWaite.dfy --------------------

Dafny program verifier finished with 4 verified, 0 errors

-------------------- Termination.dfy --------------------

Dafny program verifier finished with 5 verified, 0 errors

-------------------- Use.dfy --------------------
Use.dfy(12,5): Error BP5001: This assertion might not hold.
Execution trace:
    (0,0): anon0
Use.dfy(25,5): Error BP5001: This assertion might not hold.
Execution trace:
    (0,0): anon0
Use.dfy(50,5): Error BP5001: This assertion might not hold.
Execution trace:
    (0,0): anon0

Dafny program verifier finished with 6 verified, 3 errors

-------------------- DTypes.dfy --------------------
DTypes.dfy(15,5): Error BP5001: This assertion might not hold.
Execution trace:
    (0,0): anon0
DTypes.dfy(28,5): Error BP5001: This assertion might not hold.
Execution trace:
    (0,0): anon0
DTypes.dfy(54,5): Error BP5001: This assertion might not hold.
Execution trace:
    (0,0): anon0

Dafny program verifier finished with 5 verified, 3 errors

-------------------- TypeParameters.dfy --------------------
TypeParameters.dfy(41,5): Error BP5001: This assertion might not hold.
Execution trace:
    (0,0): anon0
TypeParameters.dfy(63,5): Error BP5001: This assertion might not hold.
Execution trace:
    (0,0): anon0

Dafny program verifier finished with 7 verified, 2 errors