Skip to content

Commit

Permalink
Document Spec lifter modules
Browse files Browse the repository at this point in the history
  • Loading branch information
sim642 committed Sep 24, 2024
1 parent d909548 commit 3b285e3
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/framework/control.ml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ let spec_module: (module Spec) Lazy.t = lazy (
(* Widening tokens must be outside of hashcons, because widening token domain ignores token sets for identity, so hashcons doesn't allow adding tokens.
Also must be outside of deadcode, because deadcode splits (like mutex lock event) don't pass on tokens. *)
|> lift (get_bool "ana.widen.tokens") (module WideningTokens.Lifter)
|> lift true (module LongjmpLifter.LongjmpLifter)
|> lift termination_enabled (module RecursionTermLifter.RecursionTermLifter) (* Always activate the recursion termination analysis, when the loop termination analysis is activated*)
|> lift true (module LongjmpLifter.Lifter)
|> lift termination_enabled (module RecursionTermLifter.Lifter) (* Always activate the recursion termination analysis, when the loop termination analysis is activated*)
)
in
GobConfig.building_spec := false;
Expand Down
2 changes: 1 addition & 1 deletion src/lifters/longjmpLifter.ml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ open Analyses
open GobConfig


module LongjmpLifter (S: Spec): Spec =
module Lifter (S: Spec): Spec =
struct
include S

Expand Down
3 changes: 3 additions & 0 deletions src/lifters/longjmpLifter.mli
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
(** Analysis lifter for [longjmp] and [setjmp] support. *)

module Lifter: Analyses.Spec2Spec
3 changes: 1 addition & 2 deletions src/lifters/recursionTermLifter.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ open GoblintCil
open Analyses


(** Add cycle detection in the context-sensitive dynamic function call graph to an analysis *)
module RecursionTermLifter (S: Spec)
module Lifter (S: Spec)
: Spec with module D = S.D
and module C = S.C
=
Expand Down
3 changes: 3 additions & 0 deletions src/lifters/recursionTermLifter.mli
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
(** Cycle detection in the context-sensitive dynamic function call graph of an analysis. *)

module Lifter: Analyses.Spec2Spec
2 changes: 2 additions & 0 deletions src/lifters/specLifters.ml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
(** Various simple and old analysis lifters. *)

open Batteries
open GoblintCil
open Analyses
Expand Down

0 comments on commit 3b285e3

Please sign in to comment.