Skip to content

Commit

Permalink
Add optimizer for Stack Automaton
Browse files Browse the repository at this point in the history
  • Loading branch information
kamil-adam committed Mar 14, 2023
1 parent 2ae3166 commit ae79855
Show file tree
Hide file tree
Showing 1,015 changed files with 84,314 additions and 69,363 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
dump: Automaton
{ unitUI = IU
dump: Memory
{ memoryIM = IM
[ Move 1
, Inc 9
, MulAddClr 11
Expand Down Expand Up @@ -942,7 +942,7 @@ dump: Automaton
( -3 )
]
] 6
, unitTape =
, memoryTape =
(
[ 48
, 48
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
dump: Automaton
{ unitUI = IU
dump: Memory
{ memoryIM = IM
[ Move 1
, Inc 8
, MulAddClr 9
Expand Down Expand Up @@ -75,7 +75,7 @@ dump: Automaton
, Inc 1
, Output
] 50
, unitTape =
, memoryTape =
(
[ 0
, 0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
dump: Automaton
{ unitUI = IU
dump: Memory
{ memoryIM = IM
[ Inc 8
, While
[ Move 1
Expand Down Expand Up @@ -72,7 +72,7 @@ dump: Automaton
, Inc 2
, Output
] 32
, unitTape =
, memoryTape =
( [ 0 ]
,
[ 10
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
dump: Automaton
{ unitUI = IU
dump: Memory
{ memoryIM = IM
[ While
[ Inc
( -1 )
Expand Down Expand Up @@ -98,7 +98,7 @@ dump: Automaton
]
, Inc 5
] 17
, unitTape =
, memoryTape =
(
[ 0
, 0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
dump: Automaton
{ unitUI = IU
dump: Memory
{ memoryIM = IM
[ Move 1
, Inc 9
, MulAddClr 11
Expand Down Expand Up @@ -942,7 +942,7 @@ dump: Automaton
( -3 )
]
] 6
, unitTape =
, memoryTape =
(
[ 48
, 48
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
dump: Automaton
{ unitUI = IU
dump: Memory
{ memoryIM = IM
[ Move 1
, Inc 8
, MulAddClr 9
Expand Down Expand Up @@ -75,7 +75,7 @@ dump: Automaton
, Inc 1
, Output
] 50
, unitTape =
, memoryTape =
(
[ 0
, 0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
dump: Automaton
{ unitUI = IU
dump: Memory
{ memoryIM = IM
[ Input
, Output
, Input
Expand Down Expand Up @@ -265,7 +265,7 @@ dump: Automaton
( -1 )
]
] 25
, unitTape =
, memoryTape =
(
[ 114
, 94
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
dump: Automaton
{ unitUI = IU
dump: Memory
{ memoryIM = IM
[ Inc 8
, While
[ Move 1
Expand Down Expand Up @@ -72,7 +72,7 @@ dump: Automaton
, Inc 2
, Output
] 32
, unitTape =
, memoryTape =
( [ 0 ]
,
[ 10
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
dump: Automaton
{ unitUI = IU
dump: Memory
{ memoryIM = IM
[ Inc
( -2 )
, Move
Expand Down Expand Up @@ -74,7 +74,7 @@ dump: Automaton
, Inc 1
, Output
] 38
, unitTape =
, memoryTape =
(
[ 108
, 87
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
dump: Automaton
{ unitUI = IU
dump: Memory
{ memoryIM = IM
[ Inc 1
, While
[ Inc
Expand Down Expand Up @@ -57,7 +57,7 @@ dump: Automaton
, Inc 1
, Output
] 26
, unitTape =
, memoryTape =
(
[ 87
, 0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
dump: Automaton
{ unitUI = IU
dump: Memory
{ memoryIM = IM
[ While
[ Inc
( -1 )
Expand Down Expand Up @@ -98,7 +98,7 @@ dump: Automaton
]
, Inc 5
] 17
, unitTape =
, memoryTape =
(
[ 0
, 0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
dump: Automaton
{ unitUI = IU
dump: Memory
{ memoryIM = IM
[ Inc 8
, MulAddClr 8 1
, Move 1
Expand Down Expand Up @@ -127,7 +127,7 @@ dump: Automaton
( -1 )
]
] 39
, unitTape =
, memoryTape =
(
[ 0
, 0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
dump: Automaton
{ unitUI = IU
dump: Memory
{ memoryIM = IM
[ Move 1
, Inc 9
, MulAddClr 11
Expand Down Expand Up @@ -942,7 +942,7 @@ dump: Automaton
( -3 )
]
] 6
, unitTape =
, memoryTape =
(
[ 48
, 48
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
dump: Automaton
{ unitUI = IU
dump: Memory
{ memoryIM = IM
[ Move 1
, Inc 8
, MulAddClr 9
Expand Down Expand Up @@ -75,7 +75,7 @@ dump: Automaton
, Inc 1
, Output
] 50
, unitTape =
, memoryTape =
(
[ 0
, 0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
dump: Automaton
{ unitUI = IU
dump: Memory
{ memoryIM = IM
[ Inc 8
, While
[ Move 1
Expand Down Expand Up @@ -72,7 +72,7 @@ dump: Automaton
, Inc 2
, Output
] 32
, unitTape =
, memoryTape =
( [ 0 ]
,
[ 10
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
dump: Automaton
{ unitUI = IU
dump: Memory
{ memoryIM = IM
[ While
[ Inc
( -1 )
Expand Down Expand Up @@ -98,7 +98,7 @@ dump: Automaton
]
, Inc 5
] 17
, unitTape =
, memoryTape =
(
[ 0
, 0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
dump: Automaton
{ unitUI = IU
dump: Memory
{ memoryIM = IM
[ Move 1
, Inc 9
, MulAddClr 11
Expand Down Expand Up @@ -942,7 +942,7 @@ dump: Automaton
( -3 )
]
] 6
, unitTape =
, memoryTape =
(
[ 48
, 48
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
dump: Automaton
{ unitUI = IU
dump: Memory
{ memoryIM = IM
[ Move 1
, Inc 8
, MulAddClr 9
Expand Down Expand Up @@ -75,7 +75,7 @@ dump: Automaton
, Inc 1
, Output
] 50
, unitTape =
, memoryTape =
(
[ 0
, 0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
dump: Automaton
{ unitUI = IU
dump: Memory
{ memoryIM = IM
[ Input
, Output
, Input
Expand Down Expand Up @@ -265,7 +265,7 @@ dump: Automaton
( -1 )
]
] 25
, unitTape =
, memoryTape =
(
[ 114
, 94
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
dump: Automaton
{ unitUI = IU
dump: Memory
{ memoryIM = IM
[ Inc 8
, While
[ Move 1
Expand Down Expand Up @@ -72,7 +72,7 @@ dump: Automaton
, Inc 2
, Output
] 32
, unitTape =
, memoryTape =
( [ 0 ]
,
[ 10
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
dump: Automaton
{ unitUI = IU
dump: Memory
{ memoryIM = IM
[ Inc
( -2 )
, Move
Expand Down Expand Up @@ -74,7 +74,7 @@ dump: Automaton
, Inc 1
, Output
] 38
, unitTape =
, memoryTape =
(
[ 108
, 87
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
dump: Automaton
{ unitUI = IU
dump: Memory
{ memoryIM = IM
[ Inc 1
, While
[ Inc
Expand Down Expand Up @@ -57,7 +57,7 @@ dump: Automaton
, Inc 1
, Output
] 26
, unitTape =
, memoryTape =
(
[ 87
, 0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
dump: Automaton
{ unitUI = IU
dump: Memory
{ memoryIM = IM
[ While
[ Inc
( -1 )
Expand Down Expand Up @@ -98,7 +98,7 @@ dump: Automaton
]
, Inc 5
] 17
, unitTape =
, memoryTape =
(
[ 0
, 0
Expand Down
Loading

0 comments on commit ae79855

Please sign in to comment.