Skip to content

Commit

Permalink
Document context gas lifter
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-schwarz committed Sep 22, 2024
1 parent 426ec69 commit 7112baf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/framework/contextGasLifter.ml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
(** Lifts a [Spec] with the context gas variable. The gas variable limits the number of context-sensitively analyzed function calls in a call stack.
For every function call the gas is reduced. If the gas is zero, the remaining function calls are analyzed without context-information *)

open Batteries
open GoblintCil
open MyCFG
Expand All @@ -17,8 +20,6 @@ module type Gas = sig
val thread_gas: varinfo -> M.t -> M.t
end

(** Lifts a [Spec] with the context gas variable. The gas variable limits the number of context-sensitively analyzed function calls in a call stack.
For every function call the gas is reduced. If the gas is zero, the remaining function calls are analyzed without context-information *)
module ContextGasLifter (Gas:Gas) (S:Spec)
: Spec with module D = Lattice.Prod (S.D) (Gas.M)
and module C = Printable.Option (S.C) (NoContext)
Expand Down
1 change: 1 addition & 0 deletions src/goblint_lib.ml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ module Constraints = Constraints
module AnalysisState = AnalysisState
module AnalysisStateUtil = AnalysisStateUtil
module ControlSpecC = ControlSpecC
module ContextGasLifter = ContextGasLifter

(** Master control program (MCP) is the analysis specification for the dynamic product of activated analyses. *)

Expand Down

0 comments on commit 7112baf

Please sign in to comment.