github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library@v0.2.0/ModInternals/ModInternals.go (about) 1 // Package ModInternals 2 // Dafny module ModInternals compiled into Go 3 4 package ModInternals 5 6 import ( 7 os "os" 8 9 m_BoundedInts "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/BoundedInts" 10 m_DivInternalsNonlinear "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/DivInternalsNonlinear" 11 m_FileIO "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/FileIO" 12 m_Functions "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/Functions" 13 m_GeneralInternals "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/GeneralInternals" 14 m__Math "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/Math_" 15 m_ModInternalsNonlinear "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/ModInternalsNonlinear" 16 m_Mul "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/Mul" 17 m_MulInternals "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/MulInternals" 18 m_MulInternalsNonlinear "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/MulInternalsNonlinear" 19 m_Relations "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/Relations" 20 m_Seq "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/Seq" 21 m_Seq_MergeSort "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/Seq_MergeSort" 22 m_UnicodeStrings "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/UnicodeStrings" 23 m__Unicode "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/Unicode_" 24 m_Utf16EncodingForm "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/Utf16EncodingForm" 25 m_Utf8EncodingForm "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/Utf8EncodingForm" 26 m_Wrappers "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/Wrappers" 27 m__System "github.com/dafny-lang/DafnyRuntimeGo/v4/System_" 28 _dafny "github.com/dafny-lang/DafnyRuntimeGo/v4/dafny" 29 ) 30 31 var _ = os.Args 32 var _ _dafny.Dummy__ 33 var _ m__System.Dummy__ 34 var _ m_Wrappers.Dummy__ 35 var _ m_Relations.Dummy__ 36 var _ m_Seq_MergeSort.Dummy__ 37 var _ m__Math.Dummy__ 38 var _ m_Seq.Dummy__ 39 var _ m_BoundedInts.Dummy__ 40 var _ m__Unicode.Dummy__ 41 var _ m_Functions.Dummy__ 42 var _ m_Utf8EncodingForm.Dummy__ 43 var _ m_Utf16EncodingForm.Dummy__ 44 var _ m_UnicodeStrings.Dummy__ 45 var _ m_FileIO.Dummy__ 46 var _ m_GeneralInternals.Dummy__ 47 var _ m_MulInternalsNonlinear.Dummy__ 48 var _ m_MulInternals.Dummy__ 49 var _ m_Mul.Dummy__ 50 var _ m_ModInternalsNonlinear.Dummy__ 51 var _ m_DivInternalsNonlinear.Dummy__ 52 53 type Dummy__ struct{} 54 55 // Definition of class Default__ 56 type Default__ struct { 57 dummy byte 58 } 59 60 func New_Default___() *Default__ { 61 _this := Default__{} 62 63 return &_this 64 } 65 66 type CompanionStruct_Default___ struct { 67 } 68 69 var Companion_Default___ = CompanionStruct_Default___{} 70 71 func (_this *Default__) Equals(other *Default__) bool { 72 return _this == other 73 } 74 75 func (_this *Default__) EqualsGeneric(x interface{}) bool { 76 other, ok := x.(*Default__) 77 return ok && _this.Equals(other) 78 } 79 80 func (*Default__) String() string { 81 return "ModInternals.Default__" 82 } 83 func (_this *Default__) ParentTraits_() []*_dafny.TraitID { 84 return [](*_dafny.TraitID){} 85 } 86 87 var _ _dafny.TraitOffspring = &Default__{} 88 89 func (_static *CompanionStruct_Default___) ModRecursive(x _dafny.Int, d _dafny.Int) _dafny.Int { 90 goto TAIL_CALL_START 91 TAIL_CALL_START: 92 if (x).Sign() == -1 { 93 var _in0 _dafny.Int = (d).Plus(x) 94 _ = _in0 95 var _in1 _dafny.Int = d 96 _ = _in1 97 x = _in0 98 d = _in1 99 goto TAIL_CALL_START 100 } else if (x).Cmp(d) < 0 { 101 return x 102 } else { 103 var _in2 _dafny.Int = (x).Minus(d) 104 _ = _in2 105 var _in3 _dafny.Int = d 106 _ = _in3 107 x = _in2 108 d = _in3 109 goto TAIL_CALL_START 110 } 111 } 112 113 // End of class Default__