source: src/RTL/RTLToERTLAxiom.ma @ 2946

Last change on this file since 2946 was 2946, checked in by tranquil, 7 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. compiler.ma should be okay, but I have not had time to complete its compilation.

File size: 711 bytes
Line 
1include "RTL/RTLToERTL.ma".
2include "RTL/RTL_semantics.ma".
3include "ERTL/ERTL_semantics.ma".
4include "joint/Traces.ma".
5include "common/StatusSimulation.ma".
6
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.