source: driver/clightPrinter.mli @ 2759

Last change on this file since 2759 was 2759, checked in by campbell, 7 years ago

Print out costs, with choice of style.
Note small anti-assertion patch to extracted ASMCosts.
No stack space yet.

File size: 755 bytes
Line 
1(** This module provides functions to print elements of [Extracted.Csyntax]
2    programs. *)
3
4type cost_style =
5| Cost_plain
6| Cost_numbered of Extracted.Label.clight_cost_map
7| Cost_instrumented of Extracted.Label.clight_cost_map
8
9val print_program: cost_style -> Extracted.Csyntax.clight_program -> string
10
11val print_expression: cost_style -> Extracted.Csyntax.expr -> string
12
13val string_of_ctype: Extracted.Csyntax.type0 -> string
14
15val print_statement: cost_style -> Extracted.Csyntax.statement -> string
16
17val print_ctype_prot: Extracted.Csyntax.type0 -> string
18
19val print_ctype_def: Extracted.Csyntax.type0 -> string
20
21val string_of_unop : Extracted.Csyntax.unary_operation -> string
22
23val string_of_binop : Extracted.Csyntax.binary_operation -> string
Note: See TracBrowser for help on using the repository browser.