Open sarsko opened 2 years ago
Ah yes, i understand why this happens but we should just silently swallow the variant instead.
Could we emit a warning instead? I understand that you may want to do this, but having a variant clause on a trusted function is not something that one would do in a final piece of code.
Could we emit a warning instead? I understand that you may want to do this, but having a variant clause on a trusted function is not something that one would do in a final piece of code.
Yes definitely.
When figuring out the proof, it is sometimes useful to add
#[trusted]
temporarily. If that function has a#[variant]
attached, Why3 will give the following error:unexpected 'variant' clause
Example: