Skip to content

Commit

Permalink
Adapt comments to simplified global invariant
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-schwarz committed Oct 12, 2023
1 parent e284953 commit 7f3cadf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/framework/constraints.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1710,14 +1710,14 @@ module RecursionTermLifter (S: Spec)
and module C = S.C
=
(* two global invariants:
- V -> G
- S.V -> S.G
Needed to store the previously built global invariants
- fundec -> Map (S.C) (Set (fundec * S.C))
The second global invariant maps from the callee fundec to a map, containing the callee context and the caller fundec and context.
- fundec * S.C -> (Set (fundec * S.C))
The second global invariant maps from the callee fundec and context to a set of caller fundecs and contexts.
This structure therefore stores the context-sensitive call graph.
For example:
let the function f in context c call function g in context c'.
In the global invariant structure it would be stored like this: g -> {c' -> {(f, c)}}
In the global invariant structure it would be stored like this: (g,c') -> {(f, c)}
*)

struct
Expand Down

0 comments on commit 7f3cadf

Please sign in to comment.