source: src/RTL/ @ 2946

Last change on this file since 2946 was 2946, checked in by tranquil, 8 years ago

main novelties:

  • there is an in-built stack_usage nat in joint states, at the base of the new division of RTL's semantics (with separate stacks, with separate stacks but with an artificial overflow error, with a unique stack)
  • a premain is added semantically to the global env, so initial cost label and main call and return are observed
  • proper initialization is now in LINToASM (to be sure, endianess should be checked ;-)

The update breaks proofs of back end atm. should be okay, but I have not had time to complete its compilation.

File size: 711 bytes
1include "RTL/".
2include "RTL/".
3include "ERTL/".
4include "joint/".
5include "common/".
7axiom RTLabsToRTL_ok :
8∀stacksizes : ident → option ℕ. (* are hypotheses needed here? *)
9∀p_in : rtl_program.
10let p_out ≝ rtl_to_ertl p_in in
11∃[1] R.
12  status_simulation
13    (joint_status RTL_semantics_unique p_in stacksizes)
14    (joint_status ERTL_semantics p_out stacksizes)
15    R ∧
16  ∀init_in.make_initial_state
17    (mk_prog_params RTL_semantics_unique p_in stacksizes) = OK … init_in →
18  ∃init_out.
19    make_initial_state
20     (mk_prog_params ERTL_semantics p_out stacksizes) =
21      OK ? init_out ∧
22   R init_in init_out.
Note: See TracBrowser for help on using the repository browser.