source: src/ERTL/ERTL.ma @ 1254

Last change on this file since 1254 was 1254, checked in by sacerdot, 8 years ago

More progress towards porting of RTLtoERTL to joint syntax.

File size: 944 bytes
Line 
1include "joint/Joint.ma".
2include alias "common/Graphs.ma".
3
4inductive move_registers: Type[0] ≝
5  | pseudo: register → move_registers
6  | hardware: Register → move_registers.
7                 
8inductive ertl_statement_extension: Type[0] ≝
9  | ertl_st_ext_new_frame: ertl_statement_extension
10  | ertl_st_ext_del_frame: ertl_statement_extension
11  | ertl_st_ext_frame_size: register → ertl_statement_extension.
12
13definition ertl_params_: params_ ≝
14 mk_params_
15  (mk_params__ register register register register
16    (move_registers × move_registers) register
17      ertl_statement_extension unit (list register) nat) label.
18
19definition ertl_statement ≝ joint_statement ertl_params_.
20
21definition ertl_params: ∀globals. params globals ≝ graph_params ertl_params_.
22
23definition ertl_internal_function ≝
24  λglobals.
25    joint_internal_function globals (ertl_params globals).
26
27definition ertl_program ≝ joint_program ertl_params.
Note: See TracBrowser for help on using the repository browser.