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
microsoft/Armada
Armada/util/option.s.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
78
caef0cb68db001c1ce85b6d8f071e4f4bf159f1ac08274e6f6817c1921e4d595
module util_option_s { datatype Option<T> = Some(v:T) | None() }
microsoft/Armada
Armada/util/types.s.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
124
4303e3e0896ed8410257450a34cd43449fcac2692483588db5b00e9a13a70131
module util_types_s { newtype byte = x:int | 0 <= x < 0x100 newtype uint = x:int | 0 <= x < 0x1_0000_0000 }
microsoft/Armada
Armada/strategies/chl/AtomicConcurrentHoareLogic.i.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
1,919
1a7e95d4c808287aee99f3650a818631c9606b3dd6872f56cc8fef38c9a792fa
include "../../util/option.s.dfy" include "../../util/collections/seqs.s.dfy" include "../../util/collections/seqs.i.dfy" include "../refinement/GeneralRefinementLemmas.i.dfy" include "../refinement/RefinementConvolution.i.dfy" include "../refinement/AnnotatedBehavior.i.dfy" include "../invariants.i.dfy" include...
microsoft/Armada
Armada/strategies/chl/AtomicConcurrentHoareLogicLemmas.i.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
4,867
6509e289b35c24cf334279a6a7ff93fd3f781f6c0cac0c9a8b6c5fb2d413f7e8
include "../../util/option.s.dfy" include "../../util/collections/seqs.s.dfy" include "../../util/collections/seqs.i.dfy" include "../refinement/GeneralRefinementLemmas.i.dfy" include "../refinement/RefinementConvolution.i.dfy" include "../refinement/AnnotatedBehavior.i.dfy" include "../invariants.i.dfy" include...
microsoft/Armada
Armada/strategies/chl/AtomicConcurrentHoareLogicSpec.i.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
5,403
8f39cbc00965d0d9d0a47e045dd8772dd2a5b608d146d2042c5ca47c011d7394
include "../refinement/AnnotatedBehavior.i.dfy" include "../invariants.i.dfy" include "../generic/GenericArmadaAtomic.i.dfy" include "ConcurrentHoareLogicSpec.i.dfy" module AtomicConcurrentHoareLogicSpecModule { import opened util_option_s import opened GeneralRefinementModule import opened AnnotatedBe...
microsoft/Armada
Armada/strategies/chl/ConcurrentHoareLogic.i.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
2,374
192384d7477eed4cbfc15089c4ab582f56d9c8e17a030e9775e62a663eccb908
include "ConcurrentHoareLogicLemmas.i.dfy" module ConcurrentHoareLogicModule { import opened AnnotatedBehaviorModule import opened InvariantsModule import opened util_collections_seqs_s import opened util_option_s import opened ConcurrentHoareLogicSpecModule import opened ConcurrentHoareLogicLemm...
microsoft/Armada
Armada/strategies/chl/ConcurrentHoareLogicLemmas.i.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
48,060
5fe9cfebb83696d0d0f017f5bc740555e997db71f720d6553182a463b6a3cb97
include "ConcurrentHoareLogicSpec.i.dfy" module ConcurrentHoareLogicLemmasModule { import opened util_collections_maps_s import opened util_collections_seqs_s import opened util_option_s import opened AnnotatedBehaviorModule import opened InvariantsModule import opened ConcurrentHoareLogicSpecMod...
microsoft/Armada
Armada/strategies/chl/ConcurrentHoareLogicSpec.i.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
41,963
642b4d2e8bbd785f129d753d1e139f13cae682e5436419dabfaedd82d073f6f1
include "../refinement/AnnotatedBehavior.i.dfy" include "../invariants.i.dfy" include "../../util/collections/maps.s.dfy" include "../../util/collections/seqs.s.dfy" include "../../util/option.s.dfy" module ConcurrentHoareLogicSpecModule { // Yields are dealt with as follows. // * On a call, the callee h...
microsoft/Armada
Armada/strategies/combining/ArmadaCombining.i.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
3,091
9ae18440fedd0b8f1bd53ba51bab3c9a8e490c35e0104355949865432bddf178
///////////////////////////////////////////////////////////////////////////////////////////////////// // // This file contains a lemma for performing refinement via combining on an Armada behavior. Such a // combining takes a behavior satisfying a low-level spec, which has a certain atomic step // represented as a...
microsoft/Armada
Armada/strategies/combining/ArmadaCombiningLemmas.i.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
11,780
a67a06144bb1abc480e14953def362886015b1e940df8b8d9fa7616f1012ad28
///////////////////////////////////////////////////////////////////////////////////////////////////// // // This file contains lemmas useful in effecting a refinement via combining on an Armada behavior. // They support lemma_PerformArmadaCombining (in ArmadaCombining.i.dfy). // ///////////////////////////////////...
microsoft/Armada
Armada/strategies/combining/ArmadaCombiningSpec.i.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
10,511
d0788d38b3075e1727eb2a074d32e817e4c0273bc716e74acd6ad598bd946141
///////////////////////////////////////////////////////////////////////////////////////////////////// // // This file is the specification for a request to perform combining on an Armada behavior. Such a // combining takes a behavior satisfying a low-level spec, which has a certain atomic step // represented as a ...
microsoft/Armada
Armada/strategies/generic/GenericArmadaAtomic.i.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
17,008
a008944fd6562f613b32b44dc4cdd99a5d74f9d085be6180cc5f643f8435fa72
include "GenericArmadaSpec.i.dfy" include "GenericArmadaLemmas.i.dfy" include "../invariants.i.dfy" include "../../util/collections/seqs.i.dfy" include "../../strategies/refinement/GeneralRefinementLemmas.i.dfy" module GenericArmadaAtomicModule { import opened util_collections_seqs_s import opened util_c...
microsoft/Armada
Armada/strategies/generic/GenericArmadaLemmas.i.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
7,056
00a0764565386935a85209b8f029276ebaa375e1c42a91e646b3246fcacf5a5f
include "GenericArmadaSpec.i.dfy" include "../refinement/GeneralRefinementLemmas.i.dfy" module GenericArmadaLemmasModule { import opened util_collections_seqs_s import opened AnnotatedBehaviorModule import opened ArmadaCommonDefinitions import opened GeneralRefinementModule import opened GeneralRef...
microsoft/Armada
Armada/strategies/generic/GenericArmadaPlus.i.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
8,458
d9672fb5f04b3c02937f3cadceb58e4eabff1619869e4b3b1af37234f4ae2acd
include "GenericArmadaSpec.i.dfy" include "GenericArmadaLemmas.i.dfy" include "../refinement/GeneralRefinementLemmas.i.dfy" module GenericArmadaPlusModule { import opened util_collections_seqs_s import opened AnnotatedBehaviorModule import opened ArmadaCommonDefinitions import opened GeneralRefinement...
microsoft/Armada
Armada/strategies/generic/GenericArmadaSpec.i.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
4,194
037e2ed005e07c066d91ce3b8e63d28851077a98c08fd6430c91f81046ea4e59
include "../../util/option.s.dfy" include "../refinement/AnnotatedBehavior.i.dfy" include "../../ArmadaCommonDefinitions.dfy" module GenericArmadaSpecModule { import opened util_option_s import opened AnnotatedBehaviorModule import opened ArmadaCommonDefinitions ////////////////////////////////////...
microsoft/Armada
Armada/strategies/generic/LiftAtomicToAtomic.i.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
26,885
e3d28b9d471681c857d507f0e7ec8b844b9fff361ce6d5e139681c931fa0cc5c
include "GenericArmadaAtomic.i.dfy" module LiftAtomicToAtomicModule { import opened util_collections_seqs_s import opened util_collections_seqs_i import opened util_option_s import opened GenericArmadaSpecModule import opened AnnotatedBehaviorModule import opened ArmadaCommonDefinitions import ...
microsoft/Armada
Armada/strategies/generic/LiftFromAtomic.i.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
10,076
a4d77a2b4f506ff0b234820e943fba5115420db6b587177636c8b8c999412ca4
include "GenericArmadaAtomic.i.dfy" module LiftFromAtomicModule { import opened util_collections_seqs_s import opened util_collections_seqs_i import opened util_option_s import opened GenericArmadaSpecModule import opened AnnotatedBehaviorModule import opened ArmadaCommonDefinitions import open...
microsoft/Armada
Armada/strategies/generic/LiftToAtomic.i.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
21,109
b98b8f1cff7a323ed010106c7d5fbf5e1bc884ae684423e539286d28dba944b4
include "GenericArmadaAtomic.i.dfy" module LiftToAtomicModule { import opened util_collections_seqs_s import opened util_collections_seqs_i import opened util_option_s import opened GenericArmadaSpecModule import opened AnnotatedBehaviorModule import opened ArmadaCommonDefinitions import opened...
microsoft/Armada
Armada/strategies/reduction/AtomicReduction.i.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
4,644
9cee09367bfb5fc6ae506d625175f373000fd76410e8d0fc9781563a06599d4b
///////////////////////////////////////////////////////////////////////////////////////////////////// // // This file contains a lemma for performing refinement via a Cohen-Lamport reduction on an Armada // atomic behavior. Such a reduction takes a behavior satisfying a low-level spec, which allows // threads to s...
microsoft/Armada
Armada/strategies/reduction/AtomicReductionLemmas.i.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
222,194
c41db4b861af845e337d5b5e12db680184ff091a55ae6ec56754b09d90e3441b
///////////////////////////////////////////////////////////////////////////////////////////////////// // // This file contains lemmas useful in effecting a refinement via reduction on an Armada atomic // behavior. They support lemma_PerformAtomicReduction (in AtomicReduction.i.dfy). // // The general strategy is ...
microsoft/Armada
Armada/strategies/reduction/AtomicReductionSpec.i.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
22,336
a6e6554e2aa15abff12e0a501ba0ca0f667c72b9afdc1e18eecc6658990d205a
///////////////////////////////////////////////////////////////////////////////////////////////////// // // This file is the specification for a request to perform refinement via a Cohen-Lamport reduction // on an Armada atomic behavior. Such a reduction takes a behavior satisfying a low-level spec, which // allow...
microsoft/Armada
Armada/strategies/reduction/CohenLamportReduction.i.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
2,354
47a3d16dace03ab2c8814270bc15a5d2921a5a0a39760bf465ba09f34fd54e5b
///////////////////////////////////////////////////////////////////////////////////////////////////// // // This file contains the lemma for performing a Cohen-Lamport reduction on a behavior. Such a // reduction takes a behavior where some states are in phase 1 or 2, and returns a behavior in which // no state (e...
microsoft/Armada
Armada/strategies/reduction/CohenLamportReductionLemmas.i.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
113,175
6359efdb867907a478da74d038f6fbca82043935d520f269f8fe4adbc2e060a5
///////////////////////////////////////////////////////////////////////////////////////////////////// // // This file contains lemmas useful in effecting a Cohen-Lamport reduction on a behavior. They // support lemma_PerformCohenLamportReduction (in CohenLamportReduction.i.dfy). // ///////////////////////////////...
microsoft/Armada
Armada/strategies/reduction/CohenLamportReductionSpec.i.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
15,562
934cfed8f3913377bcfe6f1bbfd50f8b6129fae1b3f0c89530411ff55f55aaf8
///////////////////////////////////////////////////////////////////////////////////////////////////// // // This file is the specification for a request to perform a Cohen-Lamport reduction on a behavior. // Such a reduction takes a behavior where some states are in phase 1 or 2, and returns a behavior // in which ...
microsoft/Armada
Armada/strategies/reduction/RefinementViaReduction.i.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
2,719
264a528f230e433c3eb727d0fb8e96f65eaaf757664c94b8e394a450b989801d
///////////////////////////////////////////////////////////////////////////////////////////////////// // // This file contains a lemma for performing refinement via a Cohen-Lamport reduction on a // behavior. Such a reduction takes a behavior where some states are in phase 1 or 2, and returns a // behavior satisfyi...
microsoft/Armada
Armada/strategies/reduction/RefinementViaReductionLemmas.i.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
117,104
cccc5a558b9ba72eaacc101cab7d37510f37eaeffbc9aa93da3c5f80feb7c08d
///////////////////////////////////////////////////////////////////////////////////////////////////// // // This file contains lemmas useful in effecting a refinement via reduction on a behavior. They // support lemma_PerformRefinementViaReduction (in RefinementViaReduction.i.dfy). // // The general strategy is a...
microsoft/Armada
Armada/strategies/reduction/RefinementViaReductionSpec.i.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
15,702
90e60bac6b7b82908a32505ca7d6b2781c0d8f4d267ee885c5a6f1307052fa2f
///////////////////////////////////////////////////////////////////////////////////////////////////// // // This file is the specification for a request to perform refinement via a Cohen-Lamport reduction // on a behavior. Such a reduction takes a behavior where some states are in phase 1 or 2, and // returns a beh...
microsoft/Armada
Armada/strategies/refinement/AnnotatedBehavior.i.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
9,837
df52877a8f0435ee61df2fe5e305a3bc19d14289fa18911e0397184a40638a37
include "../../spec/refinement.s.dfy" include "../../util/collections/seqs.i.dfy" module AnnotatedBehaviorModule { import opened GeneralRefinementModule import opened util_collections_seqs_s import opened util_collections_seqs_i datatype ActionTuple<State, Step> = ActionTuple(s:State, s':Sta...
microsoft/Armada
Armada/strategies/refinement/GeneralRefinementLemmas.i.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
10,992
8e988ec727bbd2f070db9da9bc2d0b80bf68edc4390109e3a76292a78d8dfe43
include "../../spec/refinement.s.dfy" include "../../util/collections/seqs.i.dfy" module GeneralRefinementLemmasModule { import opened util_collections_seqs_i import opened util_collections_seqs_s import opened GeneralRefinementModule predicate RefinementRelationReflexive<T(!new)>(relation:Refinemen...
microsoft/Armada
Armada/strategies/refinement/RefinementConvolution.i.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
11,777
f08e27c0c56cdb6fd6a39e84e6d1fe7817da99968a714e451113912700b142c3
include "GeneralRefinementLemmas.i.dfy" module RefinementConvolutionModule { import opened GeneralRefinementLemmasModule import opened GeneralRefinementModule import opened util_collections_seqs_s predicate RefinementRelationsConvolve<L(!new), M(!new), H(!new)>( lm_relation:RefinementRelation<L,...
microsoft/Armada
Armada/strategies/starweakening/StarWeakening.i.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
3,713
d2df964aeab1f7dbda47eef5a036542fef6633d500b3b8b18ff493b8df872a35
include "StarWeakeningSpec.i.dfy" include "../../util/collections/seqs.i.dfy" include "../../spec/refinement.s.dfy" module StarWeakeningModule { import opened StarWeakeningSpecModule import opened AnnotatedBehaviorModule import opened InvariantsModule import opened GeneralRefinementModule ...
microsoft/Armada
Armada/strategies/starweakening/StarWeakeningSpec.i.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
1,988
fc2cc96df29da110acac20aeb829cb2d122970bf9da795b65b9af26a9bfb2d4e
include "../refinement/AnnotatedBehavior.i.dfy" include "../../spec/refinement.s.dfy" include "../invariants.i.dfy" module StarWeakeningSpecModule { import opened AnnotatedBehaviorModule import opened InvariantsModule import opened GeneralRefinementModule datatype StarWeakeningRequest...
microsoft/Armada
Armada/strategies/tsoelimination/TSOElimination.i.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
2,000
ff053aa948f491486fcc13b24ba70440732649b8e89aee07edd8f4af8f11dd69
include "TSOEliminationLemmas.i.dfy" module TSOEliminationModule { import opened AnnotatedBehaviorModule import opened GeneralRefinementModule import opened InvariantsModule import opened util_collections_seqs_s import opened TSOEliminationSpecModule import opened TSOEliminationLemmas...
microsoft/Armada
Armada/strategies/tsoelimination/TSOEliminationLemmas.i.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
4,784
bb8782fd1c671c45af95286cfcd692ac7d9f4729391eb9d66f867e8c8a8de5d6
include "TSOEliminationSpec.i.dfy" include "../refinement/RefinementConvolution.i.dfy" include "../../util/collections/seqs.i.dfy" module TSOEliminationLemmasModule { import opened TSOEliminationSpecModule import opened util_collections_seqs_s import opened util_collections_seqs_i import open...
microsoft/Armada
Armada/strategies/tsoelimination/TSOEliminationSpec.i.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
2,749
c8dacd5fb3b39ee318e469fc4f056ed1159cb174371f529236cdae6d129c7233
include "../refinement/AnnotatedBehavior.i.dfy" include "../invariants.i.dfy" include "../../util/option.s.dfy" include "../../spec/refinement.s.dfy" module TSOEliminationSpecModule { import opened AnnotatedBehaviorModule import opened InvariantsModule import opened GeneralRefinementModule i...
microsoft/Armada
Armada/strategies/varhiding/VarHiding.i.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
2,969
3fdebb7f46cfdfb7d6d9a8c70ccfeafb6cdbe8a6cde3765c1218bb2ec2c366f9
include "VarHidingSpec.i.dfy" include "../refinement/RefinementConvolution.i.dfy" include "../../util/collections/seqs.i.dfy" module VarHidingModule { import opened VarHidingSpecModule import opened util_collections_maps_s import opened util_collections_seqs_s import opened util_collections_s...
microsoft/Armada
Armada/strategies/varhiding/VarHidingSpec.i.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
1,965
e90d7a805801720aa54ee8d371add9dac00edd069af9b9c6599b30039933f0e1
include "../refinement/AnnotatedBehavior.i.dfy" include "../invariants.i.dfy" include "../../spec/refinement.s.dfy" include "../../util/collections/maps.s.dfy" module VarHidingSpecModule { import opened util_collections_maps_s import opened AnnotatedBehaviorModule import opened InvariantsModule ...
microsoft/Armada
Armada/strategies/varintro/VarIntro.i.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
8,028
1667095c5df779253378f3eea468b6018367a33ffc7bb1b5c0ecc9e80dfbb41c
include "VarIntroSpec.i.dfy" include "../refinement/RefinementConvolution.i.dfy" include "../../util/collections/seqs.s.dfy" include "../../util/collections/seqs.i.dfy" module VarIntroModule { import opened VarIntroSpecModule import opened util_collections_maps_s import opened util_collections_se...
microsoft/Armada
Armada/strategies/varintro/VarIntroSpec.i.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
3,601
7df62714a254779805d3e6b59d195329dbfe1acbe3861631aa2078bbbf07d41b
include "../refinement/AnnotatedBehavior.i.dfy" include "../invariants.i.dfy" include "../../spec/refinement.s.dfy" include "../../util/collections/maps.s.dfy" module VarIntroSpecModule { import opened util_collections_maps_s import opened AnnotatedBehaviorModule import opened InvariantsModule ...
microsoft/Armada
Armada/strategies/weakening/Weakening.i.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
3,677
e532b61e1d2bfe1968b8cd38bb5779bc74e8c8640b35910e4fa053c7d043e01c
include "WeakeningSpec.i.dfy" include "../../util/collections/seqs.i.dfy" include "../../spec/refinement.s.dfy" module WeakeningModule { import opened WeakeningSpecModule import opened AnnotatedBehaviorModule import opened InvariantsModule import opened GeneralRefinementModule import ope...
microsoft/Armada
Armada/strategies/weakening/WeakeningSpec.i.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
1,882
a2e905d47ea9e560e58263def35b9bb295d561b97192efcf3ec181d3a76181ce
include "../refinement/AnnotatedBehavior.i.dfy" include "../../spec/refinement.s.dfy" include "../invariants.i.dfy" module WeakeningSpecModule { import opened AnnotatedBehaviorModule import opened InvariantsModule import opened GeneralRefinementModule datatype WeakeningRequest<!LState(==)...
microsoft/Armada
Armada/util/collections/maps.i.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
3,884
4b4cee21c0202a9300dd49f9cc432046649490fbddea7ebe717ada96c212d231
include "sets.i.dfy" module util_collections_maps_i { import opened util_collections_sets_i function AddSetToMap<K,V>(m: map<K,V>, ks: set<K>, v: V) : (m': map<K,V>) // requires forall k :: k in ks ==> !(k in m) ensures forall k :: k in m ==> k in m' && m'[k] == m[k] ensures forall ...
microsoft/Armada
Armada/util/collections/maps.s.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
529
004afc7e65e2ad875d4cf9654ac1b63d7a8c8c5bd68fd54f0d354fa5eb7ae6f9
module util_collections_maps_s { function mapdomain<KT,VT>(m:map<KT,VT>) : set<KT> { set k | k in m :: k } function mapremove<KT,VT>(m:map<KT,VT>, k:KT) : map<KT,VT> { map ki | ki in m && ki != k :: m[ki] } predicate maptotal<KT(!new),VT>(m:map<KT,VT>) ...
microsoft/Armada
Armada/util/collections/MapSum.i.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
2,402
bbea02e675cdd2371c553d3bde9c43080db5e1b512b932bb2cd4ca84343495b9
include "maps.s.dfy" include "sets.i.dfy" module util_collections_MapSum_i { import opened util_collections_maps_s import opened util_collections_sets_i lemma MapNonEmptyDomainNonEmpty<K, V>(m: map<K, V>) requires |m| > 0 ensures |mapdomain(m)| > 0 { var k :| k in m; assert k in ...
microsoft/Armada
Armada/util/collections/seqs.i.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
5,044
6bca67beb6271e4083ea15113bd7dddd6ba17c9993e08df5ecaafb8eb849094d
include "../option.s.dfy" include "seqs.s.dfy" module util_collections_seqs_i { import opened util_option_s import opened util_collections_seqs_s function {:opaque} ConvertMapToSeq<T>(n:int, m:map<int, T>) : seq<T> requires n >= 0; requires forall i {:trigger i in m} :: 0 <= i < n ==> i in m; ...
microsoft/Armada
Armada/util/collections/seqs.s.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
250
23f25674dd6b97b8f4432f2e50841e368135155dcb1319cb74934470d3a58bb4
module util_collections_seqs_s { function last<T>(s:seq<T>) : T requires |s| > 0; { s[|s|-1] } function all_but_last<T>(s:seq<T>) : seq<T> requires |s| > 0; { s[..|s|-1] } }
microsoft/Armada
Armada/util/collections/SeqSum.i.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
923
e7aadd5c4a6a4469070a396eaaaf8caf45dd300f22c6b8e3e3841496f1946628
module util_collections_SeqSum_i { function SeqSum(s:seq<int>) : int { if |s| == 0 then 0 else s[0] + SeqSum(s[1..]) } lemma lemma_SeqSumNonNegativeIfAllElementsNonNegative(s:seq<int>) requires forall i :: 0 <= i < |s| ==> s[i] >= 0 e...
microsoft/Armada
Armada/util/collections/sets.i.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
7,473
d573f0fb1cf2e68bf990b03c1f3dbc54e6d80b32ef7cae978240ac300fa59c7d
module util_collections_sets_i { lemma ThingsIKnowAboutSubset<T>(x:set<T>, y:set<T>) requires x<y; ensures |x|<|y|; { if (x!={}) { var e :| e in x; ThingsIKnowAboutSubset(x-{e}, y-{e}); } } lemma SubsetCardinality<T>(x:set<T>, y:set<T>) ensures x<y ==> |x|<|y|; en...
microsoft/Armada
Armada/util/math/div.i.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
31,436
568dde00388cdd7414df5bf77a673b6a5ebc92fcaa90c45d852e757e74743c95
include "power.i.dfy" include "mul.i.dfy" include "div_def.i.dfy" include "div_boogie.i.dfy" include "div_nonlinear.i.dfy" include "div_auto.i.dfy" include "mod_auto.i.dfy" include "mul_auto.i.dfy" include "powers.i.dfy" include "mul_nonlinear.i.dfy" module Math__div_i { import opened Math__power_i import...
microsoft/Armada
Armada/util/math/div_auto.i.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
5,774
c657f55d2d0348ef6bf1d53081dc5a6af6ab07ac6743a602a6f10f1bbefd8585
include "mod_auto.i.dfy" include "div_auto_proofs.i.dfy" include "mod_auto_proofs.i.dfy" module Math__div_auto_i { import opened Math__mod_auto_i import opened Math__div_auto_proofs_i import opened Math__mod_auto_proofs_i predicate DivAuto(n:int) requires n > 0; // TODO: allow n < 0 { ModAuto(n) ...
microsoft/Armada
Armada/util/math/div_auto_proofs.i.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
730
921d268899708ec8a53bad07d491c174b1f8247c7a222bed9586d0143fa32c6f
include "mod_auto.i.dfy" include "mod_auto_proofs.i.dfy" module Math__div_auto_proofs_i { import opened Math__mod_auto_i import opened Math__mod_auto_proofs_i lemma lemma_div_auto_basics(n:int) requires n > 0; ensures (n / n == -((-n) / n) == 1) ensures (forall x:int {:trigger x / n} :: 0 <=...
microsoft/Armada
Armada/util/math/div_boogie.i.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
2,421
13da7139c1a5ba9ada207c1b0bb69ccf2db36cf4e2cfd2373f642908c609b611
include "div_def.i.dfy" include "mul.i.dfy" module Math__div_boogie_i { import opened Math__div_def_i import opened Math__mul_i lemma lemma_div_is_div_boogie(x:int, d:int) requires d != 0; //- ensures INTERNAL_div(x, d) == INTERNAL_div_boogie(x, d); { } lemma lemma_mod_is_mod_boogie(x:int, d:int)...
microsoft/Armada
Armada/util/math/div_def.i.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
2,250
2eacacf61e376ac2fc786bcbc9d8289cb93d842013799ad73a4a54018542501f
//- Specs/implements mathematical div and mod, not the C version. //- This may produce "surprising" results for negative values //- For example, -3 div 5 is -1 and -3 mod 5 is 2. //- Note this is consistent: -3 * -1 + 2 == 5 module Math__div_def_i { /* function mod(x:int, m:int) : int requires m > 0; ...
microsoft/Armada
Armada/util/math/div_nonlinear.i.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
1,631
744bc35b064a67636f3d26908e558d0d1c6e3778fd058987465994356d07e368
//- <NuBuild AddDafnyFlag /z3opt:smt.arith.nl=true/> //- WARNING: In general, you shouldn't need to call these directly. Try //- to use the ones in div.i.dfy instead. They're more full-featured anyway. module Math__div_nonlinear_i { // WARNING: Think three times before adding anything to this file! // Nonlin...
microsoft/Armada
Armada/util/math/mod_auto.i.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
6,238
f88aad65db8d9396038a05b8d92630d5924a28675b8f52cf1e0b9c5b980b8e09
include "mod_auto_proofs.i.dfy" module Math__mod_auto_i { import opened Math__mod_auto_proofs_i predicate eq_mod(x:int, y:int, n:int) requires n > 0; { (x - y) % n == 0 // same as x % n == y % n, but easier to do induction on x - y than x and y separately } predicate ModAuto(n:int) requires...
microsoft/Armada
Armada/util/math/mod_auto_proofs.i.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
3,817
02973a04ad93fe41435b4d4c39b094be1d6cada1a09be5493d6c9c55f5cf1b42
include "mul_auto.i.dfy" include "mul.i.dfy" include "div_nonlinear.i.dfy" module Math__mod_auto_proofs_i { import opened Math__mul_auto_i import opened Math__mul_i import opened Math__div_nonlinear_i lemma lemma_mod_induction_helper(n:int, f:imap<int,bool>, x:int) requires n > 0; requires forall i...
microsoft/Armada
Armada/util/math/mul.i.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
14,661
3be556fd71c8418994965e16f567224e37895e1563afc75aa729cb8995a906d3
include "mul_nonlinear.i.dfy" include "mul_auto.i.dfy" module Math__mul_i { import opened Math__mul_nonlinear_i import opened Math__mul_auto_i // TODO_MODULE: module Math__mul_i { // TODO_MODULE: import opened Math__mul_nonlinear_i function mul(x:int, y:int) : int { x*y } //-////////////////////////////...
microsoft/Armada
Armada/util/math/mul_auto.i.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
1,905
d04a30799ca42f3d6472d5a2dcc383a8d266ab3aa65c4d5673ec720ab8c7693e
include "mul_auto_proofs.i.dfy" module Math__mul_auto_i { import opened Math__mul_auto_proofs_i predicate MulAuto() { (forall x:int, y:int {:trigger x * y} :: x * y == y * x) && (forall x:int, y:int, z:int {:trigger (x + y) * z} :: (x + y) * z == x * z + y * z) && (forall x:int, y:int, z:int {:trigger ...
microsoft/Armada
Armada/util/math/mul_auto_proofs.i.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
2,870
90fed1bc0ca019f0ef998312571d13f1dae815a29333d8181083acb332af089c
include "mul_nonlinear.i.dfy" module Math__mul_auto_proofs_i { import opened Math__mul_nonlinear_i lemma lemma_mul_induction_helper(f:imap<int,bool>, x:int) requires forall i :: i in f; requires f[0]; requires forall i {:trigger f[i], f[i + 1]} :: i >= 0 && f[i] ==> f[i + 1]; requires forall ...
microsoft/Armada
Armada/util/math/mul_nonlinear.i.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
1,417
4934613ef37663488df2695d36674ff4a4e7bb3243e185411251426e5b344cff
//- <NuBuild AddDafnyFlag /z3opt:smt.arith.nl=true/> //- WARNING: In general, you shouldn't need to call these directly. Try //- to use the ones in mul.i.dfy instead. They're more full-featured anyway. module Math__mul_nonlinear_i { // TODO_MODULE: module Math__mul_nonlinear_i { // WARNING: Think three tim...
microsoft/Armada
Armada/util/math/power.i.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
5,954
8e1a3071aea4e3c177c77b5d9139dbf56679aa4bbc77d86426bad1042db98d7b
include "powers.i.dfy" include "mul.i.dfy" include "mul_auto.i.dfy" module Math__power_i { import opened Math__power_s import opened Math__mul_i import opened Math__mul_auto_i //-lemma lemma_mul_passes_harmlessly_through_mod( //- ensures mul(x,y) % m == mul(x lemma lemma_power_0(b:int) ensures po...
microsoft/Armada
Armada/util/math/powers.i.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
275
d5402cf0902886c34668d3d2766f0d403bb531876123f27acc14e21bcc23842e
module Math__power_s { // TODO_MODULE: module Math__power_s { function {:opaque} power(b:int, e:nat) : int decreases e; { if (e==0) then 1 else b*power(b,e-1) } // TODO_MODULE: } import opened Math__power_s_ = Math__power_s }
microsoft/Armada
experimental/Tests/editor/range/counter/proj/extra.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
227
f81ca3c6a64dfcb2b9691f794d4e41d529cb83437bf72ae5c71bbd748fb76bf8
module sets_helpers { lemma Cardinality<T>(x:set<T>, y:set<T>) ensures x<y ==> |x|<|y|; ensures x<=y ==> |x|<=|y|; { if (x!={}) { var e :| e in x; Cardinality(x-{e}, y-{e}); } } }
microsoft/Armada
Test/armada-parser/test4defs.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
80
78f2a3a2c4d2a98c15ff302fe62c2677e8fa3763ff6f3729726d457a5cfeffd7
module test4defs { function Successor(x:int) : int { x + 1 } }
microsoft/Armada
Test/assume-intro/ABHelpers.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
631
6649398d63f81972beb0b0759d57e9f2a6fa3f0862ed5b3adf97267b9c2db758
include "A.dfy" include "../../Armada/ArmadaCommonDefinitions.dfy" module ABHelpers { import opened ArmadaCommonDefinitions = ArmadaCommonDefinitions import L = A predicate MyGlobalInvariant(s:L.Armada_TotalState) { && (forall tid :: tid in s.threads ==> tid == s.tid_init) && (forall tid ::...
microsoft/Armada
Test/barrier/extra.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
4,798
db5ac156545ec13b63dee332baf70d1eba2cd5ff976e6d0ca35954d1231b9b90
include "L1.dfy" module L1RefinesL2Helpers { import opened L = L1 lemma lemma_FindStoreBuffer1WhenLocalViewSeesIt( which_thread:int, mem:L.Armada_SharedMemory, storeBuffer:seq<L.Armada_StoreBufferEntry> ) returns ( entry:L.Armada_StoreBufferEntry ) requires forall entry' ...
microsoft/Armada
Test/bitvector/bv.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
1,640
19c8a2aa2882a718731123f664d387e9fac9785cd0111121be1c0494c1c427b6
include "../../Armada/ArmadaCommonDefinitions.dfy" module BitVectorTest1 { import opened ArmadaCommonDefinitions lemma mask_equiv_bv_wrapped(y:bv32) ensures bit_mod32(y, 512) == bit_and32(y, 511); { reveal bit_mod32(); reveal bit_and32(); } lemma mask_equiv_wrapped(x:uint32) ensures bit_mod_...
microsoft/Armada
Test/mcslock/L4_L5_helper.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
22,487
a392535e103a7ef1fe43c3f9d37871a50fe1113f1aa0193e5fea79a74346e654
include "../../Armada/ArmadaCommonDefinitions.dfy" include "L4.dfy" include "MCSLock.dfy" module Helper { import opened ArmadaCommonDefinitions = ArmadaCommonDefinitions import opened L = L4 import opened MCSLock function wait_entry(tid: uint64, val: uint32, pc: L.Armada_PC): Armada_StoreBufferEnt...
microsoft/Armada
Test/mcslock/L5_L6_helper.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
1,385
7d3be24d3f3a91237b6d24b02fb5c73046e4d4bc88e82237225f11e20f2b6646
include "../../Armada/ArmadaCommonDefinitions.dfy" include "L5.dfy" include "MCSLock.dfy" module Helper { import opened ArmadaCommonDefinitions = ArmadaCommonDefinitions import opened L = L5 import opened MCSLock function {:opaque} Armada_ApplyStoreBufferEntryLength(mem: Armada_SharedMemory, entry...
microsoft/Armada
Test/qbss/assumeintroproof_invariant.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
10,577
31328c09da0d58b1b5ec920571bf34d7ef4e241746f9707176ef8692c64b00c7
include "../../Armada/ArmadaCommonDefinitions.dfy" include "QueueBSS_TSObypass.dfy" include "QueueBSS_Assume.dfy" include "AssumeIntroProof/specs.dfy" module assumeintroproof_invariant { import opened ArmadaModule_specs import opened ArmadaCommonDefinitions = ArmadaCommonDefinitions /* EnqueueRegion = se...
microsoft/Armada
Test/qbss/auxiliary_helper.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
1,419
ed45e33fc783b2c68ac629b04fd6a78373a87f8f7f70d0908443c2957ad4c1bd
include "QueueBSS_WithAbstractQueue.dfy" include "../../Armada/util/collections/seqs.i.dfy" include "SharedStructs.dfy" module auxiliary_helper { import opened ArmadaCommonDefinitions = ArmadaCommonDefinitions import opened util_collections_seqs_i = util_collections_seqs_i import opened SharedStructs = ...
microsoft/Armada
Test/qbss/bv.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
2,656
003aa127d6bcf24941a8189ab7284996899a7603e3253769d96798c18a04021c
// mask == 2^x as "mask+1 & (mask) ) == 0 newtype uint32 = n: int | 0 <= n < 4294967296 method bitwise_and(x:uint32, y:uint32) returns (z:uint32) ensures z == bit_and_uint32(x, y) function {:opaque} U(b:bv32) : uint32 { b as uint32 } function {:opaque} B(u:uint32) : bv32 { u as bv32 } function {:opaque...
microsoft/Armada
Test/qbss/queue_abstractloginvariant.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
37,708
8d5d6330a6af36833589bbaa8f8b3b08016ce0641543c5312a919449072c1149
include "QueueBSS_WithAbstractQueue.dfy" include "UseAbstractQueueForLog/specs.dfy" include "SharedStructs.dfy" include "auxiliary_helper.dfy" module queue_abstractloginvariant { import opened ArmadaCommonDefinitions = ArmadaCommonDefinitions import opened QueueBSS_WithAbstractQueue = QueueBSS_WithAbstractQueue...
microsoft/Armada
Test/qbss/queue_tsobypassing_abstractloginvariant.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
26,486
4ce34d26da381c9111c4340f2899126cc2371c3f2181a165fb02155fc0242757
include "QueueBSSNoTSO_WithAbstractQueue.dfy" include "NoTSOUseAbstractQueueForLog/specs.dfy" include "SharedStructs.dfy" module queue_tsobypassing_abstractloginvariant { import opened ArmadaCommonDefinitions = ArmadaCommonDefinitions import opened QueueBSSNoTSO_WithAbstractQueue = QueueBSSNoTSO_WithAbstractQueu...
microsoft/Armada
Test/qbss/tau_invariant_helper.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
32,783
44e499b448ba5742827df278b76df89cfc7129798b86794b3f4cb7edc7354121
include "QueueBSS_WithAbstractQueue.dfy" include "UseAbstractQueueForLog/specs.dfy" include "SharedStructs.dfy" include "auxiliary_helper.dfy" include "queue_abstractloginvariant.dfy" include "../../Armada/util/math/mod_auto.i.dfy" module tau_invariant_helper { import opened ArmadaCommonDefinitions = Armad...
microsoft/Armada
Test/varhiding/VarHidingManualProof.i.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
21,462
5b2b15977d489ec3111a20e1eba5b2e2650e013bb7bd48004df8ddd023531a98
include "A.dfy" include "B.dfy" include "../../Armada/strategies/VarHiding/VarHiding.i.dfy" include "../../Armada/strategies/refinement/AnnotatedBehavior.i.dfy" include "../../Armada/util/option.s.dfy" include "../../Armada/util/collections/seqs.s.dfy" include "../../Armada/util/collections/seqs.i.dfy" include "...
microsoft/Armada
Test/weakening/ArithmeticFacts.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
518
d7c61d7e3f429272c16f982ec7f82cf6fad11b0174001760b13f43a695689ead
// Use /arith:2 to verify this file include "../../Armada/ArmadaCommonDefinitions.dfy" include "EF/specs.dfy" module ArithmeticFactsModule { import opened ArmadaCommonDefinitions import opened ArmadaModule_specs function ThreadToInstructionCount_LPlus(s:LPlusState, tid:Armada_ThreadHandle) : (v:int) ...
microsoft/Armada
Test/weakening/TestWeakeningProof.dfy
NOASSERTION
149
main
da7497dcf506417df1899ac58850706a31e3acd5
2025-02-19T18:51:59Z
24,348
2095c99954e2cd5f23f2528e7c3ac5af7c9a870b9278d1cb1974dd2b82420c6d
include "SharedStructs.dfy" include "A.dfy" include "B.dfy" include "../../Armada/strategies/weakening/Weakening.i.dfy" include "../../Armada/strategies/refinement/AnnotatedBehavior.i.dfy" include "../../Armada/util/option.s.dfy" include "../../Armada/util/collections/seqs.s.dfy" include "../../Armada/util/colle...
Consensys/evm-dafny
src/dafny/bytecode.dfy
Apache-2.0
140
master
e2e52e86d6623d48d0849f5ce1664f88c8f0e547
2026-05-11T14:57:28Z
70,080
91bb9793bfd4c7ee41f1f04ce5b8665dbec3b0ea6a8ab8bdf388906aba1d6bb3
/* * Copyright 2022 ConsenSys Software Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may obtain * a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
Consensys/evm-dafny
src/dafny/evm.dfy
Apache-2.0
140
master
e2e52e86d6623d48d0849f5ce1664f88c8f0e547
2026-05-11T14:57:28Z
20,609
0e16463d00e53cc4b3a3480dfc9ffd032a6463c51e54ea0ff769998055aa9a99
/* * Copyright 2022 ConsenSys Software Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may obtain * a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
Consensys/evm-dafny
src/dafny/gas.dfy
Apache-2.0
140
master
e2e52e86d6623d48d0849f5ce1664f88c8f0e547
2026-05-11T14:57:28Z
19,006
72d7e1d80653162ee6ed4c5cbc78219320bea4796b35b67ab5f6358d5da02024
/* * Copyright 2022 ConsenSys Software Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may obtain * a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
Consensys/evm-dafny
src/dafny/opcodes.dfy
Apache-2.0
140
master
e2e52e86d6623d48d0849f5ce1664f88c8f0e547
2026-05-11T14:57:28Z
5,387
c37dd0ef2b0ba0b858ef861f9810c0ee406ad9039c240adcbca61113672fbb1c
/* * Copyright 2022 ConsenSys Software Inc. * * Licensed under the Apache License, Version 2.0 (the "License") you may * not use this file except in compliance with the License. You may obtain * a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
Consensys/evm-dafny
src/dafny/state.dfy
Apache-2.0
140
master
e2e52e86d6623d48d0849f5ce1664f88c8f0e547
2026-05-11T14:57:28Z
35,593
9e6c1dc811f730d227a795b20c2ab455b8500bfd758a4b85ad9ec984f934aed6
/* * Copyright 2022 ConsenSys Software Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may obtain * a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
Consensys/evm-dafny
src/dafny/t8n.dfy
Apache-2.0
140
master
e2e52e86d6623d48d0849f5ce1664f88c8f0e547
2026-05-11T14:57:28Z
7,406
736be57a2e8398cebdd2f2cb8fadbd88749e732042bfc4546d236a096d69144c
/* * Copyright 2022 ConsenSys Software Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may obtain * a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
Consensys/evm-dafny
src/dafny/core/code.dfy
Apache-2.0
140
master
e2e52e86d6623d48d0849f5ce1664f88c8f0e547
2026-05-11T14:57:28Z
2,116
5451bea95dd79a55d531e46afdd11e297691a56b3de449aec932b9c81309e27d
/* * Copyright 2022 ConsenSys Software Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may obtain * a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
Consensys/evm-dafny
src/dafny/core/context.dfy
Apache-2.0
140
master
e2e52e86d6623d48d0849f5ce1664f88c8f0e547
2026-05-11T14:57:28Z
4,629
b915755572a62b2655cfa155f74486aa6eda8e9d1784d0d1994b81df55dd8b5d
/* * Copyright 2022 ConsenSys Software Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may obtain * a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
Consensys/evm-dafny
src/dafny/core/fork.dfy
Apache-2.0
140
master
e2e52e86d6623d48d0849f5ce1664f88c8f0e547
2026-05-11T14:57:28Z
7,006
a5baee4149e8f8592b66f7664f40d0915fbd3c4ce30e1f5fbe8edaf4fc75ef59
/* * Copyright 2022 ConsenSys Software Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may obtain * a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
Consensys/evm-dafny
src/dafny/core/memory.dfy
Apache-2.0
140
master
e2e52e86d6623d48d0849f5ce1664f88c8f0e547
2026-05-11T14:57:28Z
5,327
90cabbdf7daed191fa7771acfd543bcdd848dfaf0e1b9323dc1da9c907ad280f
/* * Copyright 2022 ConsenSys Software Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may obtain * a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
Consensys/evm-dafny
src/dafny/core/precompiled.dfy
Apache-2.0
140
master
e2e52e86d6623d48d0849f5ce1664f88c8f0e547
2026-05-11T14:57:28Z
15,121
01b29309dea987d283941c855c4d59ab8bd1692b3e07bf935d91a24fcbbe84fb
/* * Copyright 2022 ConsenSys Software Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may obtain * a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
Consensys/evm-dafny
src/dafny/core/stack.dfy
Apache-2.0
140
master
e2e52e86d6623d48d0849f5ce1664f88c8f0e547
2026-05-11T14:57:28Z
3,734
8fea9f5d48b3f35270a679bceed780284b860a09d01fcc701044c7c9cd785c5e
/* * Copyright 2022 ConsenSys Software Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may obtain * a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
Consensys/evm-dafny
src/dafny/core/storage.dfy
Apache-2.0
140
master
e2e52e86d6623d48d0849f5ce1664f88c8f0e547
2026-05-11T14:57:28Z
1,725
6ab7f95d3288b90467957423b1c028532cc85f67251ebf5b55761280e7efa347
/* * Copyright 2022 ConsenSys Software Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may obtain * a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
Consensys/evm-dafny
src/dafny/core/substate.dfy
Apache-2.0
140
master
e2e52e86d6623d48d0849f5ce1664f88c8f0e547
2026-05-11T14:57:28Z
3,815
677fcb6030f1a8b6bdb90e3451ad5a08d58ccac7e2258650f58b0d33d8c7ad0b
/* * Copyright 2022 ConsenSys Software Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may obtain * a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
Consensys/evm-dafny
src/dafny/core/transient.dfy
Apache-2.0
140
master
e2e52e86d6623d48d0849f5ce1664f88c8f0e547
2026-05-11T14:57:28Z
1,983
f45fecbfdaab4d89c0eb4866b035abb0c47f5104edfbb03bdacf81e091bdda16
/* * Copyright 2022 ConsenSys Software Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may obtain * a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
Consensys/evm-dafny
src/dafny/core/worldstate.dfy
Apache-2.0
140
master
e2e52e86d6623d48d0849f5ce1664f88c8f0e547
2026-05-11T14:57:28Z
10,591
38794191f9a83fbd631dc75e83e2d10a8a3c27e787ca575613598d4aa3badb26
/* * Copyright 2022 ConsenSys Software Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may obtain * a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
Consensys/evm-dafny
src/dafny/util/arrays.dfy
Apache-2.0
140
master
e2e52e86d6623d48d0849f5ce1664f88c8f0e547
2026-05-11T14:57:28Z
3,009
eb45cc8e5f3b455b47dcb73247c811385bd2b0f88ef095644267984b8933d066
/* * Copyright 2022 ConsenSys Software Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may obtain * a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
Consensys/evm-dafny
src/dafny/util/bytes.dfy
Apache-2.0
140
master
e2e52e86d6623d48d0849f5ce1664f88c8f0e547
2026-05-11T14:57:28Z
6,878
e402dd82cad11d4d45ecccb1d6c90bd4d114d45fa45030d5ebf989d1283f6257
/* * Copyright 2022 ConsenSys Software Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may obtain * a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
Consensys/evm-dafny
src/dafny/util/extern.dfy
Apache-2.0
140
master
e2e52e86d6623d48d0849f5ce1664f88c8f0e547
2026-05-11T14:57:28Z
832
28b1df2aceffd0f34c45873e9c0a17064e003cd64be74d6c9070a6ed01eda655
include "arrays.dfy" include "int.dfy" module External { import opened Arrays import opened Int /** * Compute the SHA3 (a.k.a KECCAK256) hash of a sequence of bytes. */ // function {:extern} sha3(bytes:Array<u8>) : u256 // /** // * Comput the RIPEMD160 digest. // ...
Consensys/evm-dafny
src/dafny/util/int.dfy
Apache-2.0
140
master
e2e52e86d6623d48d0849f5ce1664f88c8f0e547
2026-05-11T14:57:28Z
29,132
bbe34cff6c59aa16422a9e2dbb8aec75066cb911455c1bc8aff67ff258368229
/* * Copyright 2022 ConsenSys Software Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may obtain * a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
Consensys/evm-dafny
src/test/dafny/utils.dfy
Apache-2.0
140
master
e2e52e86d6623d48d0849f5ce1664f88c8f0e547
2026-05-11T14:57:28Z
194
81a087fbc81accb15a4d32f0f82665934cacc40f7e8a0eb79220077aa0dd8a03
module Utils { // A simple method which ensures a given predicate is verified, // and also checked at runtime. method AssertAndExpect(p: bool) requires p { expect p; } }
Consensys/evm-dafny
src/test/dafny/proofs/FM-paper.dfy
Apache-2.0
140
master
e2e52e86d6623d48d0849f5ce1664f88c8f0e547
2026-05-11T14:57:28Z
9,533
3b17ec373dae8cf84ce23f3d3ed66e7e08f5e259329a465e1d3960ee45e50d87
/* * Copyright 2022 ConsenSys Software Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may obtain * a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...