mirror of
https://github.com/GaloisInc/macaw.git
synced 2024-11-28 01:35:33 +03:00
future-proof alignment detection
This commit is contained in:
parent
082e024b55
commit
04e867bf4b
@ -182,6 +182,12 @@ instance MC.IPAlignment PPC64.PPC where
|
||||
, MC.BVValue _ 2 <- two'
|
||||
= Just dirtyAddr
|
||||
|
||||
| Just (MC.BVAnd _ dirtyAddr (MC.BVValue _ 0xfffffffffffffffc)) <- MC.valueAsApp cleanAddr
|
||||
= Just dirtyAddr
|
||||
|
||||
| Just (MC.BVAnd _ (MC.BVValue _ 0xfffffffffffffffc) dirtyAddr) <- MC.valueAsApp cleanAddr
|
||||
= Just dirtyAddr
|
||||
|
||||
| otherwise = Nothing
|
||||
where
|
||||
valueAsExtTwo :: MC.BVValue PPC64.PPC ids 64 -> Maybe (MC.BVValue PPC64.PPC ids 62)
|
||||
|
Loading…
Reference in New Issue
Block a user