mirror of
https://github.com/GaloisInc/macaw.git
synced 2024-11-28 01:35:33 +03:00
ppc: Fix identifyReturn
Some recent semantics fixes broke a fragile pattern in identifyReturn; there is now an extra shiftR.
This commit is contained in:
parent
04e867bf4b
commit
cad178cd62
@ -66,7 +66,8 @@ matchReturn :: (PPCArchConstraints ppc, MC.ArchReg ppc ~ PPCReg ppc)
|
||||
matchReturn absProcState' ip = do
|
||||
MC.AssignedValue (MC.Assignment _ (MC.EvalApp (MC.BVShl _ addr (MC.BVValue _ shiftAmt)))) <- return ip
|
||||
guard (shiftAmt == 0x2)
|
||||
Some addr' <- return (stripExtTrunc addr)
|
||||
Some (MC.AssignedValue (MC.Assignment _ (MC.EvalApp (MC.BVShr _ addr' (MC.BVValue _ shiftAmt'))))) <- return (stripExtTrunc addr)
|
||||
guard (shiftAmt' == 0x2)
|
||||
case MA.transferValue absProcState' addr' of
|
||||
MA.ReturnAddr -> return (Some MA.ReturnAddr)
|
||||
_ -> case addr' of
|
||||
|
Loading…
Reference in New Issue
Block a user