-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
51047e2
commit 6450c21
Showing
31 changed files
with
202 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
|
||
use std::{io::println, u32}; | ||
|
||
fn main(io) { | ||
io.println(loop { | ||
break "loop result"; | ||
}); | ||
|
||
io.println(while 1 { | ||
break "while result"; | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
|
||
::main { ::break_result::main } | ||
|
||
::break_result::main { | ||
fn(n0 _) | ||
::std::io::println = fn(ref(n0 n1) fn(::break_result::main::1 _)) | ||
::std::io::println = fn(ref(n1 _) fn(::break_result::main::3 _)) | ||
} | ||
|
||
::break_result::main::1 { tup(11 tup(tup(108 tup(111 tup(111 tup(112 tup(32 tup(114 tup(101 tup(115 tup(117 tup(108 tup(116 n0))))))))))) n0)) } | ||
|
||
::break_result::main::3 { | ||
n0 | ||
1 = ?(_ ::break_result::main::4 n0) | ||
} | ||
|
||
::break_result::main::4 { tup(12 tup(tup(119 tup(104 tup(105 tup(108 tup(101 tup(32 tup(114 tup(101 tup(115 tup(117 tup(108 tup(116 n0)))))))))))) n0)) } | ||
|
||
::std::io::println { | ||
fn(ref(n0 n3) fn(n1 _)) | ||
::std::io::print = fn(ref(n0 n2) fn(n1 _)) | ||
::std::io::print_char = fn(ref(n2 n3) fn(10 _)) | ||
} | ||
|
||
::std::io::print { | ||
fn(ref(n0 n1) fn(tup(n2 tup(n3 _)) _)) | ||
::std::io::print::1 = x(n0 x(n1 x(n2 n3))) | ||
} | ||
|
||
::std::io::print::1 { x(n0 x(n1 x(dup14(?(::std::io::print::3 ::std::io::print::2 x(n0 x(n1 x(n3 n2)))) n3) n2))) } | ||
|
||
::std::io::print::2 { | ||
x(n1 x(n3 x(@sub(1 n4) tup(n0 n5)))) | ||
::std::io::print_char = fn(ref(n1 n2) fn(n0 _)) | ||
::std::io::print::1 = x(n2 x(n3 x(n4 n5))) | ||
} | ||
|
||
::std::io::print::3 { x(n0 x(n0 _)) } | ||
|
||
::std::io::print_char { fn(ref(@io_print_char(char io) io) fn(char _)) } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
loop result | ||
while result |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
Interactions | ||
Total 535 | ||
Annihilate 288 | ||
Commute 0 | ||
Copy 28 | ||
Erase 61 | ||
Expand 84 | ||
Call 48 | ||
Branch 26 | ||
|
||
Memory | ||
Heap 528 B | ||
Allocated 10_848 B | ||
Freed 10_848 B |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
|
||
Interactions | ||
Total 115_848 | ||
Annihilate 60_232 | ||
Total 115_880 | ||
Annihilate 60_263 | ||
Commute 2_523 | ||
Copy 9_367 | ||
Copy 9_368 | ||
Erase 10_056 | ||
Expand 17_464 | ||
Call 10_558 | ||
Branch 5_648 | ||
|
||
Memory | ||
Heap 7_792 B | ||
Allocated 2_432_128 B | ||
Freed 2_432_128 B | ||
Allocated 2_433_136 B | ||
Freed 2_433_136 B |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.