Add a simplicity pset run command which outputs a trace of all jets called
#32
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This new command takes the same arguments as
simplicity pset finalizebut rather than finalizing the program it just executes it and returns a list of every jet that was executed along with some information. For example:Example
``` cargo -q run -- simplicity pset run cHNldP8BAgQCAAAAAQMEAAAAAAEEAQEBBQECAfsEAgAAAAABAU4BSZqBhUX2uuOfwDtjfypOHmTlkMrBvDpvbXGqRENlTBQBAAAAAAABhqAAIlEgEBP/7knTh8NkfGQ1WN73z/IUVFFdZMaUebdBwr9DdrUBBwABCAEAAQ4gOIKIm4JAzV1Qi/FY8gT6HkHNhGHwXel8qKt9YAFIxgYBDwQAAAAAARAE/////yIVvlCSm3TBoElUt4tLYDXpel4HiloPKOyW1Ue/7prOgDrAIeUtAzeCiTmiGur4R+tWfhRNSHWbutmb1uWBjYqAYRr/vgEXIFCSm3TBoElUt4tLYDXpel4HiloPKOyW1Ue/7prOgDrAARggl54QEIIUw/dfOs4NSPjkr+n6aw5ddh46EhPYpQynHVMAAQMIPIYBAAAAAAAH/ARwc2V0AiBJmoGFRfa645/AO2N/Kk4eZOWQysG8Om9tcapEQ2VMFAEEFgAUtYwiFR9LoVniJVdnRyrIkTfoGDAAAQMIZAAAAAAAAAAH/ARwc2V0AiBJmoGFRfa645/AO2N/Kk4eZOWQysG8Om9tcapEQ2VMFAEEAAA= 0 5HJ+AEdxCCEChNpUJKbdMGgSVS3i0tgNel6XgeKWg8o7JbVR7/ums6AOsAEIFCDDQ4VdxGCEChOrIEIFCDE2KiQAgWDVYCECg2o3CTjhYNVyBCBQbgerEEIFBuJk/Cgj4cRghCRQzohnOQs8/+3xpn819ObmnDkhDQn925GJoUwiWnfmwmLhcXAoGYW1m3QCMAgTgJ+QAIBwYDhgHEwHGIHG4HIEDkOA '' ```There are many improvements we can make here but already I think this is pretty useful and worth slipping into the next release.