Skip to content

Commit

Permalink
Merge pull request #342 from GaloisInc/vr/fix-doc
Browse files Browse the repository at this point in the history
fix incorrect documentation
  • Loading branch information
Ptival authored Sep 11, 2023
2 parents 4ad9984 + 28d3c58 commit e05a9db
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions x86/src/Data/Macaw/X86.hs
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,12 @@ disassembleInstruction curIPAddr contents =
Right r -> do
pure r

-- | Translate block, returning blocks read, ending
-- PC, and an optional error. and ending PC.
-- | Translate one instruction, returning:
-- * the parsed instruction,
-- * an updated block, either unfinished or finished,
-- * the size of the parsed instruction,
-- * the next PC,
-- * the rest of the instruction memory contents.
translateStep :: forall st_s ids
. NonceGenerator (ST st_s) ids
-- ^ Generator for new assign ids
Expand Down Expand Up @@ -282,8 +286,9 @@ translateInstruction gen initRegs addr =
(_i, res, instSize, _nextIP, _nextContents) <- translateStep gen pblock 0 addr contents
pure $! (finishPartialBlock res, fromIntegral instSize)

-- | Translate block, returning block read, number of bytes in block,
-- remaining bytes to parse, and an optional error.
-- | Translate one block, returning:
-- * the read block,
-- * the offset of the next instruction after this block.
translateBlockImpl :: forall st_s ids
. NonceGenerator (ST st_s) ids
-- ^ Generator for new assign ids
Expand Down

0 comments on commit e05a9db

Please sign in to comment.