Last change
on this file since 3003 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. compiler.ma should be okay, but I have not had time to complete its compilation.
|
File size:
1.7 KB
|
Line | |
---|
1 | |
---|
2 | (**************************************************************************) |
---|
3 | (* ___ *) |
---|
4 | (* ||M|| *) |
---|
5 | (* ||A|| A project by Andrea Asperti *) |
---|
6 | (* ||T|| *) |
---|
7 | (* ||I|| Developers: *) |
---|
8 | (* ||T|| The HELM team. *) |
---|
9 | (* ||A|| http://helm.cs.unibo.it *) |
---|
10 | (* \ / *) |
---|
11 | (* \ / This file is distributed under the terms of the *) |
---|
12 | (* v GNU General Public License Version 2 *) |
---|
13 | (* *) |
---|
14 | (**************************************************************************) |
---|
15 | |
---|
16 | (* just an axiom stub *) |
---|
17 | include "ERTL/ERTLToERTLptr.ma". |
---|
18 | include "ERTL/ERTL_semantics.ma". |
---|
19 | include "ERTLptr/ERTLptr_semantics.ma". |
---|
20 | include "joint/Traces.ma". |
---|
21 | include "common/StatusSimulation.ma". |
---|
22 | |
---|
23 | axiom ertl_to_ertlptr_ok: |
---|
24 | ∀prog.∀stack_sizes. |
---|
25 | let trans_prog ≝ ertl_to_ertlptr prog in |
---|
26 | ∃[1]R. |
---|
27 | status_simulation |
---|
28 | (joint_status ERTL_semantics prog stack_sizes) |
---|
29 | (joint_status ERTLptr_semantics trans_prog stack_sizes) R ∧ |
---|
30 | ∀init_in.make_initial_state |
---|
31 | (mk_prog_params ERTL_semantics prog stack_sizes) = OK … init_in → |
---|
32 | ∃init_out. |
---|
33 | make_initial_state |
---|
34 | (mk_prog_params ERTLptr_semantics trans_prog stack_sizes) = |
---|
35 | OK ? init_out ∧ |
---|
36 | R init_in init_out. |
---|
Note: See
TracBrowser
for help on using the repository browser.