Draft
Conversation
This reverts commit 1667082.
Contributor
Author
|
Notes (from 3/3 meeting):
|
…us guesses for loop_args in repeat loops
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Addresses #183, still WIP
Other miscellaneous changes:
macros.rswith some helper macros for logging that print out the line number, function name and file name (the defaultinfo!macro from thelogcrate doesn't do this)AugmentedTracetype from a type alias to a tuple struct so that we can define methods over it (seetypes.rs)Stmt::BoundedLooptoRepeatLoopin the interpreter codeCurrent status (EoD 2/26):
1. Loop with assignments
Consider
loop_with_assigns.prot:This is the original transaction file supplied to the interpreter:
The monitor currently produces the following output:
The issue is with the final spurious
loop_addprotocol in each of the traces suggested by the monitor. This is caused after a legitimateloop_calltransaction completes and triggers anExplicitFork(i.e. anotherloop_addprotocol) at time = 4:This new thread reads the values of
DUT.aandDUT.bat time 4, both of which are randomized values (caused by DontCare), it does astep()(time is now 5), butassert_eq(s, DUT.s)succeeds sinceDUT.sis still 30. This thread finishes and emitsloop_add(random_a, random_b, 1, 30).Protocol:
Current monitor output (output parameter
sis wrong for some of these transactions):3: Nested busy wait
Monitor hangs on this protocol (probably because of exponential blowup in the no. of threads):