You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The functions array lists all functions that are being called (i.e., occur within a TerminatorKind::Call in a block anywhere within one of the items). Typically main is not one of these functions. However, we need main to be available so we can restore its blocks when returning from a call - and we should anyway strive to have complete data in the functions array, i.e., all items we have should also occur there.
modify the functions data collection to include the main function
The text was updated successfully, but these errors were encountered:
* Various adaptations to `kmir.md` so that we can look up functions by
their type `Ty`
- `functions` table is now keyed on `Ty` instead of `DefId`
- `caller` and `currentFunc` fields likewise contain a `Ty`
- the `main` function is added to the functions table with `ty(-1)` key
to work around a shortfall of stable-mir-json:
runtimeverification/stable-mir-json#42
- various other adaptations and stub code to write function call
arguments to resp. local values
* A basic program where `main()` calls `a()`, which calls `b()`, which
calls `c()` is added as a first integration test
* The `#init` function is adapted to support executing functions other
than `main` (not tested yet)
---------
Co-authored-by: Guy Repta <[email protected]>
The
functions
array lists all functions that are being called (i.e., occur within aTerminatorKind::Call
in a block anywhere within one of the items). Typicallymain
is not one of these functions. However, we needmain
to be available so we can restore its blocks when returning from a call - and we should anyway strive to have complete data in thefunctions
array, i.e., allitems
we have should also occur there.functions
data collection to include themain
functionThe text was updated successfully, but these errors were encountered: