-
Notifications
You must be signed in to change notification settings - Fork 49
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
Creusot panic on model where ShallowModelTy
is a tuple with a Seq
.
#991
Comments
Can be worked around by creating a struct instead of a tuple, as in: pub struct FormulaModel {
pub clauses: Seq<usize>,
pub num_vars: Int
}
impl ShallowModel for Formula {
type ShallowModelTy = FormulaModel;
#[logic]
#[open]
fn shallow_model(self) -> Self::ShallowModelTy {
FormulaModel { clauses: self.clauses.shallow_model(), num_vars: self.num_vars.shallow_model() }
}
}
pub struct Formula {
clauses: Vec<usize>,
num_vars: usize,
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following code
Gives the following panic:
Some notes:
Seq
(may be it fails with other composite types as well, didn't think of one readily)@
in a spec.The text was updated successfully, but these errors were encountered: