repo
stringclasses
966 values
path
stringlengths
5
283
license
stringclasses
13 values
stars
int64
0
3.47k
default_branch
stringclasses
15 values
commit_sha
stringclasses
966 values
pushed_at
stringdate
2015-04-17 10:56:12
2026-07-22 05:29:38
size_bytes
int64
0
1.91M
sha256
stringlengths
64
64
content
stringlengths
0
1.91M
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/rust/arrays.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
877
b13806d75e622d48e1728101adcc9a3185c08daffb677ec262f24f16a0e0c0c9
// NONUNIFORM: Rust-specific tests // RUN: %baredafny run --target=rs --enforce-determinism --general-traits=legacy "%s" > "%t" // RUN: %diff "%s.expect" "%t" module Origin.Imported { trait {:termination false} SuperTrait { method X() } } module Importing { import Origin.Imported class TheClass ...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/rust/autoinit.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
514
c1ca695239121469f7666f85e42bc61b3f362872a37ae01897cd3b5b41b56214
// NONUNIFORM: Can't create class instances without constructors as Rust does not support Dafny defaults since subset types are erased // RUN: %exits-with 2 %baredafny run %args --enforce-determinism --target=rs "%s" > "%t" // RUN: %diff "%s.expect" "%t" class Test<T(0)> { var x: T } type Positive = x: int ...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/rust/avoid_soundness_mut.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
908
2e38fa8834e25548bbb57f844f55b951c5a844ce3b5ee4b1cc86179583252d14
// RUN: %baredafny build -t:rs --enforce-determinism "%s" // RUN: "%S/avoid_soundness_mut-rust/cargo" run --release > "%t" // RUN: %diff "%s.expect" "%t" // RUN: %baredafny build -t:rs --enforce-determinism --raw-pointers "%s" // RUN: "%S/avoid_soundness_mut-rust/cargo" run --release > "%t" // RUN: %diff "%s.expec...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/rust/borrowing.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
512
ca62fbfe8f847fa7f831a35d38b0d86e7f1aacd7159d947f8f9ee85e5b50b56d
// NONUNIFORM: Rust-specific tests // RUN: %baredafny run --target=rs --emit-uncompilable-code --enforce-determinism "%s" > "%t" // RUN: %diff "%s.expect" "%t" newtype U8 = x: int | 0 <= x <= 255 datatype Test = Test() { predicate At(x: U8) { true } } /* Converts a sequence to a set. */ function...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/rust/bymethod.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
746
9ae48d5ed8068916918d31ac68065a7c6fb22ff871abe8218181046c66b7d813
// NONUNIFORM: Rust-specific tests // RUN: %baredafny run --target=rs --enforce-determinism "%s" > "%t" // RUN: %diff "%s.expect" "%t" abstract module ReverseHolder { newtype U8 = x: int | 0 <= x < 256 type U8Seq = seq<U8> type WellFormedSequence = s: U8Seq | |s| == 0 || |s| != 0 witness [] functio...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/rust/cargoreleasefailure.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
1,204
509bfa80eba3f73b62cbdb2c3c172de9051bd7aba69a134c38f7d3541dbb117b
// NONUNIFORM: Rust-specific tests // RUN: %baredafny build --target=rs --enforce-determinism --general-traits=legacy "%s" // If there is no '#[inline(never)]' in front of ::dafny_runtime::increment_strong_count // then the release will think it's safe to remove the strong count increment, resulting ins a segfault ...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/rust/cargotest.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
725
6011e18d54b14554ce716831fca2d14fa57f4dac059764e6235d8c2560fd42c7
// NONUNIFORM: Test of cargo test to support Dafny tests // RUN: %baredafny build --target=rs "%s" --enforce-determinism > "%t" // RUN: %exits-with 101 "%S/cargotest-rust/cargo" test >> "%t" // RUN: %OutputCheck --file-to-check "%t" "%S/cargotest1.check" // RUN: %OutputCheck --file-to-check "%t" "%S/cargotest2.chec...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/rust/classes-relax.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
902
5fd2f4591481bb90349c82ff94afe75b000011b8a169a96addac5c06ae1c9b37
// NONUNIFORM: Rust does not support relaxed definite assignment // RUN: %exits-with 3 %baredafny run --target=rs "%s" > "%t" // RUN: %diff "%s.wrong.expect" "%t" // RUN: %baredafny run --target=rs --enforce-determinism "%s" > "%t" // RUN: %diff "%s.expect" "%t" datatype D = D(value: int) class Y { var c: ...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/rust/classes.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
1,059
3c65c31057885a9a11f6e976b37b9eb2aae5e2fefdcc5721b45730110aeef9aa
// NONUNIFORM: Rust-specific tests // RUN: %baredafny run --target=rs "%s" --enforce-determinism > "%t" // RUN: %diff "%s.expect" "%t" // RUN: %baredafny run --target=rs --raw-pointers --enforce-determinism "%s" > "%t" // RUN: %diff "%s.expect" "%t" datatype D = D(value: int) class Y { var c: int ghost ...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/rust/constants.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
299
8f7ebe511a0c98f1e490e41c2465149186fec200f32163ef3c62e981fa75dac8
// NONUNIFORM: Tests that references to function constants are eta-expanded with an additional call and type annotations in Rust backend // RUN: %baredafny run --target=rs --enforce-determinism "%s" > "%t" // RUN: %diff "%s.expect" "%t" const f: int -> int := x => x const g: int -> int := f
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/rust/continue.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
1,158
74d5a6f6fda22c82619d78738a9fd6bc93877035aa191a2f826c7321132831fd
// NONUNIFORM: Rust-specific tests // RUN: %baredafny run --target=rs --enforce-determinism "%s" > "%t" // RUN: %diff "%s.expect" "%t" // RUN: %baredafny run --target=rs --raw-pointers --enforce-determinism "%s" > "%t" // RUN: %diff "%s.expect" "%t" method Main() { var valuesArray := new int[8](i => i); va...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/rust/conversions.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
1,104
fe5b3e883d19b169d9dd19bbde9dc51810d678a4486ef2be2ff03060cd8a93c1
// NONUNIFORM: Rust-specific tests // RUN: %baredafny run --target=rs --enforce-determinism --type-system-refresh "%s" > "%t" // RUN: %diff "%s.expect" "%t" // RUN: %baredafny run --target=rs --enforce-determinism "%s" > "%t" // RUN: %diff "%s.expect" "%t" newtype Uint8 = x: int | 0 <= x < 256 datatype Option...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/rust/datatypes-impl.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
348
d28d19f6bc04d9e7b9aadb9f85346a40d5cec3006cbff9d299ef73161489d619
// NONUNIFORM: Tests generation of print, and equality in Rust for function / non-(==) type members // RUN: %baredafny run --target=rs --enforce-determinism "%s" > "%t" // RUN: %diff "%s.expect" "%t" datatype F = F(i: nat, f: int -> int) datatype X<A> = X(x: A) method Main() { print X(3) == X(3), "\n", ...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/rust/datatypes-scoping.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
544
303bbbf144a16b15d65d804280bb4b307a74e49a426ba55222c848b5461ddfe5
// NONUNIFORM: Tests that datatype members like hash do not shadow those generated by Rust backend // RUN: %baredafny run --target=rs --enforce-determinism "%s" > "%t" // RUN: %diff "%s.expect" "%t" datatype Loop = Loop(loop: Loop) | Point() { function hash(): string { "This is Dafny Hash" } } datat...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/rust/datatypes.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
5,254
53dde0000612f8488c2448b66d1ba1c6b7a2da808d0e7c48bb2790b82e8f39ed
// NONUNIFORM: Demonstration of the use of the external Rust Option<> type // RUN: %baredafny run --target=rs --enforce-determinism "%s" > "%t" // RUN: %diff "%s.expect" "%t" // RUN: %baredafny run --target=rs --enforce-determinism --raw-pointers "%s" > "%t" // RUN: %diff "%s.expect" "%t" module {:compile false}...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/rust/docstring.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
1,570
e22f74889382f447399a109e70db318a5549c363bdba51569d8a4f5b76388795
// NONUNIFORM: Test that the Rust generated code contains docstrings // RUN: %baredafny build --target:rs --enforce-determinism "%s" > "%t" // RUN: %OutputCheck --file-to-check "%S/docstring-rust/src/docstring.rs" "%S/docstring.check" // RUN: "%S/docstring-rust/cargo" test --doc /** Docstring for test method *...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/rust/elephant.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
779
fa3c2480cc8be25a47213f2d3a53abd592442212a81bd866a667cf26a55204b4
// NONUNIFORM: Tests generation of elephant assignment to shadowed variable // RUN: %baredafny run --target=rs --enforce-determinism "%s" > "%t" // RUN: %diff "%s.expect" "%t" datatype Option = Some(value: string) | None() { function IsFailure(): bool { None? } function PropagateFailure(): Option requir...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/rust/externalclasses-errors.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
651
4257eb3c8529b59eba14e5a1fc433b0cdb54ab31c5fc65b205e3437bc37052e5
// NONUNIFORM: Rust-specific tests // RUN: %exits-with 3 %baredafny run --target=rs --enforce-determinism --input "%S/externalclasses.rs" "%s" > "%t" // RUN: %diff "%s.expect" "%t" module {:extern} ExternalClassContainer { method {:extern} Test() returns (i: int) trait GetValueHolder { function GetValue...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/rust/externalclasses.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
3,635
11edf2e1d1d364572ebe3b8067cf165b0eda236d976a64cf35c9b6c4d51e80d1
// NONUNIFORM: Rust-specific tests. Extern abstract types only compile with the Rust compiler for now. // RUN: %baredafny run --target=rs --general-traits=legacy --enforce-determinism --input "%S/externalclasses.rs" "%s" > "%t" // RUN: %diff "%s.expect" "%t" module {:extern "External.Class.Container"} ExternalClas...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/rust/git-issue-6357.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
320
71daac359c722ca94f2f25bd236ea9cac22055b21ae688348a07bd2bcf4f5e1d
// NONUNIFORM: Rust-specific test for nested set comprehensions type inference // RUN: %baredafny run --target=rs --enforce-determinism "%s" > "%t" // RUN: %diff "%s.expect" "%t" const SomeMaps := {map["a" := "b"]} const OhNo := set x <- (set m <- SomeMaps :: m) :: x method Main() { print OhNo, "\n"; }
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/rust/lambda.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
650
aa3ad90935b980862803cf5d1c0efffd8e4342395d7e48926e8d0461a09b1b76
// NONUNIFORM: Rust-specific tests // RUN: %baredafny run --target=rs --enforce-determinism "%s" > "%t" // RUN: %diff "%s.expect" "%t" newtype uint8 = x: int | 0 <= x < 256 predicate F(f: bool -> bool) { f(false) } predicate p(b: bool) { !b } predicate Fn<T>(f: (T, T) -> bool, a: T) { f(a, a) } predic...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/rust/loops.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
2,922
d687aa67a30fff3bfba2b71b54725a435f487b07884957860a532b27eaa571e0
// NONUNIFORM: Rust-specific tests // RUN: %baredafny run --target=rs --enforce-determinism "%s" > "%t" // RUN: %diff "%s.expect" "%t" newtype u8 = x: int | 0 <= x < 10 method ToSet<T>(s: seq<T>) returns (r: set<T>) { if |s| == 0 { return {}; } return {s[0]}; } newtype U8 = x: int | 0 <= x <= ...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/rust/mapsubsets.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
1,544
f9f5f24b65611468ba62ff429e7be6477f1bd80ae07bce6cc89ce3ef7c561ae4
// NONUNIFORM: Rust-specific tests // RUN: %baredafny run --target=rs --enforce-determinism --unicode-char=false --type-system-refresh=false --general-newtypes=false "%s" > "%t" // RUN: %diff "%s.expect" "%t" function Map<T, U>(m: map<T, U>): map<T, U> { m } datatype Test_ = Test(i: int) { ghost const Va...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/rust/methods.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
6,123
4e383c3a532a0baa7be3ae7582fd61cd1d0e01e2e2425c59a97a6e70f2a99eea
// NONUNIFORM: Rust-specific tests // RUN: %baredafny run --target=rs --enforce-determinism "%s" > "%t" // RUN: %diff "%s.expect" "%t" newtype NativeNotZero = x: int | 1 <= x < 255 witness 1 // k0 is initialized using var_init!<T> // A tracker starts before the second if to determine if k needs to be cleaned u...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/rust/moduleordering.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
720
3402872bc5976effb3a1ae20ed5ea07caed3676ca10940953c908859345ea762
// NONUNIFORM: Test of the Rust compiler to ensure it emits modules in a deterministic order. // RUN: %baredafny translate rs --enforce-determinism "%s" > "%t" // RUN: %OutputCheck --file-to-check "%S/moduleordering-rust/src/moduleordering.rs" "%s" // CHECK-L: pub mod A { // CHECK-L: pub mod B { // CHECK-L: pub mo...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/rust/nestedmodules.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
800
92e9b09bd1d95345bfa458c2ce156813a63cfa9599a00cba23d565531fbc4d52
// NONUNIFORM: Rust-specific tests // RUN: %baredafny run --target=rs --enforce-determinism "%s" > "%t" // RUN: %diff "%s.expect" "%t" // Checks that, despite module B being prefixed with A, there will be a "mod B" somewhere // and not an encoding like "mod A_B". // This module will automatically be in mod A and r...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/rust/newtype-set-comp.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
493
ce9a1c80f48f27e96072bd27196f9719da5264980260cd8ec449470e4918b5c5
// NONUNIFORM: Testing explicit newtype conversion of bounded ranges in Rust backend // RUN: %baredafny run --target=rs --enforce-determinism "%s" > "%t" // RUN: %diff "%s.expect" "%t" newtype uint8 = x: int | 0 <= x < 0x100 newtype uint16 = x: int | 0 <= x < 0x10000 function UInt16ToSeq(x: uint16): seq<uint8...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/rust/newtypes.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
6,483
be287cd3ba1845a55e60a786a970cddd1f561d8a3a2948dd46afd4285e0371b7
// NONUNIFORM: Test of Rust's ability to support newtypes // RUN: %baredafny run -t:rs --enforce-determinism "%s" // RUN: %baredafny run -t:rs --unicode-char=false --enforce-determinism "%s" /// %testDafnyForEachCompiler --refresh-exit-code=0 "%s" newtype int2 = x: int | -2 <= x < 2 newtype int16 = x: int | -327...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/rust/newtypesrefresh.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
1,218
ed3afcda58d0dc44fe2aae9453921256aa2b521c3bb57c3ee8f3344c134107af
// NONUNIFORM: Test of Rust's ability to support newtypes // RUN: %baredafny run -t:rs --type-system-refresh --general-newtypes --enforce-determinism "%s" newtype BoolWrapper = bool { const n: int := if this then 1 else 0 static function True(): BoolWrapper { true as BoolWrapper } function Or(other...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/rust/nomaybeplacebos.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
360
14acddb656073973d253d4c4de4978c781b446682a96560265cad888c83cb020
// NONUNIFORM: Test of the output of the Rust translation // RUN: %baredafny translate rs --enforce-determinism "%s" > "%t" // RUN: %OutputCheck --file-to-check "%S/nomaybeplacebos-rust/src/nomaybeplacebos.rs" "%S/nomaybeplacebos.check" method Test(i: int) returns (j: int) { j := i; } method Main() { v...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/rust/operators.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
9,556
7b388695aafcff189ddad1e90f1d2f2531b4a0ef0f3fa3daeef949848bff5bca
// NONUNIFORM: Rust-specific tests // RUN: %baredafny run --target=rs --enforce-determinism "%s" > "%t" // RUN: %diff "%s.expect" "%t" ghost const TWO_TO_THE_8: int := 0x100 ghost const TWO_TO_THE_16: int := 0x10000 ghost const TWO_TO_THE_32: int := 0x1_00000000 ghost const TWO_TO_THE_64: int := 0x1_00000000...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/rust/reserved-names.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
481
a3eb2ccfbbc0ec32e6892c7de982b81c8f8bc367e518233b00919082e4f6f748
// NONUNIFORM: Tests output of Rust translation from input Dafny that uses Rust reserved names // RUN: %baredafny run --target=rs --enforce-determinism "%s" > "%t" // RUN: %diff "%s.expect" "%t" datatype X = | X(fn: int, self: int, Self: int) | None(None: int) | H(hash: int) method Main() { var f := X(0,...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/rust/shadowing.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
764
21c965d379de65ab2b2d3441eda127e1e903d6b4c99df7e9a0157f1d3c3dab30
// NONUNIFORM: Tests generation of shadowed variables // RUN: %baredafny run --target=rs --enforce-determinism "%s" > "%t" // RUN: %diff "%s.expect" "%t" method TwoVars() returns (ret: int) ensures ret == 1 { { var ret := true; return if ret then 1 else 0; } } datatype Option<T> = None | Some...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/rust/strings.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
755
109659b6f12fffc2c73c766d623bc8d34ca7e5f09a7090106c663a78c9c49c57
// NONUNIFORM: Test of the output of the Rust translation // RUN: %baredafny run --target=rs --enforce-determinism --unicode-char=true "%s" > "%t" // RUN: %diff "%s.expect" "%t" // RUN: %OutputCheck --file-to-check "%S/strings-rust/src/strings.rs" "%S/strings-unicode.check" // RUN: %baredafny run --target=rs --enfo...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/rust/subsetconstraints.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
1,749
541f73c1a9097148ce8625ebe8c2fd88107893a80ba1fe0d893116b7a6993627
// NONUNIFORM: Rust-specific tests // RUN: %baredafny run --target=rs --enforce-determinism "%s" > "%t" // RUN: %diff "%s.expect" "%t" // RUN: %OutputCheck --file-to-check "%S/subsetconstraints-rust/src/subsetconstraints.rs" "%S/subsetconstraints.check" newtype uint8 = x: int | 0 <= x < 256 type ValidSeqUint8 ...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/rust/tests.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
623
2f71809325031c9057309645f8de580d2045c526c2f43daedaea4bcf890fe9aa
// NONUNIFORM: Test of the Dafny-to-Rust tests // RUN: %baredafny test --target=rs --enforce-determinism "%s" > "%t" // RUN: %diff "%s.expect" "%t" // RUN: %baredafny build --compile-suffix --target=rs --enforce-determinism "%s" > "%t" // RUN: "%S/tests-rust/cargo" run -- Hello > "%t" // RUN: %diff "%s.main.expect...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/rust/traits-datatypes.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
5,206
63e01b8181472ffef97d83bf679446bc3206a0fc1f7ccdc4dac206d9bcf49dfc
// NONUNIFORM: Rust-specific tests // RUN: %baredafny run --target=rs --enforce-determinism --type-system-refresh --general-traits=datatype "%s" > "%t" // RUN: %diff "%s.expect" "%t" trait SuperTrait { function GetBool(): bool } trait SuperSubTrait extends SuperTrait { const DecideOtherwise := !GetBool() } ...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/rust/traits.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
6,578
2684de48626b0cfa3d3268c43db1c7befa51a36e380dd7248a9fa6f23304d25c
// NONUNIFORM: Rust-specific tests // RUN: %baredafny run --target=rs --enforce-determinism --general-traits=legacy "%s" > "%t" // RUN: %diff "%s.expect" "%t" module InterfaceHolder { trait {:termination false} Interface { method PutCacheEntry'() } } module InterfaceWrapper { import InterfaceHold...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/rust/type-test.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
530
7238ac09447a4a1ac309c21c6683454b5be3ab1f7dfd598478ce331835adacb2
// NONUNIFORM: Tests that type tests work in the Rust backend // RUN: %baredafny run --target=rs --general-traits=legacy --enforce-determinism "%s" > "%t" // RUN: %diff "%s.expect" "%t" // RUN: %baredafny run --target=rs --general-traits=legacy --enforce-determinism --raw-pointers "%s" > "%t" // RUN: %diff "%s.expe...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/separate-compilation/usesTimesTwo-oldDafnyCompatability.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
1,175
140d4d20abcd77d35a5482dbcf7b88c54da821d017628e85ea15db292f66cbdc
// NONUNIFORM: Highly target language specific // Alternate version of usesTimesTwo.dfy as a regression test for https://github.com/dafny-lang/dafny/issues/5555. // Relies on having checked in the compilation of the library using Dafny 4.2. // Java // RUN: %baredafny translate java --output=%S/Inputs/producer...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/separate-compilation/usesTimesTwo.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
3,263
62fc61962f12d11210d3e856828b7de672058e96e079061b3bc0bc549ca94e5e
// NONUNIFORM: Highly target language specific // C# // RUN: %baredafny translate cs %args --output=%S/Inputs/producer/timesTwo %S/Inputs/producer/timesTwo.dfy --outer-module TestProducer.DafnyInternal // RUN: dotnet build %S/Inputs/producer // RUN: %baredafny translate cs %args --output=%S/consumer/usesTimes...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/Libraries/Inputs/directLibrary.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
218
87942d1c88bc8e76b4a79ba03d6b127cd45fa0f5d857e4817244dd6c51663414
include "indirectLibrary.dfy" module GloballyUniqueProducer { module ExportingModule { import A = AnotherGloballyUniqueProducer.ExportingModule const exportedVariable := A.exportedVariable + 1 } }
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/Libraries/Inputs/indirectLibrary.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
107
cd1949a5b93a1d69b9d562d5e7f3c328b2f0520e8e9fe79655ed63ec8e25f378
module AnotherGloballyUniqueProducer { module ExportingModule { const exportedVariable := 1 } }
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/Libraries/Inputs/secondLibrary.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
141
cc52530586d4967344203009aa63aabe1bae063a47987cfa77a8a571d436d23c
include "indirectLibrary.dfy" module SecondGloballyUniqueProducer { module ExportingModule { const exportedVariable := 1 } }
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/replaceables/complex/user.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
906
211ea116b6e8bffb8f83fee906a1f73fede7e34f81603b71e945fcaa9454410d
// RUN: %build --target=lib --output=%S/Build1/build %S/Inputs/wrappers.dfy %S/Inputs/random.dfy > "%t" // RUN: %build --target=cs --output=%S/Build1/build %S/Build1/build.doo %S/Inputs/randomCSharp.dfy %S/Inputs/Interop.cs >> "%t" // RUN: %run %s --input %S/Build1/build.dll --target=cs --build=%S/Build2 --library=%...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/replaceables/complex/Inputs/random.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
115
8fb717ce8eab5fe172f668a41604d4bb3ffd5abcb529a0e88ae862733f0feabf
replaceable module DfyRandom { method GetRandomNat(ceiling: nat) returns (r: nat) ensures r < ceiling }
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/replaceables/complex/Inputs/randomCSharp.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
1,431
6ef582970774112f0f904ec9e3a7720f5de4c1fb5adbaf020244cdda97117444
module RandomCSharp replaces DfyRandom { import opened CSharpSystem import opened Interop method GetRandomNat ... { var random := new Random(); var ceilingInt32opt := IntToInt32(ceiling); var ceilingInt32 := ceilingInt32opt.GetOr(Int32.MaxValue); Int32.MaxValueValue(); ...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/replaceables/complex/Inputs/randomJava.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
1,796
b6fe676e88211696b2fd248c60bccb1ec347fa00c9c07752ad4c2c2177888fef
module RandomJava replaces DfyRandom { import opened Interop import opened JavaLang import opened JavaRest method GetRandomNat ... { var random := new JavaRandom(); var ceilingInt32opt := IntToInt32(ceiling); var baseIntMaxValue := IntegerMaxValue(); var ceilingInt32 := ceili...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/replaceables/complex/Inputs/wrappers.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
5,945
de00e40ce502c9b870b1e4b82d18f31dd5b22de7a3db060a2bf3f12e90040f6b
/******************************************************************************* * Copyright by the contributors to the Dafny Project * SPDX-License-Identifier: MIT *******************************************************************************/ /** This module provides various kinds of failure-compatible d...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/rust/arc/tokiouser.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
1,104
a0fe6b963d013a1563e7422dd6c8c42c6ad4e516d174803bcc35e4ef6a5b7840
// NONUNIFORM: Rust-specific tests // RUN: %baredafny translate rs --enforce-determinism --rust-module-name=tokiouser --include-runtime=true --rust-sync --type-system-refresh=false --general-newtypes=false --general-traits=legacy "%s" > "%t" // RUN: "%S/tokiouser-rust/cargo" run >> "%t" // RUN: %diff "%s.expect" "%t...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/rust/small/01-hash.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
496
a3d176034b0ffcb71b4b70b545c62f505d4d63f864efba42e5191bdbac063671
// NONUNIFORM: Rust-specific tests // RUN: %baredafny run --target=rs --enforce-determinism --type-system-refresh --general-traits=full "%s" > "%t" // RUN: %diff "%s.expect" "%t" trait Super<T> { function Compare(a: T, b: T): bool } trait Sub<T(==)> extends Super<T> { function Compare(a: T, b: T): bool {...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/rust/small/02-binary.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
477
370a96ed6db570ebca7dddedcd3efc3ca00c0ceef1891452eba9c77db8ec579a
// NONUNIFORM: Rust-specific tests // RUN: %baredafny run --target=rs --enforce-determinism --type-system-refresh --general-traits=full "%s" > "%t" // RUN: %diff "%s.expect" "%t" trait Super<T> { function Get(): T } datatype KeysValue<K(==),V> extends Super<V> = KeysValue(keys: set<K>, value: V) { functi...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/rust/small/03-methodnamed.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
818
ffd8ad8d23c99fcefbe763590f7b759bd27c5793e068f4f47b3bb7ab683ce0cd
// NONUNIFORM: Rust-specific tests // RUN: %baredafny run --target=rs --enforce-determinism --type-system-refresh --general-traits=full "%s" > "%t" // RUN: %diff "%s.expect" "%t" trait Super<!K,D> { function get(d:D,ks:K):(r:int) } datatype ZeroComputation = ZeroComputation { function top(): int { 0 } }...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/rust/small/04-mismatched.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
578
1ae12ba6255a5d9fad9b28f48f608f560d15d18fcf9db298fcf608310b20975f
// NONUNIFORM: Rust-specific tests // RUN: %baredafny run --target=rs --enforce-determinism --type-system-refresh --general-traits=full "%s" > "%t" // RUN: %diff "%s.expect" "%t" trait Super { function AsSuper(): Super function GetInt(): int function GetDoubleInt(): int { GetInt() * 2 } } ...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/rust/small/05-coerce.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
724
8bf9ed26caa0e2e53f76706ef867888eeec86d96f6dcff828f2fcaaa2323ad06
// NONUNIFORM: Rust-specific tests // RUN: %baredafny run --target=rs --enforce-determinism --type-system-refresh --general-traits=full "%s" > "%t" // RUN: %diff "%s.expect" "%t" trait Q<K(==)> { function put():(r:OM<K>) } datatype Getter = Getter { function get():(r:Single) { Single } } ...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/rust/small/06-type-bounds.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
1,233
b19a683fb555b268f8f97abd7e80dc188446c1f9d328b2dd98764d1723a8fe6f
// NONUNIFORM: Rust-specific tests // RUN: %baredafny run --target=rs --enforce-determinism --type-system-refresh --general-traits=datatype --general-newtypes "%s" > "%t" // RUN: %diff "%s.expect" "%t" trait SuperTrait { function toString(): string } trait SubSuperTrait extends SuperTrait { } method Pri...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/rust/small/07-instantiated-methods.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
552
06085a46790cb4eaa597553fffd2bd1fd3b8d0c9ef1e5d50f3ce8f91a6a9baf3
// NONUNIFORM: Rust-specific tests // RUN: %baredafny run --target=rs --enforce-determinism --type-system-refresh --general-traits=full "%s" > "%t" // RUN: %diff "%s.expect" "%t" // UNSUPPORTED: windows trait Super<T> { function Compare(a: T, b: T, c: bool): bool decreases a } datatype BoolOps extends...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/rust/small/08-not-all-trait-items-implemented.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
1,190
534810d092a01f5a1ad866acaf619cf530cc4c105788655a752a05eacd120e2e
// NONUNIFORM: Rust-specific tests // RUN: %baredafny run --target=rs --enforce-determinism --type-system-refresh --general-traits=full "%s" > "%t" // RUN: %diff "%s.expect" "%t" // UNSUPPORTED: windows trait Reversible { function reverse():(r:Reversible) } trait SubReversible extends Reversible { fun...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/rust/small/09-trait-method.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
260
ae522210a539c8ec0a5264d963bd3b8ea014e122655823dd130d9afd5f1f71eb
// NONUNIFORM: Rust-specific tests // RUN: %baredafny run --target=rs --enforce-determinism --emit-uncompilable-code "%s" > "%t" datatype Super<K, V> = Super datatype Test<T, O> = Test { static const cloud := Super<T,O>.Super } method Main() { }
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/rust/small/10-type-parameter-equality.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
1,608
d7826a24ddd3fdb4d62e9b845d73179aa6558650842c80c851deeb056e14603e
// NONUNIFORM: Rust-specific tests // RUN: %baredafny run --target=rs --enforce-determinism --type-system-refresh --general-traits=full "%s" > "%t" // RUN: %diff "%s.expect" "%t" // UNSUPPORTED: windows datatype I_<T, U> = I_(t: T, u: U) type I<T, U> = x: I_<T, U> | true witness * datatype {:rust_rc false} ...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/rust/translate-additional/more_dafny.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
1,023
edd914c4d162cca67cc8acc07826071b5656ae09c05c54665f90d7ebd6559430
// RUN: %baredafny translate rs --enforce-determinism --rust-module-name additional_module "%S/more_dafny_extern.rs" "%s" // RUN: %exits-with -any %rm -f "%S/project_depending_on_dafny/src/additional_module.rs" // RUN: %exits-with -any %rm -f "%S/project_depending_on_dafny/src/more_dafny_extern.rs" // RUN: %mv "%S/m...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/separate-compilation/standard-libaries/user.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
799
56db99760a5503133ee367a27e6b3f6cc7b97f30ec000b986100818f06356695
// NONUNIFORM: Test is too complex for the uniform back-end testing mechanism // RUN: %build --target=lib "%S/Inputs/library.dfy" --standard-libraries=true --output %S/Outputs > %t // RUN: %run --standard-libraries=true %s --input "%S/Outputs.doo" >> %t // // Let's pretend we're vending a Dafny library outside of D...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/separate-compilation/translation-records/DuplicateModules.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
717
9210eaa355cb0bde43af024774d91ab0391d3621bf00f2a35605682c4ed3f3cb
// RUN: %baredafny translate cs %args %S/Inputs/Foo.dfy &> %t // RUN: %baredafny translate cs %args %S/Inputs/Bar.dfy &>> %t // Valid // RUN: %baredafny translate cs %args %S/Inputs/Foo.dfy --translation-record %S/Inputs/Bar-cs.dtr &>> %t // Invalid: Foo can't be previously translated and to translate now // R...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/separate-compilation/translation-records/InvalidFormat.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
260
6c05b56a94e897b66ffe74667133d5d3cdd431d8e970c9dce5cd327807ae5c78
// RUN: %exits-with 3 %baredafny translate cs %args %s --translation-record %S/NoGood.dtr &> %t // RUN: %exits-with 3 %baredafny translate cs %args %s --translation-record %S/WrongDafnyVersion.dtr &>> %t // RUN: %diff "%s.expect" "%t" method Main() { }
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/separate-compilation/Inputs/producer/timesTwo.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
821
abe8ed520a7a4fbda235eae21395ff65feb4dd0e1bf556bd50e734e94fe69280
module {:options "--function-syntax:4"} CoolLibraryName { // Ensuring this module is not empty, // or else it will be omitted from the translation record. const FOO := 42 module LibraryModule { function TimesTwo(x: nat): nat { x * 2 } datatype Result<+T, +E> = Success(valu...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/separate-compilation/standard-libaries/Inputs/library.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
156
8ae591673e4c1bc8ff4e92728dabb657316f508051ff80c41e9286e87ca41f57
module UsesWrappers { import opened Std.Wrappers function SafeDiv(a: int, b: int): Option<int> { if b == 0 then None else Some(a/b) } }
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/separate-compilation/translation-records/Inputs/Bar.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
47
7a180a2ff275a796a32f41388eb71d95cdbfaceeebd56f2dfb81fbf73de47e17
module Parent.Bar { const blah: nat := 42 }
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/separate-compilation/translation-records/Inputs/Foo.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
47
101cb0328fc46de1dbc396f24c730edbfe042d545c60e84111cb694e9cbc1de5
module Parent.Foo { const blah: nat := 42 }
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/contract-wrappers/Inputs/CheckExtern.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
1,796
95d5054bc24b38ac1ad20f232d52a34339cbf903f77da762e6f220b299f55f1d
method {:axiom} {:extern} Foo(x: int) returns (y: int) requires 1 < x < 10 ensures y >= 10 method FooCaller(x: int) returns (y: int) requires 1 < x < 10 ensures y >= 10 { y := Foo(x); } method {:test} FooTest() { var y := Foo(3); expect y == 30; } function {:axiom} {:extern} Bar(x: int...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/dafny0/Input/IncludesTuples.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
268
063a2865141db4d9f42bb1c7161d8f3686230889d99b4edf8b6fe5bc280407dd
// RUN: echo Input for Stdin.dfy // Note that the current directory for .NET tests is always the output directory // for the IntegrationTests project. // i.e. something like IntegrationTests/bin/Debug/net8.0 include "TestFiles/LitTests/LitTest/dafny0/Tuples.dfy"
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/dafny0/snapshots/Snapshots0.run.legacy.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
155
7895810c9ffa0688456dfacb530ed377969f74fdf3401725f5e53af6a1d9fbe6
// RUN: %exits-with 4 %dafny /compile:0 /deprecation:0 /verifySnapshots:2 /traceCaching:1 %S/Inputs/Snapshots0.dfy > "%t" // RUN: %diff "%s.expect" "%t"
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/dafny0/snapshots/Snapshots1.run.legacy.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
155
f537bceb824b01ffaf7701f3d3743417c2d5dee5f98d754ccebc34925b926e14
// RUN: %exits-with 4 %dafny /compile:0 /deprecation:0 /verifySnapshots:2 /traceCaching:1 %S/Inputs/Snapshots1.dfy > "%t" // RUN: %diff "%s.expect" "%t"
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/dafny0/snapshots/Snapshots2.run.legacy.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
155
807b4a398284443555386cfe1835c734594d36331a1cdccfcf591b6323f9bf21
// RUN: %exits-with 4 %dafny /compile:0 /deprecation:0 /verifySnapshots:2 /traceCaching:1 %S/Inputs/Snapshots2.dfy > "%t" // RUN: %diff "%s.expect" "%t"
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/dafny0/snapshots/Snapshots3.run.legacy.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
140
1b31f29d006176bc1dfc169876ec49b945dde0ef2ebcde76f276c327087c59ad
// RUN: %exits-with 4 %dafny /compile:0 /verifySnapshots:2 /traceCaching:1 %S/Inputs/Snapshots3.dfy > "%t" // RUN: %diff "%s.expect" "%t"
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/dafny0/snapshots/Snapshots4.run.legacy.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
140
aa644184733f891a8be71965b594a7ec0c64e0a1676cd0835e91bd5f8707be7e
// RUN: %exits-with 4 %dafny /compile:0 /verifySnapshots:2 /traceCaching:1 %S/Inputs/Snapshots4.dfy > "%t" // RUN: %diff "%s.expect" "%t"
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/dafny0/snapshots/Snapshots5.run.legacy.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
141
bb79650d4940e3750370c9b565854a77316b70a3779f189fa6570527c792f5af
// RUN: %dafny /compile:0 /deprecation:0 /verifySnapshots:2 /traceCaching:1 %S/Inputs/Snapshots5.dfy > "%t" // RUN: %diff "%s.expect" "%t"
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/dafny0/snapshots/Snapshots6.run.legacy.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
176
2a09ab012276c6f6a24776b360b93ee3b437010b2d8efda451c90ffe7f800a8a
// RUN: %dafny /compile:0 /verifySnapshots:2 /traceCaching:1 %S/Inputs/Snapshots6.dfy > "%t" // RUN: %diff "%s.expect" "%t" // XFAIL: * // FIXME : Need to fix the snapshot
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/dafny0/snapshots/Snapshots7.run.legacy.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
184
9107bf001b04840e355f4f6e0ea291dee4fbb138467f69ccf08464f72a8f1753
// RUN: %dafny /compile:0 /verifySnapshots:2 /traceCaching:1 %S/Inputs/Snapshots7.dfy > "%t" // RUN: %diff "%s.expect" "%t" // XFAIL: * // FIXME - need to regenerate the snapshots
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/dafny0/snapshots/Snapshots8.run.legacy.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
142
7f1f596d2021b5872d11f457b3f1dc2049ad9f2c1bdf02bedb516782bd30a5f8
// RUN: %exits-with 4 %dafny /compile:0 /verifySnapshots:3 /traceCaching:1 %S/Inputs/Snapshots8.dfy > "%t" // RUN: %diff "%s.expect" "%t"
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/dafny0/snapshots/Snapshots9.run.legacy.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
140
00d26945c943c771afd40973ea211f7daa9c2309e79479bf2709e04b53f6ff4f
// RUN: %exits-with 4 %dafny /compile:0 /verifySnapshots:3 /traceCaching:1 %S/Inputs/Snapshots9.dfy > "%t" // RUN: %diff "%s.expect" "%t"
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/dafny0/snapshots/Inputs/Snapshots0.v0.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
81
4ebe44025735f09b91e9ab93b30ebb5d2445b95496ead5bcb67a1e3610bb636a
method foo() { bar(); assert false; } method bar() ensures false;
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/dafny0/snapshots/Inputs/Snapshots0.v1.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
90
e00d7c2a1c7ea8ce46f3c242dc7cc394dedde1b1865d07800fd2fb5bb6d2e532
method foo() { bar(); assert false; // error } method bar() ensures true;
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/dafny0/snapshots/Inputs/Snapshots1.v0.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
105
123e7a550deaff78ef84883ead92ef094eaee57ae6b07d5aae5390116788e833
method M() { N(); assert false; } method N() ensures P(); predicate P() { false }
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/dafny0/snapshots/Inputs/Snapshots1.v1.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
114
e9b50a9f776822e7ffaf709f72ee58b0b2969f789165eea96c45bf7dc68ade1d
method M() { N(); assert false; // error } method N() ensures P(); predicate P() { true }
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/dafny0/snapshots/Inputs/Snapshots2.v0.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
185
00bda9f2943e71dc19f38ee4f6af3e75ba65207146f58fd801b5e9ffda92278a
method M() { N(); assert false; } method N() ensures P(); predicate P() ensures P() == Q(); predicate Q() ensures Q() == R(); predicate R() { false }
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/dafny0/snapshots/Inputs/Snapshots2.v1.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
194
dfe4b9f181bdd376b271ef14f2692d9ecb79d37e7f72fe17781b830b78e8d480
method M() { N(); assert false; // error } method N() ensures P(); predicate P() ensures P() == Q(); predicate Q() ensures Q() == R(); predicate R() { true }
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/dafny0/snapshots/Inputs/Snapshots3.v0.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
88
70f3425fb8e66fa8db311691dafcfed5e2b3840d9290d33271a3a503fc7cdae7
method M() { if (*) { } else { assert 0 != 0; // error } }
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/dafny0/snapshots/Inputs/Snapshots3.v1.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
104
ed50f0ac5aebe99bf66bf199b1e4c8e5171b2a642102a20c50f3cd25557c4415
method M() { if (*) { assert true; } else { assert 0 != 0; // error } }
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/dafny0/snapshots/Inputs/Snapshots4.v0.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
78
c0f251ee3e47765e009caa2469605cc261125d58e2d03b013e4da65b68984fa3
method M() { if (*) { } else { assert 0 == 0; } }
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/dafny0/snapshots/Inputs/Snapshots4.v1.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
136
fbb97332966c6c9907e872404e05442193762aa46f40a374792478c9588c7186
method M() { if (*) { assert 1 != 1; // error } else { assert 0 == 0; assert 2 != 2; // error } }
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/dafny0/snapshots/Inputs/Snapshots5.v0.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
331
e2d6a9825a5a0eb01a224774d1ca372dfb124132626fc73c3c0bde36090c42c7
method M() { N(); if (*) { } else { assert (forall b: bool :: b || !b) || 0 != 0; } N(); assert (forall b: bool :: b || !b) || 3 != 3; if (*) { } else { assert (forall b: bool :: b || !b) || 1 != 1; } } method N() ensures (forall b: bool :: b || !b) |...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/dafny0/snapshots/Inputs/Snapshots5.v1.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
374
45595537a8b33bc4f1d48cf224a748b7e2d0c81dbc296eafabe36aec594305dc
method M() { N(); if (*) { } else { assert (forall b: bool :: b || !b) || 0 != 0; } N(); assert (forall b: bool :: b || !b) || 3 != 3; if (*) { } else { assert (exists b: bool :: true) || 4 != 4; } assert (exists b: bool :: true) || 5 != 5; } method N...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/dafny0/snapshots/Inputs/Snapshots6.v0.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
209
62f5f18618e34030674a4e986c6adc331e44a7d86c0319fabe22989e22759c25
module M0 { class C { method Foo() { assume false; } } } module M1 refines M0 { class C { method Foo() { ...; assert false; } } }
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/dafny0/snapshots/Inputs/Snapshots6.v1.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
208
6e4b10951b24d91b806a4334dfe2375267605468b3ac58029c5ca784093ac9c3
module M0 { class C { method Foo() { assume true; } } } module M1 refines M0 { class C { method Foo() { ...; assert false; } } }
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/dafny0/snapshots/Inputs/Snapshots7.v0.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
200
c149f97a44803837c13431c5343b2804e2e2f422780250ba0fa68ca4fb994657
module M0 { class C { method Foo() requires false; { } } } module M1 refines M0 { class C { method Foo... { assert false; } } }
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/dafny0/snapshots/Inputs/Snapshots7.v1.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
199
a4342f9362619a8926b978857c2b964bfc83762a845ba7ccdf5b816363a24666
module M0 { class C { method Foo() requires true; { } } } module M1 refines M0 { class C { method Foo... { assert false; } } }
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/dafny0/snapshots/Inputs/Snapshots8.v0.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
536
444294221cfdabf280c0f0cfacf26ae031974bcf8838426a15c681b642a36b9c
method M(x: int) { assert x < 20 || 10 <= x; // always true assert x < 10; // error Other(x); // error: precondition violation } method Other(y: int) requires 0 <= y { } method Posty() returns (z: int) ensures 2 <= z // error: postcondition violation { var t := 20; i...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/dafny0/snapshots/Inputs/Snapshots8.v1.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
668
ec7607062840c2799ced36450ba4ec0fe808a7818c6a9359d70ce56d3b35d064
method M(x: int) { assert x < 20 || 10 <= x; // always true assert x < 10; // error Other(x); // error: precondition violation assert x == 7; // error: this is a new error in v1 } method Other(y: int) requires 0 <= y { } method Posty() returns (z: int)...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/dafny0/snapshots/Inputs/Snapshots9.v0.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
324
9f6eda996d36c9487b9a4a967921d15ca1567ad6d63c0455126ac36184050f06
method M() returns (ok: bool) ensures ok // related location here { if * { // error: postcondition failure on this return path ok := false; } else { ok := true; } } method P() returns (ok: bool) ensures ok // related location here { // error: postcondition failure on this return path ...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/dafny0/snapshots/Inputs/Snapshots9.v1.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
340
2fb9ae01970318360814d29229da9ef55aa47b1d57898d45caefa5316f4b4813
method M() returns (ok: bool) ensures ok // related location here { if * { // error: postcondition failure on this return path ok := false; } else { ok := true; } } method P() returns (ok: bool) ensures ok // related location here { // error: postcondition failure on t...