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/DafnyStandardLibraries/src/Std/Unicode/UnicodeStrings.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
1,940
0108a7d24bbf9b1ed42124305cc0ae6077c0c69c1110ba2433ef6e08beb64bf2
/******************************************************************************* * Copyright by the contributors to the Dafny Project * SPDX-License-Identifier: MIT *******************************************************************************/ /** * This abstract module is an interface for converting ...
dafny-lang/dafny
Source/DafnyStandardLibraries/src/Std/Unicode/UnicodeStringsWithUnicodeChar.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
3,266
eb342cfd7ab117293df8ce15dc51328a06fd07c3bc491c19af601a74cdca2f39
/******************************************************************************* * Copyright by the contributors to the Dafny Project * SPDX-License-Identifier: MIT *******************************************************************************/ /** * A concrete implementation of `AbstractUnicodeStrings` ...
dafny-lang/dafny
Source/DafnyStandardLibraries/src/Std/Unicode/Utf16EncodingForm.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
4,880
ce4595d9e29e107f5f84e2a3a2ff62adc3473458e489500199715cfca0ea4d17
/******************************************************************************* * Copyright by the contributors to the Dafny Project * SPDX-License-Identifier: MIT *******************************************************************************/ // Definition of the UTF-16 Unicode Encoding Form, as specified...
dafny-lang/dafny
Source/DafnyStandardLibraries/src/Std/Unicode/Utf8EncodingForm.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
9,520
7c63841a4a9f3364f3c58b18334d3a580551f8ae1290e1bf9550732be03bffdc
/******************************************************************************* * Copyright by the contributors to the Dafny Project * SPDX-License-Identifier: MIT *******************************************************************************/ /** * The Unicode encoding form that assigns each Unicode sc...
dafny-lang/dafny
Source/DafnyStandardLibraries/src/Std/Unicode/Utf8EncodingScheme.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
2,632
284213040aa551605c57899f69a5675e2cd75ebeccd50209136c763b165f49e7
/******************************************************************************* * Copyright by the contributors to the Dafny Project * SPDX-License-Identifier: MIT *******************************************************************************/ /** * The Unicode encoding scheme that serializes a UTF-8 co...
dafny-lang/dafny
Source/DafnyStandardLibraries/src/Std/Arithmetic/Internal/DivInternals.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
7,691
4ddb3d18368b58977fc2badf8274b887f0d576b4506df6acaadbfe1772dc3195
/******************************************************************************* * Original: Copyright (c) Microsoft Corporation * SPDX-License-Identifier: MIT * * Modifications and Extensions: Copyright by the contributors to the Dafny Project * SPDX-License-Identifier: MIT *************************...
dafny-lang/dafny
Source/DafnyStandardLibraries/src/Std/Arithmetic/Internal/DivInternalsNonlinear.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
1,299
622ba74c7176a6836937837f08ca02ad4ee8cdeef31e0dda4d8364baf2125f8c
/******************************************************************************* * Original: Copyright (c) Microsoft Corporation * SPDX-License-Identifier: MIT * * Modifications and Extensions: Copyright by the contributors to the Dafny Project * SPDX-License-Identifier: MIT *************************...
dafny-lang/dafny
Source/DafnyStandardLibraries/src/Std/Arithmetic/Internal/GeneralInternals.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
1,195
45979385b8a5c5a5792765e3f29105527ee218e540c0c46e1f186427c51de466
/******************************************************************************* * Original: Copyright (c) Microsoft Corporation * SPDX-License-Identifier: MIT * * Modifications and Extensions: Copyright by the contributors to the Dafny Project * SPDX-License-Identifier: MIT *************************...
dafny-lang/dafny
Source/DafnyStandardLibraries/src/Std/Arithmetic/Internal/ModInternals.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
13,568
68b80417e28364e18e6782d64486a2f310b4b917730e6839c94f1bbddd701fc4
/******************************************************************************* * Original: Copyright (c) Microsoft Corporation * SPDX-License-Identifier: MIT * * Modifications and Extensions: Copyright by the contributors to the Dafny Project * SPDX-License-Identifier: MIT *************************...
dafny-lang/dafny
Source/DafnyStandardLibraries/src/Std/Arithmetic/Internal/ModInternalsNonlinear.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
1,446
783beb1b44e0c09978d2d770cfa0f291002afe28acb55f72738bccb4680c908b
/******************************************************************************* * Original: Copyright (c) Microsoft Corporation * SPDX-License-Identifier: MIT * * Modifications and Extensions: Copyright by the contributors to the Dafny Project * SPDX-License-Identifier: MIT *************************...
dafny-lang/dafny
Source/DafnyStandardLibraries/src/Std/Arithmetic/Internal/MulInternals.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
5,381
b2b639db23baa00ffa17f8a11e91b8932142bdd57108b3404dbfb12b2aef36d3
/******************************************************************************* * Original: Copyright (c) Microsoft Corporation * SPDX-License-Identifier: MIT * * Modifications and Extensions: Copyright by the contributors to the Dafny Project * SPDX-License-Identifier: MIT *************************...
dafny-lang/dafny
Source/DafnyStandardLibraries/src/Std/Arithmetic/Internal/MulInternalsNonlinear.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
1,659
50c77c352a8a3f862676112ca86bcac080f4bfefde428ba02a9cf415be9afbb5
/******************************************************************************* * Original: Copyright (c) Microsoft Corporation * SPDX-License-Identifier: MIT * * Modifications and Extensions: Copyright by the contributors to the Dafny Project * SPDX-License-Identifier: MIT *************************...
dafny-lang/dafny
Source/DafnyStandardLibraries/src/Std/JSON/Utils/Cursors.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
10,462
b63edaf434a85c624c5cdb53c051dd299905b6113517cb46c5c46ae5563e3599
/******************************************************************************* * Copyright by the contributors to the Dafny Project * SPDX-License-Identifier: MIT *******************************************************************************/ /** Implements slices augmented with an inner pointer tracki...
dafny-lang/dafny
Source/DafnyStandardLibraries/src/Std/JSON/Utils/Lexers.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
1,933
a56ca55a8607a99973c4ee32a8461f2f6ba30ed08ddd8cfa95e534024eeb6e84
/******************************************************************************* * Copyright by the contributors to the Dafny Project * SPDX-License-Identifier: MIT *******************************************************************************/ /** Contains a state machine that recognizes quoted strings ...
dafny-lang/dafny
Source/DafnyStandardLibraries/src/Std/JSON/Utils/Parsers.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
2,619
561199ca59ef6f5cfb84a140c0f11f99a7baca9cf5cfc5aeb623c3764ee1c272
/******************************************************************************* * Copyright by the contributors to the Dafny Project * SPDX-License-Identifier: MIT *******************************************************************************/ /** Contains definitions of well-formedness for parsers (sta...
dafny-lang/dafny
Source/DafnyStandardLibraries/src/Std/JSON/Utils/Views.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
3,722
3c264e7f57e90f18fad88e2dc5de8e08ac570c52c5a1b4195882b79b45812dd3
/******************************************************************************* * Copyright by the contributors to the Dafny Project * SPDX-License-Identifier: MIT *******************************************************************************/ /** Implements byte strings whose bounds are representable a...
dafny-lang/dafny
Source/DafnyStandardLibraries/src/Std/JSON/Utils/Views.Writers.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
3,290
b0b43f7bdba6be0fb39397a7551fa37bd36ca0f8083e964fb7a4ecf5bbf17e87
/******************************************************************************* * Copyright by the contributors to the Dafny Project * SPDX-License-Identifier: MIT *******************************************************************************/ /** Implements slices (`Chain`s) over byte strings whose bou...
dafny-lang/dafny
Source/DafnyStandardLibraries/src/Std/JSON/ZeroCopy/API.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
1,924
3af68381f046e03ab9368e0caf321d12efd263e678374f9351052579640d0695
/******************************************************************************* * Copyright by the contributors to the Dafny Project * SPDX-License-Identifier: MIT *******************************************************************************/ /** The low-level (zero-copy) API of the JSON library. This ...
dafny-lang/dafny
Source/DafnyStandardLibraries/src/Std/JSON/ZeroCopy/Deserializer.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
44,277
abc79ebd07b45598f01de54ce7d9996fb8883711f78e65198df867ff56098eca
/******************************************************************************* * Copyright by the contributors to the Dafny Project * SPDX-License-Identifier: MIT *******************************************************************************/ /** Implements low-level (zero-copy) deserialization (utf-8 ...
dafny-lang/dafny
Source/DafnyStandardLibraries/src/Std/JSON/ZeroCopy/Serializer.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
29,113
083e57f18c5b615cac9d81451a13827d1bf8b0983ba584dac2345b338aa1adbc
/******************************************************************************* * Copyright by the contributors to the Dafny Project * SPDX-License-Identifier: MIT *******************************************************************************/ /** Implements low-level (zero-copy) serialization (JSON syn...
dafny-lang/dafny
Source/DafnyStandardLibraries/src/Std/Parsers/Core/Parsers.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
28,360
c6dd2952951fee8cbe4b17eaf67b60e0b19a360e71ef0608051bec44384cbe5f
/******************************************************************************* * Copyright by the contributors to the Dafny Project * SPDX-License-Identifier: MIT *******************************************************************************/ /** Definition of an parser's abstract input. It enforces...
dafny-lang/dafny
Source/DafnyStandardLibraries/src/Std/Parsers/Core/ParsersBuilders.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
26,072
d422a065cd3c1b378805dd4ff8c408f5a6798b0d6f3f68053b2d374da56edfdc
/******************************************************************************* * Copyright by the contributors to the Dafny Project * SPDX-License-Identifier: MIT *******************************************************************************/ // A domain-specific language (DSL) for building parsers that ...
dafny-lang/dafny
Source/DafnyStandardLibraries/src/Std/Parsers/Core/ParsersTheorems.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
12,420
5d2f136d46aaf5f84210b8f7acd939191699262e389bf610c2d41e3a20e107aa
/******************************************************************************* * Copyright by the contributors to the Dafny Project * SPDX-License-Identifier: MIT *******************************************************************************/ abstract module Std.Parsers.Theorems refines Core { import o...
dafny-lang/dafny
Source/DafnyStandardLibraries/src/Std/Parsers/String/StringBuilders.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
5,181
2b955b80ef61d1cac0067aa78817b0de30343c967efc81518cb0ef4b5d50c60a
/******************************************************************************* * Copyright by the contributors to the Dafny Project * SPDX-License-Identifier: MIT *******************************************************************************/ /** The parsers builder DSL but specialized for strings */ ...
dafny-lang/dafny
Source/DafnyStandardLibraries/src/Std/Parsers/String/StringParsers.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
14,105
e9dbde70c7566a974e3f3dfd7dac23aec5f97b82d3d21af33e415a6b2ab251e9
/******************************************************************************* * Copyright by the contributors to the Dafny Project * SPDX-License-Identifier: MIT *******************************************************************************/ /** Until string slicing is implemented in O(1), a string inpu...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/attr-help.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
85
42b0bebbdbdf853b580ff4b5a62b0626b7d70c06ff355302bae3e7d2dfa08c69
// RUN: %baredafny /attrHelp // Just checks that the attribute help option works
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/legacy-help.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
23
4cd377f48f62d26c7de99a3cf32c07e410c1e957755175e41e1b9e15deae33bc
// RUN: %baredafny -?
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/new-cli-help.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
93
4b42865ee9cf8eee70c8c7c56c8b552047b1edf35b904094edc5015e2d343e18
// RUN: %baredafny -h > "%t" // RUN: %baredafny --help > "%t_X" // RUN: %diff "%t" "%t_X"
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/ast/assume.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
1,294
2ee439eccfdbf14cabe0f4f0a1521cead2380722436c6b140b3114fe831939f3
// RUN: ! %testDafnyForEachResolver "%s" -- --allow-axioms=false // NONUNIFORM: warning will be the same for all back-end // RUN: ! %verify --standard-libraries --allow-axioms:false "%s" &> "%t" // RUN: %diff "%s.expect" "%t" method Foo() { assume false; assume {:axiom} false; var xs := { 1, 2 }; var x...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/ast/const.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
127
d6898516c3cbd13b28dced6e3eee5684574d4035eda5cc4ef44d5aafce9f9cde
// RUN: %testDafnyForEachResolver "%s" -- --allow-axioms=false type Even = x: int | x % 2 == 0 opaque const ten: Even := 10
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/ast/defaultParameterResolution.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
240
6529496ae6d3ea1dfb14df2b2179f588ca6309287c31bfef4ceaee9a103ad8fc
// RUN: %testDafnyForEachResolver "%s" --expect-exit-code=2 function SumFromTo(sequence: nat -> real, start: nat := 0, end: nat): real function PartialSums(sequence: nat -> real): nat -> real { (n: nat) => SumFromTo(sequence, n) }
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/ast/function.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
840
be0e8997401f78766e252259e8b242eee372a77f9bc2cf3ed05f7ede564c3a29
// RUN: ! %verify --allow-axioms:false --type-system-refresh "%s" &> "%t" // RUN: ! %verify --allow-axioms:false --type-system-refresh "%s" &>> "%t" // NONUNIFORM: warning will be the same for all back-end // RUN: ! %run --allow-axioms:false "%s" &>> "%t" // RUN: %diff "%s.expect" "%t" function Compiled(): int...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/ast/method.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
993
2464ba6c7715d0c4878013717fe3ed48e1465fa6324707ebb127075a8a0dcfa3
// RUN: %verify --allow-axioms:false --type-system-refresh --allow-warnings "%s" > "%t" // RUN: %verify --allow-axioms:false --type-system-refresh --allow-external-contracts --allow-warnings "%s" >> "%t" // NONUNIFORM: warning will be the same for all back-ends // RUN: ! %run --allow-axioms:false "%s" >> "%t" //...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/ast/redeclareBodyResolution.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
426
ee36adbc2bba649f1dc1d593a7be24f32e26fce0d4d2b7f51a7127bc41b2a22e
// RUN: ! %verify %s > %t // RUN: %diff "%s.expect" "%t" // Diamond property trait Common { method M() { } } trait Left extends Common { method M() { } } trait Right extends Common { method M() { } } trait Both extends Left, Right { } // error: Both inherits M with a body in two different ways trait BothRe...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/ast/redeclareBodyRun.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
1,173
af27f79a3163c55cf859954e7b89c603fc377a57f9520c9fcf5175bbce030082
// RUN: %testDafnyForEachCompiler %s -- --type-system-refresh --general-traits=datatype trait T { method foo() returns (r: int) ensures r >= 3 { return 3; } } trait T2 extends T { method foo() returns (r: int) ensures r >= 5 { return 5; } } class C extends T { ...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/ast/redeclareBodyVerification.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
937
657a88388a804c9736d1498cb0999cb6d7edcccfe9751965469182265e309188
// RUN: ! %verify %s > %t // RUN: %diff "%s.expect" "%t" trait T { method foo() returns (r: int) ensures r >= 3 { return 3; } } trait Bad extends T { method foo() returns (r: int) ensures r >= 1 { return 4; } } class Better extends Bad { method foo() returns (r:...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/at-attributes/at-attributes-acceptable-builtin.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
2,195
d7898d2bf91bcada15c55bf9d598e802ed0b9eea3179aabb215c3a6c80c50ea8
// RUN: %resolve "%s" // Attributes on top-level declarations @AutoContracts class A { ghost var Repr: set<object> var x: int var y: int predicate Valid() { true } } @NativeIntOrReal newtype ubyte = x : int | 0 <= x < 256 @NativeInt newtype ubyte2 = x : int | 0 <= x < 256 @Nat...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/at-attributes/at-attributes-typos.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
3,649
8a738ee7828667cd67629a1cd27b418efcc137f84aaa93cd65f7138348210407
// RUN: %exits-with -any %resolve "%s" > "%t" // RUN: %diff "%s.expect" "%t" // Attributes on top-level declarations @AutoContracts // Can't apply that on functions @NativeIntOrReal // Can't apply that on functions @NativeInt // Can't apply that on functions @NativeNone // Can't apply that on funct...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/at-attributes/at-attributes-typos0.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
261
745e2c0f0484b0137e1167ffb6c75ae6451214da98b494757646ca3b75577a83
// RUN: %exits-with -any %resolve "%s" > "%t" // RUN: %diff "%s.expect" "%t" // Attributes on top-level declarations @Option("--function-syntax:3") // Should be Options module SimpleLinearModule { } function OtherUnresolvedfunction(): string { 3 }
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/auditor/IgnoredAssumptions.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
97
f0d390c6d4b3e443f2bf6257695b3829156528971e16105c9331b9751b6d4996
// RUN: %diff "%s" "%s" lemma {:axiom} BadAssumptionButWeDon'tCare(x: int) ensures x*x == 2
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/auditor/TestAuditor.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
4,713
f20f9313da546de200b1bcebe676e97ff1b1ad4aea07436de0a988588ff65de0
// RUN: %audit --reads-clauses-on-methods --allow-external-contracts --report-file "%t.md" "%s" // RUN: %audit --reads-clauses-on-methods --allow-external-contracts --report-file "%t.md" --compare-report "%s" // RUN: %audit --reads-clauses-on-methods --allow-external-contracts --report-file "%t.html" "%s" // RUN: %a...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/autoRevealDependencies/ast.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
3,671
52f318add433a3e88c62d98fbd9daf7bd663d35a86a422bdad0e8d10160d7833
// RUN: %verify --default-function-opacity autoRevealDependencies "%s" > "%t" // RUN: %diff "%s.expect" "%t" module Utils { function Max(x: int, y: int): int { if x > y then x else y } function {:opaque} MaxF<T(!new)>(f: T ~> int, ts: seq<T>, default: int) : (m: int) reads set t, o | t in ts...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/autoRevealDependencies/complicated.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
2,234
994f42a1cc44c2d6aeac8314ce17e8b6e9166c9690dd3b3329207e492548532e
// RUN: %verify --default-function-opacity autoRevealDependencies "%s" > "%t" // RUN: %diff "%s.expect" "%t" predicate P(z: int, i: int, j: int, k: int) ghost predicate ComplexPredicate3(offset: int, j: int, i: int) { && (forall k :: P(1+offset, i, j, k) || P(0, i, j, k)) && (forall k :: P(2+offset, i, j...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/autoRevealDependencies/datatype-reveals.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
178
ff93257d7fcb72984fe0ed4d26b05084fd7d37951fd06861016bfada52524cd1
// RUN: %verify --default-function-opacity autoRevealDependencies "%s" > "%t" // RUN: %diff "%s.expect" "%t" function two() : int { 2 } datatype t = Nat(val :nat := two())
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/autoRevealDependencies/func-depth-fail.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
328
c0a038aafe0a2a14bfb3099b73f1e5d0a7b4693cd6066d1bcdd8db3a7e689897
// RUN: %exits-with 4 %verify --default-function-opacity autoRevealDependencies "%s" > "%t" // RUN: %diff "%s.expect" "%t" function f() : bool { true } function g() : bool { f() } function h() : bool { g() } function i() : bool { h() } function {:autoRevealDependencies 3} p() : (r: bool) ensures r { i...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/autoRevealDependencies/func-depth-succ.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
314
e5cd1e39103cf586e5212dfa3c0567784c65be7fde8837689dcd5ac945424455
// RUN: %verify --default-function-opacity autoRevealDependencies "%s" > "%t" // RUN: %diff "%s.expect" "%t" function f() : bool { true } function g() : bool { f() } function h() : bool { g() } function i() : bool { h() } function {:autoRevealDependencies 4} p() : (r: bool) ensures r { i() }
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/autoRevealDependencies/power.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
362
eb2b32f17fbcd5271a73fe1987971ee847c4213a909421ce1a703a062634fb9e
// RUN: %exits-with 4 %verify --default-function-opacity autoRevealDependencies "%s" > "%t" // RUN: %diff "%s.expect" "%t" function power(b: int, n: nat): int { if (n==0) then 1 else b*power(b, n-1) } method test_power() ensures power(power(2, 2), 2)==16 { // Enabling following assert makes the test ...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/autoRevealDependencies/subset-types.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
486
2827893f36d690563e5ccdfff829c0c1b81dc13694d0230c1b94223194a94ee0
// RUN: %verify --default-function-opacity autoRevealDependencies "%s" > "%t" // RUN: %diff "%s.expect" "%t" module M { function one() : (r:int) { 1 } datatype Test = | Int(i:int) { predicate Nat() { match this case Int(i) => i >= 0 } } type Test_Nat = e:Test...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/autoRevealDependencies/tree-map-simple.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
1,456
95dfc04e4a1913d54cc68b0fc962bce586458ce9770a87aa6b2ca54d4113a316
// RUN: %verify --default-function-opacity autoRevealDependencies "%s" > "%t" // RUN: %diff "%s.expect" "%t" method Main() { TestY(); } datatype List<A> = Nil | Cons(head: A, tail: List<A>) datatype Tree<A> = Branch(val: A, trees: List<Tree<A>>) ghost function ListData(xs: List): set ensures forall ...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/blogposts/TestGenerationNoInliningEnumerativeDefinitions.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
5,153
03b73af210c1671533e354d811e5ea2810769598454edc2269aadd416b962b9f
// Generating and Running Block-Based Tests: // RUN: %baredafny generate-tests %args Block %S/TestGenerationNoInliningEnumerativeDefinitions.dfy > %t-tests.dfy // RUN: %baredafny test %args --target:cs "%t-tests.dfy" > "%t" // Generating and Running Path-Based Tests: // RUN: %baredafny generate-tests %args Path...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/blogposts/TestGenerationWithInliningQuantifiedDefinitions.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
4,594
a19cfe558c036324670c9086cf2f5893c31dae2132041cc1591226cc264bb86f
// Generating and Running Path-Based Tests: // RUN: %baredafny generate-tests %args Path %S/TestGenerationWithInliningQuantifiedDefinitions.dfy > %t-tests.dfy // RUN: %baredafny test %args --target:cs "%t-tests.dfy" > "%t" // Syntactically, the test method has 4 paths: yes-yes, yes-no, no-yes, no-no. But the no-ye...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/c++/arrays.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
2,000
10714d731fe9ad49ebeb274c1ae485c0df3003ca2f1320fc0a3fdcc846009c18
// RUN: %testDafnyForEachCompiler --refresh-exit-code=0 "%s" -- --relax-definite-assignment --allow-deprecation --unicode-char false newtype uint32 = i:int | 0 <= i < 0x100000000 method returnANullArray() returns (a: array?<uint32>) ensures a == null { a := null; } method returnANonNullArray() returns ...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/c++/bit-vectors.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
931
4f8a32fbe41d03a8b4603fe8fad6150b23ee214a621aa0b3f0e71dc557462a7d
// RUN: %testDafnyForEachCompiler --refresh-exit-code=0 "%s" -- --relax-definite-assignment --spill-translation --allow-deprecation --unicode-char false newtype uint64 = i:int | 0 <= i < 0x10000000000000000 function bit(i: uint64) : bv64 requires i < 64 { 1 as bv64 << i } method BasicOps(b0:bv64,...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/c++/class.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
3,375
beb47471c777d27e7f0d6d3f2f45f9d5ac9b16a1caded56a450e0719ac06842f
// RUN: %testDafnyForEachCompiler --refresh-exit-code=0 "%s" -- --relax-definite-assignment --spill-translation --allow-deprecation --unicode-char false newtype uint32 = i:int | 0 <= i < 0x100000000 class MyClass { var a: uint32 const b: uint32 const c:uint32 := 17 static const d: uint32 static con...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/c++/const.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
325
acd3ce9c8bdc7b33bd5abf47931c7ccb6db4ddfe5d16d9517b3e4547d72c806a
// RUN: %testDafnyForEachCompiler --refresh-exit-code=0 "%s" -- --relax-definite-assignment --spill-translation --allow-deprecation --unicode-char false module Holder { const x:bool := false } module User { import opened Holder method Use() { var b := x; } method Main() { Use(); }...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/c++/datatypes.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
3,819
6c665e3f01d80c62408e5810ffd86e30cacdd0a0097c41c5024e2b6069cf6fbc
// RUN: %testDafnyForEachCompiler --refresh-exit-code=0 "%s" -- --relax-definite-assignment --spill-translation --allow-deprecation --unicode-char false newtype uint32 = i:int | 0 <= i < 0x100000000 datatype Op = | NoOp | PushOp(ghost id: int) datatype Example1 = Example1(u:uint32, b:bool) datatype Exam...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/c++/extern.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
1,482
bbf0a9f147dcae961ab1bac22d0734c7d4b4248aa8ba6b219a2929b28b258c9e
// RUN: %run --target cpp --allow-external-contracts --unicode-char false "%s" --input ExternDefs.h > "%t" // RUN: %diff "%s.expect" "%t" module {:extern "Extern"} Extern { newtype uint64 = i:int | 0 <= i < 0x10000000000000000 method {:extern "Extern", "newArrayFill"} newArrayFill<T>(n: uint64, t: T) return...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/c++/functions.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
1,506
67964122da3f55ef9221210feeb4ed261113c59562486e79a98a8a09cb1b4924
// RUN: %run --target cpp --unicode-char false "%s" --input ExternDefs.h > "%t" // RUN: %diff "%s.expect" "%t" module {:extern "Extern"} Extern { newtype uint64 = i:int | 0 <= i < 0x10000000000000000 method {:extern "Extern", "Caller"} Caller(inc:uint64-->uint64, x:uint64) returns (y:uint64) requires i...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/c++/generic.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
622
488be7abb8843ff90aa84abc1681662da265f37707873904109796cf09b24a40
// RUN: %testDafnyForEachCompiler --refresh-exit-code=0 "%s" -- --relax-definite-assignment --spill-translation --allow-deprecation --unicode-char false class Test<T> { var t:T constructor (e:T) { t := e; } } class UseTest<T> { constructor () {} method DoSomething(t:Test<T>) { var x...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/c++/hello.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
202
9c421811cf85d99faa5ef1a4aecb52e784149b49fc832bc4dd44002c24594d74
// RUN: %testDafnyForEachCompiler --refresh-exit-code=0 "%s" -- --relax-definite-assignment --spill-translation --allow-deprecation --unicode-char false method Main() { print "Hello world\n"; }
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/c++/ints.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
957
27e3c5d7c7bce5dcea45e7c2e239f50f9490eeebaf53708aef9e8f0b1723972b
// RUN: %testDafnyForEachCompiler --refresh-exit-code=0 "%s" -- --relax-definite-assignment --spill-translation --allow-deprecation --unicode-char false newtype sbyte = i:int | -0x80 <= i < 0x80 newtype byte = i:int | 0 <= i < 0x100 newtype int16 = i:int | -0x8000 <= i < 0x8000 newtype uint16 = i:int | 0 <= i < 0...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/c++/maps.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
5,671
8fedd3000faf9628150971117bedf6a75cc490acc753a5809c174555e1b0dba8
// RUN: %testDafnyForEachCompiler --refresh-exit-code=0 "%s" -- --relax-definite-assignment --spill-translation --allow-deprecation --unicode-char false newtype uint32 = i:int | 0 <= i < 0x100000000 method Test(name:string, b:bool) requires b { if b { print name, ": This is expected\n"; } else { ...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/c++/recursion.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
597
5d65744054f505945d93215faecfd80c0c170e4ebae6168b829832a892d8598a
// RUN: %testDafnyForEachCompiler --refresh-exit-code=0 "%s" -- --relax-definite-assignment --spill-translation --allow-deprecation --unicode-char false newtype uint32 = i:int | 0 <= i < 0x100000000 method R0(x:bool) { if x { print "x\n"; R1(false); } else { print "!x\n"; } } method R...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/c++/returns.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
354
cd0fc6d4c64138764b5b86783ba346b0584fbaa13eaa686575c51e1c8706b0db
// RUN: %testDafnyForEachCompiler --refresh-exit-code=0 "%s" -- --relax-definite-assignment --spill-translation --allow-deprecation --unicode-char false newtype uint64 = i:int | 0 <= i < 0x10000000000000000 method multi() returns (x:uint64, y:uint64) { x := 1; y := 2; } method Main() { var x, y := ...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/c++/seqs.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
2,152
75f5f58731eaf407e11f3e3dd3d44f736a9fb987e5ef27e60c2a57cda42276a7
// RUN: %testDafnyForEachCompiler --refresh-exit-code=0 "%s" -- --relax-definite-assignment --spill-translation --allow-deprecation --unicode-char false newtype uint8 = i:int | 0 <= i < 0x100 newtype uint32 = i:int | 0 <= i < 0x100000000 class C { var x:uint8 } method TestSeqOfClass() returns (s:seq<C>) ...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/c++/sets.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
3,335
99a9729d265c805d526efa17f471d19c044c7577b04be4c045a1dee69f57d863
// RUN: %testDafnyForEachCompiler --refresh-exit-code=0 "%s" -- --relax-definite-assignment --spill-translation --allow-deprecation --unicode-char false newtype uint32 = i:int | 0 <= i < 0x100000000 datatype Example0 = Example0(u:uint32, b:bool) method Test0(e0:Example0) { var s := { e0 }; } datatype E...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/c++/tuple.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
766
8e991a158028a8da84bfe011299729e65f62157c478944b8d1950916c05db5b5
// RUN: %run --target cpp --unicode-char false --input ExternDefs.h "%s" > "%t" // RUN: %diff "%s.expect" "%t" newtype uint32 = i:int | 0 <= i < 0x100000000 method ReturnTuple() returns (x:(uint32,uint32)) { return (1, 2); } function EmptyTuple() : () { () } function GetEmptyTuple() : () { Empt...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/c++/while.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
430
a5e346473e2ffd08283fca2cf088964f76e7c6b7e51256faf877ab0941b462c8
// RUN: %testDafnyForEachCompiler --refresh-exit-code=0 "%s" -- --relax-definite-assignment --spill-translation --allow-deprecation --unicode-char false newtype uint32 = i:int | 0 <= i < 0x100000000 method Main() { var x:uint32 := 0; while (x < 10) { print x, "\n"; x := x + 1; } print "\...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/cli/allow-warnings.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
201
c32dbf08a457cb206d72110c6b27170d1a2244fa613e85ca6f354703ee34a0ee
// RUN: %build --warn-shadowing --allow-warnings "%s" > "%t" // RUN: %build --warn-shadowing --warn-as-errors=false "%s" >> "%t" // RUN: %diff "%s.expect" "%t" method f(x: int) { var x := 0; }
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/cli/badArguments.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
190
b14cd28f59be492a6ea1d995867c9b6ef7521cc89995669e8630615f8b3d812d
// RUN: %baredafny resolve "" "%s" > "%t" // RUN: %baredafny resolve '' "%s" >> "%t" // RUN: %baredafny verify --boogie '' "%s" >> "%t" // RUN: %diff "%s.expect" "%t" method Foo() {}
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/cli/badProverPath.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
283
9de67e79c3574bd5c62a3e92c86cbbe02f99cec04ee17a7ac90aa593e332fff5
// RUN: %exits-with 4 %verify --solver-path=doesNotExist "%s" > "%t" // RUN: %exits-with 4 %build --solver-path=doesNotExist "%s" >> "%t" // RUN: %OutputCheck --file-to-check "%t" "%s" // CHECK: Z3 not found at // CHECK: Z3 not found at method m() { assert 1 + 1 == 2; }
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/cli/customMain.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
217
c27ef455150848c9d196eedd0e6304bc7cb5281d79459679968e943fc6373c26
// RUN: %testDafnyForEachCompiler "%s" -- --main-method:HappyModule.NewMain --spill-translation method Main() { print "not printed"; } module HappyModule { method NewMain() { print "printed"; } }
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/cli/defaultTimeLimit.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
426
121bcba48698be5541d1ba6d695f8c93e243aadcb535da4a864b787e0ba771a7
// RUN: ! %baredafny verify --use-basename-for-filename "%s" > "%t.raw" // RUN: %sed 's#\d+ seconds#<redacted> seconds#g' "%t.raw" > "%t" // RUN: %diff "%s.expect" "%t" method Foo() { // Assert something that takes a long time to verify assert Ack(4, 2) == 1; } function Ack(m: nat, n: nat): nat { if ...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/cli/diagnosticsFormats.legacy.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
1,105
4e13db670a0f20843547a15a9ecf52092bc4a9fe0c8ab8810a1e495eeee6295c
// RUN: %exits-with 4 %baredafny verify %args "%s" > "%t".raw // RUN: %exits-with 4 %baredafny verify %args --use-basename-for-filename=false --json-diagnostics "%s" >> "%t".raw // RUN: %exits-with 4 %dafny /compile:0 /diagnosticsFormat:json -printTooltips "%s" >> "%t".raw // RUN: %exits-with 4 %dafny /compile:0 /di...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/cli/errorLimit.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
364
2d3698b88d47a5d5d5ee52912853fecce29551aea213e7d0ac848000755bd513
// RUN: %exits-with 4 %verify --error-limit=0 "%s" > "%t" // RUN: %diff "%s.expect" "%t" method m(x: int) { if x == 1 { assert x != 1; } else if x == 2 { assert x != 2; } else if x == 3 { assert x != 3; } else if x == 4 { assert x != 4; } else if x == 5 { assert x != 5; } el...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/cli/fileThroughBoogie.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
101
7315ddb8c503ca1b8b40c8f26d140986740491d18e295afda2524c323f6d7376
// RUN: %verify --boogie "noDashAtStart" %s 2> %t // RUN: %diff "%s.expect" "%t" method Foo() { }
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/cli/help.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
125
34336acb28e01cc816373e858fa32085712e4b799ea852bef1a9f8bd1fc2edf0
// RUN: %baredafny verify --help-internal > "%t" // RUN: %OutputCheck --file-to-check "%t" "%s" // CHECK: --rprint <file>
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/cli/inputFormatAnything.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
694
f3e765098c435915fe2feb587ec4a2b0e3ed84f23b16e1a2c8a0280003fa8ef7
// RUN: %tobinary %s > %t.dbin // RUN: %resolve --check-source-location-consistency --input-format Binary %S/Inputs/additional.dfy --allow-warnings --stdin < %t.dbin > %t // RUN: %diff "%s.expect" "%t" class Anything { const x := 3123.012314 method foo() { while(true) { continue; } as...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/cli/inputFormatBinarySearch.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
1,109
ae05f23e03daa55cd639d2cc50ebb1f45318d535c510d23f89fc5434d785bcd4
// RUN: %tobinary %s > %t.assertFalse.dbin // RUN: %verify --input-format Binary %S/Inputs/additional.dfy --stdin < %t.assertFalse.dbin > %t // RUN: %diff "%s.expect" "%t" class BinarySearchValid { static function sorted(arr: array<int32>): bool reads arr { forall i: int32, j: int32 :: !(0 ...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/cli/inputFormatCollections.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
1,801
fe99f47fbef801b18c86d12d68a2c435b425fb850b38753a36a040f0700679fe
// RUN: %tobinary %s > %t.assertFalse.dbin // RUN: %verify --input-format Binary --stdin < %t.assertFalse.dbin > %t // RUN: %diff "%s.expect" "%t" method Seqs() { // Displays var s0: seq<int> := []; var s1: seq<int> := [1]; var s2: seq<int> := [2, 3]; assert s0 + s1 + s2 == [1, 2, 3]; // Const...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/cli/inputFormatControlFlow.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
2,014
e49f97417bf800de2e4d30f84e27a1613d4f6ea09333614b03a160dae2c8bcfa
// RUN: %tobinary %s > %t.assertFalse.dbin // RUN: %verify --input-format Binary --stdin < %t.assertFalse.dbin > %t // RUN: %diff "%s.expect" "%t" datatype Pair = Pair(a: int, b: int) datatype Flag = Ok | Err(err: int) { function IsFailure(): bool { this.Err? } function PropagateFailure(): int r...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/cli/inputFormatDeleteSources.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
1,085
b7ae0b8a048c329b13fbaaf36f9896c55086d5c8d09ceea35fb3074fd501e8e0
// RUN: %tobinary %s --delete-source-locations > %t.deleteSources.dbin // RUN: ! %verify --input-format Binary --allow-warnings --stdin < %t.deleteSources.dbin > %t // RUN: %diff "%s.expect" "%t" method Foo() { assert false; // error } method Bar() { assert false; // error } function F(): int { 3 ...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/cli/inputFormatFibonacci.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
1,152
8ec405649ca07e1390e71896c0624e5edde822bf387608f091960be20f599208
// RUN: %tobinary %s > %t.assertFalse.dbin // RUN: ! %verify --input-format Binary %S/Inputs/additional.dfy --stdin < %t.assertFalse.dbin > %t // RUN: %diff "%s.expect" "%t" class Fibonacci { static function Spec(n: nat): nat { if n < 2 then n else Spec(n - 1) + Spec(n - 2) } ...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/cli/inputFormatLibrary.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
228
9bb86ae9c3d1c91fa40b63693ef06e766b9d8cb75d571b8b96837829a92ce658
// RUN: %tobinary %s --library > %t.dbin // RUN: %verify --input-format Binary --allow-warnings --stdin < %t.dbin > %t // RUN: %diff "%s.expect" "%t" method Foo() { assert false; // no error, because this is a library }
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/cli/json-output.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
905
c5b12a42f66bd4001c5ebf26dce2bc5bb654f470b202705f5fe5f6e74a968c75
// RUN: %exits-with 4 %baredafny verify %args "%s" > "%t".raw // RUN: %exits-with 4 %baredafny verify %args --use-basename-for-filename=false --json-output "%s" >> "%t".raw // RUN: %sed 's#%S##g' "%t".raw > "%t.raw2" // In Windows, %S doesn't contain an additional prefix / that's in the URI. // We want to replace w...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/cli/measure-complexity.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
584
97b5a11616f853f2840d045c588585a9fd1bb767b8d5d8a15018dc2e8785b9ae
// RUN: %exits-with 4 %baredafny measure-complexity --show-snippets false --use-basename-for-filename --isolate-assertions --worst-amount 100 "%s" > %t.raw // RUN: %sed 's#\(\d+,\d+\): \d+#<redacted>#g' %t.raw > %t.raw2 // RUN: %sed 's#are \d+#are <redacted>#g' %t.raw2 > %t // RUN: %diff "%s.expect" "%t" method Foo...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/cli/multipleBoogieArguments.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
244
1715b2c4eaeeabb2c38c747c6ff2066cb33dfd0dbedef2fb28cba8b3183c6812
// RUN: %baredafny verify --boogie "/randomSeedIterations:0" --boogie "/vcsLoad:2" %s 2> %t // RUN: %baredafny verify --boogie "/vcsLoad:2 /randomSeedIterations:0" %s 2>> %t // RUN: %diff "%s.expect" "%t" function id(x:int) : (r:int) { x }
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/cli/proverPath.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
145
06efb45a73c190a4964aae2e9232f505928f40da64f55330ea68258ed4d783f8
// RUN: %verify --solver-path="%z3" "%s" > "%t" // RUN: %diff "%s.expect" "%t" // UNSUPPORTED: windows method m() { assert 1 + 1 == 2; }
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/cli/resolve.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
105
94350381624d55d8c3b286fd4f50eb6743de48f354e86d9de5f0a2bdd20719b6
// RUN: %baredafny resolve "%s" > "%t" // RUN: %diff "%s.expect" "%t" method Foo() ensures false { }
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/cli/runArgument.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
516
8e8a2cc900076e3499e14ad7ab55cdab5ff537335be9ddf272622af39b27dcda
// NONUNIFORM: This tests front-end behavior, and is back-end independent. // RUN: %run %s blie 2 &> %t // RUN: %run %s --blie --2 &>> %t // RUN: %run %s -- --bla --2 &>> %t // RUN: %diff "%s.expect" "%t" method Main(args: seq<string>) { if |args| != 3 { print "Expected 3 arguments, got ", |args|; } e...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/cli/solverLog.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
226
cac86506c58f369a23e077151a0c894b6ae8822dba821a942c76100ab1a4751a
// RUN: %verify --solver-log="log.smt2" --resource-limit 10e3 "%s" > "%t" // RUN: %diff "%s.expect" "%t" // RUN: %OutputCheck --file-to-check "log.smt2" "%s" // CHECK: rlimit 10000\) method m() { assert 1 + 1 == 2; }
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/cli/solverOpt.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
320
5e831514b70ac91f22c7d29d0b69d41fa1f845c4eedccdae3f8d90c3ff16d1a3
// RUN: %exits-with 4 %verify --boogie -trace --solver-option BATCH_MODE=true "%s" > "%t" // RUN: %OutputCheck --file-to-check "%t" "%s" // CHECK: Running in batch mode. method M(x: int) { if x == 1 { assert x != 1; } else if x == 2 { assert x != 2; } else if x == 3 { assert x != 3; } }
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/cli/zeroCores.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
785
9cc17b79b376dd8416a5fd3761e10bbda30d79299d6e43d8938df8080f1d665b
// RUN: ! %baredafny verify --show-snippets:false --use-basename-for-filename --cores=0 "%s" 2> "%t" // RUN: ! %baredafny verify --show-snippets:false --use-basename-for-filename --cores=earga "%s" 2>> "%t" // RUN: ! %baredafny verify --show-snippets:false --use-basename-for-filename --cores=earga% "%s" 2>> "%t" // ...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/cloudmake/CloudMake-CachedBuilds.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
54,423
8a977b25ff6cda05b2b9f6d8076b6e6770c9e83c6cf4098e4571a3c18154a285
// RUN: %verify --manual-triggers --allow-deprecation "%s" > "%t" // RUN: %diff "%s.expect" "%t" // This module proves the correctness of the algorithms. It leaves a number of things undefined. // They are defined in refinement modules below. abstract module M0 { /******* State *******/ type State(!new) ...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/cloudmake/CloudMake-ConsistentBuilds.legacy.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
24,519
df2c121562796873a09430586d2423aa6ef951b6421cdecb98baa93e81d13b1d
// RUN: %dafny /compile:0 /dprint:"%t.dprint" /autoTriggers:0 /restartProver "%s" > "%t" // RUN: %diff "%s.expect" "%t" /******* State *******/ type State ghost function GetSt(p: Path, st: State): Artifact ghost function SetSt(p: Path, a: Artifact, st: State): State ghost function DomSt(st: State): set<Path...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/cloudmake/CloudMake-ParallelBuilds.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
30,852
7e83b28d9d22505a7e6796207fd891511409dd39c542910310fa15de33226d48
// RUN: %verify --relax-definite-assignment --manual-triggers --allow-deprecation "%s" > "%t" // RUN: %diff "%s.expect" "%t" // This module proves the correctness of the algorithms. It leaves a number of things undefined. // They are defined in refinement modules below. abstract module M0 { /******* State ***...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/Arrays.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
24,206
e3c314dc597bf964f7738cdbfb526862733a51b55c1f2e6bac89c8ba77966617
// RUN: %testDafnyForEachCompiler --refresh-exit-code=0 "%s" -- --relax-definite-assignment method LinearSearch(a: array<int>, key: int) returns (n: nat) ensures 0 <= n <= a.Length ensures n == a.Length || a[n] == key { n := 0; while n < a.Length invariant n <= a.Length { if a[n] == key { ...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/AsIs-Compile-Expanded.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
3,109
34ebe8d94481ceab65cbb1fb97bb1b1489a89d6b4441f3ffbb8d20d3235b1cc0
// RUN: %testDafnyForEachCompiler "%s" -- --type-system-refresh=true --general-newtypes=false method Main() { Is.Test(); } module Is { method Test() { FromReal(); ToChar(); ToBitvector(); ToNative(); } method FromReal() { var r: real; r := 3.14; print r is int, " ...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/AsIs-Compile.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
7,121
103b6f34a98c6bcded4936f992f61aa736c44b0a1100e60fc8569b945330cda5
// RUN: %testDafnyForEachCompiler "%s" method Main() { var a: A, b: B, c: C, k: K, l: L := new M, new M, new M, new K<real>, new L<real>; var a', b', c', k', l' := AssignBackAndForth(a, b, c, k, l); print a == a', " ", b == b', " ", c == c', " ", k == k', " ", l == l', "\n"; a', b', c', k', l' := AsBackA...
dafny-lang/dafny
Source/IntegrationTests/TestFiles/LitTests/LitTest/comp/AutoInit.dfy
NOASSERTION
3,473
master
368adac6150e6a3825fe2f605dca71353badc779
2026-07-21T22:46:38Z
9,404
2c3aa8acf8e5dd2fce8ddb5ae45884a2313a737836786b2d8770ee4998189b28
// RUN: %testDafnyForEachCompiler --refresh-exit-code=0 "%s" -- --relax-definite-assignment // This file tests the compilation of some default values. It also includes some // regression tests for equality, printing, and tuples. codatatype Stream<G> = Next(head: G, tail: Stream<G>) class WClass<W> { const ...