github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library@v0.2.0/BoundedInts/BoundedInts.go (about)

     1  // Package BoundedInts
     2  // Dafny module BoundedInts compiled into Go
     3  
     4  package BoundedInts
     5  
     6  import (
     7  	os "os"
     8  
     9  	m__Math "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/Math_"
    10  	m_Relations "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/Relations"
    11  	m_Seq "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/Seq"
    12  	m_Seq_MergeSort "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/Seq_MergeSort"
    13  	m_Wrappers "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/Wrappers"
    14  	m__System "github.com/dafny-lang/DafnyRuntimeGo/v4/System_"
    15  	_dafny "github.com/dafny-lang/DafnyRuntimeGo/v4/dafny"
    16  )
    17  
    18  var _ = os.Args
    19  var _ _dafny.Dummy__
    20  var _ m__System.Dummy__
    21  var _ m_Wrappers.Dummy__
    22  var _ m_Relations.Dummy__
    23  var _ m_Seq_MergeSort.Dummy__
    24  var _ m__Math.Dummy__
    25  var _ m_Seq.Dummy__
    26  
    27  type Dummy__ struct{}
    28  
    29  // Definition of class Default__
    30  type Default__ struct {
    31  	dummy byte
    32  }
    33  
    34  func New_Default___() *Default__ {
    35  	_this := Default__{}
    36  
    37  	return &_this
    38  }
    39  
    40  type CompanionStruct_Default___ struct {
    41  }
    42  
    43  var Companion_Default___ = CompanionStruct_Default___{}
    44  
    45  func (_this *Default__) Equals(other *Default__) bool {
    46  	return _this == other
    47  }
    48  
    49  func (_this *Default__) EqualsGeneric(x interface{}) bool {
    50  	other, ok := x.(*Default__)
    51  	return ok && _this.Equals(other)
    52  }
    53  
    54  func (*Default__) String() string {
    55  	return "BoundedInts.Default__"
    56  }
    57  func (_this *Default__) ParentTraits_() []*_dafny.TraitID {
    58  	return [](*_dafny.TraitID){}
    59  }
    60  
    61  var _ _dafny.TraitOffspring = &Default__{}
    62  
    63  func (_static *CompanionStruct_Default___) TWO__TO__THE__8() _dafny.Int {
    64  	return _dafny.IntOfInt64(256)
    65  }
    66  func (_static *CompanionStruct_Default___) UINT8__MAX() uint8 {
    67  	return uint8(255)
    68  }
    69  func (_static *CompanionStruct_Default___) TWO__TO__THE__16() _dafny.Int {
    70  	return _dafny.IntOfInt64(65536)
    71  }
    72  func (_static *CompanionStruct_Default___) UINT16__MAX() uint16 {
    73  	return uint16(65535)
    74  }
    75  func (_static *CompanionStruct_Default___) TWO__TO__THE__32() _dafny.Int {
    76  	return _dafny.IntOfInt64(4294967296)
    77  }
    78  func (_static *CompanionStruct_Default___) UINT32__MAX() uint32 {
    79  	return uint32(4294967295)
    80  }
    81  func (_static *CompanionStruct_Default___) TWO__TO__THE__64() _dafny.Int {
    82  	return _dafny.IntOfString("18446744073709551616")
    83  }
    84  func (_static *CompanionStruct_Default___) UINT64__MAX() uint64 {
    85  	return uint64(18446744073709551615)
    86  }
    87  func (_static *CompanionStruct_Default___) INT8__MIN() int8 {
    88  	return int8(-128)
    89  }
    90  func (_static *CompanionStruct_Default___) INT8__MAX() int8 {
    91  	return int8(127)
    92  }
    93  func (_static *CompanionStruct_Default___) INT16__MIN() int16 {
    94  	return int16(-32768)
    95  }
    96  func (_static *CompanionStruct_Default___) INT16__MAX() int16 {
    97  	return int16(32767)
    98  }
    99  func (_static *CompanionStruct_Default___) INT32__MIN() int32 {
   100  	return int32(-2147483648)
   101  }
   102  func (_static *CompanionStruct_Default___) INT32__MAX() int32 {
   103  	return int32(2147483647)
   104  }
   105  func (_static *CompanionStruct_Default___) INT64__MIN() int64 {
   106  	return int64(-9223372036854775808)
   107  }
   108  func (_static *CompanionStruct_Default___) INT64__MAX() int64 {
   109  	return int64(9223372036854775807)
   110  }
   111  func (_static *CompanionStruct_Default___) NAT8__MAX() uint8 {
   112  	return uint8(127)
   113  }
   114  func (_static *CompanionStruct_Default___) NAT16__MAX() uint16 {
   115  	return uint16(32767)
   116  }
   117  func (_static *CompanionStruct_Default___) NAT32__MAX() uint32 {
   118  	return uint32(2147483647)
   119  }
   120  func (_static *CompanionStruct_Default___) NAT64__MAX() uint64 {
   121  	return uint64(9223372036854775807)
   122  }
   123  func (_static *CompanionStruct_Default___) TWO__TO__THE__0() _dafny.Int {
   124  	return _dafny.One
   125  }
   126  func (_static *CompanionStruct_Default___) TWO__TO__THE__1() _dafny.Int {
   127  	return _dafny.IntOfInt64(2)
   128  }
   129  func (_static *CompanionStruct_Default___) TWO__TO__THE__2() _dafny.Int {
   130  	return _dafny.IntOfInt64(4)
   131  }
   132  func (_static *CompanionStruct_Default___) TWO__TO__THE__4() _dafny.Int {
   133  	return _dafny.IntOfInt64(16)
   134  }
   135  func (_static *CompanionStruct_Default___) TWO__TO__THE__5() _dafny.Int {
   136  	return _dafny.IntOfInt64(32)
   137  }
   138  func (_static *CompanionStruct_Default___) TWO__TO__THE__24() _dafny.Int {
   139  	return _dafny.IntOfInt64(16777216)
   140  }
   141  func (_static *CompanionStruct_Default___) TWO__TO__THE__40() _dafny.Int {
   142  	return _dafny.IntOfInt64(1099511627776)
   143  }
   144  func (_static *CompanionStruct_Default___) TWO__TO__THE__48() _dafny.Int {
   145  	return _dafny.IntOfInt64(281474976710656)
   146  }
   147  func (_static *CompanionStruct_Default___) TWO__TO__THE__56() _dafny.Int {
   148  	return _dafny.IntOfInt64(72057594037927936)
   149  }
   150  func (_static *CompanionStruct_Default___) TWO__TO__THE__128() _dafny.Int {
   151  	return _dafny.IntOfString("340282366920938463463374607431768211456")
   152  }
   153  func (_static *CompanionStruct_Default___) TWO__TO__THE__256() _dafny.Int {
   154  	return _dafny.IntOfString("115792089237316195423570985008687907853269984665640564039457584007913129639936")
   155  }
   156  func (_static *CompanionStruct_Default___) TWO__TO__THE__512() _dafny.Int {
   157  	return _dafny.IntOfString("13407807929942597099574024998205846127479365820592393377723561443721764030073546976801874298166903427690031858186486050853753882811946569946433649006084096")
   158  }
   159  
   160  // End of class Default__
   161  
   162  // Definition of class Uint8
   163  type Uint8 struct {
   164  }
   165  
   166  func New_Uint8_() *Uint8 {
   167  	_this := Uint8{}
   168  
   169  	return &_this
   170  }
   171  
   172  type CompanionStruct_Uint8_ struct {
   173  }
   174  
   175  var Companion_Uint8_ = CompanionStruct_Uint8_{}
   176  
   177  func (*Uint8) String() string {
   178  	return "BoundedInts.Uint8"
   179  }
   180  func (_this *Uint8) ParentTraits_() []*_dafny.TraitID {
   181  	return [](*_dafny.TraitID){}
   182  }
   183  
   184  var _ _dafny.TraitOffspring = &Uint8{}
   185  
   186  func (_this *CompanionStruct_Uint8_) IntegerRange(lo _dafny.Int, hi _dafny.Int) _dafny.Iterator {
   187  	iter := _dafny.IntegerRange(lo, hi)
   188  	return func() (interface{}, bool) {
   189  		next, ok := iter()
   190  		if !ok {
   191  			return uint8(0), false
   192  		}
   193  		return next.(_dafny.Int).Uint8(), true
   194  	}
   195  }
   196  
   197  // End of class Uint8
   198  
   199  func Type_Uint8_() _dafny.TypeDescriptor {
   200  	return type_Uint8_{}
   201  }
   202  
   203  type type_Uint8_ struct {
   204  }
   205  
   206  func (_this type_Uint8_) Default() interface{} {
   207  	return uint8(0)
   208  }
   209  
   210  func (_this type_Uint8_) String() string {
   211  	return "BoundedInts.Uint8"
   212  }
   213  func (_this *CompanionStruct_Uint8_) Is_(__source uint8) bool {
   214  	return true
   215  }
   216  
   217  // Definition of class Uint16
   218  type Uint16 struct {
   219  }
   220  
   221  func New_Uint16_() *Uint16 {
   222  	_this := Uint16{}
   223  
   224  	return &_this
   225  }
   226  
   227  type CompanionStruct_Uint16_ struct {
   228  }
   229  
   230  var Companion_Uint16_ = CompanionStruct_Uint16_{}
   231  
   232  func (*Uint16) String() string {
   233  	return "BoundedInts.Uint16"
   234  }
   235  func (_this *Uint16) ParentTraits_() []*_dafny.TraitID {
   236  	return [](*_dafny.TraitID){}
   237  }
   238  
   239  var _ _dafny.TraitOffspring = &Uint16{}
   240  
   241  func (_this *CompanionStruct_Uint16_) IntegerRange(lo _dafny.Int, hi _dafny.Int) _dafny.Iterator {
   242  	iter := _dafny.IntegerRange(lo, hi)
   243  	return func() (interface{}, bool) {
   244  		next, ok := iter()
   245  		if !ok {
   246  			return uint16(0), false
   247  		}
   248  		return next.(_dafny.Int).Uint16(), true
   249  	}
   250  }
   251  
   252  // End of class Uint16
   253  
   254  func Type_Uint16_() _dafny.TypeDescriptor {
   255  	return type_Uint16_{}
   256  }
   257  
   258  type type_Uint16_ struct {
   259  }
   260  
   261  func (_this type_Uint16_) Default() interface{} {
   262  	return uint16(0)
   263  }
   264  
   265  func (_this type_Uint16_) String() string {
   266  	return "BoundedInts.Uint16"
   267  }
   268  func (_this *CompanionStruct_Uint16_) Is_(__source uint16) bool {
   269  	return true
   270  }
   271  
   272  // Definition of class Uint32
   273  type Uint32 struct {
   274  }
   275  
   276  func New_Uint32_() *Uint32 {
   277  	_this := Uint32{}
   278  
   279  	return &_this
   280  }
   281  
   282  type CompanionStruct_Uint32_ struct {
   283  }
   284  
   285  var Companion_Uint32_ = CompanionStruct_Uint32_{}
   286  
   287  func (*Uint32) String() string {
   288  	return "BoundedInts.Uint32"
   289  }
   290  func (_this *Uint32) ParentTraits_() []*_dafny.TraitID {
   291  	return [](*_dafny.TraitID){}
   292  }
   293  
   294  var _ _dafny.TraitOffspring = &Uint32{}
   295  
   296  func (_this *CompanionStruct_Uint32_) IntegerRange(lo _dafny.Int, hi _dafny.Int) _dafny.Iterator {
   297  	iter := _dafny.IntegerRange(lo, hi)
   298  	return func() (interface{}, bool) {
   299  		next, ok := iter()
   300  		if !ok {
   301  			return uint32(0), false
   302  		}
   303  		return next.(_dafny.Int).Uint32(), true
   304  	}
   305  }
   306  
   307  // End of class Uint32
   308  
   309  func Type_Uint32_() _dafny.TypeDescriptor {
   310  	return type_Uint32_{}
   311  }
   312  
   313  type type_Uint32_ struct {
   314  }
   315  
   316  func (_this type_Uint32_) Default() interface{} {
   317  	return uint32(0)
   318  }
   319  
   320  func (_this type_Uint32_) String() string {
   321  	return "BoundedInts.Uint32"
   322  }
   323  func (_this *CompanionStruct_Uint32_) Is_(__source uint32) bool {
   324  	return true
   325  }
   326  
   327  // Definition of class Uint64
   328  type Uint64 struct {
   329  }
   330  
   331  func New_Uint64_() *Uint64 {
   332  	_this := Uint64{}
   333  
   334  	return &_this
   335  }
   336  
   337  type CompanionStruct_Uint64_ struct {
   338  }
   339  
   340  var Companion_Uint64_ = CompanionStruct_Uint64_{}
   341  
   342  func (*Uint64) String() string {
   343  	return "BoundedInts.Uint64"
   344  }
   345  func (_this *Uint64) ParentTraits_() []*_dafny.TraitID {
   346  	return [](*_dafny.TraitID){}
   347  }
   348  
   349  var _ _dafny.TraitOffspring = &Uint64{}
   350  
   351  func (_this *CompanionStruct_Uint64_) IntegerRange(lo _dafny.Int, hi _dafny.Int) _dafny.Iterator {
   352  	iter := _dafny.IntegerRange(lo, hi)
   353  	return func() (interface{}, bool) {
   354  		next, ok := iter()
   355  		if !ok {
   356  			return uint64(0), false
   357  		}
   358  		return next.(_dafny.Int).Uint64(), true
   359  	}
   360  }
   361  
   362  // End of class Uint64
   363  
   364  func Type_Uint64_() _dafny.TypeDescriptor {
   365  	return type_Uint64_{}
   366  }
   367  
   368  type type_Uint64_ struct {
   369  }
   370  
   371  func (_this type_Uint64_) Default() interface{} {
   372  	return uint64(0)
   373  }
   374  
   375  func (_this type_Uint64_) String() string {
   376  	return "BoundedInts.Uint64"
   377  }
   378  func (_this *CompanionStruct_Uint64_) Is_(__source uint64) bool {
   379  	return true
   380  }
   381  
   382  // Definition of class Int8
   383  type Int8 struct {
   384  }
   385  
   386  func New_Int8_() *Int8 {
   387  	_this := Int8{}
   388  
   389  	return &_this
   390  }
   391  
   392  type CompanionStruct_Int8_ struct {
   393  }
   394  
   395  var Companion_Int8_ = CompanionStruct_Int8_{}
   396  
   397  func (*Int8) String() string {
   398  	return "BoundedInts.Int8"
   399  }
   400  func (_this *Int8) ParentTraits_() []*_dafny.TraitID {
   401  	return [](*_dafny.TraitID){}
   402  }
   403  
   404  var _ _dafny.TraitOffspring = &Int8{}
   405  
   406  func (_this *CompanionStruct_Int8_) IntegerRange(lo _dafny.Int, hi _dafny.Int) _dafny.Iterator {
   407  	iter := _dafny.IntegerRange(lo, hi)
   408  	return func() (interface{}, bool) {
   409  		next, ok := iter()
   410  		if !ok {
   411  			return int8(0), false
   412  		}
   413  		return next.(_dafny.Int).Int8(), true
   414  	}
   415  }
   416  
   417  // End of class Int8
   418  
   419  func Type_Int8_() _dafny.TypeDescriptor {
   420  	return type_Int8_{}
   421  }
   422  
   423  type type_Int8_ struct {
   424  }
   425  
   426  func (_this type_Int8_) Default() interface{} {
   427  	return int8(0)
   428  }
   429  
   430  func (_this type_Int8_) String() string {
   431  	return "BoundedInts.Int8"
   432  }
   433  func (_this *CompanionStruct_Int8_) Is_(__source int8) bool {
   434  	return true
   435  }
   436  
   437  // Definition of class Int16
   438  type Int16 struct {
   439  }
   440  
   441  func New_Int16_() *Int16 {
   442  	_this := Int16{}
   443  
   444  	return &_this
   445  }
   446  
   447  type CompanionStruct_Int16_ struct {
   448  }
   449  
   450  var Companion_Int16_ = CompanionStruct_Int16_{}
   451  
   452  func (*Int16) String() string {
   453  	return "BoundedInts.Int16"
   454  }
   455  func (_this *Int16) ParentTraits_() []*_dafny.TraitID {
   456  	return [](*_dafny.TraitID){}
   457  }
   458  
   459  var _ _dafny.TraitOffspring = &Int16{}
   460  
   461  func (_this *CompanionStruct_Int16_) IntegerRange(lo _dafny.Int, hi _dafny.Int) _dafny.Iterator {
   462  	iter := _dafny.IntegerRange(lo, hi)
   463  	return func() (interface{}, bool) {
   464  		next, ok := iter()
   465  		if !ok {
   466  			return int16(0), false
   467  		}
   468  		return next.(_dafny.Int).Int16(), true
   469  	}
   470  }
   471  
   472  // End of class Int16
   473  
   474  func Type_Int16_() _dafny.TypeDescriptor {
   475  	return type_Int16_{}
   476  }
   477  
   478  type type_Int16_ struct {
   479  }
   480  
   481  func (_this type_Int16_) Default() interface{} {
   482  	return int16(0)
   483  }
   484  
   485  func (_this type_Int16_) String() string {
   486  	return "BoundedInts.Int16"
   487  }
   488  func (_this *CompanionStruct_Int16_) Is_(__source int16) bool {
   489  	return true
   490  }
   491  
   492  // Definition of class Int32
   493  type Int32 struct {
   494  }
   495  
   496  func New_Int32_() *Int32 {
   497  	_this := Int32{}
   498  
   499  	return &_this
   500  }
   501  
   502  type CompanionStruct_Int32_ struct {
   503  }
   504  
   505  var Companion_Int32_ = CompanionStruct_Int32_{}
   506  
   507  func (*Int32) String() string {
   508  	return "BoundedInts.Int32"
   509  }
   510  func (_this *Int32) ParentTraits_() []*_dafny.TraitID {
   511  	return [](*_dafny.TraitID){}
   512  }
   513  
   514  var _ _dafny.TraitOffspring = &Int32{}
   515  
   516  func (_this *CompanionStruct_Int32_) IntegerRange(lo _dafny.Int, hi _dafny.Int) _dafny.Iterator {
   517  	iter := _dafny.IntegerRange(lo, hi)
   518  	return func() (interface{}, bool) {
   519  		next, ok := iter()
   520  		if !ok {
   521  			return int32(0), false
   522  		}
   523  		return next.(_dafny.Int).Int32(), true
   524  	}
   525  }
   526  
   527  // End of class Int32
   528  
   529  func Type_Int32_() _dafny.TypeDescriptor {
   530  	return type_Int32_{}
   531  }
   532  
   533  type type_Int32_ struct {
   534  }
   535  
   536  func (_this type_Int32_) Default() interface{} {
   537  	return int32(0)
   538  }
   539  
   540  func (_this type_Int32_) String() string {
   541  	return "BoundedInts.Int32"
   542  }
   543  func (_this *CompanionStruct_Int32_) Is_(__source int32) bool {
   544  	return true
   545  }
   546  
   547  // Definition of class Int64
   548  type Int64 struct {
   549  }
   550  
   551  func New_Int64_() *Int64 {
   552  	_this := Int64{}
   553  
   554  	return &_this
   555  }
   556  
   557  type CompanionStruct_Int64_ struct {
   558  }
   559  
   560  var Companion_Int64_ = CompanionStruct_Int64_{}
   561  
   562  func (*Int64) String() string {
   563  	return "BoundedInts.Int64"
   564  }
   565  func (_this *Int64) ParentTraits_() []*_dafny.TraitID {
   566  	return [](*_dafny.TraitID){}
   567  }
   568  
   569  var _ _dafny.TraitOffspring = &Int64{}
   570  
   571  func (_this *CompanionStruct_Int64_) IntegerRange(lo _dafny.Int, hi _dafny.Int) _dafny.Iterator {
   572  	iter := _dafny.IntegerRange(lo, hi)
   573  	return func() (interface{}, bool) {
   574  		next, ok := iter()
   575  		if !ok {
   576  			return int64(0), false
   577  		}
   578  		return next.(_dafny.Int).Int64(), true
   579  	}
   580  }
   581  
   582  // End of class Int64
   583  
   584  func Type_Int64_() _dafny.TypeDescriptor {
   585  	return type_Int64_{}
   586  }
   587  
   588  type type_Int64_ struct {
   589  }
   590  
   591  func (_this type_Int64_) Default() interface{} {
   592  	return int64(0)
   593  }
   594  
   595  func (_this type_Int64_) String() string {
   596  	return "BoundedInts.Int64"
   597  }
   598  func (_this *CompanionStruct_Int64_) Is_(__source int64) bool {
   599  	return true
   600  }
   601  
   602  // Definition of class Nat8
   603  type Nat8 struct {
   604  }
   605  
   606  func New_Nat8_() *Nat8 {
   607  	_this := Nat8{}
   608  
   609  	return &_this
   610  }
   611  
   612  type CompanionStruct_Nat8_ struct {
   613  }
   614  
   615  var Companion_Nat8_ = CompanionStruct_Nat8_{}
   616  
   617  func (*Nat8) String() string {
   618  	return "BoundedInts.Nat8"
   619  }
   620  func (_this *Nat8) ParentTraits_() []*_dafny.TraitID {
   621  	return [](*_dafny.TraitID){}
   622  }
   623  
   624  var _ _dafny.TraitOffspring = &Nat8{}
   625  
   626  func (_this *CompanionStruct_Nat8_) IntegerRange(lo _dafny.Int, hi _dafny.Int) _dafny.Iterator {
   627  	iter := _dafny.IntegerRange(lo, hi)
   628  	return func() (interface{}, bool) {
   629  		next, ok := iter()
   630  		if !ok {
   631  			return uint8(0), false
   632  		}
   633  		return next.(_dafny.Int).Uint8(), true
   634  	}
   635  }
   636  
   637  // End of class Nat8
   638  
   639  func Type_Nat8_() _dafny.TypeDescriptor {
   640  	return type_Nat8_{}
   641  }
   642  
   643  type type_Nat8_ struct {
   644  }
   645  
   646  func (_this type_Nat8_) Default() interface{} {
   647  	return uint8(0)
   648  }
   649  
   650  func (_this type_Nat8_) String() string {
   651  	return "BoundedInts.Nat8"
   652  }
   653  func (_this *CompanionStruct_Nat8_) Is_(__source uint8) bool {
   654  	var _0_x _dafny.Int = _dafny.IntOfUint8(__source)
   655  	_ = _0_x
   656  	return ((_0_x).Sign() != -1) && ((_0_x).Cmp(_dafny.IntOfInt64(128)) < 0)
   657  }
   658  
   659  // Definition of class Nat16
   660  type Nat16 struct {
   661  }
   662  
   663  func New_Nat16_() *Nat16 {
   664  	_this := Nat16{}
   665  
   666  	return &_this
   667  }
   668  
   669  type CompanionStruct_Nat16_ struct {
   670  }
   671  
   672  var Companion_Nat16_ = CompanionStruct_Nat16_{}
   673  
   674  func (*Nat16) String() string {
   675  	return "BoundedInts.Nat16"
   676  }
   677  func (_this *Nat16) ParentTraits_() []*_dafny.TraitID {
   678  	return [](*_dafny.TraitID){}
   679  }
   680  
   681  var _ _dafny.TraitOffspring = &Nat16{}
   682  
   683  func (_this *CompanionStruct_Nat16_) IntegerRange(lo _dafny.Int, hi _dafny.Int) _dafny.Iterator {
   684  	iter := _dafny.IntegerRange(lo, hi)
   685  	return func() (interface{}, bool) {
   686  		next, ok := iter()
   687  		if !ok {
   688  			return uint16(0), false
   689  		}
   690  		return next.(_dafny.Int).Uint16(), true
   691  	}
   692  }
   693  
   694  // End of class Nat16
   695  
   696  func Type_Nat16_() _dafny.TypeDescriptor {
   697  	return type_Nat16_{}
   698  }
   699  
   700  type type_Nat16_ struct {
   701  }
   702  
   703  func (_this type_Nat16_) Default() interface{} {
   704  	return uint16(0)
   705  }
   706  
   707  func (_this type_Nat16_) String() string {
   708  	return "BoundedInts.Nat16"
   709  }
   710  func (_this *CompanionStruct_Nat16_) Is_(__source uint16) bool {
   711  	var _1_x _dafny.Int = _dafny.IntOfUint16(__source)
   712  	_ = _1_x
   713  	return ((_1_x).Sign() != -1) && ((_1_x).Cmp(_dafny.IntOfInt64(32768)) < 0)
   714  }
   715  
   716  // Definition of class Nat32
   717  type Nat32 struct {
   718  }
   719  
   720  func New_Nat32_() *Nat32 {
   721  	_this := Nat32{}
   722  
   723  	return &_this
   724  }
   725  
   726  type CompanionStruct_Nat32_ struct {
   727  }
   728  
   729  var Companion_Nat32_ = CompanionStruct_Nat32_{}
   730  
   731  func (*Nat32) String() string {
   732  	return "BoundedInts.Nat32"
   733  }
   734  func (_this *Nat32) ParentTraits_() []*_dafny.TraitID {
   735  	return [](*_dafny.TraitID){}
   736  }
   737  
   738  var _ _dafny.TraitOffspring = &Nat32{}
   739  
   740  func (_this *CompanionStruct_Nat32_) IntegerRange(lo _dafny.Int, hi _dafny.Int) _dafny.Iterator {
   741  	iter := _dafny.IntegerRange(lo, hi)
   742  	return func() (interface{}, bool) {
   743  		next, ok := iter()
   744  		if !ok {
   745  			return uint32(0), false
   746  		}
   747  		return next.(_dafny.Int).Uint32(), true
   748  	}
   749  }
   750  
   751  // End of class Nat32
   752  
   753  func Type_Nat32_() _dafny.TypeDescriptor {
   754  	return type_Nat32_{}
   755  }
   756  
   757  type type_Nat32_ struct {
   758  }
   759  
   760  func (_this type_Nat32_) Default() interface{} {
   761  	return uint32(0)
   762  }
   763  
   764  func (_this type_Nat32_) String() string {
   765  	return "BoundedInts.Nat32"
   766  }
   767  func (_this *CompanionStruct_Nat32_) Is_(__source uint32) bool {
   768  	var _2_x _dafny.Int = _dafny.IntOfUint32(__source)
   769  	_ = _2_x
   770  	return ((_2_x).Sign() != -1) && ((_2_x).Cmp(_dafny.IntOfInt64(2147483648)) < 0)
   771  }
   772  
   773  // Definition of class Nat64
   774  type Nat64 struct {
   775  }
   776  
   777  func New_Nat64_() *Nat64 {
   778  	_this := Nat64{}
   779  
   780  	return &_this
   781  }
   782  
   783  type CompanionStruct_Nat64_ struct {
   784  }
   785  
   786  var Companion_Nat64_ = CompanionStruct_Nat64_{}
   787  
   788  func (*Nat64) String() string {
   789  	return "BoundedInts.Nat64"
   790  }
   791  func (_this *Nat64) ParentTraits_() []*_dafny.TraitID {
   792  	return [](*_dafny.TraitID){}
   793  }
   794  
   795  var _ _dafny.TraitOffspring = &Nat64{}
   796  
   797  func (_this *CompanionStruct_Nat64_) IntegerRange(lo _dafny.Int, hi _dafny.Int) _dafny.Iterator {
   798  	iter := _dafny.IntegerRange(lo, hi)
   799  	return func() (interface{}, bool) {
   800  		next, ok := iter()
   801  		if !ok {
   802  			return uint64(0), false
   803  		}
   804  		return next.(_dafny.Int).Uint64(), true
   805  	}
   806  }
   807  
   808  // End of class Nat64
   809  
   810  func Type_Nat64_() _dafny.TypeDescriptor {
   811  	return type_Nat64_{}
   812  }
   813  
   814  type type_Nat64_ struct {
   815  }
   816  
   817  func (_this type_Nat64_) Default() interface{} {
   818  	return uint64(0)
   819  }
   820  
   821  func (_this type_Nat64_) String() string {
   822  	return "BoundedInts.Nat64"
   823  }
   824  func (_this *CompanionStruct_Nat64_) Is_(__source uint64) bool {
   825  	var _3_x _dafny.Int = _dafny.IntOfUint64(__source)
   826  	_ = _3_x
   827  	return ((_3_x).Sign() != -1) && ((_3_x).Cmp(_dafny.IntOfString("9223372036854775808")) < 0)
   828  }
   829  
   830  // Definition of class Opt__byte
   831  type Opt__byte struct {
   832  }
   833  
   834  func New_Opt__byte_() *Opt__byte {
   835  	_this := Opt__byte{}
   836  
   837  	return &_this
   838  }
   839  
   840  type CompanionStruct_Opt__byte_ struct {
   841  }
   842  
   843  var Companion_Opt__byte_ = CompanionStruct_Opt__byte_{}
   844  
   845  func (*Opt__byte) String() string {
   846  	return "BoundedInts.Opt__byte"
   847  }
   848  func (_this *Opt__byte) ParentTraits_() []*_dafny.TraitID {
   849  	return [](*_dafny.TraitID){}
   850  }
   851  
   852  var _ _dafny.TraitOffspring = &Opt__byte{}
   853  
   854  func (_this *CompanionStruct_Opt__byte_) IntegerRange(lo _dafny.Int, hi _dafny.Int) _dafny.Iterator {
   855  	iter := _dafny.IntegerRange(lo, hi)
   856  	return func() (interface{}, bool) {
   857  		next, ok := iter()
   858  		if !ok {
   859  			return int16(0), false
   860  		}
   861  		return next.(_dafny.Int).Int16(), true
   862  	}
   863  }
   864  
   865  // End of class Opt__byte
   866  
   867  func Type_Opt__byte_() _dafny.TypeDescriptor {
   868  	return type_Opt__byte_{}
   869  }
   870  
   871  type type_Opt__byte_ struct {
   872  }
   873  
   874  func (_this type_Opt__byte_) Default() interface{} {
   875  	return int16(0)
   876  }
   877  
   878  func (_this type_Opt__byte_) String() string {
   879  	return "BoundedInts.Opt__byte"
   880  }
   881  func (_this *CompanionStruct_Opt__byte_) Is_(__source int16) bool {
   882  	var _4_c _dafny.Int = _dafny.IntOfInt16(__source)
   883  	_ = _4_c
   884  	return ((_dafny.IntOfInt64(-1)).Cmp(_4_c) <= 0) && ((_4_c).Cmp(Companion_Default___.TWO__TO__THE__8()) < 0)
   885  }