Quantcast
Channel: Dafny: An Automatic Program Verifier for Functional Correctness
Viewing all articles
Browse latest Browse all 1106

Created Unassigned: Auto-triggers tries to find trigger for empty forall [122]

$
0
0
The following code causes Dafny to issue a spurious warning:

method Try (a:int)
{
forall
ensures a == a;
{
}
}

The warning is:

Warning: /!\ No terms found to trigger on.

This warning is spurious because an empty forall doesn't need any triggers. The "empty forall" construction is just meant to introduce unquantified facts.


Viewing all articles
Browse latest Browse all 1106

Trending Articles