Skip to content

Commit

Permalink
Update inits
Browse files Browse the repository at this point in the history
  • Loading branch information
shilangyu committed Jan 28, 2024
1 parent f6d3817 commit 6980547
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/transformations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ const transformations: Transformations = [
code: dedent`
«init»
Reg := 0
old := 0
func Read()
return Reg.read()
Expand Down Expand Up @@ -192,7 +193,7 @@ const transformations: Transformations = [
],
code: dedent`
«init»
Reg := 0
Reg := (0, 0)
t := 0
x := 0
Expand Down Expand Up @@ -237,8 +238,8 @@ const transformations: Transformations = [
],
code: dedent`
«init»
RReg[(1, 1), (1, 2), .., (N, N)] := 0
WReg[1..N] := 0
RReg[(1, 1), (1, 2), .., (N, N)] := (0, 0)
WReg[1..N] := (0, 0)
t := 0
func Read()
Expand Down Expand Up @@ -285,7 +286,7 @@ const transformations: Transformations = [
],
code: dedent`
«init»
Reg[1..N] := 0
Reg[1..N] := (0, 0)
func Read()
for j = 1..N
Expand Down

0 comments on commit 6980547

Please sign in to comment.