package goblint-cil

  1. Overview
  2. Docs
method setCurrentFormals : GoblintCil.Cil.varinfo list -> unit
method setPrintInstrTerminator : string -> unit
method getPrintInstrTerminator : unit -> string
method pVDecl : unit -> GoblintCil.Cil.varinfo -> GoblintCil__.Pretty.doc

Invoked for each variable declaration. Note that variable declarations are all the GVar, GVarDecl, GFun, all the varinfo in formals of function types, and the formals and locals for function definitions.

method pVar : GoblintCil.Cil.varinfo -> GoblintCil__.Pretty.doc

Invoked on each variable use.

method pLval : unit -> GoblintCil.Cil.lval -> GoblintCil__.Pretty.doc

Invoked on each lvalue occurrence

method pOffset : GoblintCil__.Pretty.doc -> GoblintCil.Cil.offset -> GoblintCil__.Pretty.doc

Invoked on each offset occurrence. The second argument is the base.

method pInstr : unit -> GoblintCil.Cil.instr -> GoblintCil__.Pretty.doc

Invoked on each instruction occurrence.

method pLabel : unit -> GoblintCil.Cil.label -> GoblintCil__.Pretty.doc

Print a label.

method pStmt : unit -> GoblintCil.Cil.stmt -> GoblintCil__.Pretty.doc

Control-flow statement. This is used by printGlobal and by dumpGlobal.

method dStmt : Stdlib.out_channel -> int -> GoblintCil.Cil.stmt -> unit

Dump a control-flow statement to a file with a given indentation. This is used by dumpGlobal.

method dBlock : Stdlib.out_channel -> int -> GoblintCil.Cil.block -> unit

Dump a control-flow block to a file with a given indentation. This is used by dumpGlobal.

method pBlock : unit -> GoblintCil.Cil.block -> GoblintCil__.Pretty.doc

Print a block.

method pGlobal : unit -> GoblintCil.Cil.global -> GoblintCil__.Pretty.doc

Global (vars, types, etc.). This can be slow and is used only by printGlobal but not by dumpGlobal.

method dGlobal : Stdlib.out_channel -> GoblintCil.Cil.global -> unit

Dump a global to a file with a given indentation. This is used by dumpGlobal

method pFieldDecl : unit -> GoblintCil.Cil.fieldinfo -> GoblintCil__.Pretty.doc

A field declaration

method pType : GoblintCil__.Pretty.doc option -> unit -> GoblintCil.Cil.typ -> GoblintCil__.Pretty.doc

Use of some type in some declaration. The first argument is used to print the declared element, or is None if we are just printing a type with no name being declared. Note that for structure/union and enumeration types the definition of the composite type is not visited. Use vglob to visit it.

method pAttr : GoblintCil.Cil.attribute -> GoblintCil__.Pretty.doc * bool

Attribute. Also return an indication whether this attribute must be printed inside the __attribute__ list or not.

method pAttrParam : unit -> GoblintCil.Cil.attrparam -> GoblintCil__.Pretty.doc

Attribute parameter

method pAttrs : unit -> GoblintCil.Cil.attributes -> GoblintCil__.Pretty.doc

Attribute lists

method pLineDirective : ?forcefile:bool -> GoblintCil.Cil.location -> GoblintCil__.Pretty.doc

Print a line-number. This is assumed to come always on an empty line. If the forcefile argument is present and is true then the file name will be printed always. Otherwise the file name is printed only if it is different from the last time time this function is called. The last file name is stored in a private field inside the cilPrinter object.

method pStmtKind : GoblintCil.Cil.stmt -> unit -> GoblintCil.Cil.stmtkind -> GoblintCil__.Pretty.doc

Print a statement kind. The code to be printed is given in the stmtkind argument. The initial stmt argument records the statement which follows the one being printed; defaultCilPrinterClass uses this information to prettify statement printing in certain special cases.

method pExp : unit -> GoblintCil.Cil.exp -> GoblintCil__.Pretty.doc

Print expressions

method pInit : unit -> GoblintCil.Cil.init -> GoblintCil__.Pretty.doc

Print initializers. This can be slow and is used by printGlobal but not by dumpGlobal.

method dInit : Stdlib.out_channel -> int -> GoblintCil.Cil.init -> unit

Dump a global to a file with a given indentation. This is used by dumpGlobal

OCaml

Innovation. Community. Security.