Extracting arguments from a function call reduces resource count #6068
Labels
misc: brittleness
When Dafny sometimes proves something, and sometimes doesn't
part: verifier
Translation from Dafny to Boogie (translator)
The following two proofs surprisingly differ in their resource count usage:
You can see why by looking at the passified Boogie:
Foo (note the quadruplication of the argument to P):
Bar:
What's extra silly about the
Foo
translation is that it already creates a temporary variable to store the argument,##x#0#AT#0
, but then does not use that to prevent duplication.The text was updated successfully, but these errors were encountered: