mirror of
https://github.com/GaloisInc/macaw.git
synced 2024-11-28 01:35:33 +03:00
add BoolConst case to joinAbsValue'
This commit is contained in:
parent
66b41f1d56
commit
c8a5f7abf5
@ -449,7 +449,9 @@ joinAbsValue' (SomeStackOffset ax) (SomeStackOffset ay) | ax == ay = return $ No
|
||||
|
||||
|
||||
joinAbsValue' ReturnAddr ReturnAddr = return Nothing
|
||||
|
||||
joinAbsValue' (BoolConst b1) (BoolConst b2)
|
||||
| b1 == b2 = return Nothing
|
||||
| otherwise = return $! Just TopV
|
||||
|
||||
joinAbsValue' x y = do
|
||||
addWords (codePointerSet x)
|
||||
|
@ -104,7 +104,7 @@ concretizeAbsCodePointers mem (FinSet s) =
|
||||
concretizeAbsCodePointers mem (CodePointers s _) =
|
||||
[ sa
|
||||
| a <- Set.toList s
|
||||
, Just sa <- [absoluteAddrSegment mem (_addrOffset a)]
|
||||
, Just sa <- [absoluteAddrSegment mem (addrValue a)]
|
||||
, Perm.isExecutable (segmentFlags (addrSegment sa))
|
||||
]
|
||||
-- FIXME: this is dangerous !!
|
||||
|
Loading…
Reference in New Issue
Block a user