package goblint

Build not yet checked
  1. Overview
  2. Docs
Static analysis framework for C

Install

dune-project
 Dependency

Authors

Maintainers

Sources

goblint-2.9.0.tbz
sha256=882f25e68cc14d42879ab4775fb2cf99aaac7e3cc70d58fa632b7edef304a731
sha512=dc90f0a685709688bbc13c80d0e2b01bf87cf2bbdc7f0c22632227ae32bee9377f3f1cb50f00cf564d6f1313c27fba5d811c53bb17a24972ab5aa570bf62278b

doc/goblint.lib/Goblint_lib/TerminationPreprocessing/index.html

Module Goblint_lib.TerminationPreprocessing

module VarToStmt : sig ... end
val counter_ikind : GoblintCil.ikind
val counter_typ : GoblintCil.typ
val min_int_exp : GoblintCil.exp
type jump = {
  1. jump_stmt : GoblintCil.stmt;
  2. jump_loc : GoblintCil.location;
  3. target_stmt : GoblintCil.stmt;
}

A jump of a goto (or asm goto) statement jump_stmt at jump_loc to target_stmt.

class jumpCollector : jump list ref -> GoblintCil.stmt list ref -> object ... end

Collects the jumps of gotos into jumps and the continue statements of loops into continue_stmts.

val jumps_backwards : jump -> bool

Whether jump goes backwards, i.e., to a statement with a smaller or equal sid.

val upjumping_gotos : GoblintCil.fundec -> GoblintCil.location list

Locations of the gotos in fd that jump backwards. Jumps to the continue statement of a loop are not included, since the loop counter bounds them. The CFG of fd must already be computed, as this relies on sids and on the continue statements of loops introduced by prepareCFG.