Skip to content

Commit

Permalink
Merge pull request #1592 from GaloisInc/macaw-264
Browse files Browse the repository at this point in the history
Bump `macaw` submodule, adapt to GaloisInc/macaw#264
  • Loading branch information
mergify[bot] authored Feb 22, 2022
2 parents 2c726dd + 2847921 commit 70f5197
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/SAWScript/X86.hs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ data Fun = Fun { funName :: ByteString, funSpec :: FunSpec }

--------------------------------------------------------------------------------

type CallHandler = Sym -> Macaw.LookupFunctionHandle Sym X86_64
type CallHandler = Sym -> Macaw.LookupFunctionHandle (MacawSimulatorState Sym) Sym X86_64

-- | Run a top-level proof.
-- Should be used when making a standalone proof script.
Expand Down
7 changes: 5 additions & 2 deletions src/SAWScript/X86Spec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,10 @@ import Lang.Crucible.Types
import Verifier.SAW.SharedTerm
(Term,scApplyAll,scVector,scBitvector,scAt,scNat)
import Data.Macaw.Memory(RegionIndex)
import Data.Macaw.Symbolic(GlobalMap(..), ToCrucibleType, LookupFunctionHandle(..), MacawCrucibleRegTypes)
import Data.Macaw.Symbolic
( GlobalMap(..), ToCrucibleType, LookupFunctionHandle(..)
, MacawCrucibleRegTypes, MacawSimulatorState
)
import Data.Macaw.Symbolic.Backend ( crucArchRegTypes )
import Data.Macaw.X86.X86Reg
import Data.Macaw.X86.Symbolic
Expand Down Expand Up @@ -1203,7 +1206,7 @@ _debugDumpGoals opts =
sh (ProofGoal _hyps g) = print (view labeledPredMsg g)


type Overrides = Map (Natural,Integer) (Sym -> LookupFunctionHandle Sym X86_64)
type Overrides = Map (Natural,Integer) (Sym -> LookupFunctionHandle (MacawSimulatorState Sym) Sym X86_64)

-- | Use a specification to verify a function.
-- Returns the initial state for the function, and a post-condition.
Expand Down

0 comments on commit 70f5197

Please sign in to comment.