Skip to content

Commit

Permalink
Add test 1342.
Browse files Browse the repository at this point in the history
  • Loading branch information
jhjourdan committed Feb 5, 2025
1 parent a3ecf47 commit 0f9a60f
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 0 deletions.
27 changes: 27 additions & 0 deletions creusot/tests/should_succeed/bug/1342.coma

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions creusot/tests/should_succeed/bug/1342.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
extern crate creusot_contracts;
use creusot_contracts::{logic::FSet, *};

#[open]
#[logic]
#[variant(fset.len())]
pub fn bar<T>(fset: FSet<T>) -> FSet<T> {
if fset.is_empty() {
FSet::EMPTY
} else {
bar(FSet::EMPTY)
}
}
11 changes: 11 additions & 0 deletions creusot/tests/should_succeed/bug/1342/proof.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0f9a60f

Please sign in to comment.