1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
/* automatically generated by rust-bindgen */

pub const _STDINT_H: ::std::os::raw::c_uint = 1;
pub const _FEATURES_H: ::std::os::raw::c_uint = 1;
pub const _DEFAULT_SOURCE: ::std::os::raw::c_uint = 1;
pub const __USE_ISOC11: ::std::os::raw::c_uint = 1;
pub const __USE_ISOC99: ::std::os::raw::c_uint = 1;
pub const __USE_ISOC95: ::std::os::raw::c_uint = 1;
pub const __USE_POSIX_IMPLICITLY: ::std::os::raw::c_uint = 1;
pub const _POSIX_SOURCE: ::std::os::raw::c_uint = 1;
pub const _POSIX_C_SOURCE: ::std::os::raw::c_uint = 200809;
pub const __USE_POSIX: ::std::os::raw::c_uint = 1;
pub const __USE_POSIX2: ::std::os::raw::c_uint = 1;
pub const __USE_POSIX199309: ::std::os::raw::c_uint = 1;
pub const __USE_POSIX199506: ::std::os::raw::c_uint = 1;
pub const __USE_XOPEN2K: ::std::os::raw::c_uint = 1;
pub const __USE_XOPEN2K8: ::std::os::raw::c_uint = 1;
pub const _ATFILE_SOURCE: ::std::os::raw::c_uint = 1;
pub const __USE_MISC: ::std::os::raw::c_uint = 1;
pub const __USE_ATFILE: ::std::os::raw::c_uint = 1;
pub const __USE_FORTIFY_LEVEL: ::std::os::raw::c_uint = 0;
pub const _STDC_PREDEF_H: ::std::os::raw::c_uint = 1;
pub const __STDC_IEC_559__: ::std::os::raw::c_uint = 1;
pub const __STDC_IEC_559_COMPLEX__: ::std::os::raw::c_uint = 1;
pub const __STDC_ISO_10646__: ::std::os::raw::c_uint = 201605;
pub const __STDC_NO_THREADS__: ::std::os::raw::c_uint = 1;
pub const __GNU_LIBRARY__: ::std::os::raw::c_uint = 6;
pub const __GLIBC__: ::std::os::raw::c_uint = 2;
pub const __GLIBC_MINOR__: ::std::os::raw::c_uint = 24;
pub const _SYS_CDEFS_H: ::std::os::raw::c_uint = 1;
pub const __WORDSIZE: ::std::os::raw::c_uint = 64;
pub const __WORDSIZE_TIME64_COMPAT32: ::std::os::raw::c_uint = 1;
pub const __SYSCALL_WORDSIZE: ::std::os::raw::c_uint = 64;
pub const _BITS_WCHAR_H: ::std::os::raw::c_uint = 1;
pub const INT8_MIN: ::std::os::raw::c_int = -128;
pub const INT16_MIN: ::std::os::raw::c_int = -32768;
pub const INT32_MIN: ::std::os::raw::c_int = -2147483648;
pub const INT8_MAX: ::std::os::raw::c_uint = 127;
pub const INT16_MAX: ::std::os::raw::c_uint = 32767;
pub const INT32_MAX: ::std::os::raw::c_uint = 2147483647;
pub const UINT8_MAX: ::std::os::raw::c_uint = 255;
pub const UINT16_MAX: ::std::os::raw::c_uint = 65535;
pub const UINT32_MAX: ::std::os::raw::c_uint = 4294967295;
pub const INT_LEAST8_MIN: ::std::os::raw::c_int = -128;
pub const INT_LEAST16_MIN: ::std::os::raw::c_int = -32768;
pub const INT_LEAST32_MIN: ::std::os::raw::c_int = -2147483648;
pub const INT_LEAST8_MAX: ::std::os::raw::c_uint = 127;
pub const INT_LEAST16_MAX: ::std::os::raw::c_uint = 32767;
pub const INT_LEAST32_MAX: ::std::os::raw::c_uint = 2147483647;
pub const UINT_LEAST8_MAX: ::std::os::raw::c_uint = 255;
pub const UINT_LEAST16_MAX: ::std::os::raw::c_uint = 65535;
pub const UINT_LEAST32_MAX: ::std::os::raw::c_uint = 4294967295;
pub const INT_FAST8_MIN: ::std::os::raw::c_int = -128;
pub const INT_FAST16_MIN: ::std::os::raw::c_longlong = -9223372036854775808;
pub const INT_FAST32_MIN: ::std::os::raw::c_longlong = -9223372036854775808;
pub const INT_FAST8_MAX: ::std::os::raw::c_uint = 127;
pub const INT_FAST16_MAX: ::std::os::raw::c_ulonglong = 9223372036854775807;
pub const INT_FAST32_MAX: ::std::os::raw::c_ulonglong = 9223372036854775807;
pub const UINT_FAST8_MAX: ::std::os::raw::c_uint = 255;
pub const UINT_FAST16_MAX: ::std::os::raw::c_int = -1;
pub const UINT_FAST32_MAX: ::std::os::raw::c_int = -1;
pub const INTPTR_MIN: ::std::os::raw::c_longlong = -9223372036854775808;
pub const INTPTR_MAX: ::std::os::raw::c_ulonglong = 9223372036854775807;
pub const UINTPTR_MAX: ::std::os::raw::c_int = -1;
pub const PTRDIFF_MIN: ::std::os::raw::c_longlong = -9223372036854775808;
pub const PTRDIFF_MAX: ::std::os::raw::c_ulonglong = 9223372036854775807;
pub const SIG_ATOMIC_MIN: ::std::os::raw::c_int = -2147483648;
pub const SIG_ATOMIC_MAX: ::std::os::raw::c_uint = 2147483647;
pub const SIZE_MAX: ::std::os::raw::c_int = -1;
pub const WINT_MIN: ::std::os::raw::c_uint = 0;
pub const WINT_MAX: ::std::os::raw::c_uint = 4294967295;
pub const true_: ::std::os::raw::c_uint = 1;
pub const false_: ::std::os::raw::c_uint = 0;
pub const __bool_true_false_are_defined: ::std::os::raw::c_uint = 1;
pub type wchar_t = ::std::os::raw::c_int;
#[repr(C)]
#[derive(Debug, Copy)]
pub struct max_align_t {
    pub __clang_max_align_nonce1: ::std::os::raw::c_longlong,
    pub __bindgen_padding_0: u64,
    pub __clang_max_align_nonce2: f64,
}
#[test]
fn bindgen_test_layout_max_align_t() {
    assert_eq!(::std::mem::size_of::<max_align_t>() , 32usize , concat ! (
               "Size of: " , stringify ! ( max_align_t ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const max_align_t ) ) .
                __clang_max_align_nonce1 as * const _ as usize } , 0usize ,
                concat ! (
                "Alignment of field: " , stringify ! ( max_align_t ) , "::" ,
                stringify ! ( __clang_max_align_nonce1 ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const max_align_t ) ) .
                __clang_max_align_nonce2 as * const _ as usize } , 16usize ,
                concat ! (
                "Alignment of field: " , stringify ! ( max_align_t ) , "::" ,
                stringify ! ( __clang_max_align_nonce2 ) ));
}
impl Clone for max_align_t {
    fn clone(&self) -> Self { *self }
}
pub type int_least8_t = ::std::os::raw::c_schar;
pub type int_least16_t = ::std::os::raw::c_short;
pub type int_least32_t = ::std::os::raw::c_int;
pub type int_least64_t = ::std::os::raw::c_long;
pub type uint_least8_t = ::std::os::raw::c_uchar;
pub type uint_least16_t = ::std::os::raw::c_ushort;
pub type uint_least32_t = ::std::os::raw::c_uint;
pub type uint_least64_t = ::std::os::raw::c_ulong;
pub type int_fast8_t = ::std::os::raw::c_schar;
pub type int_fast16_t = ::std::os::raw::c_long;
pub type int_fast32_t = ::std::os::raw::c_long;
pub type int_fast64_t = ::std::os::raw::c_long;
pub type uint_fast8_t = ::std::os::raw::c_uchar;
pub type uint_fast16_t = ::std::os::raw::c_ulong;
pub type uint_fast32_t = ::std::os::raw::c_ulong;
pub type uint_fast64_t = ::std::os::raw::c_ulong;
pub type intmax_t = ::std::os::raw::c_long;
pub type uintmax_t = ::std::os::raw::c_ulong;
pub type BinaryenIndex = u32;
pub type BinaryenType = u32;
extern "C" {
    pub fn BinaryenNone() -> BinaryenType;
}
extern "C" {
    pub fn BinaryenInt32() -> BinaryenType;
}
extern "C" {
    pub fn BinaryenInt64() -> BinaryenType;
}
extern "C" {
    pub fn BinaryenFloat32() -> BinaryenType;
}
extern "C" {
    pub fn BinaryenFloat64() -> BinaryenType;
}
extern "C" {
    pub fn BinaryenUndefined() -> BinaryenType;
}
pub type BinaryenModuleRef = *mut ::std::os::raw::c_void;
extern "C" {
    pub fn BinaryenModuleCreate() -> BinaryenModuleRef;
}
extern "C" {
    pub fn BinaryenModuleDispose(module: BinaryenModuleRef);
}
pub type BinaryenFunctionTypeRef = *mut ::std::os::raw::c_void;
extern "C" {
    pub fn BinaryenAddFunctionType(module: BinaryenModuleRef,
                                   name: *const ::std::os::raw::c_char,
                                   result: BinaryenType,
                                   paramTypes: *mut BinaryenType,
                                   numParams: BinaryenIndex)
     -> BinaryenFunctionTypeRef;
}
#[repr(C)]
#[derive(Copy)]
pub struct BinaryenLiteral {
    pub type_: i32,
    pub __bindgen_anon_1: BinaryenLiteral__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy)]
pub union BinaryenLiteral__bindgen_ty_1 {
    pub i32: i32,
    pub i64: i64,
    pub f32: f32,
    pub f64: f64,
    _bindgen_union_align: u64,
}
#[test]
fn bindgen_test_layout_BinaryenLiteral__bindgen_ty_1() {
    assert_eq!(::std::mem::size_of::<BinaryenLiteral__bindgen_ty_1>() , 8usize
               , concat ! (
               "Size of: " , stringify ! ( BinaryenLiteral__bindgen_ty_1 ) ));
    assert_eq! (::std::mem::align_of::<BinaryenLiteral__bindgen_ty_1>() ,
                8usize , concat ! (
                "Alignment of " , stringify ! ( BinaryenLiteral__bindgen_ty_1
                ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const BinaryenLiteral__bindgen_ty_1 ) ) . i32
                as * const _ as usize } , 0usize , concat ! (
                "Alignment of field: " , stringify ! (
                BinaryenLiteral__bindgen_ty_1 ) , "::" , stringify ! ( i32 )
                ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const BinaryenLiteral__bindgen_ty_1 ) ) . i64
                as * const _ as usize } , 0usize , concat ! (
                "Alignment of field: " , stringify ! (
                BinaryenLiteral__bindgen_ty_1 ) , "::" , stringify ! ( i64 )
                ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const BinaryenLiteral__bindgen_ty_1 ) ) . f32
                as * const _ as usize } , 0usize , concat ! (
                "Alignment of field: " , stringify ! (
                BinaryenLiteral__bindgen_ty_1 ) , "::" , stringify ! ( f32 )
                ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const BinaryenLiteral__bindgen_ty_1 ) ) . f64
                as * const _ as usize } , 0usize , concat ! (
                "Alignment of field: " , stringify ! (
                BinaryenLiteral__bindgen_ty_1 ) , "::" , stringify ! ( f64 )
                ));
}
impl Clone for BinaryenLiteral__bindgen_ty_1 {
    fn clone(&self) -> Self { *self }
}
#[test]
fn bindgen_test_layout_BinaryenLiteral() {
    assert_eq!(::std::mem::size_of::<BinaryenLiteral>() , 16usize , concat ! (
               "Size of: " , stringify ! ( BinaryenLiteral ) ));
    assert_eq! (::std::mem::align_of::<BinaryenLiteral>() , 8usize , concat !
                ( "Alignment of " , stringify ! ( BinaryenLiteral ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const BinaryenLiteral ) ) . type_ as * const _
                as usize } , 0usize , concat ! (
                "Alignment of field: " , stringify ! ( BinaryenLiteral ) ,
                "::" , stringify ! ( type_ ) ));
}
impl Clone for BinaryenLiteral {
    fn clone(&self) -> Self { *self }
}
extern "C" {
    pub fn BinaryenLiteralInt32(x: i32) -> BinaryenLiteral;
}
extern "C" {
    pub fn BinaryenLiteralInt64(x: i64) -> BinaryenLiteral;
}
extern "C" {
    pub fn BinaryenLiteralFloat32(x: f32) -> BinaryenLiteral;
}
extern "C" {
    pub fn BinaryenLiteralFloat64(x: f64) -> BinaryenLiteral;
}
extern "C" {
    pub fn BinaryenLiteralFloat32Bits(x: i32) -> BinaryenLiteral;
}
extern "C" {
    pub fn BinaryenLiteralFloat64Bits(x: i64) -> BinaryenLiteral;
}
pub type BinaryenOp = i32;
extern "C" {
    pub fn BinaryenClzInt32() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenCtzInt32() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenPopcntInt32() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenNegFloat32() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenAbsFloat32() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenCeilFloat32() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenFloorFloat32() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenTruncFloat32() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenNearestFloat32() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenSqrtFloat32() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenEqZInt32() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenClzInt64() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenCtzInt64() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenPopcntInt64() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenNegFloat64() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenAbsFloat64() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenCeilFloat64() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenFloorFloat64() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenTruncFloat64() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenNearestFloat64() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenSqrtFloat64() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenEqZInt64() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenExtendSInt32() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenExtendUInt32() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenWrapInt64() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenTruncSFloat32ToInt32() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenTruncSFloat32ToInt64() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenTruncUFloat32ToInt32() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenTruncUFloat32ToInt64() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenTruncSFloat64ToInt32() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenTruncSFloat64ToInt64() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenTruncUFloat64ToInt32() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenTruncUFloat64ToInt64() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenReinterpretFloat32() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenReinterpretFloat64() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenConvertSInt32ToFloat32() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenConvertSInt32ToFloat64() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenConvertUInt32ToFloat32() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenConvertUInt32ToFloat64() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenConvertSInt64ToFloat32() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenConvertSInt64ToFloat64() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenConvertUInt64ToFloat32() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenConvertUInt64ToFloat64() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenPromoteFloat32() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenDemoteFloat64() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenReinterpretInt32() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenReinterpretInt64() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenAddInt32() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenSubInt32() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenMulInt32() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenDivSInt32() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenDivUInt32() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenRemSInt32() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenRemUInt32() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenAndInt32() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenOrInt32() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenXorInt32() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenShlInt32() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenShrUInt32() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenShrSInt32() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenRotLInt32() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenRotRInt32() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenEqInt32() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenNeInt32() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenLtSInt32() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenLtUInt32() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenLeSInt32() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenLeUInt32() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenGtSInt32() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenGtUInt32() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenGeSInt32() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenGeUInt32() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenAddInt64() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenSubInt64() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenMulInt64() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenDivSInt64() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenDivUInt64() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenRemSInt64() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenRemUInt64() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenAndInt64() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenOrInt64() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenXorInt64() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenShlInt64() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenShrUInt64() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenShrSInt64() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenRotLInt64() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenRotRInt64() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenEqInt64() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenNeInt64() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenLtSInt64() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenLtUInt64() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenLeSInt64() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenLeUInt64() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenGtSInt64() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenGtUInt64() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenGeSInt64() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenGeUInt64() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenAddFloat32() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenSubFloat32() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenMulFloat32() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenDivFloat32() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenCopySignFloat32() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenMinFloat32() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenMaxFloat32() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenEqFloat32() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenNeFloat32() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenLtFloat32() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenLeFloat32() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenGtFloat32() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenGeFloat32() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenAddFloat64() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenSubFloat64() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenMulFloat64() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenDivFloat64() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenCopySignFloat64() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenMinFloat64() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenMaxFloat64() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenEqFloat64() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenNeFloat64() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenLtFloat64() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenLeFloat64() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenGtFloat64() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenGeFloat64() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenPageSize() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenCurrentMemory() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenGrowMemory() -> BinaryenOp;
}
extern "C" {
    pub fn BinaryenHasFeature() -> BinaryenOp;
}
pub type BinaryenExpressionRef = *mut ::std::os::raw::c_void;
extern "C" {
    pub fn BinaryenBlock(module: BinaryenModuleRef,
                         name: *const ::std::os::raw::c_char,
                         children: *mut BinaryenExpressionRef,
                         numChildren: BinaryenIndex, type_: BinaryenType)
     -> BinaryenExpressionRef;
}
extern "C" {
    pub fn BinaryenIf(module: BinaryenModuleRef,
                      condition: BinaryenExpressionRef,
                      ifTrue: BinaryenExpressionRef,
                      ifFalse: BinaryenExpressionRef)
     -> BinaryenExpressionRef;
}
extern "C" {
    pub fn BinaryenLoop(module: BinaryenModuleRef,
                        in_: *const ::std::os::raw::c_char,
                        body: BinaryenExpressionRef) -> BinaryenExpressionRef;
}
extern "C" {
    pub fn BinaryenBreak(module: BinaryenModuleRef,
                         name: *const ::std::os::raw::c_char,
                         condition: BinaryenExpressionRef,
                         value: BinaryenExpressionRef)
     -> BinaryenExpressionRef;
}
extern "C" {
    pub fn BinaryenSwitch(module: BinaryenModuleRef,
                          names: *mut *const ::std::os::raw::c_char,
                          numNames: BinaryenIndex,
                          defaultName: *const ::std::os::raw::c_char,
                          condition: BinaryenExpressionRef,
                          value: BinaryenExpressionRef)
     -> BinaryenExpressionRef;
}
extern "C" {
    pub fn BinaryenCall(module: BinaryenModuleRef,
                        target: *const ::std::os::raw::c_char,
                        operands: *mut BinaryenExpressionRef,
                        numOperands: BinaryenIndex, returnType: BinaryenType)
     -> BinaryenExpressionRef;
}
extern "C" {
    pub fn BinaryenCallImport(module: BinaryenModuleRef,
                              target: *const ::std::os::raw::c_char,
                              operands: *mut BinaryenExpressionRef,
                              numOperands: BinaryenIndex,
                              returnType: BinaryenType)
     -> BinaryenExpressionRef;
}
extern "C" {
    pub fn BinaryenCallIndirect(module: BinaryenModuleRef,
                                target: BinaryenExpressionRef,
                                operands: *mut BinaryenExpressionRef,
                                numOperands: BinaryenIndex,
                                type_: *const ::std::os::raw::c_char)
     -> BinaryenExpressionRef;
}
extern "C" {
    pub fn BinaryenGetLocal(module: BinaryenModuleRef, index: BinaryenIndex,
                            type_: BinaryenType) -> BinaryenExpressionRef;
}
extern "C" {
    pub fn BinaryenSetLocal(module: BinaryenModuleRef, index: BinaryenIndex,
                            value: BinaryenExpressionRef)
     -> BinaryenExpressionRef;
}
extern "C" {
    pub fn BinaryenTeeLocal(module: BinaryenModuleRef, index: BinaryenIndex,
                            value: BinaryenExpressionRef)
     -> BinaryenExpressionRef;
}
extern "C" {
    pub fn BinaryenLoad(module: BinaryenModuleRef, bytes: u32, signed_: i8,
                        offset: u32, align: u32, type_: BinaryenType,
                        ptr: BinaryenExpressionRef) -> BinaryenExpressionRef;
}
extern "C" {
    pub fn BinaryenStore(module: BinaryenModuleRef, bytes: u32, offset: u32,
                         align: u32, ptr: BinaryenExpressionRef,
                         value: BinaryenExpressionRef, type_: BinaryenType)
     -> BinaryenExpressionRef;
}
extern "C" {
    pub fn BinaryenConst(module: BinaryenModuleRef, value: BinaryenLiteral)
     -> BinaryenExpressionRef;
}
extern "C" {
    pub fn BinaryenUnary(module: BinaryenModuleRef, op: BinaryenOp,
                         value: BinaryenExpressionRef)
     -> BinaryenExpressionRef;
}
extern "C" {
    pub fn BinaryenBinary(module: BinaryenModuleRef, op: BinaryenOp,
                          left: BinaryenExpressionRef,
                          right: BinaryenExpressionRef)
     -> BinaryenExpressionRef;
}
extern "C" {
    pub fn BinaryenSelect(module: BinaryenModuleRef,
                          condition: BinaryenExpressionRef,
                          ifTrue: BinaryenExpressionRef,
                          ifFalse: BinaryenExpressionRef)
     -> BinaryenExpressionRef;
}
extern "C" {
    pub fn BinaryenDrop(module: BinaryenModuleRef,
                        value: BinaryenExpressionRef)
     -> BinaryenExpressionRef;
}
extern "C" {
    pub fn BinaryenReturn(module: BinaryenModuleRef,
                          value: BinaryenExpressionRef)
     -> BinaryenExpressionRef;
}
extern "C" {
    pub fn BinaryenHost(module: BinaryenModuleRef, op: BinaryenOp,
                        name: *const ::std::os::raw::c_char,
                        operands: *mut BinaryenExpressionRef,
                        numOperands: BinaryenIndex) -> BinaryenExpressionRef;
}
extern "C" {
    pub fn BinaryenNop(module: BinaryenModuleRef) -> BinaryenExpressionRef;
}
extern "C" {
    pub fn BinaryenUnreachable(module: BinaryenModuleRef)
     -> BinaryenExpressionRef;
}
extern "C" {
    pub fn BinaryenExpressionPrint(expr: BinaryenExpressionRef);
}
pub type BinaryenFunctionRef = *mut ::std::os::raw::c_void;
extern "C" {
    pub fn BinaryenAddFunction(module: BinaryenModuleRef,
                               name: *const ::std::os::raw::c_char,
                               type_: BinaryenFunctionTypeRef,
                               varTypes: *mut BinaryenType,
                               numVarTypes: BinaryenIndex,
                               body: BinaryenExpressionRef)
     -> BinaryenFunctionRef;
}
pub type BinaryenImportRef = *mut ::std::os::raw::c_void;
extern "C" {
    pub fn BinaryenAddImport(module: BinaryenModuleRef,
                             internalName: *const ::std::os::raw::c_char,
                             externalModuleName:
                                 *const ::std::os::raw::c_char,
                             externalBaseName: *const ::std::os::raw::c_char,
                             type_: BinaryenFunctionTypeRef)
     -> BinaryenImportRef;
}
extern "C" {
    pub fn BinaryenRemoveImport(module: BinaryenModuleRef,
                                internalName: *const ::std::os::raw::c_char);
}
pub type BinaryenExportRef = *mut ::std::os::raw::c_void;
extern "C" {
    pub fn BinaryenAddExport(module: BinaryenModuleRef,
                             internalName: *const ::std::os::raw::c_char,
                             externalName: *const ::std::os::raw::c_char)
     -> BinaryenExportRef;
}
extern "C" {
    pub fn BinaryenRemoveExport(module: BinaryenModuleRef,
                                externalName: *const ::std::os::raw::c_char);
}
extern "C" {
    pub fn BinaryenSetFunctionTable(module: BinaryenModuleRef,
                                    funcs: *mut BinaryenFunctionRef,
                                    numFuncs: BinaryenIndex);
}
extern "C" {
    pub fn BinaryenSetMemory(module: BinaryenModuleRef,
                             initial: BinaryenIndex, maximum: BinaryenIndex,
                             exportName: *const ::std::os::raw::c_char,
                             segments: *mut *const ::std::os::raw::c_char,
                             segmentOffsets: *mut BinaryenExpressionRef,
                             segmentSizes: *mut BinaryenIndex,
                             numSegments: BinaryenIndex);
}
extern "C" {
    pub fn BinaryenSetStart(module: BinaryenModuleRef,
                            start: BinaryenFunctionRef);
}
extern "C" {
    pub fn BinaryenModuleParse(text: *const ::std::os::raw::c_char)
     -> BinaryenModuleRef;
}
extern "C" {
    pub fn BinaryenModulePrint(module: BinaryenModuleRef);
}
extern "C" {
    pub fn BinaryenModuleValidate(module: BinaryenModuleRef)
     -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn BinaryenModuleOptimize(module: BinaryenModuleRef);
}
extern "C" {
    pub fn BinaryenModuleAutoDrop(module: BinaryenModuleRef);
}
extern "C" {
    pub fn BinaryenModuleWrite(module: BinaryenModuleRef,
                               output: *mut ::std::os::raw::c_char,
                               outputSize: usize) -> usize;
}
extern "C" {
    pub fn BinaryenModuleRead(input: *mut ::std::os::raw::c_char,
                              inputSize: usize) -> BinaryenModuleRef;
}
extern "C" {
    pub fn BinaryenModuleInterpret(module: BinaryenModuleRef);
}
pub type RelooperRef = *mut ::std::os::raw::c_void;
pub type RelooperBlockRef = *mut ::std::os::raw::c_void;
extern "C" {
    pub fn RelooperCreate() -> RelooperRef;
}
extern "C" {
    pub fn RelooperAddBlock(relooper: RelooperRef,
                            code: BinaryenExpressionRef) -> RelooperBlockRef;
}
extern "C" {
    pub fn RelooperAddBranch(from: RelooperBlockRef, to: RelooperBlockRef,
                             condition: BinaryenExpressionRef,
                             code: BinaryenExpressionRef);
}
extern "C" {
    pub fn RelooperAddBlockWithSwitch(relooper: RelooperRef,
                                      code: BinaryenExpressionRef,
                                      condition: BinaryenExpressionRef)
     -> RelooperBlockRef;
}
extern "C" {
    pub fn RelooperAddBranchForSwitch(from: RelooperBlockRef,
                                      to: RelooperBlockRef,
                                      indexes: *mut BinaryenIndex,
                                      numIndexes: BinaryenIndex,
                                      code: BinaryenExpressionRef);
}
extern "C" {
    pub fn RelooperRenderAndDispose(relooper: RelooperRef,
                                    entry: RelooperBlockRef,
                                    labelHelper: BinaryenIndex,
                                    module: BinaryenModuleRef)
     -> BinaryenExpressionRef;
}
extern "C" {
    pub fn BinaryenSetAPITracing(on: ::std::os::raw::c_int);
}
extern "C" {
    pub fn BinaryenGetFunctionTypeBySignature(module: BinaryenModuleRef,
                                              result: BinaryenType,
                                              paramTypes: *mut BinaryenType,
                                              numParams: BinaryenIndex)
     -> BinaryenFunctionTypeRef;
}
extern "C" {
    pub fn BinaryenAddGlobal(module: BinaryenModuleRef,
                             name: *const ::std::os::raw::c_char,
                             type_: BinaryenType,
                             mutable_: ::std::os::raw::c_int,
                             init: BinaryenExpressionRef)
     -> BinaryenImportRef;
}
extern "C" {
    pub fn BinaryenGetGlobal(module: BinaryenModuleRef,
                             name: *const ::std::os::raw::c_char,
                             type_: BinaryenType) -> BinaryenExpressionRef;
}
extern "C" {
    pub fn BinaryenSetGlobal(module: BinaryenModuleRef,
                             name: *const ::std::os::raw::c_char,
                             value: BinaryenExpressionRef)
     -> BinaryenExpressionRef;
}