Skip to content

Commit

Permalink
crucible-syntax: Document setup hook
Browse files Browse the repository at this point in the history
  • Loading branch information
langston-barrett committed Nov 7, 2023
1 parent 040833f commit cff4513
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crucible-syntax/src/Lang/Crucible/Syntax/Prog.hs
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ data SimulateProgramHooks ext = SimulateProgramHooks
sym ->
HandleAllocator ->
OverrideSim p sym ext rtp a r ()
-- ^ Override action to execute before simulation. Used by the LLVM
-- frontend to set up the LLVM global memory variable.
, setupOverridesHook ::
forall p sym t st fs. (IsSymInterface sym, sym ~ ExprBuilder t st fs) =>
sym -> HandleAllocator -> IO [(FnBinding p sym ext,Position)]
Expand All @@ -119,6 +121,8 @@ data SimulateProgramHooks ext = SimulateProgramHooks

-- | A sensible default set of hooks for 'simulateProgram' that:
--
-- * Does nothing before simulation begins (has a no-op 'setupHook').
--
-- * Sets up no additional overrides.
--
-- * Errors out if a program contains one or more forward declarations.
Expand Down

0 comments on commit cff4513

Please sign in to comment.