Skip to content

Commit

Permalink
Relift BufferEntry
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-schwarz authored and sim642 committed Mar 28, 2023
1 parent 3a48585 commit d025538
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cdomains/jmpBufDomain.ml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ module BufferEntry = Printable.ProdSimple(Node)(ControlSpecC)
module BufferEntryOrTop = struct
include Printable.Std
type t = AllTargets | Target of BufferEntry.t [@@deriving eq, ord, hash, to_yojson]
let relift = function
| AllTargets -> AllTargets
| Target x -> Target (BufferEntry.relift x)

let show = function AllTargets -> "All" | Target x -> BufferEntry.show x

include Printable.SimpleShow (struct
Expand Down

0 comments on commit d025538

Please sign in to comment.