-
Notifications
You must be signed in to change notification settings - Fork 4
refactor(tests): distinguish -fail from -unsupported, auto-detect show specs #1015
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Stevengre
wants to merge
8
commits into
master
Choose a base branch
from
codex/20260403-assert-inhabited
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 4 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
4d2b75a
refactor(tests): distinguish -fail (program error) from -unsupported …
Stevengre 784d826
refactor(tests): auto-detect show specs from -fail/-unsupported suffix
Stevengre c940597
refactor(tests): rename symbolic-args-fail to symbolic-args-unsupported
Stevengre 63bead9
refactor(tests): use stable -fail fixture for CLI tests
Stevengre 91fa4f3
style: fix black formatting in test_integration.py
Stevengre 98c68be
fix(tests): keep snapshots for -fail and -unsupported
Stevengre 580ebe3
ci: extend verify-rust-std timeout
Stevengre 5d69415
Merge branch 'master' into codex/20260403-assert-inhabited
dkcumming File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
17 changes: 0 additions & 17 deletions
17
kmir/src/tests/integration/data/prove-rs/show/assert_eq_exp.main.expected
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
kmir/src/tests/integration/data/prove-rs/show/bitwise-not-shift.main.expected
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
17 changes: 0 additions & 17 deletions
17
kmir/src/tests/integration/data/prove-rs/show/iter_next_3.main.expected
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
kmir/src/tests/integration/data/prove-rs/show/iterator-simple.main.expected
This file was deleted.
Oops, something went wrong.
File renamed without changes.
17 changes: 0 additions & 17 deletions
17
kmir/src/tests/integration/data/prove-rs/show/niche-enum.main.expected
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
38 changes: 0 additions & 38 deletions
38
...rc/tests/integration/data/prove-rs/show/symbolic-args-fail.main.cli-stats-leaves.expected
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
kmir/src/tests/integration/data/prove-rs/show/symbolic-args-fail.main.expected
This file was deleted.
Oops, something went wrong.
File renamed without changes.
107 changes: 107 additions & 0 deletions
107
...ation/data/prove-rs/show/symbolic-structs-fail.eats_struct_args.cli-stats-leaves.expected
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,107 @@ | ||
|
|
||
| ┌─ 1 (root, init) | ||
| │ #execTerminator ( terminator ( ... kind: terminatorKindCall ( ... func: operandC | ||
| │ span: src/rust/library/std/src/rt.rs:194 | ||
| │ | ||
| │ (61 steps) | ||
| ├─ 3 (split) | ||
| │ #selectBlock ( switchTargets ( ... branches: branch ( 0 , basicBlockIdx ( 2 ) ) | ||
| │ function: eats_struct_args | ||
| ┃ | ||
| ┃ (branch) | ||
| ┣━━┓ subst: .Subst | ||
| ┃ ┃ constraint: | ||
| ┃ ┃ notBool ARG_INT2:Int ==Int ARG_INT5:Int | ||
| ┃ │ | ||
| ┃ ├─ 4 | ||
| ┃ │ #selectBlock ( switchTargets ( ... branches: branch ( 0 , basicBlockIdx ( 2 ) ) | ||
| ┃ │ function: eats_struct_args | ||
| ┃ │ | ||
| ┃ │ (96 steps) | ||
| ┃ ├─ 6 (split) | ||
| ┃ │ #selectBlock ( switchTargets ( ... branches: branch ( 0 , basicBlockIdx ( 5 ) ) | ||
| ┃ │ function: eats_struct_args | ||
| ┃ ┃ | ||
| ┃ ┃ (branch) | ||
| ┃ ┣━━┓ subst: .Subst | ||
| ┃ ┃ ┃ constraint: | ||
| ┃ ┃ ┃ ARG_UINT3:Int ==Int ARG_UINT6:Int | ||
| ┃ ┃ │ | ||
| ┃ ┃ ├─ 8 | ||
| ┃ ┃ │ #selectBlock ( switchTargets ( ... branches: branch ( 0 , basicBlockIdx ( 5 ) ) | ||
| ┃ ┃ │ function: eats_struct_args | ||
| ┃ ┃ │ | ||
| ┃ ┃ │ (6 steps) | ||
| ┃ ┃ └─ 10 (stuck, leaf) | ||
| ┃ ┃ #setUpCalleeData ( monoItemFn ( ... name: symbol ( "_ZN4core9panicking5panic17h<hash> | ||
| ┃ ┃ span: no-location:0 | ||
| ┃ ┃ | ||
| ┃ ┗━━┓ subst: .Subst | ||
| ┃ ┃ constraint: | ||
| ┃ ┃ notBool ARG_UINT3:Int ==Int ARG_UINT6:Int | ||
| ┃ │ | ||
| ┃ ├─ 9 | ||
| ┃ │ #selectBlock ( switchTargets ( ... branches: branch ( 0 , basicBlockIdx ( 5 ) ) | ||
| ┃ │ function: eats_struct_args | ||
| ┃ │ | ||
| ┃ │ (6 steps) | ||
| ┃ ├─ 11 (terminal) | ||
| ┃ │ #EndProgram ~> .K | ||
| ┃ │ function: eats_struct_args | ||
| ┃ │ | ||
| ┃ ┊ constraint: true | ||
| ┃ ┊ subst: ... | ||
| ┃ └─ 2 (leaf, target, terminal) | ||
| ┃ #EndProgram ~> .K | ||
| ┃ | ||
| ┗━━┓ subst: .Subst | ||
| ┃ constraint: | ||
| ┃ ARG_INT2:Int ==Int ARG_INT5:Int | ||
| │ | ||
| ├─ 5 | ||
| │ #selectBlock ( switchTargets ( ... branches: branch ( 0 , basicBlockIdx ( 2 ) ) | ||
| │ function: eats_struct_args | ||
| │ | ||
| │ (66 steps) | ||
| ├─ 7 (terminal) | ||
| │ #EndProgram ~> .K | ||
| │ function: eats_struct_args | ||
| │ | ||
| ┊ constraint: true | ||
| ┊ subst: ... | ||
| └─ 2 (leaf, target, terminal) | ||
| #EndProgram ~> .K | ||
|
|
||
|
|
||
|
|
||
|
|
||
| STATISTICS | ||
| ----------- | ||
| Total nodes: 10 | ||
|
|
||
| Node roles (exclusive): | ||
| target : 1 ids: 2 | ||
| terminal: 2 ids: 7, 11 | ||
| failing : 1 ids: 10 | ||
| split : 2 ids: 3, 6 | ||
| normal : 4 ids: 4, 5, 8, 9 | ||
| (root nodes omitted from totals: 1) | ||
|
|
||
| Leaf paths from init: | ||
| total leaves (non-root): 2 | ||
| reachable leaves : 2 | ||
| total steps : 290 | ||
|
|
||
| leaf 2 (path 1/2): steps 127, path 1 -> 3 -> 5 -> 7 -> 2 | ||
| leaf 2 (path 2/2): steps 163, path 1 -> 3 -> 4 -> 6 -> 9 -> 11 -> 2 | ||
| leaf 10: steps 163, path 1 -> 3 -> 4 -> 6 -> 8 -> 10 | ||
|
|
||
| LEAF <k> CELLS | ||
| --------------- | ||
| Node 2: | ||
| #EndProgram ~> .K | ||
|
|
||
| Node 10: | ||
| #setUpCalleeData ( monoItemFn ( ... name: symbol ( "_ZN4core9panicking5panic17h<hash>E" ) , id: defId ( 27 ) , body: noBody ) , operandConstant ( constOperand ( ... span: span ( 32 ) , userTy: noUserTypeAnnotationIndex , const: mirConst ( ... kind: constantKindAllocated ( allocation ( ... bytes: b"\x00\x00\x00\x00\x00\x00\x00\x008\x00\x00\x00\x00\x00\x00\x00" , provenance: provenanceMap ( ... ptrs: provenanceMapEntry ( ... offset: 0 , allocId: allocId ( 0 ) ) .ProvenanceMapEntries ) , align: align ( 8 ) , mutability: mutabilityMut ) ) , ty: ty ( 28 ) , id: mirConstId ( 12 ) ) ) ) .Operands , span ( 65 ) ) ~> .K | ||
| >> function: core::panicking::panic::h<hash> | ||
| >> call span: <REPO>/kmir/src/tests/integration/data/prove-rs/symbolic-structs-fail.rs:29:5 |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.