Skip to content

Commit 085f5f0

Browse files
committed
Merge branch 'master' of https://github.com/nmacedo/Electrum
2 parents 099692a + 71ba436 commit 085f5f0

File tree

4 files changed

+28
-28
lines changed

4 files changed

+28
-28
lines changed

electrum/src/main/resources/models/util/seqrel.als

+2-2
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,13 @@ fun delete[s: SeqIdx -> elem, i: SeqIdx] : SeqIdx -> elem {
9393

9494
/** appended is the result of appending s2 to s1 */
9595
fun append [s1, s2: SeqIdx -> elem] : SeqIdx -> elem {
96-
let shift = {i', i: SeqIdx | #ord/prevs[i'] = add[#ord/prevs[i], add[#ord/prevs[lastIdx[s1]], 1]] } |
96+
let shift = {i2, i: SeqIdx | #ord/prevs[i2] = add[#ord/prevs[i], add[#ord/prevs[lastIdx[s1]], 1]] } |
9797
s1 + shift.s2
9898
}
9999

100100
/** returns the subsequence of s between from and to, inclusive */
101101
fun subseq [s: SeqIdx -> elem, from, to: SeqIdx] : SeqIdx -> elem {
102-
let shift = {i', i: SeqIdx | #ord/prevs[i'] = sub[#ord/prevs[i], #ord/prevs[from]] } |
102+
let shift = {i2, i: SeqIdx | #ord/prevs[i2] = sub[#ord/prevs[i], #ord/prevs[from]] } |
103103
shift.((SeqIdx - ord/nexts[to]) <: s)
104104
}
105105

electrum/src/main/resources/models/util/sequence.als

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,15 @@ pred noDuplicates {
5050
/** invoke if you want all sequences within scope to exist */
5151
pred allExist {
5252
(some s: Seq | s.isEmpty) &&
53-
(all s: Seq | SeqIdx !in s.inds => (all e: elem | some s': Seq | s.add[e, s']))
53+
(all s: Seq | SeqIdx !in s.inds => (all e: elem | some s2: Seq | s.add[e, s2]))
5454
}
5555

5656
/** invoke if you want all sequences within scope with no duplicates */
5757
pred allExistNoDuplicates {
5858
some s: Seq | s.isEmpty
5959
all s: Seq {
6060
!s.hasDups
61-
SeqIdx !in s.inds => (all e: elem - s.elems | some s': Seq | s.add[e, s'])
61+
SeqIdx !in s.inds => (all e: elem - s.elems | some s2: Seq | s.add[e, s2])
6262
}
6363
}
6464

electrum/src/main/resources/models/util/sequniv.als

+2-2
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ fun delete[s: Int -> univ, i: Int] : s {
123123
* (If the resulting sequence is too long, it will be truncated)
124124
*/
125125
fun append [s1, s2: Int -> univ] : s1+s2 {
126-
let shift = {i', i: seq/Int | int[i'] = ui/add[int[i], ui/add[int[lastIdx[s1]], 1]] } |
126+
let shift = {i2, i: seq/Int | int[i2] = ui/add[int[i], ui/add[int[lastIdx[s1]], 1]] } |
127127
no s1 => s2 else (s1 + shift.s2)
128128
}
129129

@@ -132,6 +132,6 @@ fun append [s1, s2: Int -> univ] : s1+s2 {
132132
* Precondition: 0 <= from <= to < #s
133133
*/
134134
fun subseq [s: Int -> univ, from, to: Int] : s {
135-
let shift = {i', i: seq/Int | int[i'] = ui/sub[int[i], int[from]] } |
135+
let shift = {i2, i: seq/Int | int[i2] = ui/sub[int[i], int[from]] } |
136136
shift.((seq/Int - ui/nexts[to]) <: s)
137137
}

electrum/src/main/resources/models/util/time.als

+22-22
Original file line numberDiff line numberDiff line change
@@ -6,48 +6,48 @@ let dynamic[x] = x one-> Time
66

77
let dynamicSet[x] = x -> Time
88

9-
let then [a, b, t, t'] {
10-
some x:Time | a[t,x] && b[x,t']
9+
let then [a, b, t, t2] {
10+
some x:Time | a[t,x] && b[x,t2]
1111
}
1212

1313
let while = while3
1414

15-
let while9 [cond, body, t, t'] {
16-
some x:Time | (cond[t] => body[t,x] else t=x) && while8[cond,body,x,t']
15+
let while9 [cond, body, t, t2] {
16+
some x:Time | (cond[t] => body[t,x] else t=x) && while8[cond,body,x,t2]
1717
}
1818

19-
let while8 [cond, body, t, t'] {
20-
some x:Time | (cond[t] => body[t,x] else t=x) && while7[cond,body,x,t']
19+
let while8 [cond, body, t, t2] {
20+
some x:Time | (cond[t] => body[t,x] else t=x) && while7[cond,body,x,t2]
2121
}
2222

23-
let while7 [cond, body, t, t'] {
24-
some x:Time | (cond[t] => body[t,x] else t=x) && while6[cond,body,x,t']
23+
let while7 [cond, body, t, t2] {
24+
some x:Time | (cond[t] => body[t,x] else t=x) && while6[cond,body,x,t2]
2525
}
2626

27-
let while6 [cond, body, t, t'] {
28-
some x:Time | (cond[t] => body[t,x] else t=x) && while5[cond,body,x,t']
27+
let while6 [cond, body, t, t2] {
28+
some x:Time | (cond[t] => body[t,x] else t=x) && while5[cond,body,x,t2]
2929
}
3030

31-
let while5 [cond, body, t, t'] {
32-
some x:Time | (cond[t] => body[t,x] else t=x) && while4[cond,body,x,t']
31+
let while5 [cond, body, t, t2] {
32+
some x:Time | (cond[t] => body[t,x] else t=x) && while4[cond,body,x,t2]
3333
}
3434

35-
let while4 [cond, body, t, t'] {
36-
some x:Time | (cond[t] => body[t,x] else t=x) && while3[cond,body,x,t']
35+
let while4 [cond, body, t, t2] {
36+
some x:Time | (cond[t] => body[t,x] else t=x) && while3[cond,body,x,t2]
3737
}
3838

39-
let while3 [cond, body, t, t'] {
40-
some x:Time | (cond[t] => body[t,x] else t=x) && while2[cond,body,x,t']
39+
let while3 [cond, body, t, t2] {
40+
some x:Time | (cond[t] => body[t,x] else t=x) && while2[cond,body,x,t2]
4141
}
4242

43-
let while2 [cond, body, t, t'] {
44-
some x:Time | (cond[t] => body[t,x] else t=x) && while1[cond,body,x,t']
43+
let while2 [cond, body, t, t2] {
44+
some x:Time | (cond[t] => body[t,x] else t=x) && while1[cond,body,x,t2]
4545
}
4646

47-
let while1 [cond, body, t, t'] {
48-
some x:Time | (cond[t] => body[t,x] else t=x) && while0[cond,body,x,t']
47+
let while1 [cond, body, t, t2] {
48+
some x:Time | (cond[t] => body[t,x] else t=x) && while0[cond,body,x,t2]
4949
}
5050

51-
let while0 [cond, body, t, t'] {
52-
!cond[t] && t=t'
51+
let while0 [cond, body, t, t2] {
52+
!cond[t] && t=t2
5353
}

0 commit comments

Comments
 (0)