2024-09-20 04:01:10 -05:00
|
|
|
continue_and_state_change:
|
2024-09-28 09:28:05 -05:00
|
|
|
LI64 r7, 3d
|
|
|
|
LI64 r8, 4d
|
|
|
|
LI64 r9, 2d
|
|
|
|
LI64 r10, 10d
|
2024-10-25 07:51:33 -05:00
|
|
|
6: JLTU r2, r10, :0
|
2024-09-20 04:01:10 -05:00
|
|
|
CP r1, r2
|
|
|
|
JMP :1
|
2024-09-28 09:28:05 -05:00
|
|
|
0: JNE r2, r9, :2
|
|
|
|
CP r2, r8
|
2024-09-20 04:01:10 -05:00
|
|
|
JMP :3
|
2024-09-28 09:28:05 -05:00
|
|
|
2: JNE r2, r7, :4
|
2024-09-20 04:01:10 -05:00
|
|
|
LI64 r1, 0d
|
|
|
|
1: JMP :5
|
|
|
|
4: ADDI64 r2, r2, 1d
|
|
|
|
3: JMP :6
|
2024-09-28 09:28:05 -05:00
|
|
|
5: JALA r0, r31, 0a
|
2024-09-06 15:00:23 -05:00
|
|
|
main:
|
2024-10-24 02:43:07 -05:00
|
|
|
ADDI64 r254, r254, -64d
|
|
|
|
ST r31, r254, 0a, 64h
|
2024-09-27 09:53:28 -05:00
|
|
|
LI64 r32, 0d
|
|
|
|
CP r2, r32
|
2024-09-06 15:00:23 -05:00
|
|
|
JAL r31, r0, :multiple_breaks
|
2024-10-24 02:43:07 -05:00
|
|
|
CP r3, r1
|
2024-09-20 04:01:10 -05:00
|
|
|
LI64 r1, 3d
|
2024-10-24 05:28:18 -05:00
|
|
|
LI64 r7, 1d
|
2024-10-24 02:43:07 -05:00
|
|
|
JEQ r3, r1, :0
|
2024-10-24 05:28:18 -05:00
|
|
|
CP r1, r7
|
2024-09-06 15:00:23 -05:00
|
|
|
JMP :1
|
2024-10-24 05:28:18 -05:00
|
|
|
0: CP r33, r7
|
2024-10-24 02:43:07 -05:00
|
|
|
CP r34, r1
|
|
|
|
LI64 r35, 4d
|
|
|
|
CP r2, r35
|
2024-09-06 15:00:23 -05:00
|
|
|
JAL r31, r0, :multiple_breaks
|
2024-10-24 02:43:07 -05:00
|
|
|
CP r36, r35
|
|
|
|
LI64 r37, 10d
|
|
|
|
JEQ r1, r37, :2
|
2024-09-06 15:00:23 -05:00
|
|
|
LI64 r1, 2d
|
|
|
|
JMP :1
|
2024-10-23 05:26:07 -05:00
|
|
|
2: CP r2, r32
|
2024-09-15 13:14:56 -05:00
|
|
|
JAL r31, r0, :state_change_in_break
|
2024-10-23 05:26:07 -05:00
|
|
|
JEQ r1, r32, :3
|
2024-10-24 02:43:07 -05:00
|
|
|
CP r1, r34
|
2024-09-15 13:14:56 -05:00
|
|
|
JMP :1
|
2024-10-24 02:43:07 -05:00
|
|
|
3: CP r2, r36
|
2024-09-15 13:14:56 -05:00
|
|
|
JAL r31, r0, :state_change_in_break
|
2024-10-24 02:43:07 -05:00
|
|
|
JEQ r1, r37, :4
|
|
|
|
CP r1, r36
|
2024-09-15 13:14:56 -05:00
|
|
|
JMP :1
|
2024-10-24 02:43:07 -05:00
|
|
|
4: CP r2, r37
|
2024-09-15 13:14:56 -05:00
|
|
|
JAL r31, r0, :continue_and_state_change
|
2024-10-24 02:43:07 -05:00
|
|
|
JEQ r1, r37, :5
|
2024-09-15 13:14:56 -05:00
|
|
|
LI64 r1, 5d
|
|
|
|
JMP :1
|
2024-10-24 02:43:07 -05:00
|
|
|
5: CP r2, r34
|
2024-09-15 13:14:56 -05:00
|
|
|
JAL r31, r0, :continue_and_state_change
|
2024-10-23 05:26:07 -05:00
|
|
|
JEQ r1, r32, :6
|
2024-09-15 13:14:56 -05:00
|
|
|
LI64 r1, 6d
|
|
|
|
JMP :1
|
2024-10-23 05:26:07 -05:00
|
|
|
6: CP r1, r32
|
2024-10-24 02:43:07 -05:00
|
|
|
CP r38, r33
|
|
|
|
8: JNE r1, r38, :7
|
2024-10-23 05:26:07 -05:00
|
|
|
JMP :7
|
|
|
|
7: CP r2, r32
|
|
|
|
JAL r31, r0, :continue_and_state_change
|
|
|
|
JMP :8
|
2024-10-24 02:43:07 -05:00
|
|
|
1: LD r31, r254, 0a, 64h
|
|
|
|
ADDI64 r254, r254, 64d
|
2024-09-15 13:14:56 -05:00
|
|
|
JALA r0, r31, 0a
|
2024-09-20 04:01:10 -05:00
|
|
|
multiple_breaks:
|
2024-09-28 09:28:05 -05:00
|
|
|
LI64 r6, 3d
|
|
|
|
LI64 r5, 10d
|
2024-10-25 07:51:33 -05:00
|
|
|
4: JLTU r2, r5, :0
|
2024-09-20 04:01:10 -05:00
|
|
|
CP r1, r2
|
2024-09-15 13:14:56 -05:00
|
|
|
JMP :1
|
2024-09-20 04:01:10 -05:00
|
|
|
0: ADDI64 r1, r2, 1d
|
2024-09-28 09:28:05 -05:00
|
|
|
JNE r1, r6, :2
|
2024-09-15 13:14:56 -05:00
|
|
|
1: JMP :3
|
2024-09-20 04:01:10 -05:00
|
|
|
2: CP r2, r1
|
2024-09-15 13:14:56 -05:00
|
|
|
JMP :4
|
2024-09-28 09:28:05 -05:00
|
|
|
3: JALA r0, r31, 0a
|
2024-09-20 04:01:10 -05:00
|
|
|
state_change_in_break:
|
2024-09-28 09:28:05 -05:00
|
|
|
LI64 r5, 3d
|
|
|
|
LI64 r6, 10d
|
2024-10-25 07:51:33 -05:00
|
|
|
4: JLTU r2, r6, :0
|
2024-09-20 04:01:10 -05:00
|
|
|
CP r1, r2
|
2024-09-15 13:14:56 -05:00
|
|
|
JMP :1
|
2024-09-28 09:28:05 -05:00
|
|
|
0: JNE r2, r5, :2
|
2024-09-20 04:01:10 -05:00
|
|
|
LI64 r1, 0d
|
2024-09-15 13:14:56 -05:00
|
|
|
1: JMP :3
|
2024-09-20 04:01:10 -05:00
|
|
|
2: ADDI64 r2, r2, 1d
|
|
|
|
JMP :4
|
2024-09-28 09:28:05 -05:00
|
|
|
3: JALA r0, r31, 0a
|
2024-10-23 05:26:07 -05:00
|
|
|
timed out
|
|
|
|
code size: 585
|
|
|
|
ret: 10
|
2024-09-06 15:00:23 -05:00
|
|
|
status: Ok(())
|