-
Notifications
You must be signed in to change notification settings - Fork 21
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
Mismatch between hasInstance and simplestValue #150
Comments
For context, I'm looking at this because I got a crash on |
I thought the
That looks like a bug to me.
I believe
You can probably merge the two functions, but you would still need to add an extra parameter which controls how conservative the behavior should be. Note that the current
You can try, but it might not help. It depends on whether the |
One issue I noticed with |
It's for the crash described in my reply (where we call |
Ah yes, then overriding both methods would indeed help (and make a lot of sense) here. |
Fixed by @jad-hamza in #151 |
There are some mismatches between
hasInstance
andsimplestValue
inox/src/main/scala/inox/ast/SymbolOps.scala
Line 906 in 7752948
hasInstance
returnstrue
on types defined outside of Inox (such asArrayType
)ADTType
, ashasInstance
doesn't visit constructor fields?TypeParameter
, I guess that's expected?Should we make them just one function (returning an
Option
), or is the distinction necessary?And we should override these functions in Stainless for
ArrayType
? (alwaystrue
?)The text was updated successfully, but these errors were encountered: