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

Created Unassigned: Internal translation error with opaque, generics, and higher-order functions [71]

$
0
0
The following code causes an internal translation error:

```
function{:opaque} MapSetToSet<X, Y>(xs:set<X>, f:X->Y):set<Y>
reads f.reads;
requires forall x :: f.requires(x);
{
set x | x in xs :: f(x)
}
```

41 name resolution errors detected in opaque3.bpl

*** Encountered internal translation error - re-running Boogie to get better debug information

opaque3.bpl(2801,23): Error: undeclared identifier: _module._default.MapSetToSet$X
opaque3.bpl(2802,23): Error: undeclared identifier: _module._default.MapSetToSet$X
opaque3.bpl(2807,31): Error: undeclared identifier: _module._default.MapSetToSet$X
opaque3.bpl(2808,46): Error: undeclared identifier: _module._default.MapSetToSet$X
...


Viewing all articles
Browse latest Browse all 1106

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>