Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Array copy set prep #1515

Merged
merged 18 commits into from
Nov 30, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Use correct llvm mem in matchArg.
andreistefanescu committed Nov 17, 2021

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
commit d5d1c686e28ebd92b87af06d0392eec0ca1199c8
5 changes: 1 addition & 4 deletions src/SAWScript/Crucible/LLVM/Override.hs
Original file line number Diff line number Diff line change
@@ -1084,10 +1084,7 @@ matchArg ::
OverrideMatcher (LLVM arch) md ()

matchArg opts sc cc cs prepost actual expectedTy expected = do
let mvar = Crucible.llvmMemVar (ccLLVMContext cc)
mem <- case Crucible.lookupGlobal mvar $ cc ^. ccLLVMGlobals of
Nothing -> fail "internal error: LLVM Memory global not found"
Just mem -> pure mem
mem <- readGlobal $ Crucible.llvmMemVar $ ccLLVMContext cc
case (actual, expectedTy, expected) of
(_, _, SetupTerm expectedTT)
| TypedTermSchema (Cryptol.Forall [] [] tyexpr) <- ttType expectedTT