source: src/ERTLptr/ERTLptr.ma @ 2674

Last change on this file since 2674 was 2674, checked in by tranquil, 7 years ago
  • another change in block definition
  • RTLabs -> RTL and ERTL -> ERTLptr passes fixed, others stil broken
File size: 1.2 KB
Line 
1include "ERTL/ERTL.ma".
2
3inductive ertlptr_seq : Type[0] ≝
4  | ertlptr_ertl: ertl_seq → ertlptr_seq
5  | LOW_ADDRESS : register → label → ertlptr_seq
6  | HIGH_ADDRESS : register → label → ertlptr_seq.
7
8definition ERTLptr_uns ≝ mk_unserialized_params
9    (* acc_a_reg ≝ *) register
10    (* acc_b_reg ≝ *) register
11    (* acc_a_arg ≝ *) psd_argument
12    (* acc_b_arg ≝ *) psd_argument
13    (* dpl_reg   ≝ *) register
14    (* dph_reg   ≝ *) register
15    (* dpl_arg   ≝ *) psd_argument
16    (* dph_arg   ≝ *) psd_argument
17    (* snd_arg   ≝ *) psd_argument
18    (* pair_move ≝ *) (move_dst × move_src)
19    (* call_args ≝ *) ℕ
20    (* call_dest ≝ *) unit
21    (* ext_seq ≝ *) ertlptr_seq
22    (* ext_seq_labels ≝ *)
23      (λs.match s with [ LOW_ADDRESS _ l ⇒ [l] | HIGH_ADDRESS _ l ⇒ [l] | _ ⇒ [ ]])
24    (* has_tailcall ≝ *) false
25    (* paramsT ≝ *) ℕ.
26
27definition ERTLptr ≝ mk_graph_params ERTLptr_uns.
28definition ertlptr_program ≝ joint_program ERTLptr.
29 
30definition ertlptr_seq_joint ≝ extension_seq ERTLptr.
31coercion ertlptr_seq_to_joint_seq : ∀globals.∀s : ertlptr_seq.joint_seq ERTLptr globals ≝ ertlptr_seq_joint
32  on _s : ertlptr_seq to joint_seq ERTLptr ?.
33 
Note: See TracBrowser for help on using the repository browser.