-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
uc-crux-llvm: Introduce a newtype for pre-simulation memory (#921)
This concept was used throughout the codebase, so it's nice to have types act as documentation.
- Loading branch information
1 parent
7620e22
commit 2daf99d
Showing
5 changed files
with
42 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{- | ||
Module : UCCrux.LLVM.Newtypes.PreSimulationMem | ||
Copyright : (c) Galois, Inc 2020 | ||
License : BSD3 | ||
Maintainer : Langston Barrett <[email protected]> | ||
Stability : provisional | ||
-} | ||
|
||
module UCCrux.LLVM.Newtypes.PreSimulationMem | ||
( PreSimulationMem | ||
, makePreSimulationMem | ||
, getPreSimulationMem | ||
) where | ||
|
||
import Lang.Crucible.LLVM.MemModel (MemImpl) | ||
|
||
-- | LLVM memory just before symbolic execution. Populated with globals, defined | ||
-- functions, and arguments to the entry point. | ||
newtype PreSimulationMem sym = | ||
PreSimulationMem { getPreSimulationMem :: MemImpl sym } | ||
|
||
makePreSimulationMem :: MemImpl sym -> PreSimulationMem sym | ||
makePreSimulationMem = PreSimulationMem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters