Skip to content

Commit

Permalink
giving up for today
Browse files Browse the repository at this point in the history
  • Loading branch information
Ptival committed Sep 26, 2023
1 parent 982a5f6 commit 3ce1bbb
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions reopt/Main_reopt.hs
Original file line number Diff line number Diff line change
Expand Up @@ -871,13 +871,14 @@ performReopt args elfPath = do
-- (traceTypeUnification args)
-- (traceConstraintOrigins args)

_ <- trace "About to re-run discovery" (pure ())
let newAddr = fromMaybe (error "sad") $ Macaw.resolveRegionOff (Macaw.memory discState) 1 0x1149
let discState' = Macaw.markAddrAsFunction Macaw.UserRequest newAddr discState
rerunDiscState <-
reoptRunDiscovery (getAddrSymMap symAddrMap) $
Macaw.incCompleteDiscovery discState' (roDiscoveryOptions rOpts)
_ <- trace "Done re-running discovery" (pure ())
-- _ <- trace "About to re-run discovery" (pure ())
-- let newAddr = fromMaybe (error "sad") $ Macaw.resolveRegionOff (Macaw.memory discState) 1 0x1149
-- let discState' = Macaw.markAddrAsFunction Macaw.UserRequest newAddr discState
let rerunDiscState = discState
-- rerunDiscState <-
-- reoptRunDiscovery (getAddrSymMap symAddrMap) $
-- Macaw.incCompleteDiscovery discState' (roDiscoveryOptions rOpts)
-- _ <- trace "Done re-running discovery" (pure ())

recoverX86Output <- doRecoverX86 funPrefix sysp symAddrMap debugTypeMap rerunDiscState
let recMod = recoveredModule recoverX86Output
Expand Down

0 comments on commit 3ce1bbb

Please sign in to comment.