Last change
on this file since 1878 was
1276,
checked in by campbell, 9 years ago
|
Support for replacing operations with runtime support functions in Clight.
Note the caveats in the comments.
|
File size:
453 bytes
|
Rev | Line | |
---|
[1276] | 1 | include "Clight/test/runtime.c.ma". |
---|
| 2 | |
---|
| 3 | |
---|
| 4 | include "Clight/fresh.ma". |
---|
| 5 | include "Clight/SimplifyCasts.ma". |
---|
| 6 | include "Clight/addRuntime.ma". |
---|
| 7 | |
---|
| 8 | definition u ≝ universe_for_program myprog. |
---|
| 9 | definition p0 ≝ simplify_program myprog. |
---|
| 10 | definition p ≝ \fst (add_runtime_replacements p0 u). |
---|
| 11 | |
---|
| 12 | (* |
---|
| 13 | example x : result ? p. |
---|
| 14 | normalize |
---|
| 15 | *) |
---|
| 16 | |
---|
| 17 | example exec: result ? (exec_up_to clight_fullexec p 1000 [EVint I32 (repr I32 0)]). |
---|
| 18 | normalize (* you can examine the result here *) |
---|
Note: See
TracBrowser
for help on using the repository browser.