Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
konnov committed Sep 14, 2023
1 parent f5852ca commit 5ead02c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions quint/io-cli-tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -689,11 +689,11 @@ exit $exit_code
]
```

### Test does not mean assignments (#1133)
### Test does not skip assignments (#1133)

See: https://github.com/informalsystems/quint/issues/1133

FIXME
FIXME: fix the traces found by the simulator once #1133 is resolved.

<!-- !test in test1133 -->
```
Expand Down
2 changes: 1 addition & 1 deletion quint/src/runtime/impl/compilerImpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ export class CompilerVisitor implements IRVisitor {
eval: () => {
if (app.opcode === inputDefName) {
this.execListener.onUserOperatorCall(evalApp)
// do not return from '_', as it may span over multiple frames
// do not call onUserOperatorReturn on '_' later, as it may span over multiple frames
} else {
this.execListener.onUserOperatorCall(app)
}
Expand Down
4 changes: 3 additions & 1 deletion quint/src/runtime/trace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,9 @@ class TraceRecorderImpl implements TraceRecorder {
if (verbosity.hasUserOpTracking(this.verbosityLevel)) {
const newFrame = { app: app, args: [], result: none(), subframes: [] }
if (this.frameStack.length == 0) {
// this should not happen, as there is always bottomFrame, but let's handle it
// this should not happen, as there is always bottomFrame,
// but we do not throw here, as trace collection is not the primary
// function of the simulator.
this.frameStack = [newFrame]
} else if (this.frameStack.length === 2 && this.frameStack[1].app.opcode === '_') {
// A placeholder frame created from `q::input` or `then`. Modify in place.
Expand Down

0 comments on commit 5ead02c

Please sign in to comment.