Prototype of X86_64 migration

This commit is contained in:
Roman Venediktov 2024-01-30 18:16:44 +01:00
parent 3fdc3e7f2a
commit e77433e51c
21 changed files with 599 additions and 7165 deletions

View file

@ -1,5 +1,3 @@
var n;
fun sum (l) {
case l of
{} -> 0
@ -23,9 +21,7 @@ fun array_to_list (a) {
l
}
n := read ();
write (sum ({}));
write (sum ({1, 2, 3, 4, 5}));
write (sum (1:2:3:4:5:{}));
print_list (array_to_list ([1, 2, 3, 4, 5]))