-
Notifications
You must be signed in to change notification settings - Fork 266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tests: Add an example to show how to interop Dafny and C# #1769
tests: Add an example to show how to interop Dafny and C# #1769
Conversation
Co-authored-by: Fabio Madge <fabio@madge.me>
Looks like the MacOS tests are failing as well; not sure if this is related.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great example! Very nice :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, I can't wait to have Dafny running Dafny !
Thanks @MikaelMayer and @keyboardDrummer for the reviews! @keyboardDrummer , I added an additional constructor for inputs. The commit that implements that is 4ea62c8 . Could you have a look and tell me whether you think the added complexity is worth it? Personally I like it, I think it makes the example a bit more realistic! The theorem you were expecting is in a separate commit at 2272b16 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apart from the FIXME and WISH, looks good to me.
2e8022e
to
fa38e8c
Compare
Here's the demo I gave recently, repackaged as a test. I haven't added it to the CI yet (I'm missing the
lit
header), but the rest is ready for review. I wrote a bit of documentation in the C# and Dafny files, so I'd appreciate some proofreading ^^CCing @RustanLeino since you asked about how nice the proofs looked.