Draft
Conversation
|
Hey! I've tested this trace replay on a Paxos trace and i ran into similar issues. |
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.
Hello
This is a PoC I've started to enable Quint to reproduce the steps/states taken in a given ITF trace. This considers any
nondetPickspresent in the trace, and tries to guess the other ones.We should move this to rust. I wrote this last year.
This doesn't do anything special with
anyandactionTakenyet, but we could.The
diffsthing is something I was exploring as a way to report mismatches, but we need to think harder about what we want there.Experiment
Using the tendemint example from choreo (I'm currently at
0f41da72):https://github.com/informalsystems/choreo/tree/main/examples/tendermint
Step 1: generate an ITF trace from
tendermintMicrowith--mbt. This should be the same as getting a trace from an ideally-structured implementation.Step 2: Do the refinement mapping by hand, converting fields from one model to another. In this case, we only have to delete some "tracking" fields that are not part of the base model, which I do via CLI
jq. The var names in Quint traces also don't completely match the ones in the model (feature or bug?), so we need to convert them:Step 3: Use
--in-itfto replay the traceThis is resulting in a mismatched at this point. The diff gets messed up by the progress bar, but it might be related to a need of allowing stuttering steps. The "micro" version will take several steps until the abstract model makes a step, and I think we are not yet considering this scenario.
You also change some random value in first states of the

transformed.itf.jsonand check if this can catch it: