holey-bytes/hblang/tests/son_tests_exhaustive_loop_testing.txt

107 lines
2 KiB
Plaintext
Raw Normal View History

2024-09-20 04:01:10 -05:00
continue_and_state_change:
ADDI64 r254, r254, -40d
ST r31, r254, 0a, 40h
LI64 r32, 3d
LI64 r33, 4d
LI64 r34, 2d
LI64 r35, 10d
6: JLTU r2, r35, :0
CP r1, r2
JMP :1
0: JNE r2, r34, :2
CP r2, r33
JMP :3
2: JNE r2, r32, :4
LI64 r1, 0d
1: JMP :5
4: ADDI64 r2, r2, 1d
3: JMP :6
5: LD r31, r254, 0a, 40h
ADDI64 r254, r254, 40d
JALA r0, r31, 0a
2024-09-06 15:00:23 -05:00
main:
2024-09-27 09:53:28 -05:00
ADDI64 r254, r254, -80d
ST r31, r254, 0a, 80h
LI64 r32, 0d
CP r2, r32
2024-09-06 15:00:23 -05:00
JAL r31, r0, :multiple_breaks
2024-09-27 09:53:28 -05:00
CP r33, r32
CP r34, r1
2024-09-20 04:01:10 -05:00
LI64 r1, 3d
2024-09-27 09:53:28 -05:00
JEQ r34, r1, :0
2024-09-06 15:00:23 -05:00
LI64 r1, 1d
JMP :1
2024-09-27 09:53:28 -05:00
0: CP r35, r1
LI64 r36, 4d
CP r2, r36
2024-09-06 15:00:23 -05:00
JAL r31, r0, :multiple_breaks
2024-09-27 09:53:28 -05:00
CP r37, r36
LI64 r38, 10d
JEQ r1, r38, :2
2024-09-06 15:00:23 -05:00
LI64 r1, 2d
JMP :1
2024-09-27 09:53:28 -05:00
2: CP r2, r33
2024-09-15 13:14:56 -05:00
JAL r31, r0, :state_change_in_break
2024-09-27 09:53:28 -05:00
CP r39, r1
CP r1, r33
JEQ r39, r1, :3
CP r1, r35
2024-09-15 13:14:56 -05:00
JMP :1
2024-09-27 09:53:28 -05:00
3: CP r33, r1
CP r2, r37
2024-09-15 13:14:56 -05:00
JAL r31, r0, :state_change_in_break
2024-09-27 09:53:28 -05:00
JEQ r1, r38, :4
CP r1, r37
2024-09-15 13:14:56 -05:00
JMP :1
2024-09-27 09:53:28 -05:00
4: CP r2, r38
2024-09-15 13:14:56 -05:00
JAL r31, r0, :continue_and_state_change
2024-09-27 09:53:28 -05:00
JEQ r1, r38, :5
2024-09-15 13:14:56 -05:00
LI64 r1, 5d
JMP :1
2024-09-27 09:53:28 -05:00
5: CP r2, r35
2024-09-15 13:14:56 -05:00
JAL r31, r0, :continue_and_state_change
2024-09-27 09:53:28 -05:00
CP r40, r1
CP r1, r33
JEQ r40, r1, :6
2024-09-15 13:14:56 -05:00
LI64 r1, 6d
JMP :1
2024-09-27 09:53:28 -05:00
6: CP r1, r33
1: LD r31, r254, 0a, 80h
ADDI64 r254, r254, 80d
2024-09-15 13:14:56 -05:00
JALA r0, r31, 0a
2024-09-20 04:01:10 -05:00
multiple_breaks:
2024-09-15 13:14:56 -05:00
ADDI64 r254, r254, -24d
ST r31, r254, 0a, 24h
LI64 r32, 3d
LI64 r33, 10d
2024-09-20 04:01:10 -05:00
4: JLTU r2, r33, :0
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
JNE r1, r32, :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
3: LD r31, r254, 0a, 24h
2024-09-06 15:00:23 -05:00
ADDI64 r254, r254, 24d
JALA r0, r31, 0a
2024-09-20 04:01:10 -05:00
state_change_in_break:
2024-09-15 13:14:56 -05:00
ADDI64 r254, r254, -24d
ST r31, r254, 0a, 24h
LI64 r32, 3d
LI64 r33, 10d
2024-09-20 04:01:10 -05:00
4: JLTU r2, r33, :0
CP r1, r2
2024-09-15 13:14:56 -05:00
JMP :1
2024-09-20 04:01:10 -05:00
0: JNE r2, r32, :2
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-15 13:14:56 -05:00
3: LD r31, r254, 0a, 24h
ADDI64 r254, r254, 24d
2024-09-06 15:00:23 -05:00
JALA r0, r31, 0a
2024-09-20 04:01:10 -05:00
code size: 713
2024-09-06 15:00:23 -05:00
ret: 0
status: Ok(())