Skip to content

Commit

Permalink
Add headers when printing Crucible CFGs too
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Nov 12, 2024
1 parent d4f6105 commit 1cbe6e0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions macaw-dump/src/Data/Macaw/Dump/Discover.hs
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,11 @@ displayCfgs path discState archVals printCrucible = do
let funInfos = discState Lens.^. MD.funInfo
halloc <- CFH.newHandleAllocator
F.for_ (Map.toList funInfos) $ \(_addr, Some info) -> do
Monad.when printCrucible $ do
IO.putStrLn "== Macaw =="
IO.print (PP.pretty info)
Monad.when printCrucible $ do
IO.putStrLn "\n== Crucible =="
let pos = posFn (Text.pack path)
let funName =
WF.functionNameFromText $
Expand Down

0 comments on commit 1cbe6e0

Please sign in to comment.