Ignore:
Timestamp:
Sep 16, 2011, 6:39:05 PM (8 years ago)
Author:
sacerdot
Message:

Type of programs in common/AST made more dependent.
In particular, the type of internal functions is now dependent on the
list of global variables. This is already used in the back-end to rule
out from the syntax programs that have free variables.

Note: only the test Clight/test/search.c.ma has been ported to the new type.
The porting requires two very minor changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Cminor/initialisation.ma

    r1139 r1224  
    7272λp.
    7373  mk_program ??
     74    (empty_vars (prog_vars ?? p))
    7475    (add_statement (prog_main ?? p) (init_vars (prog_vars ?? p)) (prog_funct ?? p))
    75     (prog_main ?? p)
    76     (empty_vars (prog_vars ?? p)).
    77    
     76    (prog_main ?? p).
Note: See TracChangeset for help on using the changeset viewer.