fact
stringlengths
3
3.37k
type
stringclasses
3 values
library
stringclasses
3 values
imports
listlengths
0
65
filename
stringlengths
31
124
symbolic_name
stringlengths
1
66
docstring
stringclasses
1 value
GetGeneralTraitType() : (r: Type)
function
Source
[ "Std.Wrappers", "Std" ]
Source/DafnyCore/Backends/Dafny/AST.dfy
GetGeneralTraitType
GetDatatypeType() : (r: Type)
function
Source
[ "Std.Wrappers", "Std" ]
Source/DafnyCore/Backends/Dafny/AST.dfy
GetDatatypeType
RemoveSynonyms() : Type
function
Source
[ "Std.Wrappers", "Std" ]
Source/DafnyCore/Backends/Dafny/AST.dfy
RemoveSynonyms
Replace(mapping: map<Type, Type>) : ResolvedType
function
Source
[ "Std.Wrappers", "Std" ]
Source/DafnyCore/Backends/Dafny/AST.dfy
Replace
IsPrimitiveInt()
predicate
Source
[ "Std.Wrappers", "Std" ]
Source/DafnyCore/Backends/Dafny/AST.dfy
IsPrimitiveInt
IsGeneralTrait()
predicate
Source
[ "Std.Wrappers", "Std" ]
Source/DafnyCore/Backends/Dafny/AST.dfy
IsGeneralTrait
IsClassOrObjectTrait()
predicate
Source
[ "Std.Wrappers", "Std" ]
Source/DafnyCore/Backends/Dafny/AST.dfy
IsClassOrObjectTrait
IsDatatype()
predicate
Source
[ "Std.Wrappers", "Std" ]
Source/DafnyCore/Backends/Dafny/AST.dfy
IsDatatype
Extends(other: Type)
predicate
Source
[ "Std.Wrappers", "Std" ]
Source/DafnyCore/Backends/Dafny/AST.dfy
Extends
CanOverflow()
predicate
Source
[ "Std.Wrappers", "Std" ]
Source/DafnyCore/Backends/Dafny/AST.dfy
CanOverflow
HasArithmeticOperations()
predicate
Source
[ "Std.Wrappers", "Std" ]
Source/DafnyCore/Backends/Dafny/AST.dfy
HasArithmeticOperations
IsThisUpcast()
predicate
Source
[ "Std.Wrappers", "Std" ]
Source/DafnyCore/Backends/Dafny/AST.dfy
IsThisUpcast
CanonicalNewlines(s: string) : string
function
Source
[ "DafnyToRustCompiler", "DAST", "DafnyToRustCompilerDefinitions", "RAST", "Std.Wrappers", "DAST.Format", "Strings", "ExpressionOptimization" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-coverage.dfy
CanonicalNewlines
ConversionNum(t: Type, x: Expr) : Expr
function
Source
[ "DafnyToRustCompiler", "DAST", "DafnyToRustCompilerDefinitions", "RAST", "Std.Wrappers", "DAST.Format", "Strings", "ExpressionOptimization" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-coverage.dfy
ConversionNum
DafnyIntLiteral(s: string) : Expr
function
Source
[ "DafnyToRustCompiler", "DAST", "DafnyToRustCompilerDefinitions", "RAST", "Std.Wrappers", "DAST.Format", "Strings", "ExpressionOptimization" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-coverage.dfy
DafnyIntLiteral
Optimize(e: Expr) : Expr
function
Source
[ "DafnyToRustCompiler", "DAST", "DafnyToRustCompilerDefinitions", "RAST", "Std.Wrappers", "DAST.Format", "Strings", "ExpressionOptimization" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-coverage.dfy
Optimize
idiomatic_rust(i: string) : string
function
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
idiomatic_rust
replaceDots(i: string) : string
function
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
replaceDots
better_tuple_builder_name(i: string) : string
function
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
better_tuple_builder_name
escapeName(n: Name) : string
function
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
escapeName
escapeIdent(i: string) : string
function
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
escapeIdent
escapeVar(f: VarName) : string
function
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
escapeVar
ToOwned() : Environment
function
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
ToOwned
Empty() : Environment
function
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
Empty
GetType(name: string) : Option<R.Type>
function
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
GetType
AddAssigned(name: string, tpe: R.Type) : Environment
function
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
AddAssigned
Merge(other: Environment) : Environment
function
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
Merge
Join(thenBranch: Environment, elseBranch: Environment) : Environment
function
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
Join
RemoveAssigned(name: string) : Environment
function
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
RemoveAssigned
AddAssignmentStatus(name: string, assignmentStatus: AssignmentStatus) : Environment
function
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
AddAssignmentStatus
AddAssignedPrefix(rustName: string) : string
function
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
AddAssignedPrefix
ForTraitParents() : GenTypeContext
function
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
ForTraitParents
default() : GenTypeContext
function
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
default
TraitTypeContainingMethodAux(rs: seq<Type>, dafnyName: string) : Option<ResolvedType>
function
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
TraitTypeContainingMethodAux
TraitTypeContainingMethod(r: ResolvedType, dafnyName: string) : Option<ResolvedType>
function
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
TraitTypeContainingMethod
OptExtern(attr: Attribute, dafnyName: Name) : Option<ExternAttribute>
function
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
OptExtern
ReplaceDotByDoubleColon(s: string) : string
function
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
ReplaceDotByDoubleColon
SplitRustPathElement(s: string, result: seq<string> := [], acc: string := "") : seq<string>
function
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
SplitRustPathElement
ExtractExtern(attributes: seq<Attribute>, dafnyName: Name) : (res: ExternAttribute)
function
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
ExtractExtern
ExtractExternMod(mod: Module) : ExternAttribute
function
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
ExtractExternMod
ContainingPathToRust(containingPath: seq<Ident>) : seq<string>
function
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
ContainingPathToRust
AddOverflow(tpe: R.Type, overflow: bool) : R.Type
function
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
AddOverflow
NewtypeRangeToUnwrappedBoundedRustType(base: Type, range: NewtypeRange) : Option<R.Type>
function
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
NewtypeRangeToUnwrappedBoundedRustType
NewtypeRangeToRustType(range: NewtypeRange) : Option<R.Type>
function
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
NewtypeRangeToRustType
GetUnwrappedBoundedRustType(tpe: Type) : Option<R.Type>
function
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
GetUnwrappedBoundedRustType
Panic(optText: string := "") : R.Expr
function
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
Panic
UnreachablePanicIfVerified(pointerType: PointerType, optText: string := "") : R.Expr
function
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
UnreachablePanicIfVerified
DefaultDatatypeImpl(rTypeParamsDecls: seq<R.TypeParamDecl>, datatypeType: R.Type, datatypeName: R.Expr, structAssignments: seq<R.AssignIdentifier>) : R.ModDecl
function
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
DefaultDatatypeImpl
AsRefDatatypeImpl(rTypeParamsDecls: seq<R.TypeParamDecl>, datatypeType: R.Type) : R.ModDecl
function
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
AsRefDatatypeImpl
DebugImpl(rTypeParamsDecls: seq<R.TypeParamDecl>, datatypeType: R.Type, rTypeParams: seq<R.Type>) : R.ModDecl
function
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
DebugImpl
PrintImpl(rTypeParamsDecls: seq<R.TypeParamDecl>, datatypeType: R.Type, rTypeParams: seq<R.Type>, printImplBody: R.Expr) : R.ModDecl
function
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
PrintImpl
EqImpl(rTypeParamsDeclsWithEq: seq<R.TypeParamDecl>, datatypeType: R.Type, rTypeParams: seq<R.Type>, eqImplBody: R.Expr) : seq<R.ModDecl>
function
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
EqImpl
CoerceImpl(rc: R.Type -> R.Type, rcNew: R.Expr -> R.Expr, rTypeParamsDecls: seq<R.TypeParamDecl>, datatypeName: string, datatypeType: R.Type, rCoerceTypeParams: seq<R.TypeParamDecl>, coerceArguments: seq<R.Formal>, coerceTypes: seq<R.Type>, coerceImplBody: R.Expr) : R.ModDecl
function
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
CoerceImpl
SingletonsImpl(rTypeParamsDecls: seq<R.TypeParamDecl>, datatypeType: R.Type, instantiationType: R.Type, singletonConstructors: seq<R.Expr>) : R.ModDecl
function
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
SingletonsImpl
HashImpl(rTypeParamsDeclsWithHash: seq<R.TypeParamDecl>, datatypeOrNewtypeType: R.Type, hashImplBody: R.Expr) : R.ModDecl
function
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
HashImpl
hasher_trait(supportsEquality: bool, pointerType: PointerType) : R.ImplMember
function
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
hasher_trait
eq_trait(fullTraitPath: R.Type, fullTraitExpr: R.Expr, supportsEquality: bool, pointerType: PointerType) : R.ImplMember
function
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
eq_trait
clone_trait(fullTraitPath: R.Type) : R.ImplMember
function
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
clone_trait
UnaryOpsImpl(op: char, rTypeParamsDecls: seq<R.TypeParamDecl>, newtypeType: R.Type, newtypeConstructor: string) : R.ModDecl
function
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
UnaryOpsImpl
OpsImpl(op: char, rTypeParamsDecls: seq<R.TypeParamDecl>, newtypeType: R.Type, newtypeConstructor: string) : R.ModDecl
function
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
OpsImpl
PartialOrdImpl(rTypeParamsDecls: seq<R.TypeParamDecl>, newtypeType: R.Type, newtypeConstructor: string) : R.ModDecl
function
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
PartialOrdImpl
DowncastTraitDeclFor(rTypeParamsDecls: seq<R.TypeParamDecl>, fullType: R.Type) : Option<R.ModDecl>
function
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
DowncastTraitDeclFor
DowncastImplFor(rcNew: R.Expr -> R.Expr, rTypeParamsDecls: seq<R.TypeParamDecl>, datatypeType: R.Type) : Option<R.ModDecl>
function
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
DowncastImplFor
DowncastNotImplFor(rTypeParamsDecls: seq<R.TypeParamDecl>, traitType: R.Type, datatypeType: R.Type) : Option<R.ModDecl>
function
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
DowncastNotImplFor
DowncastImplTraitFor(rTypeParamsDecls: seq<R.TypeParamDecl>, traitType: R.Type, implementsTrait: bool, datatypeType: R.Type) : Option<R.ModDecl>
function
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
DowncastImplTraitFor
UpcastDynTraitFor(rTypeParamsDecls: seq<R.TypeParamDecl>, forBoxedTraitType: R.Type, superTraitType: R.Type, superTraitExpr: R.Expr) : R.ModDecl
function
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
UpcastDynTraitFor
Join(other: AssignmentStatus) : AssignmentStatus
function
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
Join
Then(other: AssignmentStatus) : AssignmentStatus
function
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
Then
DetectAssignmentStatus(stmts_remainder: seq<Statement>, dafny_name: VarName) : AssignmentStatus
function
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
DetectAssignmentStatus
prefixWith2(s: string) : string
function
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
prefixWith2
CoveredAllNewtypeCases(tpe: Type) requires GetUnwrappedBoundedRustType(tpe).None? requires !NeedsUnwrappingConversion(tpe) ensures !IsNewtype(tpe)
lemma
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
CoveredAllNewtypeCases
BecomesExclusive(op: BinOp) ensures BecomesRightCallsLeft(op) ==> !BecomesLeftCallsRight(op) ensures BecomesLeftCallsRight(op) ==> !BecomesRightCallsLeft(op)
lemma
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
BecomesExclusive
is_tuple_numeric(i: string)
predicate
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
is_tuple_numeric
has_special(i: string)
predicate
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
has_special
is_tuple_builder(i: string)
predicate
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
is_tuple_builder
is_dafny_generated_id(i: string)
predicate
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
is_dafny_generated_id
is_idiomatic_rust_id(i: string)
predicate
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
is_idiomatic_rust_id
CanReadWithoutClone(name: string)
predicate
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
CanReadWithoutClone
HasCloneSemantics(name: string)
predicate
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
HasCloneSemantics
IsBorrowed(name: string)
predicate
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
IsBorrowed
IsBorrowedMut(name: string)
predicate
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
IsBorrowedMut
IsBoxed(name: string)
predicate
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
IsBoxed
NeedsAsRefForBorrow(name: string)
predicate
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
NeedsAsRefForBorrow
IsMaybePlacebo(name: string)
predicate
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
IsMaybePlacebo
IsAssignmentStatusKnown(name: string)
predicate
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
IsAssignmentStatusKnown
IsSelf()
predicate
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
IsSelf
IsGeneralTrait()
predicate
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
IsGeneralTrait
IsClassOrObjectTrait()
predicate
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
IsClassOrObjectTrait
IsRcWrappedDatatype()
predicate
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
IsRcWrappedDatatype
IsRcWrappedDatatypeRec(dafnyType: Type)
predicate
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
IsRcWrappedDatatypeRec
IsRcWrapped(attributes: seq<Attribute>)
predicate
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
IsRcWrapped
IsBooleanOperator(op: BinOp)
predicate
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
IsBooleanOperator
IsComplexArithmetic(op: BinOp)
predicate
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
IsComplexArithmetic
NeedsUnwrappingConversion(tpe: Type)
predicate
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
NeedsUnwrappingConversion
IsNewtype(tpe: Type)
predicate
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
IsNewtype
IsNewtypeCopy(range: NewtypeRange)
predicate
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
IsNewtypeCopy
OwnershipGuarantee(expectedOwnership: Ownership, resultingOwnership: Ownership)
predicate
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
OwnershipGuarantee
BecomesLeftCallsRight(op: BinOp)
predicate
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
BecomesLeftCallsRight
BecomesRightCallsLeft(op: BinOp)
predicate
Source
[ "FactorPathsOptimization", "ExpressionOptimization", "DAST", "Strings", "Std", "Std.Wrappers", "R", "DafnyCompilerRustUtils" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-definitions.dfy
BecomesRightCallsLeft
apply(mod: Mod) : Mod
function
Source
[ "Std", "RAST", "DAST.Format", "Std.Wrappers" ]
Source/DafnyCore/Backends/Rust/Dafny-compiler-rust-expression-optimization.dfy
apply