mirror of
https://github.com/GaloisInc/macaw.git
synced 2024-11-26 09:22:20 +03:00
Extract single Assignment element without redundant pattern case
This commit is contained in:
parent
5a22913f2a
commit
923089d767
@ -435,9 +435,7 @@ mkParsedBlockRegCFG archFns halloc posFn b = crucGenArchConstraints archFns $ do
|
||||
}
|
||||
ng <- mmNonceGenerator
|
||||
-- Create atom for entry
|
||||
inputAtom <- mmExecST $ CR.mkInputAtoms ng entryPos (Empty :> regType) >>= \case
|
||||
Empty :> atm -> return atm
|
||||
_ -> error "Invalid input atom creation for mkParsedBlockRegCFG"
|
||||
inputAtom <- Ctx.last <$> (mmExecST $ CR.mkInputAtoms ng entryPos (Empty :> regType))
|
||||
-- Create map from Macaw (address,blockId pairs) to Crucible labels
|
||||
blockLabelMap :: BlockLabelMap arch s <-
|
||||
mkBlockLabelMap [strippedBlock]
|
||||
@ -825,9 +823,7 @@ mkFunRegCFG archFns halloc nm posFn fn = crucGenArchConstraints archFns $ do
|
||||
}
|
||||
-- Create atom for entry
|
||||
ng <- mmNonceGenerator
|
||||
inputAtom <- mmExecST $ CR.mkInputAtoms ng entryPos (Empty :> regType) >>= \case
|
||||
Empty :> atm -> return atm
|
||||
_ -> error "Error creating input atom for mkFunRegCFG"
|
||||
inputAtom <- Ctx.last <$> (mmExecST $ CR.mkInputAtoms ng entryPos (Empty :> regType))
|
||||
-- Create map from Macaw (address,blockId pairs) to Crucible labels
|
||||
blockLabelMap :: BlockLabelMap arch s <-
|
||||
mkBlockLabelMap blockList
|
||||
|
Loading…
Reference in New Issue
Block a user