flint-sys 0.9.0

Bindings to the FLINT C library
Documentation
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
/* automatically generated by rust-bindgen 0.70.1 */

use crate::deps::*;
use crate::flint::*;
use crate::fmpz_mod_types::*;
use crate::fq_nmod_types::*;
use crate::n_poly_types::*;


pub const MPOLY_NUM_ORDERINGS: u32 = 3;
pub const ordering_t_ORD_LEX: ordering_t = 0;
pub const ordering_t_ORD_DEGLEX: ordering_t = 1;
pub const ordering_t_ORD_DEGREVLEX: ordering_t = 2;
pub type ordering_t = libc::c_uint;
#[repr(C)]
pub struct mpoly_ctx_struct {
    pub nvars: slong,
    pub nfields: slong,
    pub ord: ordering_t,
    pub deg: libc::c_int,
    pub rev: libc::c_int,
    pub lut_words_per_exp: [slong; 64usize],
    pub lut_fix_bits: [libc::c_uchar; 64usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of mpoly_ctx_struct"][::std::mem::size_of::<mpoly_ctx_struct>() - 608usize];
    ["Alignment of mpoly_ctx_struct"][::std::mem::align_of::<mpoly_ctx_struct>() - 8usize];
    ["Offset of field: mpoly_ctx_struct::nvars"]
        [::std::mem::offset_of!(mpoly_ctx_struct, nvars) - 0usize];
    ["Offset of field: mpoly_ctx_struct::nfields"]
        [::std::mem::offset_of!(mpoly_ctx_struct, nfields) - 8usize];
    ["Offset of field: mpoly_ctx_struct::ord"]
        [::std::mem::offset_of!(mpoly_ctx_struct, ord) - 16usize];
    ["Offset of field: mpoly_ctx_struct::deg"]
        [::std::mem::offset_of!(mpoly_ctx_struct, deg) - 20usize];
    ["Offset of field: mpoly_ctx_struct::rev"]
        [::std::mem::offset_of!(mpoly_ctx_struct, rev) - 24usize];
    ["Offset of field: mpoly_ctx_struct::lut_words_per_exp"]
        [::std::mem::offset_of!(mpoly_ctx_struct, lut_words_per_exp) - 32usize];
    ["Offset of field: mpoly_ctx_struct::lut_fix_bits"]
        [::std::mem::offset_of!(mpoly_ctx_struct, lut_fix_bits) - 544usize];
};
impl Default for mpoly_ctx_struct {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type mpoly_ctx_t = [mpoly_ctx_struct; 1usize];
#[repr(C)]
pub struct nmod_mpoly_ctx_struct {
    pub minfo: mpoly_ctx_t,
    pub mod_: nmod_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of nmod_mpoly_ctx_struct"][::std::mem::size_of::<nmod_mpoly_ctx_struct>() - 632usize];
    ["Alignment of nmod_mpoly_ctx_struct"]
        [::std::mem::align_of::<nmod_mpoly_ctx_struct>() - 8usize];
    ["Offset of field: nmod_mpoly_ctx_struct::minfo"]
        [::std::mem::offset_of!(nmod_mpoly_ctx_struct, minfo) - 0usize];
    ["Offset of field: nmod_mpoly_ctx_struct::mod_"]
        [::std::mem::offset_of!(nmod_mpoly_ctx_struct, mod_) - 608usize];
};
impl Default for nmod_mpoly_ctx_struct {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type nmod_mpoly_ctx_t = [nmod_mpoly_ctx_struct; 1usize];
#[repr(C)]
pub struct fmpz_mpoly_ctx_struct {
    pub minfo: mpoly_ctx_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of fmpz_mpoly_ctx_struct"][::std::mem::size_of::<fmpz_mpoly_ctx_struct>() - 608usize];
    ["Alignment of fmpz_mpoly_ctx_struct"]
        [::std::mem::align_of::<fmpz_mpoly_ctx_struct>() - 8usize];
    ["Offset of field: fmpz_mpoly_ctx_struct::minfo"]
        [::std::mem::offset_of!(fmpz_mpoly_ctx_struct, minfo) - 0usize];
};
impl Default for fmpz_mpoly_ctx_struct {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type fmpz_mpoly_ctx_t = [fmpz_mpoly_ctx_struct; 1usize];
#[repr(C)]
pub struct fmpq_mpoly_ctx_struct {
    pub zctx: fmpz_mpoly_ctx_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of fmpq_mpoly_ctx_struct"][::std::mem::size_of::<fmpq_mpoly_ctx_struct>() - 608usize];
    ["Alignment of fmpq_mpoly_ctx_struct"]
        [::std::mem::align_of::<fmpq_mpoly_ctx_struct>() - 8usize];
    ["Offset of field: fmpq_mpoly_ctx_struct::zctx"]
        [::std::mem::offset_of!(fmpq_mpoly_ctx_struct, zctx) - 0usize];
};
impl Default for fmpq_mpoly_ctx_struct {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type fmpq_mpoly_ctx_t = [fmpq_mpoly_ctx_struct; 1usize];
#[repr(C)]
pub struct fmpz_mod_mpoly_ctx_struct {
    pub minfo: mpoly_ctx_t,
    pub ffinfo: fmpz_mod_ctx_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of fmpz_mod_mpoly_ctx_struct"]
        [::std::mem::size_of::<fmpz_mod_mpoly_ctx_struct>() - 720usize];
    ["Alignment of fmpz_mod_mpoly_ctx_struct"]
        [::std::mem::align_of::<fmpz_mod_mpoly_ctx_struct>() - 8usize];
    ["Offset of field: fmpz_mod_mpoly_ctx_struct::minfo"]
        [::std::mem::offset_of!(fmpz_mod_mpoly_ctx_struct, minfo) - 0usize];
    ["Offset of field: fmpz_mod_mpoly_ctx_struct::ffinfo"]
        [::std::mem::offset_of!(fmpz_mod_mpoly_ctx_struct, ffinfo) - 608usize];
};
impl Default for fmpz_mod_mpoly_ctx_struct {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type fmpz_mod_mpoly_ctx_t = [fmpz_mod_mpoly_ctx_struct; 1usize];
#[repr(C)]
pub struct fq_nmod_mpoly_ctx_struct {
    pub minfo: mpoly_ctx_t,
    pub fqctx: fq_nmod_ctx_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of fq_nmod_mpoly_ctx_struct"]
        [::std::mem::size_of::<fq_nmod_mpoly_ctx_struct>() - 768usize];
    ["Alignment of fq_nmod_mpoly_ctx_struct"]
        [::std::mem::align_of::<fq_nmod_mpoly_ctx_struct>() - 8usize];
    ["Offset of field: fq_nmod_mpoly_ctx_struct::minfo"]
        [::std::mem::offset_of!(fq_nmod_mpoly_ctx_struct, minfo) - 0usize];
    ["Offset of field: fq_nmod_mpoly_ctx_struct::fqctx"]
        [::std::mem::offset_of!(fq_nmod_mpoly_ctx_struct, fqctx) - 608usize];
};
impl Default for fq_nmod_mpoly_ctx_struct {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type fq_nmod_mpoly_ctx_t = [fq_nmod_mpoly_ctx_struct; 1usize];
#[repr(C)]
pub struct _bindgen_ty_2 {
    pub elem_size: slong,
    pub ctx: *const libc::c_void,
    pub init: ::std::option::Option<
        unsafe extern "C" fn(arg1: *mut libc::c_void, arg2: *const libc::c_void),
    >,
    pub clear: ::std::option::Option<
        unsafe extern "C" fn(arg1: *mut libc::c_void, arg2: *const libc::c_void),
    >,
    pub is_zero: ::std::option::Option<
        unsafe extern "C" fn(arg1: *const libc::c_void, arg2: *const libc::c_void) -> libc::c_int,
    >,
    pub zero: ::std::option::Option<
        unsafe extern "C" fn(arg1: *mut libc::c_void, arg2: *const libc::c_void),
    >,
    pub one: ::std::option::Option<
        unsafe extern "C" fn(arg1: *mut libc::c_void, arg2: *const libc::c_void),
    >,
    pub set_fmpz: ::std::option::Option<
        unsafe extern "C" fn(arg1: *mut libc::c_void, arg2: *const fmpz, arg3: *const libc::c_void),
    >,
    pub set: ::std::option::Option<
        unsafe extern "C" fn(
            arg1: *mut libc::c_void,
            arg2: *const libc::c_void,
            arg3: *const libc::c_void,
        ),
    >,
    pub swap: ::std::option::Option<
        unsafe extern "C" fn(
            arg1: *mut libc::c_void,
            arg2: *mut libc::c_void,
            arg3: *const libc::c_void,
        ),
    >,
    pub neg: ::std::option::Option<
        unsafe extern "C" fn(
            arg1: *mut libc::c_void,
            arg2: *const libc::c_void,
            arg3: *const libc::c_void,
        ),
    >,
    pub add: ::std::option::Option<
        unsafe extern "C" fn(
            arg1: *mut libc::c_void,
            arg2: *const libc::c_void,
            arg3: *const libc::c_void,
            arg4: *const libc::c_void,
        ),
    >,
    pub sub: ::std::option::Option<
        unsafe extern "C" fn(
            arg1: *mut libc::c_void,
            arg2: *const libc::c_void,
            arg3: *const libc::c_void,
            arg4: *const libc::c_void,
        ),
    >,
    pub mul_fmpz: ::std::option::Option<
        unsafe extern "C" fn(
            arg1: *mut libc::c_void,
            arg2: *const libc::c_void,
            arg3: *const fmpz,
            arg4: *const libc::c_void,
        ),
    >,
    pub mul: ::std::option::Option<
        unsafe extern "C" fn(
            arg1: *mut libc::c_void,
            arg2: *const libc::c_void,
            arg3: *const libc::c_void,
            arg4: *const libc::c_void,
        ),
    >,
    pub divexact: ::std::option::Option<
        unsafe extern "C" fn(
            arg1: *mut libc::c_void,
            arg2: *const libc::c_void,
            arg3: *const libc::c_void,
            arg4: *const libc::c_void,
        ),
    >,
    pub divides: ::std::option::Option<
        unsafe extern "C" fn(
            arg1: *mut libc::c_void,
            arg2: *const libc::c_void,
            arg3: *const libc::c_void,
            arg4: *const libc::c_void,
        ) -> libc::c_int,
    >,
    pub pow_fmpz: ::std::option::Option<
        unsafe extern "C" fn(
            arg1: *mut libc::c_void,
            arg2: *const libc::c_void,
            arg3: *const fmpz,
            arg4: *const libc::c_void,
        ) -> libc::c_int,
    >,
    pub length: ::std::option::Option<
        unsafe extern "C" fn(arg1: *const libc::c_void, arg2: *const libc::c_void) -> slong,
    >,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of _bindgen_ty_2"][::std::mem::size_of::<_bindgen_ty_2>() - 152usize];
    ["Alignment of _bindgen_ty_2"][::std::mem::align_of::<_bindgen_ty_2>() - 8usize];
    ["Offset of field: _bindgen_ty_2::elem_size"]
        [::std::mem::offset_of!(_bindgen_ty_2, elem_size) - 0usize];
    ["Offset of field: _bindgen_ty_2::ctx"][::std::mem::offset_of!(_bindgen_ty_2, ctx) - 8usize];
    ["Offset of field: _bindgen_ty_2::init"][::std::mem::offset_of!(_bindgen_ty_2, init) - 16usize];
    ["Offset of field: _bindgen_ty_2::clear"]
        [::std::mem::offset_of!(_bindgen_ty_2, clear) - 24usize];
    ["Offset of field: _bindgen_ty_2::is_zero"]
        [::std::mem::offset_of!(_bindgen_ty_2, is_zero) - 32usize];
    ["Offset of field: _bindgen_ty_2::zero"][::std::mem::offset_of!(_bindgen_ty_2, zero) - 40usize];
    ["Offset of field: _bindgen_ty_2::one"][::std::mem::offset_of!(_bindgen_ty_2, one) - 48usize];
    ["Offset of field: _bindgen_ty_2::set_fmpz"]
        [::std::mem::offset_of!(_bindgen_ty_2, set_fmpz) - 56usize];
    ["Offset of field: _bindgen_ty_2::set"][::std::mem::offset_of!(_bindgen_ty_2, set) - 64usize];
    ["Offset of field: _bindgen_ty_2::swap"][::std::mem::offset_of!(_bindgen_ty_2, swap) - 72usize];
    ["Offset of field: _bindgen_ty_2::neg"][::std::mem::offset_of!(_bindgen_ty_2, neg) - 80usize];
    ["Offset of field: _bindgen_ty_2::add"][::std::mem::offset_of!(_bindgen_ty_2, add) - 88usize];
    ["Offset of field: _bindgen_ty_2::sub"][::std::mem::offset_of!(_bindgen_ty_2, sub) - 96usize];
    ["Offset of field: _bindgen_ty_2::mul_fmpz"]
        [::std::mem::offset_of!(_bindgen_ty_2, mul_fmpz) - 104usize];
    ["Offset of field: _bindgen_ty_2::mul"][::std::mem::offset_of!(_bindgen_ty_2, mul) - 112usize];
    ["Offset of field: _bindgen_ty_2::divexact"]
        [::std::mem::offset_of!(_bindgen_ty_2, divexact) - 120usize];
    ["Offset of field: _bindgen_ty_2::divides"]
        [::std::mem::offset_of!(_bindgen_ty_2, divides) - 128usize];
    ["Offset of field: _bindgen_ty_2::pow_fmpz"]
        [::std::mem::offset_of!(_bindgen_ty_2, pow_fmpz) - 136usize];
    ["Offset of field: _bindgen_ty_2::length"]
        [::std::mem::offset_of!(_bindgen_ty_2, length) - 144usize];
};
impl Default for _bindgen_ty_2 {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type mpoly_void_ring_t = [_bindgen_ty_2; 1usize];
#[repr(C)]
pub struct mpoly_gcd_info_struct {
    pub Amax_exp: *mut ulong,
    pub Amin_exp: *mut ulong,
    pub Astride: *mut ulong,
    pub Adeflate_deg: *mut slong,
    pub Alead_count: *mut slong,
    pub Atail_count: *mut slong,
    pub Bmax_exp: *mut ulong,
    pub Bmin_exp: *mut ulong,
    pub Bstride: *mut ulong,
    pub Bdeflate_deg: *mut slong,
    pub Blead_count: *mut slong,
    pub Btail_count: *mut slong,
    pub Gmin_exp: *mut ulong,
    pub Abarmin_exp: *mut ulong,
    pub Bbarmin_exp: *mut ulong,
    pub Gstride: *mut ulong,
    pub Gterm_count_est: *mut slong,
    pub Gdeflate_deg_bound: *mut slong,
    pub Gbits: flint_bitcnt_t,
    pub Abarbits: flint_bitcnt_t,
    pub Bbarbits: flint_bitcnt_t,
    pub mvars: slong,
    pub Adeflate_tdeg: slong,
    pub Bdeflate_tdeg: slong,
    pub Adensity: f64,
    pub Bdensity: f64,
    pub hensel_time: f64,
    pub brown_time: f64,
    pub zippel_time: f64,
    pub zippel2_time: f64,
    pub hensel_perm: *mut slong,
    pub brown_perm: *mut slong,
    pub zippel_perm: *mut slong,
    pub zippel2_perm: *mut slong,
    pub can_use: libc::c_uint,
    pub Gdeflate_deg_bounds_are_nice: libc::c_int,
    pub data: *mut libc::c_char,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of mpoly_gcd_info_struct"][::std::mem::size_of::<mpoly_gcd_info_struct>() - 288usize];
    ["Alignment of mpoly_gcd_info_struct"]
        [::std::mem::align_of::<mpoly_gcd_info_struct>() - 8usize];
    ["Offset of field: mpoly_gcd_info_struct::Amax_exp"]
        [::std::mem::offset_of!(mpoly_gcd_info_struct, Amax_exp) - 0usize];
    ["Offset of field: mpoly_gcd_info_struct::Amin_exp"]
        [::std::mem::offset_of!(mpoly_gcd_info_struct, Amin_exp) - 8usize];
    ["Offset of field: mpoly_gcd_info_struct::Astride"]
        [::std::mem::offset_of!(mpoly_gcd_info_struct, Astride) - 16usize];
    ["Offset of field: mpoly_gcd_info_struct::Adeflate_deg"]
        [::std::mem::offset_of!(mpoly_gcd_info_struct, Adeflate_deg) - 24usize];
    ["Offset of field: mpoly_gcd_info_struct::Alead_count"]
        [::std::mem::offset_of!(mpoly_gcd_info_struct, Alead_count) - 32usize];
    ["Offset of field: mpoly_gcd_info_struct::Atail_count"]
        [::std::mem::offset_of!(mpoly_gcd_info_struct, Atail_count) - 40usize];
    ["Offset of field: mpoly_gcd_info_struct::Bmax_exp"]
        [::std::mem::offset_of!(mpoly_gcd_info_struct, Bmax_exp) - 48usize];
    ["Offset of field: mpoly_gcd_info_struct::Bmin_exp"]
        [::std::mem::offset_of!(mpoly_gcd_info_struct, Bmin_exp) - 56usize];
    ["Offset of field: mpoly_gcd_info_struct::Bstride"]
        [::std::mem::offset_of!(mpoly_gcd_info_struct, Bstride) - 64usize];
    ["Offset of field: mpoly_gcd_info_struct::Bdeflate_deg"]
        [::std::mem::offset_of!(mpoly_gcd_info_struct, Bdeflate_deg) - 72usize];
    ["Offset of field: mpoly_gcd_info_struct::Blead_count"]
        [::std::mem::offset_of!(mpoly_gcd_info_struct, Blead_count) - 80usize];
    ["Offset of field: mpoly_gcd_info_struct::Btail_count"]
        [::std::mem::offset_of!(mpoly_gcd_info_struct, Btail_count) - 88usize];
    ["Offset of field: mpoly_gcd_info_struct::Gmin_exp"]
        [::std::mem::offset_of!(mpoly_gcd_info_struct, Gmin_exp) - 96usize];
    ["Offset of field: mpoly_gcd_info_struct::Abarmin_exp"]
        [::std::mem::offset_of!(mpoly_gcd_info_struct, Abarmin_exp) - 104usize];
    ["Offset of field: mpoly_gcd_info_struct::Bbarmin_exp"]
        [::std::mem::offset_of!(mpoly_gcd_info_struct, Bbarmin_exp) - 112usize];
    ["Offset of field: mpoly_gcd_info_struct::Gstride"]
        [::std::mem::offset_of!(mpoly_gcd_info_struct, Gstride) - 120usize];
    ["Offset of field: mpoly_gcd_info_struct::Gterm_count_est"]
        [::std::mem::offset_of!(mpoly_gcd_info_struct, Gterm_count_est) - 128usize];
    ["Offset of field: mpoly_gcd_info_struct::Gdeflate_deg_bound"]
        [::std::mem::offset_of!(mpoly_gcd_info_struct, Gdeflate_deg_bound) - 136usize];
    ["Offset of field: mpoly_gcd_info_struct::Gbits"]
        [::std::mem::offset_of!(mpoly_gcd_info_struct, Gbits) - 144usize];
    ["Offset of field: mpoly_gcd_info_struct::Abarbits"]
        [::std::mem::offset_of!(mpoly_gcd_info_struct, Abarbits) - 152usize];
    ["Offset of field: mpoly_gcd_info_struct::Bbarbits"]
        [::std::mem::offset_of!(mpoly_gcd_info_struct, Bbarbits) - 160usize];
    ["Offset of field: mpoly_gcd_info_struct::mvars"]
        [::std::mem::offset_of!(mpoly_gcd_info_struct, mvars) - 168usize];
    ["Offset of field: mpoly_gcd_info_struct::Adeflate_tdeg"]
        [::std::mem::offset_of!(mpoly_gcd_info_struct, Adeflate_tdeg) - 176usize];
    ["Offset of field: mpoly_gcd_info_struct::Bdeflate_tdeg"]
        [::std::mem::offset_of!(mpoly_gcd_info_struct, Bdeflate_tdeg) - 184usize];
    ["Offset of field: mpoly_gcd_info_struct::Adensity"]
        [::std::mem::offset_of!(mpoly_gcd_info_struct, Adensity) - 192usize];
    ["Offset of field: mpoly_gcd_info_struct::Bdensity"]
        [::std::mem::offset_of!(mpoly_gcd_info_struct, Bdensity) - 200usize];
    ["Offset of field: mpoly_gcd_info_struct::hensel_time"]
        [::std::mem::offset_of!(mpoly_gcd_info_struct, hensel_time) - 208usize];
    ["Offset of field: mpoly_gcd_info_struct::brown_time"]
        [::std::mem::offset_of!(mpoly_gcd_info_struct, brown_time) - 216usize];
    ["Offset of field: mpoly_gcd_info_struct::zippel_time"]
        [::std::mem::offset_of!(mpoly_gcd_info_struct, zippel_time) - 224usize];
    ["Offset of field: mpoly_gcd_info_struct::zippel2_time"]
        [::std::mem::offset_of!(mpoly_gcd_info_struct, zippel2_time) - 232usize];
    ["Offset of field: mpoly_gcd_info_struct::hensel_perm"]
        [::std::mem::offset_of!(mpoly_gcd_info_struct, hensel_perm) - 240usize];
    ["Offset of field: mpoly_gcd_info_struct::brown_perm"]
        [::std::mem::offset_of!(mpoly_gcd_info_struct, brown_perm) - 248usize];
    ["Offset of field: mpoly_gcd_info_struct::zippel_perm"]
        [::std::mem::offset_of!(mpoly_gcd_info_struct, zippel_perm) - 256usize];
    ["Offset of field: mpoly_gcd_info_struct::zippel2_perm"]
        [::std::mem::offset_of!(mpoly_gcd_info_struct, zippel2_perm) - 264usize];
    ["Offset of field: mpoly_gcd_info_struct::can_use"]
        [::std::mem::offset_of!(mpoly_gcd_info_struct, can_use) - 272usize];
    ["Offset of field: mpoly_gcd_info_struct::Gdeflate_deg_bounds_are_nice"]
        [::std::mem::offset_of!(mpoly_gcd_info_struct, Gdeflate_deg_bounds_are_nice) - 276usize];
    ["Offset of field: mpoly_gcd_info_struct::data"]
        [::std::mem::offset_of!(mpoly_gcd_info_struct, data) - 280usize];
};
impl Default for mpoly_gcd_info_struct {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type mpoly_gcd_info_t = [mpoly_gcd_info_struct; 1usize];
#[repr(C)]
pub struct mpoly_compression_struct {
    pub mvars: slong,
    pub nvars: slong,
    pub exps: *mut slong,
    pub exps_alloc: slong,
    pub rest: *mut slong,
    pub rest_alloc: slong,
    pub umat: *mut slong,
    pub deltas: *mut slong,
    pub degs: *mut slong,
    pub is_trivial: libc::c_int,
    pub is_perm: libc::c_int,
    pub is_irred: libc::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of mpoly_compression_struct"]
        [::std::mem::size_of::<mpoly_compression_struct>() - 88usize];
    ["Alignment of mpoly_compression_struct"]
        [::std::mem::align_of::<mpoly_compression_struct>() - 8usize];
    ["Offset of field: mpoly_compression_struct::mvars"]
        [::std::mem::offset_of!(mpoly_compression_struct, mvars) - 0usize];
    ["Offset of field: mpoly_compression_struct::nvars"]
        [::std::mem::offset_of!(mpoly_compression_struct, nvars) - 8usize];
    ["Offset of field: mpoly_compression_struct::exps"]
        [::std::mem::offset_of!(mpoly_compression_struct, exps) - 16usize];
    ["Offset of field: mpoly_compression_struct::exps_alloc"]
        [::std::mem::offset_of!(mpoly_compression_struct, exps_alloc) - 24usize];
    ["Offset of field: mpoly_compression_struct::rest"]
        [::std::mem::offset_of!(mpoly_compression_struct, rest) - 32usize];
    ["Offset of field: mpoly_compression_struct::rest_alloc"]
        [::std::mem::offset_of!(mpoly_compression_struct, rest_alloc) - 40usize];
    ["Offset of field: mpoly_compression_struct::umat"]
        [::std::mem::offset_of!(mpoly_compression_struct, umat) - 48usize];
    ["Offset of field: mpoly_compression_struct::deltas"]
        [::std::mem::offset_of!(mpoly_compression_struct, deltas) - 56usize];
    ["Offset of field: mpoly_compression_struct::degs"]
        [::std::mem::offset_of!(mpoly_compression_struct, degs) - 64usize];
    ["Offset of field: mpoly_compression_struct::is_trivial"]
        [::std::mem::offset_of!(mpoly_compression_struct, is_trivial) - 72usize];
    ["Offset of field: mpoly_compression_struct::is_perm"]
        [::std::mem::offset_of!(mpoly_compression_struct, is_perm) - 76usize];
    ["Offset of field: mpoly_compression_struct::is_irred"]
        [::std::mem::offset_of!(mpoly_compression_struct, is_irred) - 80usize];
};
impl Default for mpoly_compression_struct {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type mpoly_compression_t = [mpoly_compression_struct; 1usize];
#[repr(C)]
pub struct nmod_mpolyn_struct {
    pub coeffs: *mut n_poly_struct,
    pub exps: *mut ulong,
    pub alloc: slong,
    pub length: slong,
    pub bits: slong,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of nmod_mpolyn_struct"][::std::mem::size_of::<nmod_mpolyn_struct>() - 40usize];
    ["Alignment of nmod_mpolyn_struct"][::std::mem::align_of::<nmod_mpolyn_struct>() - 8usize];
    ["Offset of field: nmod_mpolyn_struct::coeffs"]
        [::std::mem::offset_of!(nmod_mpolyn_struct, coeffs) - 0usize];
    ["Offset of field: nmod_mpolyn_struct::exps"]
        [::std::mem::offset_of!(nmod_mpolyn_struct, exps) - 8usize];
    ["Offset of field: nmod_mpolyn_struct::alloc"]
        [::std::mem::offset_of!(nmod_mpolyn_struct, alloc) - 16usize];
    ["Offset of field: nmod_mpolyn_struct::length"]
        [::std::mem::offset_of!(nmod_mpolyn_struct, length) - 24usize];
    ["Offset of field: nmod_mpolyn_struct::bits"]
        [::std::mem::offset_of!(nmod_mpolyn_struct, bits) - 32usize];
};
impl Default for nmod_mpolyn_struct {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type nmod_mpolyn_t = [nmod_mpolyn_struct; 1usize];
#[repr(C)]
pub struct nmod_mpolyun_struct {
    pub coeffs: *mut nmod_mpolyn_struct,
    pub exps: *mut ulong,
    pub alloc: slong,
    pub length: slong,
    pub bits: flint_bitcnt_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of nmod_mpolyun_struct"][::std::mem::size_of::<nmod_mpolyun_struct>() - 40usize];
    ["Alignment of nmod_mpolyun_struct"][::std::mem::align_of::<nmod_mpolyun_struct>() - 8usize];
    ["Offset of field: nmod_mpolyun_struct::coeffs"]
        [::std::mem::offset_of!(nmod_mpolyun_struct, coeffs) - 0usize];
    ["Offset of field: nmod_mpolyun_struct::exps"]
        [::std::mem::offset_of!(nmod_mpolyun_struct, exps) - 8usize];
    ["Offset of field: nmod_mpolyun_struct::alloc"]
        [::std::mem::offset_of!(nmod_mpolyun_struct, alloc) - 16usize];
    ["Offset of field: nmod_mpolyun_struct::length"]
        [::std::mem::offset_of!(nmod_mpolyun_struct, length) - 24usize];
    ["Offset of field: nmod_mpolyun_struct::bits"]
        [::std::mem::offset_of!(nmod_mpolyun_struct, bits) - 32usize];
};
impl Default for nmod_mpolyun_struct {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type nmod_mpolyun_t = [nmod_mpolyun_struct; 1usize];
pub const nmod_gcds_ret_t_nmod_gcds_success: nmod_gcds_ret_t = 0;
pub const nmod_gcds_ret_t_nmod_gcds_form_main_degree_too_high: nmod_gcds_ret_t = 1;
pub const nmod_gcds_ret_t_nmod_gcds_form_wrong: nmod_gcds_ret_t = 2;
pub const nmod_gcds_ret_t_nmod_gcds_no_solution: nmod_gcds_ret_t = 3;
pub const nmod_gcds_ret_t_nmod_gcds_scales_not_found: nmod_gcds_ret_t = 4;
pub const nmod_gcds_ret_t_nmod_gcds_eval_point_not_found: nmod_gcds_ret_t = 5;
pub const nmod_gcds_ret_t_nmod_gcds_eval_gcd_deg_too_high: nmod_gcds_ret_t = 6;
pub type nmod_gcds_ret_t = libc::c_uint;