Skip to content

Commit

Permalink
Clarify slice syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
shilangyu committed Jan 28, 2024
1 parent af01b65 commit 6ba3bc6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/transformations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ const transformations: Transformations = [
for j in 1..N
(t[j], x[j]) := RReg[i, j].read()
(t[0], x[0]) := WReg[i].read()
(t', x') := highest(t, x)
(t', x') := highest(t[..], x[..])
for j in 1..N
RReg[j, i].write((t', x'))
return x
Expand Down Expand Up @@ -291,13 +291,13 @@ const transformations: Transformations = [
func Read()
for j in 1..N
(t[j], x[j]) := Reg[j].read()
(t', x') := highest(t, x)
(t', x') := highest(t[..], x[..])
return x
func Write(v)
for j in 1..N
(t[j], x[j]) := Reg[j].read()
(t', x') := highest(t, x)
(t', x') := highest(t[..], x[..])
Reg[i].write((t' + 1, v))
`,
},
Expand Down

0 comments on commit 6ba3bc6

Please sign in to comment.