macaw/macaw-ppc-symbolic
Brett Boston a336895da7
Add optional override for MacawArchStmtExtensions to genArchVals (#230)
This change adds an optional argument to `genArchVals` that allows client code to override the backend translation behavior of `MacawArchStmtExtension`s on a statement-by-statement basis.  The new argument has type `Maybe (MacawArchStmtExtensionOverride arch)`, where `MacawArchStmtExtensionOverride` is a function that takes a statement and a crucible state, and returns an optional tuple containing the value produced by the statement, as well as an updated state.  Returning 'Nothing' indicates that the backend should use its default handler for the statement.

Client code that wishes to maintain the existing default behavior in all cases can simply pass `Nothing` for the new argument to `genArchVals`.
2021-09-14 18:24:47 -07:00
..
src/Data/Macaw/PPC Add optional override for MacawArchStmtExtensions to genArchVals (#230) 2021-09-14 18:24:47 -07:00
tests Add optional override for MacawArchStmtExtensions to genArchVals (#230) 2021-09-14 18:24:47 -07:00
ChangeLog.md Start macaw-ppc-symbolic 2018-05-03 16:41:33 -07:00
LICENSE Start macaw-ppc-symbolic 2018-05-03 16:41:33 -07:00
macaw-ppc-symbolic.cabal Adapt to GaloisInc/crucible#794 (#224) 2021-08-23 20:39:08 -04:00
Setup.hs Start macaw-ppc-symbolic 2018-05-03 16:41:33 -07:00