2024-09-20 04:01:10 -05:00
|
|
|
continue_and_state_change:
|
2024-11-15 15:35:03 -06:00
|
|
|
CP r13, r2
|
|
|
|
CP r15, r0
|
|
|
|
LI64 r16, 3d
|
|
|
|
LI64 r14, 4d
|
|
|
|
LI64 r17, 2d
|
|
|
|
LI64 r18, 10d
|
|
|
|
6: JLTU r13, r18, :0
|
2024-09-20 04:01:10 -05:00
|
|
|
JMP :1
|
2024-11-15 15:35:03 -06:00
|
|
|
0: JNE r13, r17, :2
|
|
|
|
CP r13, r14
|
2024-09-20 04:01:10 -05:00
|
|
|
JMP :3
|
2024-11-15 15:35:03 -06:00
|
|
|
2: JNE r13, r16, :4
|
|
|
|
CP r13, r15
|
|
|
|
1: CP r1, r13
|
|
|
|
JMP :5
|
|
|
|
4: ADDI64 r13, r13, 1d
|
2024-09-20 04:01:10 -05:00
|
|
|
3: JMP :6
|
2024-11-17 03:06:10 -06:00
|
|
|
5: JALA r0, r31, 0a
|
2024-10-27 05:32:34 -05:00
|
|
|
infinite_loop:
|
2024-11-17 03:06:10 -06:00
|
|
|
ADDI64 r254, r254, -32d
|
|
|
|
ST r31, r254, 0a, 32h
|
2024-11-15 15:35:03 -06:00
|
|
|
LI64 r34, 1d
|
2024-11-13 03:28:16 -06:00
|
|
|
CP r33, r0
|
2024-11-15 15:35:03 -06:00
|
|
|
CP r32, r33
|
|
|
|
1: JNE r32, r34, :0
|
2024-10-27 05:32:34 -05:00
|
|
|
JMP :0
|
|
|
|
0: CP r2, r33
|
|
|
|
JAL r31, r0, :continue_and_state_change
|
2024-11-15 15:35:03 -06:00
|
|
|
CP r32, r1
|
2024-10-27 05:32:34 -05:00
|
|
|
JMP :1
|
2024-11-17 03:06:10 -06:00
|
|
|
LD r31, r254, 0a, 32h
|
|
|
|
ADDI64 r254, r254, 32d
|
2024-10-27 05:32:34 -05:00
|
|
|
JALA r0, r31, 0a
|
2024-09-06 15:00:23 -05:00
|
|
|
main:
|
2024-11-17 03:06:10 -06:00
|
|
|
ADDI64 r254, r254, -40d
|
|
|
|
ST r31, r254, 0a, 40h
|
2024-11-13 03:28:16 -06:00
|
|
|
CP r2, r0
|
2024-09-06 15:00:23 -05:00
|
|
|
JAL r31, r0, :multiple_breaks
|
2024-12-19 03:48:05 -06:00
|
|
|
LI64 r32, 3d
|
|
|
|
CP r33, r1
|
|
|
|
JEQ r33, r32, :0
|
2024-11-15 15:35:03 -06:00
|
|
|
LI64 r32, 1d
|
|
|
|
CP r1, r32
|
2024-09-06 15:00:23 -05:00
|
|
|
JMP :1
|
2024-12-19 03:48:05 -06:00
|
|
|
0: LI64 r33, 4d
|
|
|
|
CP r2, r33
|
2024-09-06 15:00:23 -05:00
|
|
|
JAL r31, r0, :multiple_breaks
|
2024-12-19 03:48:05 -06:00
|
|
|
LI64 r34, 10d
|
|
|
|
CP r35, r1
|
|
|
|
JEQ r35, r34, :2
|
2024-11-15 15:35:03 -06:00
|
|
|
LI64 r32, 2d
|
|
|
|
CP r1, r32
|
2024-09-06 15:00:23 -05:00
|
|
|
JMP :1
|
2024-11-13 03:28:16 -06:00
|
|
|
2: CP r2, r0
|
2024-09-15 13:14:56 -05:00
|
|
|
JAL r31, r0, :state_change_in_break
|
2024-12-19 03:48:05 -06:00
|
|
|
CP r35, r1
|
|
|
|
JEQ r35, r0, :3
|
|
|
|
CP r1, r32
|
2024-09-15 13:14:56 -05:00
|
|
|
JMP :1
|
2024-12-19 03:48:05 -06:00
|
|
|
3: CP r2, r33
|
2024-09-15 13:14:56 -05:00
|
|
|
JAL r31, r0, :state_change_in_break
|
2024-12-19 03:48:05 -06:00
|
|
|
CP r35, r1
|
|
|
|
JEQ r35, r34, :4
|
|
|
|
CP r1, r33
|
2024-09-15 13:14:56 -05:00
|
|
|
JMP :1
|
2024-12-19 03:48:05 -06:00
|
|
|
4: CP r2, r34
|
2024-09-15 13:14:56 -05:00
|
|
|
JAL r31, r0, :continue_and_state_change
|
2024-12-19 03:48:05 -06:00
|
|
|
CP r33, r1
|
|
|
|
JEQ r33, r34, :5
|
2024-11-15 15:35:03 -06:00
|
|
|
LI64 r32, 5d
|
|
|
|
CP r1, r32
|
2024-09-15 13:14:56 -05:00
|
|
|
JMP :1
|
2024-12-19 03:48:05 -06:00
|
|
|
5: CP r2, r32
|
2024-09-15 13:14:56 -05:00
|
|
|
JAL r31, r0, :continue_and_state_change
|
2024-11-15 15:35:03 -06:00
|
|
|
CP r32, r1
|
|
|
|
JEQ r32, r0, :6
|
|
|
|
LI64 r32, 6d
|
|
|
|
CP r1, r32
|
2024-09-15 13:14:56 -05:00
|
|
|
JMP :1
|
2024-11-13 03:28:16 -06:00
|
|
|
6: JAL r31, r0, :infinite_loop
|
|
|
|
CP r1, r0
|
2024-11-17 03:06:10 -06:00
|
|
|
1: LD r31, r254, 0a, 40h
|
|
|
|
ADDI64 r254, r254, 40d
|
2024-09-15 13:14:56 -05:00
|
|
|
JALA r0, r31, 0a
|
2024-09-20 04:01:10 -05:00
|
|
|
multiple_breaks:
|
2024-11-15 15:35:03 -06:00
|
|
|
CP r13, r2
|
|
|
|
LI64 r14, 3d
|
|
|
|
LI64 r15, 10d
|
|
|
|
4: JLTU r13, r15, :0
|
2024-09-15 13:14:56 -05:00
|
|
|
JMP :1
|
2024-11-15 15:35:03 -06:00
|
|
|
0: ADDI64 r13, r13, 1d
|
|
|
|
JNE r13, r14, :2
|
|
|
|
1: CP r1, r13
|
|
|
|
JMP :3
|
|
|
|
2: JMP :4
|
2024-11-17 03:06:10 -06:00
|
|
|
3: JALA r0, r31, 0a
|
2024-09-20 04:01:10 -05:00
|
|
|
state_change_in_break:
|
2024-11-15 15:35:03 -06:00
|
|
|
CP r13, r2
|
|
|
|
LI64 r14, 3d
|
|
|
|
LI64 r15, 10d
|
|
|
|
4: JLTU r13, r15, :0
|
2024-09-15 13:14:56 -05:00
|
|
|
JMP :1
|
2024-11-15 15:35:03 -06:00
|
|
|
0: JNE r13, r14, :2
|
|
|
|
CP r13, r0
|
|
|
|
1: CP r1, r13
|
|
|
|
JMP :3
|
|
|
|
2: ADDI64 r13, r13, 1d
|
2024-09-20 04:01:10 -05:00
|
|
|
JMP :4
|
2024-11-17 03:06:10 -06:00
|
|
|
3: JALA r0, r31, 0a
|
2024-10-23 05:26:07 -05:00
|
|
|
timed out
|
2024-11-17 03:06:10 -06:00
|
|
|
code size: 667
|
2024-10-23 05:26:07 -05:00
|
|
|
ret: 10
|
2024-09-06 15:00:23 -05:00
|
|
|
status: Ok(())
|