test: 重构 Bug2 示例程序

This commit is contained in:
Luke 2025-07-30 11:50:58 +08:00
parent 025ea75f08
commit 30fa84604b

View File

@ -1,8 +1,7 @@
module: Main module: Main
import: os import: os
function: main function: main
parameter: return_type: void
return_type: int
body: body:
loop: loop:
init: init:
@ -23,23 +22,12 @@ module: Main
step: step:
inter_j = inter_j + 1 inter_j = inter_j + 1
body: body:
end body end body
end loop end loop
end body end body
end loop end loop
return 0
end body
end function
function: print
parameter:
declare i1: int
return_type: void
body:
syscall("PRINT",i1)
end body end body
end function end function
end module end module