1 | include "Clight/test/switcher.c.ma". |
---|
2 | |
---|
3 | |
---|
4 | example exec0: finishes_with (repr I32 16) ? (exec_up_to clight_fullexec myprog 1000 [EVint I32 (repr ? 0)]). |
---|
5 | normalize (* you can examine the result here *) |
---|
6 | % qed. |
---|
7 | |
---|
8 | example exec1: finishes_with (repr I32 0) ? (exec_up_to clight_fullexec myprog 1000 [EVint I32 (repr ? 1)]). |
---|
9 | normalize (* you can examine the result here *) |
---|
10 | % qed. |
---|
11 | |
---|
12 | example exec3: finishes_with (repr I32 1) ? (exec_up_to clight_fullexec myprog 1000 [EVint I32 (repr ? 3)]). |
---|
13 | normalize (* you can examine the result here *) |
---|
14 | % qed. |
---|
15 | |
---|
16 | example exec5: finishes_with (repr I32 5) ? (exec_up_to clight_fullexec myprog 1000 [EVint I32 (repr ? 5)]). |
---|
17 | normalize (* you can examine the result here *) |
---|
18 | % qed. |
---|
19 | |
---|
20 | example exec7: finishes_with (repr I32 3) ? (exec_up_to clight_fullexec myprog 1000 [EVint I32 (repr ? 7)]). |
---|
21 | normalize (* you can examine the result here *) |
---|
22 | % qed. |
---|
23 | |
---|
24 | include "Clight/switchRemoval.ma". |
---|
25 | |
---|
26 | definition noswitch ≝ program_switch_removal myprog. |
---|
27 | |
---|
28 | example exec0': finishes_with (repr I32 16) ? (exec_up_to clight_fullexec noswitch 1000 [EVint I32 (repr ? 0)]). |
---|
29 | normalize (* you can examine the result here *) |
---|
30 | % qed. |
---|
31 | |
---|
32 | example exec1': finishes_with (repr I32 0) ? (exec_up_to clight_fullexec noswitch 1000 [EVint I32 (repr ? 1)]). |
---|
33 | normalize (* you can examine the result here *) |
---|
34 | % qed. |
---|
35 | |
---|
36 | example exec3': finishes_with (repr I32 1) ? (exec_up_to clight_fullexec noswitch 1000 [EVint I32 (repr ? 3)]). |
---|
37 | normalize (* you can examine the result here *) |
---|
38 | % qed. |
---|
39 | |
---|
40 | example exec5': finishes_with (repr I32 5) ? (exec_up_to clight_fullexec noswitch 1000 [EVint I32 (repr ? 5)]). |
---|
41 | normalize (* you can examine the result here *) |
---|
42 | % qed. |
---|
43 | |
---|
44 | example exec7': finishes_with (repr I32 3) ? (exec_up_to clight_fullexec noswitch 1000 [EVint I32 (repr ? 7)]). |
---|
45 | normalize (* you can examine the result here *) |
---|
46 | % qed. |
---|