source: src/LTL/LTL.ma @ 1171

Last change on this file since 1171 was 1171, checked in by mulligan, 8 years ago

changes made on claudio's request: changed order of nesting in the joint-ertl statements to make the semantics easier to write. big changes required...

File size: 1.1 KB
Line 
1include "common/Graphs.ma".
2include "utilities/IdentifierTools.ma".
3include "joint/Joint.ma".
4
5definition ltl_params: params ≝
6 mk_params unit unit unit unit registers_move Register.
7
8definition ltl_statement ≝ λglobals: list ident. joint_statement label unit ltl_params globals.
9 
10definition ltl_statement_graph ≝ λglobals. graph (ltl_statement globals).
11 
12record ltl_internal_function (globals: list ident): Type[0] ≝
13{
14  ltl_if_luniverse: universe LabelTag;
15  ltl_if_runiverse: universe RegisterTag;
16  ltl_if_stacksize: nat;
17  ltl_if_graph: ltl_statement_graph globals;
18  ltl_if_entry: Σl: label. lookup ? ? ltl_if_graph l ≠ None ?;
19  ltl_if_exit: Σl: label. lookup ? ? ltl_if_graph l ≠ None ?
20}.
21
22inductive ltl_function_definition (globals: list ident): Type[0] ≝
23  | ltl_fu_internal_function: ltl_internal_function globals → ltl_function_definition globals
24  | ltl_fu_external_function: external_function → ltl_function_definition globals.
25 
26record ltl_program (globals: list (ident × nat)): Type[0] ≝
27{
28  ltl_pr_funcs: list (ident × (ltl_function_definition (map ? ? \fst globals)));
29  ltl_pr_main: option ident
30}.
Note: See TracBrowser for help on using the repository browser.