Quantcast
Channel: Dafny: An Automatic Program Verifier for Functional Correctness
Browsing all 1106 articles
Browse latest View live
↧

Source code checked in, #dc26d289500d

Fix issue 122. Only generate autoTriggers for QuantifierExpr that are not empty.

View Article


Source code checked in, #cf10424ffba1

Fix issue 121. Don't split QuantifierExpr that are empty.

View Article


Created Unassigned: Incorrect translation of such-that expression [128]

Dafny (well, really, Z3) generates some inappropriate warnings in the following scenario.If you use the following command-line arguments:/noNLarith /z3opt:pi.warnings=true /compile:0 /autoTriggers:1on...

View Article

Created Unassigned: Incorrect 'cyclic dependencies' error for datatypes [129]

The following code works:```datatype Maybe<T> = None | Some(v:T)datatype B = B(b:Maybe<B>)```However, the variation below causes the error "because of cyclic dependencies among constructor...

View Article

Commented Unassigned: Incorrect 'cyclic dependencies' error for datatypes [129]

The following code works:```datatype Maybe<T> = None | Some(v:T)datatype B = B(b:Maybe<B>)```However, the variation below causes the error "because of cyclic dependencies among constructor...

View Article


Created Unassigned: Frustrating wait for Dafny IDE to process changes [130]

The new Dafny Visual Studio plugin waits for a noticeable amount of time (2 seconds?) before re-verifying newly written code, but I've come to find this delay frustrating. I'd like a button I can press...

View Article

Commented Unassigned: Frustrating wait for Dafny IDE to process changes [130]

The new Dafny Visual Studio plugin waits for a noticeable amount of time (2 seconds?) before re-verifying newly written code, but I've come to find this delay frustrating. I'd like a button I can press...

View Article

Commented Unassigned: Frustrating wait for Dafny IDE to process changes [130]

The new Dafny Visual Studio plugin waits for a noticeable amount of time (2 seconds?) before re-verifying newly written code, but I've come to find this delay frustrating. I'd like a button I can press...

View Article


New Post: Beginner question

Hi, I am trying to learn Dafny by porting some definitions and theorems that I have developed in Coq. Unfortunately, Dafny (Z3?) seems to be stuck trying to prove the very first theorem that I gave to...

View Article


New Post: Beginner question

My experience is that Dafny usually finds the proof very quickly or not at all. For correct lemmas:Typical verification times for correct lemmas are less than 1 second. Some lemmas do take longer to...

View Article

New Post: Beginner question

In your situation, what I would do is :use the annotation {:verify false} to disable verification on all of the functions. re-enable each function one at a time, until you find the one that has a...

View Article

New Post: Beginner question

Your problem appears to relate to this function:function method {:verify true} somaDecimal(cs: Decimal, ds: Decimal): Option<Decimal> ensures forall cs :: forall ds :: exists bs :: Some(bs) ==...

View Article

New Post: Beginner question

Thanks a lot for your feedback lexicalscope! I did what you suggested, but since there is just one function with a ensures clause, this one function is exactly the one whose verification makes Dafny...

View Article


New Post: Beginner question

Usually it is neccessary to set a timeout using the command line arguments. If you set a timeout then I think it should report which function it was trying to verify when the timeout occured. A...

View Article

New Post: Beginner question

Hi lexicalscope, After your explanation that the parameters are implicitly universally quantified, I changed the ensures clause to exists bs :: Some(bs) == somaDecimal(cs, ds) &&...

View Article


New Post: Beginner question

If you are running Dafny in Visual Studio then it shows a red dot next to each of the verification failures. If you click the verification failure it shows you a trace that causes the verification...

View Article

New Post: Beginner question

Lexicalscope, I am really grateful for your help so far. Thanks a lot! Since I am running Dafny on Ubuntu, I am going to look for command line options that give the information that is readly available...

View Article


New Post: Beginner question

It could also be that Dafny is not able to prove the code without some extra lemmas provided by you. Just because the code is correct does not mean that Dafny can automatically prove that it is...

View Article

Closed Unassigned: Error reporting in if-else blocks [119]

The error reporting in if-else blocks is quite confusing. The following snippet is an example of a method were errors are reported "gradually", and in a seemingly arbitrary order.```method...

View Article

Edited Unassigned: Incorrect 'cyclic dependencies' error for datatypes [129]

The following code works:```datatype Maybe<T> = None | Some(v:T)datatype B = B(b:Maybe<B>)```However, the variation below causes the error "because of cyclic dependencies among constructor...

View Article
Browsing all 1106 articles
Browse latest View live


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