Last change
on this file since 1971 was
1633,
checked in by campbell, 9 years ago
|
Update Cminor pretty printer and examples.
|
File size:
505 bytes
|
Rev | Line | |
---|
[1633] | 1 | include "Cminor/test/factorial.Cminor.ma". |
---|
| 2 | |
---|
| 3 | example exec: finishes_with (repr 120) ? (exec_up_to Cminor_fullexec myprog 100 [EVint I32 (repr 5)]). |
---|
| 4 | normalize (* you can examine the result here *) |
---|
| 5 | @refl qed. |
---|
| 6 | |
---|
| 7 | include "Cminor/toRTLabs.ma". |
---|
| 8 | include "RTLabs/semantics.ma". |
---|
| 9 | |
---|
| 10 | example execRTL: finishes_with (repr 120) ? |
---|
| 11 | (bind ? (snapshot state) (cminor_to_rtlabs myprog) |
---|
| 12 | (λmyprog'. exec_up_to RTLabs_fullexec myprog' 1000 [EVint I32 (repr 5)])). |
---|
| 13 | normalize (* you can examine the result here *) |
---|
| 14 | @refl |
---|
| 15 | qed. |
---|
| 16 | |
---|
Note: See
TracBrowser
for help on using the repository browser.