source: Deliverables/D2.2/8051/src/cminor/cminorAnnotator.mli @ 486

Last change on this file since 486 was 486, checked in by ayache, 9 years ago

Deliverable D2.2

File size: 646 bytes
RevLine 
[486]1
2(** This module defines the instrumentation of a [Cminor] program. *)
3
4(** [instrument prog cost_map] instruments the program [prog]. First a fresh
5    global variable --- the so-called cost variable --- is added to the program.
6    Then, each cost label in the program is replaced by an increment of the cost
7    variable, following the mapping [cost_map]. *)
8
9val instrument : Cminor.program -> int CostLabel.Map.t -> Cminor.program
10
11val cost_labels : Cminor.program -> CostLabel.Set.t
12val user_labels : Cminor.program -> Label.Set.t
13val all_labels  : Cminor.program -> StringTools.Set.t
14
15val prog_idents : Cminor.program -> StringTools.Set.t
Note: See TracBrowser for help on using the repository browser.