-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d41f576
commit 04ef3b2
Showing
137 changed files
with
2,023 additions
and
2,008 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
error[creusot]: called Logic function in Ghost context "creusot_contracts::__stubs::fin" | ||
--> 436_0.rs:10:5 | ||
error[creusot]: called prophetic logic function "prophecy" in logic context | ||
--> 436_0.rs:15:23 | ||
| | ||
10 | pearlite! { *(^x).g } | ||
| ^^^^^^^^^^^^^^^^^^^^^ | ||
| | ||
= note: this error originates in the macro `pearlite` (in Nightly builds, run with -Z macro-backtrace for more info) | ||
15 | b.g = snapshot! { prophecy(b) + 1i32 }; | ||
| ^^^^^^^^ | ||
|
||
error: aborting due to previous error | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
error[creusot]: called Logic function in Ghost context "prophecy" | ||
--> 436_1.rs:15:18 | ||
error[creusot]: called prophetic logic function "creusot_contracts::__stubs::fin" in logic context | ||
--> 436_1.rs:10:5 | ||
| | ||
15 | b.g = gh! { !prophecy(b) }; | ||
| ^^^^^^^^ | ||
10 | pearlite! { *(^x).g } | ||
| ^^^^^^^^^^^^^^^^^^^^^ | ||
| | ||
= note: this error originates in the macro `pearlite` (in Nightly builds, run with -Z macro-backtrace for more info) | ||
|
||
error: aborting due to previous error | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
error[creusot]: Illegal use of the Ghost type | ||
error[creusot]: Illegal use of the Snapshot type | ||
--> 436_2.rs:6:10 | ||
| | ||
6 | Some(Ghost<&'a mut Bad<'a>>), | ||
| ^^^^^^^^^^^^^^^^^^^^^^ | ||
6 | Some(Snapshot<&'a mut Bad<'a>>), | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error: aborting due to previous error | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
error[creusot]: Use of borrowed variable x | ||
--> borrowed_ghost.rs:7:10 | ||
| | ||
7 | *r = gh! { !x.inner() }; // r = (gh (not (inner x)), x) | ||
| ^^^^^^^^^^^^^^^^^^ | ||
7 | *r = snapshot! { !x.inner() }; // r = (snapshot (not (inner x)), x) | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| | ||
= note: this error originates in the macro `gh` (in Nightly builds, run with -Z macro-backtrace for more info) | ||
= note: this error originates in the macro `snapshot` (in Nightly builds, run with -Z macro-backtrace for more info) | ||
|
||
error: aborting due to previous error | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
extern crate creusot_contracts; | ||
use creusot_contracts::*; | ||
|
||
#[ghost] | ||
#[logic] | ||
#[ensures(true && false)] | ||
#[creusot::builtins = "dummy_function"] | ||
fn builtin_with_contract() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
extern crate creusot_contracts; | ||
use creusot_contracts::{logic::Mapping, *}; | ||
|
||
#[logic] | ||
#[logic(prophetic)] | ||
fn f(x: &mut i32) -> Mapping<(), i32> { | ||
pearlite! { |_| ^x } | ||
} | ||
|
||
#[ghost] | ||
#[logic] | ||
fn g(x: &mut i32) -> Mapping<(), i32> { | ||
pearlite! { |_| ^x } | ||
} | ||
|
||
#[logic] | ||
#[logic(prophetic)] | ||
fn h(y: &mut i32) -> bool { | ||
pearlite! { forall<_x:Int> ^y == 1i32 } | ||
} | ||
|
||
#[ghost] | ||
#[logic] | ||
fn i(y: &mut i32) -> bool { | ||
pearlite! { forall<_x:Int> ^y == 1i32 } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ trait T { | |
} | ||
|
||
impl T for () { | ||
#[ghost] | ||
#[logic(prophetic)] | ||
fn f() { | ||
() | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
error[creusot]: Expected `f` to be a logic function as specified by the trait declaration | ||
--> logic_prophetic_impl.rs:11:5 | ||
| | ||
11 | fn f() { | ||
| ^^^^^^ | ||
|
||
error: aborting due to previous error | ||
|
Oops, something went wrong.