Skip to content

Commit 0096e13

Browse files
committed
Update tests
1 parent 135dd17 commit 0096e13

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+1617
-1056
lines changed

creusot/tests/should_fail/bug/692.mlcfg

Lines changed: 33 additions & 33 deletions
Large diffs are not rendered by default.

creusot/tests/should_fail/bug/695.mlcfg

Lines changed: 37 additions & 37 deletions
Large diffs are not rendered by default.

creusot/tests/should_succeed/100doors.mlcfg

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,9 +417,11 @@ end
417417
module Core_Ops_Range_Range_Type_Inv
418418
type idx
419419
use Core_Ops_Range_Range_Type as Core_Ops_Range_Range_Type
420+
clone CreusotContracts_Invariant_Inv_Stub as Inv1 with
421+
type t = idx
420422
clone CreusotContracts_Invariant_Inv_Stub as Inv0 with
421423
type t = Core_Ops_Range_Range_Type.t_range idx
422-
axiom inv_t_range : forall self : Core_Ops_Range_Range_Type.t_range idx . Inv0.inv self = true
424+
axiom inv_t_range [@rewrite] : forall self : Core_Ops_Range_Range_Type.t_range idx . Inv0.inv self = (Inv1.inv (Core_Ops_Range_Range_Type.range_start self) /\ Inv1.inv (Core_Ops_Range_Range_Type.range_end self))
423425
end
424426
module CreusotContracts_Std1_Iter_Iterator_Completed_Stub
425427
type self
@@ -997,6 +999,12 @@ module CreusotContracts_Std1_Slice_Impl5_ResolveElswhere
997999
ensures { result = resolve_elswhere self old' fin }
9981000

9991001
end
1002+
module TyInv_Trivial
1003+
type t
1004+
clone CreusotContracts_Invariant_Inv_Stub as Inv0 with
1005+
type t = t
1006+
axiom inv_trivial : forall self : t . Inv0.inv self = true
1007+
end
10001008
module C100doors_F_Interface
10011009
val f [#"../100doors.rs" 18 0 18 10] (_1 : ()) : ()
10021010
end
@@ -1006,6 +1014,12 @@ module C100doors_F
10061014
use prelude.Ghost
10071015
use seq.Seq
10081016
use prelude.Borrow
1017+
clone CreusotContracts_Invariant_Inv_Interface as Inv1 with
1018+
type t = usize
1019+
clone TyInv_Trivial as TyInv_Trivial0 with
1020+
type t = usize,
1021+
predicate Inv0.inv = Inv1.inv,
1022+
axiom .
10091023
clone CreusotContracts_Std1_Slice_Impl5_ResolveElswhere as ResolveElswhere0 with
10101024
type t = bool
10111025
use Alloc_Alloc_Global_Type as Alloc_Alloc_Global_Type
@@ -1056,6 +1070,7 @@ module C100doors_F
10561070
clone Core_Ops_Range_Range_Type_Inv as Core_Ops_Range_Range_Type_Inv0 with
10571071
type idx = usize,
10581072
predicate Inv0.inv = Inv0.inv,
1073+
predicate Inv1.inv = Inv1.inv,
10591074
axiom .
10601075
clone CreusotContracts_Std1_Iter_Impl0_IntoIterPost as IntoIterPost0 with
10611076
type i = Core_Ops_Range_Range_Type.t_range usize

creusot/tests/should_succeed/100doors/why3session.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<path name=".."/><path name="100doors.mlcfg"/>
88
<theory name="C100doors_F" proved="true">
99
<goal name="f&#39;vc" expl="VC for f" proved="true">
10-
<proof prover="1"><result status="valid" time="0.220000" steps="45466"/></proof>
10+
<proof prover="1"><result status="valid" time="0.220000" steps="49042"/></proof>
1111
</goal>
1212
</theory>
1313
</file>
23 Bytes
Binary file not shown.

creusot/tests/should_succeed/closures/03_generic_bound.mlcfg

Lines changed: 35 additions & 35 deletions
Large diffs are not rendered by default.

creusot/tests/should_succeed/closures/04_generic_closure.mlcfg

Lines changed: 35 additions & 35 deletions
Large diffs are not rendered by default.

creusot/tests/should_succeed/closures/05_map.mlcfg

Lines changed: 35 additions & 35 deletions
Large diffs are not rendered by default.

creusot/tests/should_succeed/closures/06_fn_specs.mlcfg

Lines changed: 65 additions & 65 deletions
Large diffs are not rendered by default.

creusot/tests/should_succeed/hillel.mlcfg

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2043,9 +2043,11 @@ end
20432043
module Core_Ops_Range_Range_Type_Inv
20442044
type idx
20452045
use Core_Ops_Range_Range_Type as Core_Ops_Range_Range_Type
2046+
clone CreusotContracts_Invariant_Inv_Stub as Inv1 with
2047+
type t = idx
20462048
clone CreusotContracts_Invariant_Inv_Stub as Inv0 with
20472049
type t = Core_Ops_Range_Range_Type.t_range idx
2048-
axiom inv_t_range : forall self : Core_Ops_Range_Range_Type.t_range idx . Inv0.inv self = true
2050+
axiom inv_t_range [@rewrite] : forall self : Core_Ops_Range_Range_Type.t_range idx . Inv0.inv self = (Inv1.inv (Core_Ops_Range_Range_Type.range_start self) /\ Inv1.inv (Core_Ops_Range_Range_Type.range_end self))
20492051
end
20502052
module CreusotContracts_Std1_Iter_Iterator_Completed_Stub
20512053
type self
@@ -2319,6 +2321,12 @@ module CreusotContracts_Std1_Iter_Range_Impl0_Completed
23192321
ensures { result = completed self }
23202322

23212323
end
2324+
module TyInv_Trivial
2325+
type t
2326+
clone CreusotContracts_Invariant_Inv_Stub as Inv0 with
2327+
type t = t
2328+
axiom inv_trivial : forall self : t . Inv0.inv self = true
2329+
end
23222330
module Hillel_Unique_Interface
23232331
type t
23242332
use prelude.Borrow
@@ -2372,6 +2380,12 @@ module Hillel_Unique
23722380
use seq_ext.SeqExt
23732381
use prelude.Borrow
23742382
use prelude.Slice
2383+
clone CreusotContracts_Invariant_Inv_Interface as Inv1 with
2384+
type t = usize
2385+
clone TyInv_Trivial as TyInv_Trivial0 with
2386+
type t = usize,
2387+
predicate Inv0.inv = Inv1.inv,
2388+
axiom .
23752389
use seq.Seq
23762390
clone Core_Num_Impl11_Max as Max0
23772391
clone CreusotContracts_Std1_Slice_Impl0_ShallowModel_Interface as ShallowModel2 with
@@ -2446,6 +2460,7 @@ module Hillel_Unique
24462460
clone Core_Ops_Range_Range_Type_Inv as Core_Ops_Range_Range_Type_Inv0 with
24472461
type idx = usize,
24482462
predicate Inv0.inv = Inv0.inv,
2463+
predicate Inv1.inv = Inv1.inv,
24492464
axiom .
24502465
clone CreusotContracts_Std1_Iter_Impl0_IntoIterPost as IntoIterPost0 with
24512466
type i = Core_Ops_Range_Range_Type.t_range usize
@@ -2957,6 +2972,12 @@ module Hillel_Fulcrum
29572972
use prelude.Borrow
29582973
use prelude.UIntSize
29592974
use prelude.Slice
2975+
clone CreusotContracts_Invariant_Inv_Interface as Inv2 with
2976+
type t = usize
2977+
clone TyInv_Trivial as TyInv_Trivial0 with
2978+
type t = usize,
2979+
predicate Inv0.inv = Inv2.inv,
2980+
axiom .
29602981
use Core_Slice_Iter_Iter_Type as Core_Slice_Iter_Iter_Type
29612982
clone CreusotContracts_Std1_Slice_Impl13_ShallowModel_Interface as ShallowModel1 with
29622983
type t = uint32
@@ -2996,6 +3017,7 @@ module Hillel_Fulcrum
29963017
clone Core_Ops_Range_Range_Type_Inv as Core_Ops_Range_Range_Type_Inv0 with
29973018
type idx = usize,
29983019
predicate Inv0.inv = Inv1.inv,
3020+
predicate Inv1.inv = Inv2.inv,
29993021
axiom .
30003022
clone CreusotContracts_Std1_Iter_Impl0_IntoIterPost as IntoIterPost1 with
30013023
type i = Core_Ops_Range_Range_Type.t_range usize

0 commit comments

Comments
 (0)