1 #define _CFFI_
2 
3 /* We try to define Py_LIMITED_API before including Python.h.
4 
5    Mess: we can only define it if Py_DEBUG, Py_TRACE_REFS and
6    Py_REF_DEBUG are not defined.  This is a best-effort approximation:
7    we can learn about Py_DEBUG from pyconfig.h, but it is unclear if
8    the same works for the other two macros.  Py_DEBUG implies them,
9    but not the other way around.
10 
11    The implementation is messy (issue #350): on Windows, with _MSC_VER,
12    we have to define Py_LIMITED_API even before including pyconfig.h.
13    In that case, we guess what pyconfig.h will do to the macros above,
14    and check our guess after the #include.
15 
16    Note that on Windows, with CPython 3.x, you need >= 3.5 and virtualenv
17    version >= 16.0.0.  With older versions of either, you don't get a
18    copy of PYTHON3.DLL in the virtualenv.  We can't check the version of
19    CPython *before* we even include pyconfig.h.  ffi.set_source() puts
20    a ``#define _CFFI_NO_LIMITED_API'' at the start of this file if it is
21    running on Windows < 3.5, as an attempt at fixing it, but that's
22    arguably wrong because it may not be the target version of Python.
23    Still better than nothing I guess.  As another workaround, you can
24    remove the definition of Py_LIMITED_API here.
25 
26    See also 'py_limited_api' in cffi/setuptools_ext.py.
27 */
28 #if !defined(_CFFI_USE_EMBEDDING) && !defined(Py_LIMITED_API)
29 #  ifdef _MSC_VER
30 #    if !defined(_DEBUG) && !defined(Py_DEBUG) && !defined(Py_TRACE_REFS) && !defined(Py_REF_DEBUG) && !defined(_CFFI_NO_LIMITED_API)
31 #      define Py_LIMITED_API
32 #    endif
33 #    include <pyconfig.h>
34      /* sanity-check: Py_LIMITED_API will cause crashes if any of these
35         are also defined.  Normally, the Python file PC/pyconfig.h does not
36         cause any of these to be defined, with the exception that _DEBUG
37         causes Py_DEBUG.  Double-check that. */
38 #    ifdef Py_LIMITED_API
39 #      if defined(Py_DEBUG)
40 #        error "pyconfig.h unexpectedly defines Py_DEBUG, but Py_LIMITED_API is set"
41 #      endif
42 #      if defined(Py_TRACE_REFS)
43 #        error "pyconfig.h unexpectedly defines Py_TRACE_REFS, but Py_LIMITED_API is set"
44 #      endif
45 #      if defined(Py_REF_DEBUG)
46 #        error "pyconfig.h unexpectedly defines Py_REF_DEBUG, but Py_LIMITED_API is set"
47 #      endif
48 #    endif
49 #  else
50 #    include <pyconfig.h>
51 #    if !defined(Py_DEBUG) && !defined(Py_TRACE_REFS) && !defined(Py_REF_DEBUG) && !defined(_CFFI_NO_LIMITED_API)
52 #      define Py_LIMITED_API
53 #    endif
54 #  endif
55 #endif
56 
57 #include <Python.h>
58 #ifdef __cplusplus
59 extern "C" {
60 #endif
61 #include <stddef.h>
62 
63 /* This part is from file 'cffi/parse_c_type.h'.  It is copied at the
64    beginning of C sources generated by CFFI's ffi.set_source(). */
65 
66 typedef void *_cffi_opcode_t;
67 
68 #define _CFFI_OP(opcode, arg)   (_cffi_opcode_t)(opcode | (((uintptr_t)(arg)) << 8))
69 #define _CFFI_GETOP(cffi_opcode)    ((unsigned char)(uintptr_t)cffi_opcode)
70 #define _CFFI_GETARG(cffi_opcode)   (((intptr_t)cffi_opcode) >> 8)
71 
72 #define _CFFI_OP_PRIMITIVE       1
73 #define _CFFI_OP_POINTER         3
74 #define _CFFI_OP_ARRAY           5
75 #define _CFFI_OP_OPEN_ARRAY      7
76 #define _CFFI_OP_STRUCT_UNION    9
77 #define _CFFI_OP_ENUM           11
78 #define _CFFI_OP_FUNCTION       13
79 #define _CFFI_OP_FUNCTION_END   15
80 #define _CFFI_OP_NOOP           17
81 #define _CFFI_OP_BITFIELD       19
82 #define _CFFI_OP_TYPENAME       21
83 #define _CFFI_OP_CPYTHON_BLTN_V 23   // varargs
84 #define _CFFI_OP_CPYTHON_BLTN_N 25   // noargs
85 #define _CFFI_OP_CPYTHON_BLTN_O 27   // O  (i.e. a single arg)
86 #define _CFFI_OP_CONSTANT       29
87 #define _CFFI_OP_CONSTANT_INT   31
88 #define _CFFI_OP_GLOBAL_VAR     33
89 #define _CFFI_OP_DLOPEN_FUNC    35
90 #define _CFFI_OP_DLOPEN_CONST   37
91 #define _CFFI_OP_GLOBAL_VAR_F   39
92 #define _CFFI_OP_EXTERN_PYTHON  41
93 
94 #define _CFFI_PRIM_VOID          0
95 #define _CFFI_PRIM_BOOL          1
96 #define _CFFI_PRIM_CHAR          2
97 #define _CFFI_PRIM_SCHAR         3
98 #define _CFFI_PRIM_UCHAR         4
99 #define _CFFI_PRIM_SHORT         5
100 #define _CFFI_PRIM_USHORT        6
101 #define _CFFI_PRIM_INT           7
102 #define _CFFI_PRIM_UINT          8
103 #define _CFFI_PRIM_LONG          9
104 #define _CFFI_PRIM_ULONG        10
105 #define _CFFI_PRIM_LONGLONG     11
106 #define _CFFI_PRIM_ULONGLONG    12
107 #define _CFFI_PRIM_FLOAT        13
108 #define _CFFI_PRIM_DOUBLE       14
109 #define _CFFI_PRIM_LONGDOUBLE   15
110 
111 #define _CFFI_PRIM_WCHAR        16
112 #define _CFFI_PRIM_INT8         17
113 #define _CFFI_PRIM_UINT8        18
114 #define _CFFI_PRIM_INT16        19
115 #define _CFFI_PRIM_UINT16       20
116 #define _CFFI_PRIM_INT32        21
117 #define _CFFI_PRIM_UINT32       22
118 #define _CFFI_PRIM_INT64        23
119 #define _CFFI_PRIM_UINT64       24
120 #define _CFFI_PRIM_INTPTR       25
121 #define _CFFI_PRIM_UINTPTR      26
122 #define _CFFI_PRIM_PTRDIFF      27
123 #define _CFFI_PRIM_SIZE         28
124 #define _CFFI_PRIM_SSIZE        29
125 #define _CFFI_PRIM_INT_LEAST8   30
126 #define _CFFI_PRIM_UINT_LEAST8  31
127 #define _CFFI_PRIM_INT_LEAST16  32
128 #define _CFFI_PRIM_UINT_LEAST16 33
129 #define _CFFI_PRIM_INT_LEAST32  34
130 #define _CFFI_PRIM_UINT_LEAST32 35
131 #define _CFFI_PRIM_INT_LEAST64  36
132 #define _CFFI_PRIM_UINT_LEAST64 37
133 #define _CFFI_PRIM_INT_FAST8    38
134 #define _CFFI_PRIM_UINT_FAST8   39
135 #define _CFFI_PRIM_INT_FAST16   40
136 #define _CFFI_PRIM_UINT_FAST16  41
137 #define _CFFI_PRIM_INT_FAST32   42
138 #define _CFFI_PRIM_UINT_FAST32  43
139 #define _CFFI_PRIM_INT_FAST64   44
140 #define _CFFI_PRIM_UINT_FAST64  45
141 #define _CFFI_PRIM_INTMAX       46
142 #define _CFFI_PRIM_UINTMAX      47
143 #define _CFFI_PRIM_FLOATCOMPLEX 48
144 #define _CFFI_PRIM_DOUBLECOMPLEX 49
145 #define _CFFI_PRIM_CHAR16       50
146 #define _CFFI_PRIM_CHAR32       51
147 
148 #define _CFFI__NUM_PRIM         52
149 #define _CFFI__UNKNOWN_PRIM           (-1)
150 #define _CFFI__UNKNOWN_FLOAT_PRIM     (-2)
151 #define _CFFI__UNKNOWN_LONG_DOUBLE    (-3)
152 
153 #define _CFFI__IO_FILE_STRUCT         (-1)
154 
155 
156 struct _cffi_global_s {
157     const char *name;
158     void *address;
159     _cffi_opcode_t type_op;
160     void *size_or_direct_fn;  // OP_GLOBAL_VAR: size, or 0 if unknown
161                               // OP_CPYTHON_BLTN_*: addr of direct function
162 };
163 
164 struct _cffi_getconst_s {
165     unsigned long long value;
166     const struct _cffi_type_context_s *ctx;
167     int gindex;
168 };
169 
170 struct _cffi_struct_union_s {
171     const char *name;
172     int type_index;          // -> _cffi_types, on a OP_STRUCT_UNION
173     int flags;               // _CFFI_F_* flags below
174     size_t size;
175     int alignment;
176     int first_field_index;   // -> _cffi_fields array
177     int num_fields;
178 };
179 #define _CFFI_F_UNION         0x01   // is a union, not a struct
180 #define _CFFI_F_CHECK_FIELDS  0x02   // complain if fields are not in the
181                                      // "standard layout" or if some are missing
182 #define _CFFI_F_PACKED        0x04   // for CHECK_FIELDS, assume a packed struct
183 #define _CFFI_F_EXTERNAL      0x08   // in some other ffi.include()
184 #define _CFFI_F_OPAQUE        0x10   // opaque
185 
186 struct _cffi_field_s {
187     const char *name;
188     size_t field_offset;
189     size_t field_size;
190     _cffi_opcode_t field_type_op;
191 };
192 
193 struct _cffi_enum_s {
194     const char *name;
195     int type_index;          // -> _cffi_types, on a OP_ENUM
196     int type_prim;           // _CFFI_PRIM_xxx
197     const char *enumerators; // comma-delimited string
198 };
199 
200 struct _cffi_typename_s {
201     const char *name;
202     int type_index;   /* if opaque, points to a possibly artificial
203                          OP_STRUCT which is itself opaque */
204 };
205 
206 struct _cffi_type_context_s {
207     _cffi_opcode_t *types;
208     const struct _cffi_global_s *globals;
209     const struct _cffi_field_s *fields;
210     const struct _cffi_struct_union_s *struct_unions;
211     const struct _cffi_enum_s *enums;
212     const struct _cffi_typename_s *typenames;
213     int num_globals;
214     int num_struct_unions;
215     int num_enums;
216     int num_typenames;
217     const char *const *includes;
218     int num_types;
219     int flags;      /* future extension */
220 };
221 
222 struct _cffi_parse_info_s {
223     const struct _cffi_type_context_s *ctx;
224     _cffi_opcode_t *output;
225     unsigned int output_size;
226     size_t error_location;
227     const char *error_message;
228 };
229 
230 struct _cffi_externpy_s {
231     const char *name;
232     size_t size_of_result;
233     void *reserved1, *reserved2;
234 };
235 
236 #ifdef _CFFI_INTERNAL
237 static int parse_c_type(struct _cffi_parse_info_s *info, const char *input);
238 static int search_in_globals(const struct _cffi_type_context_s *ctx,
239                              const char *search, size_t search_len);
240 static int search_in_struct_unions(const struct _cffi_type_context_s *ctx,
241                                    const char *search, size_t search_len);
242 #endif
243 
244 /* this block of #ifs should be kept exactly identical between
245    c/_cffi_backend.c, cffi/vengine_cpy.py, cffi/vengine_gen.py
246    and cffi/_cffi_include.h */
247 #if defined(_MSC_VER)
248 # include <malloc.h>   /* for alloca() */
249 # if _MSC_VER < 1600   /* MSVC < 2010 */
250    typedef __int8 int8_t;
251    typedef __int16 int16_t;
252    typedef __int32 int32_t;
253    typedef __int64 int64_t;
254    typedef unsigned __int8 uint8_t;
255    typedef unsigned __int16 uint16_t;
256    typedef unsigned __int32 uint32_t;
257    typedef unsigned __int64 uint64_t;
258    typedef __int8 int_least8_t;
259    typedef __int16 int_least16_t;
260    typedef __int32 int_least32_t;
261    typedef __int64 int_least64_t;
262    typedef unsigned __int8 uint_least8_t;
263    typedef unsigned __int16 uint_least16_t;
264    typedef unsigned __int32 uint_least32_t;
265    typedef unsigned __int64 uint_least64_t;
266    typedef __int8 int_fast8_t;
267    typedef __int16 int_fast16_t;
268    typedef __int32 int_fast32_t;
269    typedef __int64 int_fast64_t;
270    typedef unsigned __int8 uint_fast8_t;
271    typedef unsigned __int16 uint_fast16_t;
272    typedef unsigned __int32 uint_fast32_t;
273    typedef unsigned __int64 uint_fast64_t;
274    typedef __int64 intmax_t;
275    typedef unsigned __int64 uintmax_t;
276 # else
277 #  include <stdint.h>
278 # endif
279 # if _MSC_VER < 1800   /* MSVC < 2013 */
280 #  ifndef __cplusplus
281     typedef unsigned char _Bool;
282 #  endif
283 # endif
284 #else
285 # include <stdint.h>
286 # if (defined (__SVR4) && defined (__sun)) || defined(_AIX) || defined(__hpux)
287 #  include <alloca.h>
288 # endif
289 #endif
290 
291 #ifdef __GNUC__
292 # define _CFFI_UNUSED_FN  __attribute__((unused))
293 #else
294 # define _CFFI_UNUSED_FN  /* nothing */
295 #endif
296 
297 #ifdef __cplusplus
298 # ifndef _Bool
299    typedef bool _Bool;   /* semi-hackish: C++ has no _Bool; bool is builtin */
300 # endif
301 #endif
302 
303 /**********  CPython-specific section  **********/
304 #ifndef PYPY_VERSION
305 
306 
307 #if PY_MAJOR_VERSION >= 3
308 # define PyInt_FromLong PyLong_FromLong
309 #endif
310 
311 #define _cffi_from_c_double PyFloat_FromDouble
312 #define _cffi_from_c_float PyFloat_FromDouble
313 #define _cffi_from_c_long PyInt_FromLong
314 #define _cffi_from_c_ulong PyLong_FromUnsignedLong
315 #define _cffi_from_c_longlong PyLong_FromLongLong
316 #define _cffi_from_c_ulonglong PyLong_FromUnsignedLongLong
317 #define _cffi_from_c__Bool PyBool_FromLong
318 
319 #define _cffi_to_c_double PyFloat_AsDouble
320 #define _cffi_to_c_float PyFloat_AsDouble
321 
322 #define _cffi_from_c_int(x, type)                                        \
323     (((type)-1) > 0 ? /* unsigned */                                     \
324         (sizeof(type) < sizeof(long) ?                                   \
325             PyInt_FromLong((long)x) :                                    \
326          sizeof(type) == sizeof(long) ?                                  \
327             PyLong_FromUnsignedLong((unsigned long)x) :                  \
328             PyLong_FromUnsignedLongLong((unsigned long long)x)) :        \
329         (sizeof(type) <= sizeof(long) ?                                  \
330             PyInt_FromLong((long)x) :                                    \
331             PyLong_FromLongLong((long long)x)))
332 
333 #define _cffi_to_c_int(o, type)                                          \
334     ((type)(                                                             \
335      sizeof(type) == 1 ? (((type)-1) > 0 ? (type)_cffi_to_c_u8(o)        \
336                                          : (type)_cffi_to_c_i8(o)) :     \
337      sizeof(type) == 2 ? (((type)-1) > 0 ? (type)_cffi_to_c_u16(o)       \
338                                          : (type)_cffi_to_c_i16(o)) :    \
339      sizeof(type) == 4 ? (((type)-1) > 0 ? (type)_cffi_to_c_u32(o)       \
340                                          : (type)_cffi_to_c_i32(o)) :    \
341      sizeof(type) == 8 ? (((type)-1) > 0 ? (type)_cffi_to_c_u64(o)       \
342                                          : (type)_cffi_to_c_i64(o)) :    \
343      (Py_FatalError("unsupported size for type " #type), (type)0)))
344 
345 #define _cffi_to_c_i8                                                    \
346                  ((int(*)(PyObject *))_cffi_exports[1])
347 #define _cffi_to_c_u8                                                    \
348                  ((int(*)(PyObject *))_cffi_exports[2])
349 #define _cffi_to_c_i16                                                   \
350                  ((int(*)(PyObject *))_cffi_exports[3])
351 #define _cffi_to_c_u16                                                   \
352                  ((int(*)(PyObject *))_cffi_exports[4])
353 #define _cffi_to_c_i32                                                   \
354                  ((int(*)(PyObject *))_cffi_exports[5])
355 #define _cffi_to_c_u32                                                   \
356                  ((unsigned int(*)(PyObject *))_cffi_exports[6])
357 #define _cffi_to_c_i64                                                   \
358                  ((long long(*)(PyObject *))_cffi_exports[7])
359 #define _cffi_to_c_u64                                                   \
360                  ((unsigned long long(*)(PyObject *))_cffi_exports[8])
361 #define _cffi_to_c_char                                                  \
362                  ((int(*)(PyObject *))_cffi_exports[9])
363 #define _cffi_from_c_pointer                                             \
364     ((PyObject *(*)(char *, struct _cffi_ctypedescr *))_cffi_exports[10])
365 #define _cffi_to_c_pointer                                               \
366     ((char *(*)(PyObject *, struct _cffi_ctypedescr *))_cffi_exports[11])
367 #define _cffi_get_struct_layout                                          \
368     not used any more
369 #define _cffi_restore_errno                                              \
370     ((void(*)(void))_cffi_exports[13])
371 #define _cffi_save_errno                                                 \
372     ((void(*)(void))_cffi_exports[14])
373 #define _cffi_from_c_char                                                \
374     ((PyObject *(*)(char))_cffi_exports[15])
375 #define _cffi_from_c_deref                                               \
376     ((PyObject *(*)(char *, struct _cffi_ctypedescr *))_cffi_exports[16])
377 #define _cffi_to_c                                                       \
378     ((int(*)(char *, struct _cffi_ctypedescr *, PyObject *))_cffi_exports[17])
379 #define _cffi_from_c_struct                                              \
380     ((PyObject *(*)(char *, struct _cffi_ctypedescr *))_cffi_exports[18])
381 #define _cffi_to_c_wchar_t                                               \
382     ((_cffi_wchar_t(*)(PyObject *))_cffi_exports[19])
383 #define _cffi_from_c_wchar_t                                             \
384     ((PyObject *(*)(_cffi_wchar_t))_cffi_exports[20])
385 #define _cffi_to_c_long_double                                           \
386     ((long double(*)(PyObject *))_cffi_exports[21])
387 #define _cffi_to_c__Bool                                                 \
388     ((_Bool(*)(PyObject *))_cffi_exports[22])
389 #define _cffi_prepare_pointer_call_argument                              \
390     ((Py_ssize_t(*)(struct _cffi_ctypedescr *,                           \
391                     PyObject *, char **))_cffi_exports[23])
392 #define _cffi_convert_array_from_object                                  \
393     ((int(*)(char *, struct _cffi_ctypedescr *, PyObject *))_cffi_exports[24])
394 #define _CFFI_CPIDX  25
395 #define _cffi_call_python                                                \
396     ((void(*)(struct _cffi_externpy_s *, char *))_cffi_exports[_CFFI_CPIDX])
397 #define _cffi_to_c_wchar3216_t                                           \
398     ((int(*)(PyObject *))_cffi_exports[26])
399 #define _cffi_from_c_wchar3216_t                                         \
400     ((PyObject *(*)(int))_cffi_exports[27])
401 #define _CFFI_NUM_EXPORTS 28
402 
403 struct _cffi_ctypedescr;
404 
405 static void *_cffi_exports[_CFFI_NUM_EXPORTS];
406 
407 #define _cffi_type(index)   (                           \
408     assert((((uintptr_t)_cffi_types[index]) & 1) == 0), \
409     (struct _cffi_ctypedescr *)_cffi_types[index])
410 
_cffi_init(const char * module_name,Py_ssize_t version,const struct _cffi_type_context_s * ctx)411 static PyObject *_cffi_init(const char *module_name, Py_ssize_t version,
412                             const struct _cffi_type_context_s *ctx)
413 {
414     PyObject *module, *o_arg, *new_module;
415     void *raw[] = {
416         (void *)module_name,
417         (void *)version,
418         (void *)_cffi_exports,
419         (void *)ctx,
420     };
421 
422     module = PyImport_ImportModule("_cffi_backend");
423     if (module == NULL)
424         goto failure;
425 
426     o_arg = PyLong_FromVoidPtr((void *)raw);
427     if (o_arg == NULL)
428         goto failure;
429 
430     new_module = PyObject_CallMethod(
431         module, (char *)"_init_cffi_1_0_external_module", (char *)"O", o_arg);
432 
433     Py_DECREF(o_arg);
434     Py_DECREF(module);
435     return new_module;
436 
437   failure:
438     Py_XDECREF(module);
439     return NULL;
440 }
441 
442 
443 #ifdef HAVE_WCHAR_H
444 typedef wchar_t _cffi_wchar_t;
445 #else
446 typedef uint16_t _cffi_wchar_t;   /* same random pick as _cffi_backend.c */
447 #endif
448 
_cffi_to_c_char16_t(PyObject * o)449 _CFFI_UNUSED_FN static uint16_t _cffi_to_c_char16_t(PyObject *o)
450 {
451     if (sizeof(_cffi_wchar_t) == 2)
452         return (uint16_t)_cffi_to_c_wchar_t(o);
453     else
454         return (uint16_t)_cffi_to_c_wchar3216_t(o);
455 }
456 
_cffi_from_c_char16_t(uint16_t x)457 _CFFI_UNUSED_FN static PyObject *_cffi_from_c_char16_t(uint16_t x)
458 {
459     if (sizeof(_cffi_wchar_t) == 2)
460         return _cffi_from_c_wchar_t((_cffi_wchar_t)x);
461     else
462         return _cffi_from_c_wchar3216_t((int)x);
463 }
464 
_cffi_to_c_char32_t(PyObject * o)465 _CFFI_UNUSED_FN static int _cffi_to_c_char32_t(PyObject *o)
466 {
467     if (sizeof(_cffi_wchar_t) == 4)
468         return (int)_cffi_to_c_wchar_t(o);
469     else
470         return (int)_cffi_to_c_wchar3216_t(o);
471 }
472 
_cffi_from_c_char32_t(unsigned int x)473 _CFFI_UNUSED_FN static PyObject *_cffi_from_c_char32_t(unsigned int x)
474 {
475     if (sizeof(_cffi_wchar_t) == 4)
476         return _cffi_from_c_wchar_t((_cffi_wchar_t)x);
477     else
478         return _cffi_from_c_wchar3216_t((int)x);
479 }
480 
481 union _cffi_union_alignment_u {
482     unsigned char m_char;
483     unsigned short m_short;
484     unsigned int m_int;
485     unsigned long m_long;
486     unsigned long long m_longlong;
487     float m_float;
488     double m_double;
489     long double m_longdouble;
490 };
491 
492 struct _cffi_freeme_s {
493     struct _cffi_freeme_s *next;
494     union _cffi_union_alignment_u alignment;
495 };
496 
497 _CFFI_UNUSED_FN static int
_cffi_convert_array_argument(struct _cffi_ctypedescr * ctptr,PyObject * arg,char ** output_data,Py_ssize_t datasize,struct _cffi_freeme_s ** freeme)498 _cffi_convert_array_argument(struct _cffi_ctypedescr *ctptr, PyObject *arg,
499                              char **output_data, Py_ssize_t datasize,
500                              struct _cffi_freeme_s **freeme)
501 {
502     char *p;
503     if (datasize < 0)
504         return -1;
505 
506     p = *output_data;
507     if (p == NULL) {
508         struct _cffi_freeme_s *fp = (struct _cffi_freeme_s *)PyObject_Malloc(
509             offsetof(struct _cffi_freeme_s, alignment) + (size_t)datasize);
510         if (fp == NULL)
511             return -1;
512         fp->next = *freeme;
513         *freeme = fp;
514         p = *output_data = (char *)&fp->alignment;
515     }
516     memset((void *)p, 0, (size_t)datasize);
517     return _cffi_convert_array_from_object(p, ctptr, arg);
518 }
519 
520 _CFFI_UNUSED_FN static void
_cffi_free_array_arguments(struct _cffi_freeme_s * freeme)521 _cffi_free_array_arguments(struct _cffi_freeme_s *freeme)
522 {
523     do {
524         void *p = (void *)freeme;
525         freeme = freeme->next;
526         PyObject_Free(p);
527     } while (freeme != NULL);
528 }
529 
530 /**********  end CPython-specific section  **********/
531 #else
532 _CFFI_UNUSED_FN
533 static void (*_cffi_call_python_org)(struct _cffi_externpy_s *, char *);
534 # define _cffi_call_python  _cffi_call_python_org
535 #endif
536 
537 
538 #define _cffi_array_len(array)   (sizeof(array) / sizeof((array)[0]))
539 
540 #define _cffi_prim_int(size, sign)                                      \
541     ((size) == 1 ? ((sign) ? _CFFI_PRIM_INT8  : _CFFI_PRIM_UINT8)  :    \
542      (size) == 2 ? ((sign) ? _CFFI_PRIM_INT16 : _CFFI_PRIM_UINT16) :    \
543      (size) == 4 ? ((sign) ? _CFFI_PRIM_INT32 : _CFFI_PRIM_UINT32) :    \
544      (size) == 8 ? ((sign) ? _CFFI_PRIM_INT64 : _CFFI_PRIM_UINT64) :    \
545      _CFFI__UNKNOWN_PRIM)
546 
547 #define _cffi_prim_float(size)                                          \
548     ((size) == sizeof(float) ? _CFFI_PRIM_FLOAT :                       \
549      (size) == sizeof(double) ? _CFFI_PRIM_DOUBLE :                     \
550      (size) == sizeof(long double) ? _CFFI__UNKNOWN_LONG_DOUBLE :       \
551      _CFFI__UNKNOWN_FLOAT_PRIM)
552 
553 #define _cffi_check_int(got, got_nonpos, expected)      \
554     ((got_nonpos) == (expected <= 0) &&                 \
555      (got) == (unsigned long long)expected)
556 
557 #ifdef MS_WIN32
558 # define _cffi_stdcall  __stdcall
559 #else
560 # define _cffi_stdcall  /* nothing */
561 #endif
562 
563 #ifdef __cplusplus
564 }
565 #endif
566 
567 /************************************************************/
568 
569 #include <clingo.h>
570 
571 
572 
573 /************************************************************/
574 
575 static void *_cffi_types[] = {
576 /*  0 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(_Bool, uint32_t const *, size_t, int32_t const *, size_t, void *)
577 /*  1 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 1), // _Bool
578 /*  2 */ _CFFI_OP(_CFFI_OP_POINTER, 67), // uint32_t const *
579 /*  3 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 28), // size_t
580 /*  4 */ _CFFI_OP(_CFFI_OP_POINTER, 12), // int32_t const *
581 /*  5 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 28),
582 /*  6 */ _CFFI_OP(_CFFI_OP_POINTER, 1253), // void *
583 /*  7 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
584 /*  8 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(_Bool, uint32_t const *, size_t, int32_t, clingo_weighted_literal_t const *, size_t, void *)
585 /*  9 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 1),
586 /* 10 */ _CFFI_OP(_CFFI_OP_NOOP, 2),
587 /* 11 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 28),
588 /* 12 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 21), // int32_t
589 /* 13 */ _CFFI_OP(_CFFI_OP_POINTER, 1219), // clingo_weighted_literal_t const *
590 /* 14 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 28),
591 /* 15 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
592 /* 16 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
593 /* 17 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(_Bool, void *)
594 /* 18 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 1),
595 /* 19 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
596 /* 20 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
597 /* 21 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(char const * const *, size_t, _Bool(*)(clingo_ast_t *, void *), void *, void(*)(int, char const *, void *), void *, unsigned int)
598 /* 22 */ _CFFI_OP(_CFFI_OP_POINTER, 39), // char const * const *
599 /* 23 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 28),
600 /* 24 */ _CFFI_OP(_CFFI_OP_POINTER, 250), // _Bool(*)(clingo_ast_t *, void *)
601 /* 25 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
602 /* 26 */ _CFFI_OP(_CFFI_OP_POINTER, 1140), // void(*)(int, char const *, void *)
603 /* 27 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
604 /* 28 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 8), // unsigned int
605 /* 29 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
606 /* 30 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(char const * const *, size_t, void(*)(int, char const *, void *), void *, unsigned int, clingo_control_t * *)
607 /* 31 */ _CFFI_OP(_CFFI_OP_NOOP, 22),
608 /* 32 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 28),
609 /* 33 */ _CFFI_OP(_CFFI_OP_NOOP, 26),
610 /* 34 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
611 /* 35 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 8),
612 /* 36 */ _CFFI_OP(_CFFI_OP_POINTER, 380), // clingo_control_t * *
613 /* 37 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
614 /* 38 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(char const *, _Bool *, void *)
615 /* 39 */ _CFFI_OP(_CFFI_OP_POINTER, 1191), // char const *
616 /* 40 */ _CFFI_OP(_CFFI_OP_POINTER, 1), // _Bool *
617 /* 41 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
618 /* 42 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
619 /* 43 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(char const *, _Bool(*)(clingo_ast_t *, void *), void *, void(*)(int, char const *, void *), void *, unsigned int)
620 /* 44 */ _CFFI_OP(_CFFI_OP_NOOP, 39),
621 /* 45 */ _CFFI_OP(_CFFI_OP_NOOP, 24),
622 /* 46 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
623 /* 47 */ _CFFI_OP(_CFFI_OP_NOOP, 26),
624 /* 48 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
625 /* 49 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 8),
626 /* 50 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
627 /* 51 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(char const *, _Bool, uint64_t *)
628 /* 52 */ _CFFI_OP(_CFFI_OP_NOOP, 39),
629 /* 53 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 1),
630 /* 54 */ _CFFI_OP(_CFFI_OP_POINTER, 244), // uint64_t *
631 /* 55 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
632 /* 56 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(char const *, char const * *)
633 /* 57 */ _CFFI_OP(_CFFI_OP_NOOP, 39),
634 /* 58 */ _CFFI_OP(_CFFI_OP_POINTER, 39), // char const * *
635 /* 59 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
636 /* 60 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(char const *, clingo_script_t const *, void *)
637 /* 61 */ _CFFI_OP(_CFFI_OP_NOOP, 39),
638 /* 62 */ _CFFI_OP(_CFFI_OP_POINTER, 1213), // clingo_script_t const *
639 /* 63 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
640 /* 64 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
641 /* 65 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(char const *, uint32_t, _Bool, uint64_t *)
642 /* 66 */ _CFFI_OP(_CFFI_OP_NOOP, 39),
643 /* 67 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 22), // uint32_t
644 /* 68 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 1),
645 /* 69 */ _CFFI_OP(_CFFI_OP_NOOP, 54),
646 /* 70 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
647 /* 71 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(char const *, uint64_t *)
648 /* 72 */ _CFFI_OP(_CFFI_OP_NOOP, 39),
649 /* 73 */ _CFFI_OP(_CFFI_OP_NOOP, 54),
650 /* 74 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
651 /* 75 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(char const *, uint64_t const *, size_t, _Bool, uint64_t *)
652 /* 76 */ _CFFI_OP(_CFFI_OP_NOOP, 39),
653 /* 77 */ _CFFI_OP(_CFFI_OP_POINTER, 244), // uint64_t const *
654 /* 78 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 28),
655 /* 79 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 1),
656 /* 80 */ _CFFI_OP(_CFFI_OP_NOOP, 54),
657 /* 81 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
658 /* 82 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(char const *, void *)
659 /* 83 */ _CFFI_OP(_CFFI_OP_NOOP, 39),
660 /* 84 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
661 /* 85 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
662 /* 86 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(char const *, void(*)(int, char const *, void *), void *, unsigned int, uint64_t *)
663 /* 87 */ _CFFI_OP(_CFFI_OP_NOOP, 39),
664 /* 88 */ _CFFI_OP(_CFFI_OP_NOOP, 26),
665 /* 89 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
666 /* 90 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 8),
667 /* 91 */ _CFFI_OP(_CFFI_OP_NOOP, 54),
668 /* 92 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
669 /* 93 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_assignment_t const *)
670 /* 94 */ _CFFI_OP(_CFFI_OP_POINTER, 1193), // clingo_assignment_t const *
671 /* 95 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
672 /* 96 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_assignment_t const *, int32_t)
673 /* 97 */ _CFFI_OP(_CFFI_OP_NOOP, 94),
674 /* 98 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 21),
675 /* 99 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
676 /* 100 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_assignment_t const *, int32_t, _Bool *)
677 /* 101 */ _CFFI_OP(_CFFI_OP_NOOP, 94),
678 /* 102 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 21),
679 /* 103 */ _CFFI_OP(_CFFI_OP_NOOP, 40),
680 /* 104 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
681 /* 105 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_assignment_t const *, int32_t, int *)
682 /* 106 */ _CFFI_OP(_CFFI_OP_NOOP, 94),
683 /* 107 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 21),
684 /* 108 */ _CFFI_OP(_CFFI_OP_POINTER, 153), // int *
685 /* 109 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
686 /* 110 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_assignment_t const *, int32_t, uint32_t *)
687 /* 111 */ _CFFI_OP(_CFFI_OP_NOOP, 94),
688 /* 112 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 21),
689 /* 113 */ _CFFI_OP(_CFFI_OP_POINTER, 67), // uint32_t *
690 /* 114 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
691 /* 115 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_assignment_t const *, size_t, int32_t *)
692 /* 116 */ _CFFI_OP(_CFFI_OP_NOOP, 94),
693 /* 117 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 28),
694 /* 118 */ _CFFI_OP(_CFFI_OP_POINTER, 12), // int32_t *
695 /* 119 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
696 /* 120 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_assignment_t const *, uint32_t *)
697 /* 121 */ _CFFI_OP(_CFFI_OP_NOOP, 94),
698 /* 122 */ _CFFI_OP(_CFFI_OP_NOOP, 113),
699 /* 123 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
700 /* 124 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_assignment_t const *, uint32_t, int32_t *)
701 /* 125 */ _CFFI_OP(_CFFI_OP_NOOP, 94),
702 /* 126 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 22),
703 /* 127 */ _CFFI_OP(_CFFI_OP_NOOP, 118),
704 /* 128 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
705 /* 129 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_assignment_t const *, uint32_t, uint32_t *)
706 /* 130 */ _CFFI_OP(_CFFI_OP_NOOP, 94),
707 /* 131 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 22),
708 /* 132 */ _CFFI_OP(_CFFI_OP_NOOP, 113),
709 /* 133 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
710 /* 134 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_ast_t *, char *, size_t)
711 /* 135 */ _CFFI_OP(_CFFI_OP_POINTER, 1200), // clingo_ast_t *
712 /* 136 */ _CFFI_OP(_CFFI_OP_POINTER, 1191), // char *
713 /* 137 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 28),
714 /* 138 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
715 /* 139 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_ast_t *, clingo_ast_t * *)
716 /* 140 */ _CFFI_OP(_CFFI_OP_NOOP, 135),
717 /* 141 */ _CFFI_OP(_CFFI_OP_POINTER, 135), // clingo_ast_t * *
718 /* 142 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
719 /* 143 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_ast_t *, clingo_ast_t *)
720 /* 144 */ _CFFI_OP(_CFFI_OP_NOOP, 135),
721 /* 145 */ _CFFI_OP(_CFFI_OP_NOOP, 135),
722 /* 146 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
723 /* 147 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_ast_t *, int *)
724 /* 148 */ _CFFI_OP(_CFFI_OP_NOOP, 135),
725 /* 149 */ _CFFI_OP(_CFFI_OP_NOOP, 108),
726 /* 150 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
727 /* 151 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_ast_t *, int, _Bool *)
728 /* 152 */ _CFFI_OP(_CFFI_OP_NOOP, 135),
729 /* 153 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 7), // int
730 /* 154 */ _CFFI_OP(_CFFI_OP_NOOP, 40),
731 /* 155 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
732 /* 156 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_ast_t *, int, _Bool(*)(clingo_ast_t *, void *), void *)
733 /* 157 */ _CFFI_OP(_CFFI_OP_NOOP, 135),
734 /* 158 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 7),
735 /* 159 */ _CFFI_OP(_CFFI_OP_NOOP, 24),
736 /* 160 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
737 /* 161 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
738 /* 162 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_ast_t *, int, char const * *)
739 /* 163 */ _CFFI_OP(_CFFI_OP_NOOP, 135),
740 /* 164 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 7),
741 /* 165 */ _CFFI_OP(_CFFI_OP_NOOP, 58),
742 /* 166 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
743 /* 167 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_ast_t *, int, char const *)
744 /* 168 */ _CFFI_OP(_CFFI_OP_NOOP, 135),
745 /* 169 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 7),
746 /* 170 */ _CFFI_OP(_CFFI_OP_NOOP, 39),
747 /* 171 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
748 /* 172 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_ast_t *, int, clingo_ast_t * *)
749 /* 173 */ _CFFI_OP(_CFFI_OP_NOOP, 135),
750 /* 174 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 7),
751 /* 175 */ _CFFI_OP(_CFFI_OP_NOOP, 141),
752 /* 176 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
753 /* 177 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_ast_t *, int, clingo_ast_t *)
754 /* 178 */ _CFFI_OP(_CFFI_OP_NOOP, 135),
755 /* 179 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 7),
756 /* 180 */ _CFFI_OP(_CFFI_OP_NOOP, 135),
757 /* 181 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
758 /* 182 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_ast_t *, int, clingo_location_t *)
759 /* 183 */ _CFFI_OP(_CFFI_OP_NOOP, 135),
760 /* 184 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 7),
761 /* 185 */ _CFFI_OP(_CFFI_OP_POINTER, 1205), // clingo_location_t *
762 /* 186 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
763 /* 187 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_ast_t *, int, clingo_location_t const *)
764 /* 188 */ _CFFI_OP(_CFFI_OP_NOOP, 135),
765 /* 189 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 7),
766 /* 190 */ _CFFI_OP(_CFFI_OP_POINTER, 1205), // clingo_location_t const *
767 /* 191 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
768 /* 192 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_ast_t *, int, int *)
769 /* 193 */ _CFFI_OP(_CFFI_OP_NOOP, 135),
770 /* 194 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 7),
771 /* 195 */ _CFFI_OP(_CFFI_OP_NOOP, 108),
772 /* 196 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
773 /* 197 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_ast_t *, int, int)
774 /* 198 */ _CFFI_OP(_CFFI_OP_NOOP, 135),
775 /* 199 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 7),
776 /* 200 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 7),
777 /* 201 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
778 /* 202 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_ast_t *, int, size_t *)
779 /* 203 */ _CFFI_OP(_CFFI_OP_NOOP, 135),
780 /* 204 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 7),
781 /* 205 */ _CFFI_OP(_CFFI_OP_POINTER, 3), // size_t *
782 /* 206 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
783 /* 207 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_ast_t *, int, size_t)
784 /* 208 */ _CFFI_OP(_CFFI_OP_NOOP, 135),
785 /* 209 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 7),
786 /* 210 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 28),
787 /* 211 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
788 /* 212 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_ast_t *, int, size_t, char const * *)
789 /* 213 */ _CFFI_OP(_CFFI_OP_NOOP, 135),
790 /* 214 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 7),
791 /* 215 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 28),
792 /* 216 */ _CFFI_OP(_CFFI_OP_NOOP, 58),
793 /* 217 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
794 /* 218 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_ast_t *, int, size_t, char const *)
795 /* 219 */ _CFFI_OP(_CFFI_OP_NOOP, 135),
796 /* 220 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 7),
797 /* 221 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 28),
798 /* 222 */ _CFFI_OP(_CFFI_OP_NOOP, 39),
799 /* 223 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
800 /* 224 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_ast_t *, int, size_t, clingo_ast_t * *)
801 /* 225 */ _CFFI_OP(_CFFI_OP_NOOP, 135),
802 /* 226 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 7),
803 /* 227 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 28),
804 /* 228 */ _CFFI_OP(_CFFI_OP_NOOP, 141),
805 /* 229 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
806 /* 230 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_ast_t *, int, size_t, clingo_ast_t *)
807 /* 231 */ _CFFI_OP(_CFFI_OP_NOOP, 135),
808 /* 232 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 7),
809 /* 233 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 28),
810 /* 234 */ _CFFI_OP(_CFFI_OP_NOOP, 135),
811 /* 235 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
812 /* 236 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_ast_t *, int, uint64_t *)
813 /* 237 */ _CFFI_OP(_CFFI_OP_NOOP, 135),
814 /* 238 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 7),
815 /* 239 */ _CFFI_OP(_CFFI_OP_NOOP, 54),
816 /* 240 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
817 /* 241 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_ast_t *, int, uint64_t)
818 /* 242 */ _CFFI_OP(_CFFI_OP_NOOP, 135),
819 /* 243 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 7),
820 /* 244 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 24), // uint64_t
821 /* 245 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
822 /* 246 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_ast_t *, size_t *)
823 /* 247 */ _CFFI_OP(_CFFI_OP_NOOP, 135),
824 /* 248 */ _CFFI_OP(_CFFI_OP_NOOP, 205),
825 /* 249 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
826 /* 250 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_ast_t *, void *)
827 /* 251 */ _CFFI_OP(_CFFI_OP_NOOP, 135),
828 /* 252 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
829 /* 253 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
830 /* 254 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_ast_t const *, void *)
831 /* 255 */ _CFFI_OP(_CFFI_OP_POINTER, 1200), // clingo_ast_t const *
832 /* 256 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
833 /* 257 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
834 /* 258 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_backend_t *)
835 /* 259 */ _CFFI_OP(_CFFI_OP_POINTER, 1201), // clingo_backend_t *
836 /* 260 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
837 /* 261 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_backend_t *, _Bool, uint32_t const *, size_t, int32_t const *, size_t)
838 /* 262 */ _CFFI_OP(_CFFI_OP_NOOP, 259),
839 /* 263 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 1),
840 /* 264 */ _CFFI_OP(_CFFI_OP_NOOP, 2),
841 /* 265 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 28),
842 /* 266 */ _CFFI_OP(_CFFI_OP_NOOP, 4),
843 /* 267 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 28),
844 /* 268 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
845 /* 269 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_backend_t *, _Bool, uint32_t const *, size_t, int32_t, clingo_weighted_literal_t const *, size_t)
846 /* 270 */ _CFFI_OP(_CFFI_OP_NOOP, 259),
847 /* 271 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 1),
848 /* 272 */ _CFFI_OP(_CFFI_OP_NOOP, 2),
849 /* 273 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 28),
850 /* 274 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 21),
851 /* 275 */ _CFFI_OP(_CFFI_OP_NOOP, 13),
852 /* 276 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 28),
853 /* 277 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
854 /* 278 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_backend_t *, int, int, int32_t const *, size_t)
855 /* 279 */ _CFFI_OP(_CFFI_OP_NOOP, 259),
856 /* 280 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 7),
857 /* 281 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 7),
858 /* 282 */ _CFFI_OP(_CFFI_OP_NOOP, 4),
859 /* 283 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 28),
860 /* 284 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
861 /* 285 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_backend_t *, int32_t const *, size_t)
862 /* 286 */ _CFFI_OP(_CFFI_OP_NOOP, 259),
863 /* 287 */ _CFFI_OP(_CFFI_OP_NOOP, 4),
864 /* 288 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 28),
865 /* 289 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
866 /* 290 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_backend_t *, int32_t, clingo_weighted_literal_t const *, size_t)
867 /* 291 */ _CFFI_OP(_CFFI_OP_NOOP, 259),
868 /* 292 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 21),
869 /* 293 */ _CFFI_OP(_CFFI_OP_NOOP, 13),
870 /* 294 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 28),
871 /* 295 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
872 /* 296 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_backend_t *, uint32_t const *, size_t)
873 /* 297 */ _CFFI_OP(_CFFI_OP_NOOP, 259),
874 /* 298 */ _CFFI_OP(_CFFI_OP_NOOP, 2),
875 /* 299 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 28),
876 /* 300 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
877 /* 301 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_backend_t *, uint32_t, int)
878 /* 302 */ _CFFI_OP(_CFFI_OP_NOOP, 259),
879 /* 303 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 22),
880 /* 304 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 7),
881 /* 305 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
882 /* 306 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_backend_t *, uint32_t, int, int, unsigned int, int32_t const *, size_t)
883 /* 307 */ _CFFI_OP(_CFFI_OP_NOOP, 259),
884 /* 308 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 22),
885 /* 309 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 7),
886 /* 310 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 7),
887 /* 311 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 8),
888 /* 312 */ _CFFI_OP(_CFFI_OP_NOOP, 4),
889 /* 313 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 28),
890 /* 314 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
891 /* 315 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_backend_t *, uint64_t *, uint32_t *)
892 /* 316 */ _CFFI_OP(_CFFI_OP_NOOP, 259),
893 /* 317 */ _CFFI_OP(_CFFI_OP_NOOP, 54),
894 /* 318 */ _CFFI_OP(_CFFI_OP_NOOP, 113),
895 /* 319 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
896 /* 320 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_configuration_t *, uint32_t, char const *)
897 /* 321 */ _CFFI_OP(_CFFI_OP_POINTER, 1202), // clingo_configuration_t *
898 /* 322 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 22),
899 /* 323 */ _CFFI_OP(_CFFI_OP_NOOP, 39),
900 /* 324 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
901 /* 325 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_configuration_t const *, uint32_t *)
902 /* 326 */ _CFFI_OP(_CFFI_OP_POINTER, 1202), // clingo_configuration_t const *
903 /* 327 */ _CFFI_OP(_CFFI_OP_NOOP, 113),
904 /* 328 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
905 /* 329 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_configuration_t const *, uint32_t, _Bool *)
906 /* 330 */ _CFFI_OP(_CFFI_OP_NOOP, 326),
907 /* 331 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 22),
908 /* 332 */ _CFFI_OP(_CFFI_OP_NOOP, 40),
909 /* 333 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
910 /* 334 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_configuration_t const *, uint32_t, char *, size_t)
911 /* 335 */ _CFFI_OP(_CFFI_OP_NOOP, 326),
912 /* 336 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 22),
913 /* 337 */ _CFFI_OP(_CFFI_OP_NOOP, 136),
914 /* 338 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 28),
915 /* 339 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
916 /* 340 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_configuration_t const *, uint32_t, char const * *)
917 /* 341 */ _CFFI_OP(_CFFI_OP_NOOP, 326),
918 /* 342 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 22),
919 /* 343 */ _CFFI_OP(_CFFI_OP_NOOP, 58),
920 /* 344 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
921 /* 345 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_configuration_t const *, uint32_t, char const *, _Bool *)
922 /* 346 */ _CFFI_OP(_CFFI_OP_NOOP, 326),
923 /* 347 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 22),
924 /* 348 */ _CFFI_OP(_CFFI_OP_NOOP, 39),
925 /* 349 */ _CFFI_OP(_CFFI_OP_NOOP, 40),
926 /* 350 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
927 /* 351 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_configuration_t const *, uint32_t, char const *, uint32_t *)
928 /* 352 */ _CFFI_OP(_CFFI_OP_NOOP, 326),
929 /* 353 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 22),
930 /* 354 */ _CFFI_OP(_CFFI_OP_NOOP, 39),
931 /* 355 */ _CFFI_OP(_CFFI_OP_NOOP, 113),
932 /* 356 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
933 /* 357 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_configuration_t const *, uint32_t, size_t *)
934 /* 358 */ _CFFI_OP(_CFFI_OP_NOOP, 326),
935 /* 359 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 22),
936 /* 360 */ _CFFI_OP(_CFFI_OP_NOOP, 205),
937 /* 361 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
938 /* 362 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_configuration_t const *, uint32_t, size_t, char const * *)
939 /* 363 */ _CFFI_OP(_CFFI_OP_NOOP, 326),
940 /* 364 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 22),
941 /* 365 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 28),
942 /* 366 */ _CFFI_OP(_CFFI_OP_NOOP, 58),
943 /* 367 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
944 /* 368 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_configuration_t const *, uint32_t, size_t, uint32_t *)
945 /* 369 */ _CFFI_OP(_CFFI_OP_NOOP, 326),
946 /* 370 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 22),
947 /* 371 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 28),
948 /* 372 */ _CFFI_OP(_CFFI_OP_NOOP, 113),
949 /* 373 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
950 /* 374 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_configuration_t const *, uint32_t, unsigned int *)
951 /* 375 */ _CFFI_OP(_CFFI_OP_NOOP, 326),
952 /* 376 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 22),
953 /* 377 */ _CFFI_OP(_CFFI_OP_POINTER, 28), // unsigned int *
954 /* 378 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
955 /* 379 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_control_t *)
956 /* 380 */ _CFFI_OP(_CFFI_OP_POINTER, 1203), // clingo_control_t *
957 /* 381 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
958 /* 382 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_control_t *, _Bool)
959 /* 383 */ _CFFI_OP(_CFFI_OP_NOOP, 380),
960 /* 384 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 1),
961 /* 385 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
962 /* 386 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_control_t *, char const * const *, size_t, void *)
963 /* 387 */ _CFFI_OP(_CFFI_OP_NOOP, 380),
964 /* 388 */ _CFFI_OP(_CFFI_OP_NOOP, 22),
965 /* 389 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 28),
966 /* 390 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
967 /* 391 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
968 /* 392 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_control_t *, char const *)
969 /* 393 */ _CFFI_OP(_CFFI_OP_NOOP, 380),
970 /* 394 */ _CFFI_OP(_CFFI_OP_NOOP, 39),
971 /* 395 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
972 /* 396 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_control_t *, char const *, char const * const *, size_t, char const *)
973 /* 397 */ _CFFI_OP(_CFFI_OP_NOOP, 380),
974 /* 398 */ _CFFI_OP(_CFFI_OP_NOOP, 39),
975 /* 399 */ _CFFI_OP(_CFFI_OP_NOOP, 22),
976 /* 400 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 28),
977 /* 401 */ _CFFI_OP(_CFFI_OP_NOOP, 39),
978 /* 402 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
979 /* 403 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_control_t *, clingo_backend_t * *)
980 /* 404 */ _CFFI_OP(_CFFI_OP_NOOP, 380),
981 /* 405 */ _CFFI_OP(_CFFI_OP_POINTER, 259), // clingo_backend_t * *
982 /* 406 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
983 /* 407 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_control_t *, clingo_configuration_t * *)
984 /* 408 */ _CFFI_OP(_CFFI_OP_NOOP, 380),
985 /* 409 */ _CFFI_OP(_CFFI_OP_POINTER, 321), // clingo_configuration_t * *
986 /* 410 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
987 /* 411 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_control_t *, clingo_ground_program_observer_t const *, _Bool, void *)
988 /* 412 */ _CFFI_OP(_CFFI_OP_NOOP, 380),
989 /* 413 */ _CFFI_OP(_CFFI_OP_POINTER, 1204), // clingo_ground_program_observer_t const *
990 /* 414 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 1),
991 /* 415 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
992 /* 416 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
993 /* 417 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_control_t *, clingo_part_t const *, size_t, _Bool(*)(clingo_location_t const *, char const *, uint64_t const *, size_t, void *, _Bool(*)(uint64_t const *, size_t, void *), void *), void *)
994 /* 418 */ _CFFI_OP(_CFFI_OP_NOOP, 380),
995 /* 419 */ _CFFI_OP(_CFFI_OP_POINTER, 1208), // clingo_part_t const *
996 /* 420 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 28),
997 /* 421 */ _CFFI_OP(_CFFI_OP_POINTER, 508), // _Bool(*)(clingo_location_t const *, char const *, uint64_t const *, size_t, void *, _Bool(*)(uint64_t const *, size_t, void *), void *)
998 /* 422 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
999 /* 423 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1000 /* 424 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_control_t *, clingo_program_builder_t * *)
1001 /* 425 */ _CFFI_OP(_CFFI_OP_NOOP, 380),
1002 /* 426 */ _CFFI_OP(_CFFI_OP_POINTER, 605), // clingo_program_builder_t * *
1003 /* 427 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1004 /* 428 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_control_t *, clingo_propagator_t const *, void *, _Bool)
1005 /* 429 */ _CFFI_OP(_CFFI_OP_NOOP, 380),
1006 /* 430 */ _CFFI_OP(_CFFI_OP_POINTER, 1212), // clingo_propagator_t const *
1007 /* 431 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
1008 /* 432 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 1),
1009 /* 433 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1010 /* 434 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_control_t *, int32_t)
1011 /* 435 */ _CFFI_OP(_CFFI_OP_NOOP, 380),
1012 /* 436 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 21),
1013 /* 437 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1014 /* 438 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_control_t *, int32_t, int)
1015 /* 439 */ _CFFI_OP(_CFFI_OP_NOOP, 380),
1016 /* 440 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 21),
1017 /* 441 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 7),
1018 /* 442 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1019 /* 443 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_control_t *, unsigned int, int32_t const *, size_t, _Bool(*)(unsigned int, void *, void *, _Bool *), void *, clingo_solve_handle_t * *)
1020 /* 444 */ _CFFI_OP(_CFFI_OP_NOOP, 380),
1021 /* 445 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 8),
1022 /* 446 */ _CFFI_OP(_CFFI_OP_NOOP, 4),
1023 /* 447 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 28),
1024 /* 448 */ _CFFI_OP(_CFFI_OP_POINTER, 1024), // _Bool(*)(unsigned int, void *, void *, _Bool *)
1025 /* 449 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
1026 /* 450 */ _CFFI_OP(_CFFI_OP_POINTER, 711), // clingo_solve_handle_t * *
1027 /* 451 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1028 /* 452 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_control_t *, void * *)
1029 /* 453 */ _CFFI_OP(_CFFI_OP_NOOP, 380),
1030 /* 454 */ _CFFI_OP(_CFFI_OP_POINTER, 6), // void * *
1031 /* 455 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1032 /* 456 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_control_t *, void *)
1033 /* 457 */ _CFFI_OP(_CFFI_OP_NOOP, 380),
1034 /* 458 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
1035 /* 459 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1036 /* 460 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_control_t const *)
1037 /* 461 */ _CFFI_OP(_CFFI_OP_POINTER, 1203), // clingo_control_t const *
1038 /* 462 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1039 /* 463 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_control_t const *, char const *, _Bool *)
1040 /* 464 */ _CFFI_OP(_CFFI_OP_NOOP, 461),
1041 /* 465 */ _CFFI_OP(_CFFI_OP_NOOP, 39),
1042 /* 466 */ _CFFI_OP(_CFFI_OP_NOOP, 40),
1043 /* 467 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1044 /* 468 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_control_t const *, char const *, uint64_t *)
1045 /* 469 */ _CFFI_OP(_CFFI_OP_NOOP, 461),
1046 /* 470 */ _CFFI_OP(_CFFI_OP_NOOP, 39),
1047 /* 471 */ _CFFI_OP(_CFFI_OP_NOOP, 54),
1048 /* 472 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1049 /* 473 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_control_t const *, clingo_statistics_t const * *)
1050 /* 474 */ _CFFI_OP(_CFFI_OP_NOOP, 461),
1051 /* 475 */ _CFFI_OP(_CFFI_OP_POINTER, 745), // clingo_statistics_t const * *
1052 /* 476 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1053 /* 477 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_control_t const *, clingo_symbolic_atoms_t const * *)
1054 /* 478 */ _CFFI_OP(_CFFI_OP_NOOP, 461),
1055 /* 479 */ _CFFI_OP(_CFFI_OP_POINTER, 788), // clingo_symbolic_atoms_t const * *
1056 /* 480 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1057 /* 481 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_control_t const *, clingo_theory_atoms_t const * *)
1058 /* 482 */ _CFFI_OP(_CFFI_OP_NOOP, 461),
1059 /* 483 */ _CFFI_OP(_CFFI_OP_POINTER, 827), // clingo_theory_atoms_t const * *
1060 /* 484 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1061 /* 485 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_location_t *, char const *, void *)
1062 /* 486 */ _CFFI_OP(_CFFI_OP_NOOP, 185),
1063 /* 487 */ _CFFI_OP(_CFFI_OP_NOOP, 39),
1064 /* 488 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
1065 /* 489 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1066 /* 490 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_location_t *, char const *, void *, size_t, void *, void *, void *)
1067 /* 491 */ _CFFI_OP(_CFFI_OP_NOOP, 185),
1068 /* 492 */ _CFFI_OP(_CFFI_OP_NOOP, 39),
1069 /* 493 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
1070 /* 494 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 28),
1071 /* 495 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
1072 /* 496 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
1073 /* 497 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
1074 /* 498 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1075 /* 499 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_location_t const *, char const *, uint64_t const *, size_t, _Bool(*)(uint64_t const *, size_t, void *), void *, void *)
1076 /* 500 */ _CFFI_OP(_CFFI_OP_NOOP, 190),
1077 /* 501 */ _CFFI_OP(_CFFI_OP_NOOP, 39),
1078 /* 502 */ _CFFI_OP(_CFFI_OP_NOOP, 77),
1079 /* 503 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 28),
1080 /* 504 */ _CFFI_OP(_CFFI_OP_POINTER, 968), // _Bool(*)(uint64_t const *, size_t, void *)
1081 /* 505 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
1082 /* 506 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
1083 /* 507 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1084 /* 508 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_location_t const *, char const *, uint64_t const *, size_t, void *, _Bool(*)(uint64_t const *, size_t, void *), void *)
1085 /* 509 */ _CFFI_OP(_CFFI_OP_NOOP, 190),
1086 /* 510 */ _CFFI_OP(_CFFI_OP_NOOP, 39),
1087 /* 511 */ _CFFI_OP(_CFFI_OP_NOOP, 77),
1088 /* 512 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 28),
1089 /* 513 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
1090 /* 514 */ _CFFI_OP(_CFFI_OP_NOOP, 504),
1091 /* 515 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
1092 /* 516 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1093 /* 517 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_location_t const *, char const *, void *)
1094 /* 518 */ _CFFI_OP(_CFFI_OP_NOOP, 190),
1095 /* 519 */ _CFFI_OP(_CFFI_OP_NOOP, 39),
1096 /* 520 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
1097 /* 521 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1098 /* 522 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_model_t *, uint64_t const *, size_t)
1099 /* 523 */ _CFFI_OP(_CFFI_OP_POINTER, 1206), // clingo_model_t *
1100 /* 524 */ _CFFI_OP(_CFFI_OP_NOOP, 77),
1101 /* 525 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 28),
1102 /* 526 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1103 /* 527 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_model_t const *, _Bool *)
1104 /* 528 */ _CFFI_OP(_CFFI_OP_POINTER, 1206), // clingo_model_t const *
1105 /* 529 */ _CFFI_OP(_CFFI_OP_NOOP, 40),
1106 /* 530 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1107 /* 531 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_model_t const *, _Bool(*)(void *), void *, void *)
1108 /* 532 */ _CFFI_OP(_CFFI_OP_NOOP, 528),
1109 /* 533 */ _CFFI_OP(_CFFI_OP_POINTER, 1030), // _Bool(*)(void *)
1110 /* 534 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
1111 /* 535 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
1112 /* 536 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1113 /* 537 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_model_t const *, clingo_solve_control_t * *)
1114 /* 538 */ _CFFI_OP(_CFFI_OP_NOOP, 528),
1115 /* 539 */ _CFFI_OP(_CFFI_OP_POINTER, 702), // clingo_solve_control_t * *
1116 /* 540 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1117 /* 541 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_model_t const *, int *)
1118 /* 542 */ _CFFI_OP(_CFFI_OP_NOOP, 528),
1119 /* 543 */ _CFFI_OP(_CFFI_OP_NOOP, 108),
1120 /* 544 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1121 /* 545 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_model_t const *, int32_t, _Bool *)
1122 /* 546 */ _CFFI_OP(_CFFI_OP_NOOP, 528),
1123 /* 547 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 21),
1124 /* 548 */ _CFFI_OP(_CFFI_OP_NOOP, 40),
1125 /* 549 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1126 /* 550 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_model_t const *, int64_t *, size_t)
1127 /* 551 */ _CFFI_OP(_CFFI_OP_NOOP, 528),
1128 /* 552 */ _CFFI_OP(_CFFI_OP_POINTER, 1249), // int64_t *
1129 /* 553 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 28),
1130 /* 554 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1131 /* 555 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_model_t const *, size_t *)
1132 /* 556 */ _CFFI_OP(_CFFI_OP_NOOP, 528),
1133 /* 557 */ _CFFI_OP(_CFFI_OP_NOOP, 205),
1134 /* 558 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1135 /* 559 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_model_t const *, uint32_t *)
1136 /* 560 */ _CFFI_OP(_CFFI_OP_NOOP, 528),
1137 /* 561 */ _CFFI_OP(_CFFI_OP_NOOP, 113),
1138 /* 562 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1139 /* 563 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_model_t const *, uint64_t *)
1140 /* 564 */ _CFFI_OP(_CFFI_OP_NOOP, 528),
1141 /* 565 */ _CFFI_OP(_CFFI_OP_NOOP, 54),
1142 /* 566 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1143 /* 567 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_model_t const *, uint64_t, _Bool *)
1144 /* 568 */ _CFFI_OP(_CFFI_OP_NOOP, 528),
1145 /* 569 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 24),
1146 /* 570 */ _CFFI_OP(_CFFI_OP_NOOP, 40),
1147 /* 571 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1148 /* 572 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_model_t const *, unsigned int, size_t *)
1149 /* 573 */ _CFFI_OP(_CFFI_OP_NOOP, 528),
1150 /* 574 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 8),
1151 /* 575 */ _CFFI_OP(_CFFI_OP_NOOP, 205),
1152 /* 576 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1153 /* 577 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_model_t const *, unsigned int, uint64_t *, size_t)
1154 /* 578 */ _CFFI_OP(_CFFI_OP_NOOP, 528),
1155 /* 579 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 8),
1156 /* 580 */ _CFFI_OP(_CFFI_OP_NOOP, 54),
1157 /* 581 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 28),
1158 /* 582 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1159 /* 583 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_options_t *, char const *, char const *, char const *, _Bool *)
1160 /* 584 */ _CFFI_OP(_CFFI_OP_POINTER, 1207), // clingo_options_t *
1161 /* 585 */ _CFFI_OP(_CFFI_OP_NOOP, 39),
1162 /* 586 */ _CFFI_OP(_CFFI_OP_NOOP, 39),
1163 /* 587 */ _CFFI_OP(_CFFI_OP_NOOP, 39),
1164 /* 588 */ _CFFI_OP(_CFFI_OP_NOOP, 40),
1165 /* 589 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1166 /* 590 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_options_t *, char const *, char const *, char const *, _Bool(*)(char const *, void *), void *, _Bool, char const *)
1167 /* 591 */ _CFFI_OP(_CFFI_OP_NOOP, 584),
1168 /* 592 */ _CFFI_OP(_CFFI_OP_NOOP, 39),
1169 /* 593 */ _CFFI_OP(_CFFI_OP_NOOP, 39),
1170 /* 594 */ _CFFI_OP(_CFFI_OP_NOOP, 39),
1171 /* 595 */ _CFFI_OP(_CFFI_OP_POINTER, 82), // _Bool(*)(char const *, void *)
1172 /* 596 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
1173 /* 597 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 1),
1174 /* 598 */ _CFFI_OP(_CFFI_OP_NOOP, 39),
1175 /* 599 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1176 /* 600 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_options_t *, void *)
1177 /* 601 */ _CFFI_OP(_CFFI_OP_NOOP, 584),
1178 /* 602 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
1179 /* 603 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1180 /* 604 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_program_builder_t *)
1181 /* 605 */ _CFFI_OP(_CFFI_OP_POINTER, 1209), // clingo_program_builder_t *
1182 /* 606 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1183 /* 607 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_program_builder_t *, clingo_ast_t *)
1184 /* 608 */ _CFFI_OP(_CFFI_OP_NOOP, 605),
1185 /* 609 */ _CFFI_OP(_CFFI_OP_NOOP, 135),
1186 /* 610 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1187 /* 611 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_propagate_control_t *, _Bool *)
1188 /* 612 */ _CFFI_OP(_CFFI_OP_POINTER, 1210), // clingo_propagate_control_t *
1189 /* 613 */ _CFFI_OP(_CFFI_OP_NOOP, 40),
1190 /* 614 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1191 /* 615 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_propagate_control_t *, int32_t *)
1192 /* 616 */ _CFFI_OP(_CFFI_OP_NOOP, 612),
1193 /* 617 */ _CFFI_OP(_CFFI_OP_NOOP, 118),
1194 /* 618 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1195 /* 619 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_propagate_control_t *, int32_t const *, size_t, int, _Bool *)
1196 /* 620 */ _CFFI_OP(_CFFI_OP_NOOP, 612),
1197 /* 621 */ _CFFI_OP(_CFFI_OP_NOOP, 4),
1198 /* 622 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 28),
1199 /* 623 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 7),
1200 /* 624 */ _CFFI_OP(_CFFI_OP_NOOP, 40),
1201 /* 625 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1202 /* 626 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_propagate_control_t *, int32_t const *, size_t, void *)
1203 /* 627 */ _CFFI_OP(_CFFI_OP_NOOP, 612),
1204 /* 628 */ _CFFI_OP(_CFFI_OP_NOOP, 4),
1205 /* 629 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 28),
1206 /* 630 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
1207 /* 631 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1208 /* 632 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_propagate_control_t *, int32_t)
1209 /* 633 */ _CFFI_OP(_CFFI_OP_NOOP, 612),
1210 /* 634 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 21),
1211 /* 635 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1212 /* 636 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_propagate_control_t *, void *)
1213 /* 637 */ _CFFI_OP(_CFFI_OP_NOOP, 612),
1214 /* 638 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
1215 /* 639 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1216 /* 640 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_propagate_control_t const *, int32_t)
1217 /* 641 */ _CFFI_OP(_CFFI_OP_POINTER, 1210), // clingo_propagate_control_t const *
1218 /* 642 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 21),
1219 /* 643 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1220 /* 644 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_propagate_init_t *, _Bool *)
1221 /* 645 */ _CFFI_OP(_CFFI_OP_POINTER, 1211), // clingo_propagate_init_t *
1222 /* 646 */ _CFFI_OP(_CFFI_OP_NOOP, 40),
1223 /* 647 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1224 /* 648 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_propagate_init_t *, _Bool, int32_t *)
1225 /* 649 */ _CFFI_OP(_CFFI_OP_NOOP, 645),
1226 /* 650 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 1),
1227 /* 651 */ _CFFI_OP(_CFFI_OP_NOOP, 118),
1228 /* 652 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1229 /* 653 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_propagate_init_t *, int32_t const *, size_t, _Bool *)
1230 /* 654 */ _CFFI_OP(_CFFI_OP_NOOP, 645),
1231 /* 655 */ _CFFI_OP(_CFFI_OP_NOOP, 4),
1232 /* 656 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 28),
1233 /* 657 */ _CFFI_OP(_CFFI_OP_NOOP, 40),
1234 /* 658 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1235 /* 659 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_propagate_init_t *, int32_t)
1236 /* 660 */ _CFFI_OP(_CFFI_OP_NOOP, 645),
1237 /* 661 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 21),
1238 /* 662 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1239 /* 663 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_propagate_init_t *, int32_t, clingo_weighted_literal_t const *, size_t, int32_t, int, _Bool, _Bool *)
1240 /* 664 */ _CFFI_OP(_CFFI_OP_NOOP, 645),
1241 /* 665 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 21),
1242 /* 666 */ _CFFI_OP(_CFFI_OP_NOOP, 13),
1243 /* 667 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 28),
1244 /* 668 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 21),
1245 /* 669 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 7),
1246 /* 670 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 1),
1247 /* 671 */ _CFFI_OP(_CFFI_OP_NOOP, 40),
1248 /* 672 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1249 /* 673 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_propagate_init_t *, int32_t, int32_t, int32_t)
1250 /* 674 */ _CFFI_OP(_CFFI_OP_NOOP, 645),
1251 /* 675 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 21),
1252 /* 676 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 21),
1253 /* 677 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 21),
1254 /* 678 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1255 /* 679 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_propagate_init_t *, int32_t, uint32_t)
1256 /* 680 */ _CFFI_OP(_CFFI_OP_NOOP, 645),
1257 /* 681 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 21),
1258 /* 682 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 22),
1259 /* 683 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1260 /* 684 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_propagate_init_t *, void *)
1261 /* 685 */ _CFFI_OP(_CFFI_OP_NOOP, 645),
1262 /* 686 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
1263 /* 687 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1264 /* 688 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_propagate_init_t const *, clingo_symbolic_atoms_t const * *)
1265 /* 689 */ _CFFI_OP(_CFFI_OP_POINTER, 1211), // clingo_propagate_init_t const *
1266 /* 690 */ _CFFI_OP(_CFFI_OP_NOOP, 479),
1267 /* 691 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1268 /* 692 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_propagate_init_t const *, clingo_theory_atoms_t const * *)
1269 /* 693 */ _CFFI_OP(_CFFI_OP_NOOP, 689),
1270 /* 694 */ _CFFI_OP(_CFFI_OP_NOOP, 483),
1271 /* 695 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1272 /* 696 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_propagate_init_t const *, int32_t, int32_t *)
1273 /* 697 */ _CFFI_OP(_CFFI_OP_NOOP, 689),
1274 /* 698 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 21),
1275 /* 699 */ _CFFI_OP(_CFFI_OP_NOOP, 118),
1276 /* 700 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1277 /* 701 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_solve_control_t *, int32_t const *, size_t)
1278 /* 702 */ _CFFI_OP(_CFFI_OP_POINTER, 1214), // clingo_solve_control_t *
1279 /* 703 */ _CFFI_OP(_CFFI_OP_NOOP, 4),
1280 /* 704 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 28),
1281 /* 705 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1282 /* 706 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_solve_control_t const *, clingo_symbolic_atoms_t const * *)
1283 /* 707 */ _CFFI_OP(_CFFI_OP_POINTER, 1214), // clingo_solve_control_t const *
1284 /* 708 */ _CFFI_OP(_CFFI_OP_NOOP, 479),
1285 /* 709 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1286 /* 710 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_solve_handle_t *)
1287 /* 711 */ _CFFI_OP(_CFFI_OP_POINTER, 1215), // clingo_solve_handle_t *
1288 /* 712 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1289 /* 713 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_solve_handle_t *, clingo_model_t const * *)
1290 /* 714 */ _CFFI_OP(_CFFI_OP_NOOP, 711),
1291 /* 715 */ _CFFI_OP(_CFFI_OP_POINTER, 528), // clingo_model_t const * *
1292 /* 716 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1293 /* 717 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_solve_handle_t *, int32_t const * *, size_t *)
1294 /* 718 */ _CFFI_OP(_CFFI_OP_NOOP, 711),
1295 /* 719 */ _CFFI_OP(_CFFI_OP_POINTER, 4), // int32_t const * *
1296 /* 720 */ _CFFI_OP(_CFFI_OP_NOOP, 205),
1297 /* 721 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1298 /* 722 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_solve_handle_t *, unsigned int *)
1299 /* 723 */ _CFFI_OP(_CFFI_OP_NOOP, 711),
1300 /* 724 */ _CFFI_OP(_CFFI_OP_NOOP, 377),
1301 /* 725 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1302 /* 726 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_statistics_t *, uint64_t, char const *, int, uint64_t *)
1303 /* 727 */ _CFFI_OP(_CFFI_OP_POINTER, 1216), // clingo_statistics_t *
1304 /* 728 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 24),
1305 /* 729 */ _CFFI_OP(_CFFI_OP_NOOP, 39),
1306 /* 730 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 7),
1307 /* 731 */ _CFFI_OP(_CFFI_OP_NOOP, 54),
1308 /* 732 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1309 /* 733 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_statistics_t *, uint64_t, double)
1310 /* 734 */ _CFFI_OP(_CFFI_OP_NOOP, 727),
1311 /* 735 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 24),
1312 /* 736 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 14), // double
1313 /* 737 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1314 /* 738 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_statistics_t *, uint64_t, int, uint64_t *)
1315 /* 739 */ _CFFI_OP(_CFFI_OP_NOOP, 727),
1316 /* 740 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 24),
1317 /* 741 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 7),
1318 /* 742 */ _CFFI_OP(_CFFI_OP_NOOP, 54),
1319 /* 743 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1320 /* 744 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_statistics_t const *, uint64_t *)
1321 /* 745 */ _CFFI_OP(_CFFI_OP_POINTER, 1216), // clingo_statistics_t const *
1322 /* 746 */ _CFFI_OP(_CFFI_OP_NOOP, 54),
1323 /* 747 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1324 /* 748 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_statistics_t const *, uint64_t, char const *, _Bool *)
1325 /* 749 */ _CFFI_OP(_CFFI_OP_NOOP, 745),
1326 /* 750 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 24),
1327 /* 751 */ _CFFI_OP(_CFFI_OP_NOOP, 39),
1328 /* 752 */ _CFFI_OP(_CFFI_OP_NOOP, 40),
1329 /* 753 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1330 /* 754 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_statistics_t const *, uint64_t, char const *, uint64_t *)
1331 /* 755 */ _CFFI_OP(_CFFI_OP_NOOP, 745),
1332 /* 756 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 24),
1333 /* 757 */ _CFFI_OP(_CFFI_OP_NOOP, 39),
1334 /* 758 */ _CFFI_OP(_CFFI_OP_NOOP, 54),
1335 /* 759 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1336 /* 760 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_statistics_t const *, uint64_t, double *)
1337 /* 761 */ _CFFI_OP(_CFFI_OP_NOOP, 745),
1338 /* 762 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 24),
1339 /* 763 */ _CFFI_OP(_CFFI_OP_POINTER, 736), // double *
1340 /* 764 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1341 /* 765 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_statistics_t const *, uint64_t, int *)
1342 /* 766 */ _CFFI_OP(_CFFI_OP_NOOP, 745),
1343 /* 767 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 24),
1344 /* 768 */ _CFFI_OP(_CFFI_OP_NOOP, 108),
1345 /* 769 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1346 /* 770 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_statistics_t const *, uint64_t, size_t *)
1347 /* 771 */ _CFFI_OP(_CFFI_OP_NOOP, 745),
1348 /* 772 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 24),
1349 /* 773 */ _CFFI_OP(_CFFI_OP_NOOP, 205),
1350 /* 774 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1351 /* 775 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_statistics_t const *, uint64_t, size_t, char const * *)
1352 /* 776 */ _CFFI_OP(_CFFI_OP_NOOP, 745),
1353 /* 777 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 24),
1354 /* 778 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 28),
1355 /* 779 */ _CFFI_OP(_CFFI_OP_NOOP, 58),
1356 /* 780 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1357 /* 781 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_statistics_t const *, uint64_t, size_t, uint64_t *)
1358 /* 782 */ _CFFI_OP(_CFFI_OP_NOOP, 745),
1359 /* 783 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 24),
1360 /* 784 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 28),
1361 /* 785 */ _CFFI_OP(_CFFI_OP_NOOP, 54),
1362 /* 786 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1363 /* 787 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_symbolic_atoms_t const *, size_t *)
1364 /* 788 */ _CFFI_OP(_CFFI_OP_POINTER, 1217), // clingo_symbolic_atoms_t const *
1365 /* 789 */ _CFFI_OP(_CFFI_OP_NOOP, 205),
1366 /* 790 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1367 /* 791 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_symbolic_atoms_t const *, uint64_t *)
1368 /* 792 */ _CFFI_OP(_CFFI_OP_NOOP, 788),
1369 /* 793 */ _CFFI_OP(_CFFI_OP_NOOP, 54),
1370 /* 794 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1371 /* 795 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_symbolic_atoms_t const *, uint64_t *, size_t)
1372 /* 796 */ _CFFI_OP(_CFFI_OP_NOOP, 788),
1373 /* 797 */ _CFFI_OP(_CFFI_OP_NOOP, 54),
1374 /* 798 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 28),
1375 /* 799 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1376 /* 800 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_symbolic_atoms_t const *, uint64_t const *, uint64_t *)
1377 /* 801 */ _CFFI_OP(_CFFI_OP_NOOP, 788),
1378 /* 802 */ _CFFI_OP(_CFFI_OP_NOOP, 77),
1379 /* 803 */ _CFFI_OP(_CFFI_OP_NOOP, 54),
1380 /* 804 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1381 /* 805 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_symbolic_atoms_t const *, uint64_t, _Bool *)
1382 /* 806 */ _CFFI_OP(_CFFI_OP_NOOP, 788),
1383 /* 807 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 24),
1384 /* 808 */ _CFFI_OP(_CFFI_OP_NOOP, 40),
1385 /* 809 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1386 /* 810 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_symbolic_atoms_t const *, uint64_t, int32_t *)
1387 /* 811 */ _CFFI_OP(_CFFI_OP_NOOP, 788),
1388 /* 812 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 24),
1389 /* 813 */ _CFFI_OP(_CFFI_OP_NOOP, 118),
1390 /* 814 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1391 /* 815 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_symbolic_atoms_t const *, uint64_t, uint64_t *)
1392 /* 816 */ _CFFI_OP(_CFFI_OP_NOOP, 788),
1393 /* 817 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 24),
1394 /* 818 */ _CFFI_OP(_CFFI_OP_NOOP, 54),
1395 /* 819 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1396 /* 820 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_symbolic_atoms_t const *, uint64_t, uint64_t, _Bool *)
1397 /* 821 */ _CFFI_OP(_CFFI_OP_NOOP, 788),
1398 /* 822 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 24),
1399 /* 823 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 24),
1400 /* 824 */ _CFFI_OP(_CFFI_OP_NOOP, 40),
1401 /* 825 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1402 /* 826 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_theory_atoms_t const *, size_t *)
1403 /* 827 */ _CFFI_OP(_CFFI_OP_POINTER, 1218), // clingo_theory_atoms_t const *
1404 /* 828 */ _CFFI_OP(_CFFI_OP_NOOP, 205),
1405 /* 829 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1406 /* 830 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_theory_atoms_t const *, uint32_t, _Bool *)
1407 /* 831 */ _CFFI_OP(_CFFI_OP_NOOP, 827),
1408 /* 832 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 22),
1409 /* 833 */ _CFFI_OP(_CFFI_OP_NOOP, 40),
1410 /* 834 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1411 /* 835 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_theory_atoms_t const *, uint32_t, char *, size_t)
1412 /* 836 */ _CFFI_OP(_CFFI_OP_NOOP, 827),
1413 /* 837 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 22),
1414 /* 838 */ _CFFI_OP(_CFFI_OP_NOOP, 136),
1415 /* 839 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 28),
1416 /* 840 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1417 /* 841 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_theory_atoms_t const *, uint32_t, char const * *)
1418 /* 842 */ _CFFI_OP(_CFFI_OP_NOOP, 827),
1419 /* 843 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 22),
1420 /* 844 */ _CFFI_OP(_CFFI_OP_NOOP, 58),
1421 /* 845 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1422 /* 846 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_theory_atoms_t const *, uint32_t, char const * *, uint32_t *)
1423 /* 847 */ _CFFI_OP(_CFFI_OP_NOOP, 827),
1424 /* 848 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 22),
1425 /* 849 */ _CFFI_OP(_CFFI_OP_NOOP, 58),
1426 /* 850 */ _CFFI_OP(_CFFI_OP_NOOP, 113),
1427 /* 851 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1428 /* 852 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_theory_atoms_t const *, uint32_t, int *)
1429 /* 853 */ _CFFI_OP(_CFFI_OP_NOOP, 827),
1430 /* 854 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 22),
1431 /* 855 */ _CFFI_OP(_CFFI_OP_NOOP, 108),
1432 /* 856 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1433 /* 857 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_theory_atoms_t const *, uint32_t, int32_t *)
1434 /* 858 */ _CFFI_OP(_CFFI_OP_NOOP, 827),
1435 /* 859 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 22),
1436 /* 860 */ _CFFI_OP(_CFFI_OP_NOOP, 118),
1437 /* 861 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1438 /* 862 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_theory_atoms_t const *, uint32_t, int32_t const * *, size_t *)
1439 /* 863 */ _CFFI_OP(_CFFI_OP_NOOP, 827),
1440 /* 864 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 22),
1441 /* 865 */ _CFFI_OP(_CFFI_OP_NOOP, 719),
1442 /* 866 */ _CFFI_OP(_CFFI_OP_NOOP, 205),
1443 /* 867 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1444 /* 868 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_theory_atoms_t const *, uint32_t, size_t *)
1445 /* 869 */ _CFFI_OP(_CFFI_OP_NOOP, 827),
1446 /* 870 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 22),
1447 /* 871 */ _CFFI_OP(_CFFI_OP_NOOP, 205),
1448 /* 872 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1449 /* 873 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_theory_atoms_t const *, uint32_t, uint32_t *)
1450 /* 874 */ _CFFI_OP(_CFFI_OP_NOOP, 827),
1451 /* 875 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 22),
1452 /* 876 */ _CFFI_OP(_CFFI_OP_NOOP, 113),
1453 /* 877 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1454 /* 878 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(clingo_theory_atoms_t const *, uint32_t, uint32_t const * *, size_t *)
1455 /* 879 */ _CFFI_OP(_CFFI_OP_NOOP, 827),
1456 /* 880 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 22),
1457 /* 881 */ _CFFI_OP(_CFFI_OP_POINTER, 2), // uint32_t const * *
1458 /* 882 */ _CFFI_OP(_CFFI_OP_NOOP, 205),
1459 /* 883 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1460 /* 884 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(int, clingo_ast_t * *, ...)
1461 /* 885 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 7),
1462 /* 886 */ _CFFI_OP(_CFFI_OP_NOOP, 141),
1463 /* 887 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 1),
1464 /* 888 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(int, int, int32_t const *, size_t, void *)
1465 /* 889 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 7),
1466 /* 890 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 7),
1467 /* 891 */ _CFFI_OP(_CFFI_OP_NOOP, 4),
1468 /* 892 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 28),
1469 /* 893 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
1470 /* 894 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1471 /* 895 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(int32_t const *, size_t, void *)
1472 /* 896 */ _CFFI_OP(_CFFI_OP_NOOP, 4),
1473 /* 897 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 28),
1474 /* 898 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
1475 /* 899 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1476 /* 900 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(int32_t, clingo_weighted_literal_t const *, size_t, void *)
1477 /* 901 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 21),
1478 /* 902 */ _CFFI_OP(_CFFI_OP_NOOP, 13),
1479 /* 903 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 28),
1480 /* 904 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
1481 /* 905 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1482 /* 906 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(uint32_t const *, size_t, void *)
1483 /* 907 */ _CFFI_OP(_CFFI_OP_NOOP, 2),
1484 /* 908 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 28),
1485 /* 909 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
1486 /* 910 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1487 /* 911 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(uint32_t, char const *, void *)
1488 /* 912 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 22),
1489 /* 913 */ _CFFI_OP(_CFFI_OP_NOOP, 39),
1490 /* 914 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
1491 /* 915 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1492 /* 916 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(uint32_t, clingo_assignment_t const *, int32_t, void *, int32_t *)
1493 /* 917 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 22),
1494 /* 918 */ _CFFI_OP(_CFFI_OP_NOOP, 94),
1495 /* 919 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 21),
1496 /* 920 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
1497 /* 921 */ _CFFI_OP(_CFFI_OP_NOOP, 118),
1498 /* 922 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1499 /* 923 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(uint32_t, int, int, unsigned int, int32_t const *, size_t, void *)
1500 /* 924 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 22),
1501 /* 925 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 7),
1502 /* 926 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 7),
1503 /* 927 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 8),
1504 /* 928 */ _CFFI_OP(_CFFI_OP_NOOP, 4),
1505 /* 929 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 28),
1506 /* 930 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
1507 /* 931 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1508 /* 932 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(uint32_t, int, uint32_t const *, size_t, void *)
1509 /* 933 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 22),
1510 /* 934 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 7),
1511 /* 935 */ _CFFI_OP(_CFFI_OP_NOOP, 2),
1512 /* 936 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 28),
1513 /* 937 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
1514 /* 938 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1515 /* 939 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(uint32_t, int, void *)
1516 /* 940 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 22),
1517 /* 941 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 7),
1518 /* 942 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
1519 /* 943 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1520 /* 944 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(uint32_t, uint32_t const *, size_t, int32_t const *, size_t, void *)
1521 /* 945 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 22),
1522 /* 946 */ _CFFI_OP(_CFFI_OP_NOOP, 2),
1523 /* 947 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 28),
1524 /* 948 */ _CFFI_OP(_CFFI_OP_NOOP, 4),
1525 /* 949 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 28),
1526 /* 950 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
1527 /* 951 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1528 /* 952 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(uint32_t, uint32_t, uint32_t const *, size_t, uint32_t, uint32_t, void *)
1529 /* 953 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 22),
1530 /* 954 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 22),
1531 /* 955 */ _CFFI_OP(_CFFI_OP_NOOP, 2),
1532 /* 956 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 28),
1533 /* 957 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 22),
1534 /* 958 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 22),
1535 /* 959 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
1536 /* 960 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1537 /* 961 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(uint32_t, uint32_t, uint32_t const *, size_t, void *)
1538 /* 962 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 22),
1539 /* 963 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 22),
1540 /* 964 */ _CFFI_OP(_CFFI_OP_NOOP, 2),
1541 /* 965 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 28),
1542 /* 966 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
1543 /* 967 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1544 /* 968 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(uint64_t const *, size_t, void *)
1545 /* 969 */ _CFFI_OP(_CFFI_OP_NOOP, 77),
1546 /* 970 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 28),
1547 /* 971 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
1548 /* 972 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1549 /* 973 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(uint64_t)
1550 /* 974 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 24),
1551 /* 975 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1552 /* 976 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(uint64_t, _Bool *)
1553 /* 977 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 24),
1554 /* 978 */ _CFFI_OP(_CFFI_OP_NOOP, 40),
1555 /* 979 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1556 /* 980 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(uint64_t, char *, size_t)
1557 /* 981 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 24),
1558 /* 982 */ _CFFI_OP(_CFFI_OP_NOOP, 136),
1559 /* 983 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 28),
1560 /* 984 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1561 /* 985 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(uint64_t, char const * *)
1562 /* 986 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 24),
1563 /* 987 */ _CFFI_OP(_CFFI_OP_NOOP, 58),
1564 /* 988 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1565 /* 989 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(uint64_t, int *)
1566 /* 990 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 24),
1567 /* 991 */ _CFFI_OP(_CFFI_OP_NOOP, 108),
1568 /* 992 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1569 /* 993 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(uint64_t, int, int32_t const *, size_t, void *)
1570 /* 994 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 24),
1571 /* 995 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 7),
1572 /* 996 */ _CFFI_OP(_CFFI_OP_NOOP, 4),
1573 /* 997 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 28),
1574 /* 998 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
1575 /* 999 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1576 /* 1000 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(uint64_t, int32_t const *, size_t, void *)
1577 /* 1001 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 24),
1578 /* 1002 */ _CFFI_OP(_CFFI_OP_NOOP, 4),
1579 /* 1003 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 28),
1580 /* 1004 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
1581 /* 1005 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1582 /* 1006 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(uint64_t, size_t *)
1583 /* 1007 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 24),
1584 /* 1008 */ _CFFI_OP(_CFFI_OP_NOOP, 205),
1585 /* 1009 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1586 /* 1010 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(uint64_t, uint32_t, void *)
1587 /* 1011 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 24),
1588 /* 1012 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 22),
1589 /* 1013 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
1590 /* 1014 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1591 /* 1015 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(uint64_t, uint64_t const * *, size_t *)
1592 /* 1016 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 24),
1593 /* 1017 */ _CFFI_OP(_CFFI_OP_POINTER, 77), // uint64_t const * *
1594 /* 1018 */ _CFFI_OP(_CFFI_OP_NOOP, 205),
1595 /* 1019 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1596 /* 1020 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(uint64_t, uint64_t)
1597 /* 1021 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 24),
1598 /* 1022 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 24),
1599 /* 1023 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1600 /* 1024 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(unsigned int, void *, void *, _Bool *)
1601 /* 1025 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 8),
1602 /* 1026 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
1603 /* 1027 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
1604 /* 1028 */ _CFFI_OP(_CFFI_OP_NOOP, 40),
1605 /* 1029 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1606 /* 1030 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(void *)
1607 /* 1031 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
1608 /* 1032 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1609 /* 1033 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(void *, char const *, void *)
1610 /* 1034 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
1611 /* 1035 */ _CFFI_OP(_CFFI_OP_NOOP, 39),
1612 /* 1036 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
1613 /* 1037 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1614 /* 1038 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(void *, char const *, void *, size_t, void *, void *, void *)
1615 /* 1039 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
1616 /* 1040 */ _CFFI_OP(_CFFI_OP_NOOP, 39),
1617 /* 1041 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
1618 /* 1042 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 28),
1619 /* 1043 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
1620 /* 1044 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
1621 /* 1045 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
1622 /* 1046 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1623 /* 1047 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1), // _Bool()(void *, void *)
1624 /* 1048 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
1625 /* 1049 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
1626 /* 1050 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1627 /* 1051 */ _CFFI_OP(_CFFI_OP_FUNCTION, 39), // char const *()(char const *)
1628 /* 1052 */ _CFFI_OP(_CFFI_OP_NOOP, 39),
1629 /* 1053 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1630 /* 1054 */ _CFFI_OP(_CFFI_OP_FUNCTION, 39), // char const *()(int)
1631 /* 1055 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 7),
1632 /* 1056 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1633 /* 1057 */ _CFFI_OP(_CFFI_OP_FUNCTION, 39), // char const *()(uint64_t)
1634 /* 1058 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 24),
1635 /* 1059 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1636 /* 1060 */ _CFFI_OP(_CFFI_OP_FUNCTION, 39), // char const *()(void *)
1637 /* 1061 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
1638 /* 1062 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1639 /* 1063 */ _CFFI_OP(_CFFI_OP_FUNCTION, 39), // char const *()(void)
1640 /* 1064 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1641 /* 1065 */ _CFFI_OP(_CFFI_OP_FUNCTION, 94), // clingo_assignment_t const *()(clingo_propagate_control_t const *)
1642 /* 1066 */ _CFFI_OP(_CFFI_OP_NOOP, 641),
1643 /* 1067 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1644 /* 1068 */ _CFFI_OP(_CFFI_OP_FUNCTION, 94), // clingo_assignment_t const *()(clingo_propagate_init_t const *)
1645 /* 1069 */ _CFFI_OP(_CFFI_OP_NOOP, 689),
1646 /* 1070 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1647 /* 1071 */ _CFFI_OP(_CFFI_OP_FUNCTION, 153), // int()(clingo_application_t *, char const * const *, size_t, void *)
1648 /* 1072 */ _CFFI_OP(_CFFI_OP_POINTER, 1192), // clingo_application_t *
1649 /* 1073 */ _CFFI_OP(_CFFI_OP_NOOP, 22),
1650 /* 1074 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 28),
1651 /* 1075 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
1652 /* 1076 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1653 /* 1077 */ _CFFI_OP(_CFFI_OP_FUNCTION, 153), // int()(clingo_propagate_init_t const *)
1654 /* 1078 */ _CFFI_OP(_CFFI_OP_NOOP, 689),
1655 /* 1079 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1656 /* 1080 */ _CFFI_OP(_CFFI_OP_FUNCTION, 153), // int()(uint64_t)
1657 /* 1081 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 24),
1658 /* 1082 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1659 /* 1083 */ _CFFI_OP(_CFFI_OP_FUNCTION, 153), // int()(void)
1660 /* 1084 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1661 /* 1085 */ _CFFI_OP(_CFFI_OP_FUNCTION, 3), // size_t()(clingo_assignment_t const *)
1662 /* 1086 */ _CFFI_OP(_CFFI_OP_NOOP, 94),
1663 /* 1087 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1664 /* 1088 */ _CFFI_OP(_CFFI_OP_FUNCTION, 3), // size_t()(clingo_ast_t *)
1665 /* 1089 */ _CFFI_OP(_CFFI_OP_NOOP, 135),
1666 /* 1090 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1667 /* 1091 */ _CFFI_OP(_CFFI_OP_FUNCTION, 3), // size_t()(uint64_t)
1668 /* 1092 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 24),
1669 /* 1093 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1670 /* 1094 */ _CFFI_OP(_CFFI_OP_FUNCTION, 67), // uint32_t()(clingo_assignment_t const *)
1671 /* 1095 */ _CFFI_OP(_CFFI_OP_NOOP, 94),
1672 /* 1096 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1673 /* 1097 */ _CFFI_OP(_CFFI_OP_FUNCTION, 67), // uint32_t()(clingo_propagate_control_t const *)
1674 /* 1098 */ _CFFI_OP(_CFFI_OP_NOOP, 641),
1675 /* 1099 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1676 /* 1100 */ _CFFI_OP(_CFFI_OP_FUNCTION, 67), // uint32_t()(uint64_t)
1677 /* 1101 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 24),
1678 /* 1102 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1679 /* 1103 */ _CFFI_OP(_CFFI_OP_FUNCTION, 28), // unsigned int()(void *)
1680 /* 1104 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
1681 /* 1105 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1682 /* 1106 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1253), // void()(clingo_ast_t *)
1683 /* 1107 */ _CFFI_OP(_CFFI_OP_NOOP, 135),
1684 /* 1108 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1685 /* 1109 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1253), // void()(clingo_control_t *)
1686 /* 1110 */ _CFFI_OP(_CFFI_OP_NOOP, 380),
1687 /* 1111 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1688 /* 1112 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1253), // void()(clingo_propagate_control_t *, int32_t)
1689 /* 1113 */ _CFFI_OP(_CFFI_OP_NOOP, 612),
1690 /* 1114 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 21),
1691 /* 1115 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1692 /* 1116 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1253), // void()(clingo_propagate_control_t const *, int32_t const *, size_t, void *)
1693 /* 1117 */ _CFFI_OP(_CFFI_OP_NOOP, 641),
1694 /* 1118 */ _CFFI_OP(_CFFI_OP_NOOP, 4),
1695 /* 1119 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 28),
1696 /* 1120 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
1697 /* 1121 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1698 /* 1122 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1253), // void()(clingo_propagate_init_t *, int)
1699 /* 1123 */ _CFFI_OP(_CFFI_OP_NOOP, 645),
1700 /* 1124 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 7),
1701 /* 1125 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1702 /* 1126 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1253), // void()(clingo_solve_handle_t *, double, _Bool *)
1703 /* 1127 */ _CFFI_OP(_CFFI_OP_NOOP, 711),
1704 /* 1128 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 14),
1705 /* 1129 */ _CFFI_OP(_CFFI_OP_NOOP, 40),
1706 /* 1130 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1707 /* 1131 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1253), // void()(int *, int *, int *)
1708 /* 1132 */ _CFFI_OP(_CFFI_OP_NOOP, 108),
1709 /* 1133 */ _CFFI_OP(_CFFI_OP_NOOP, 108),
1710 /* 1134 */ _CFFI_OP(_CFFI_OP_NOOP, 108),
1711 /* 1135 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1712 /* 1136 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1253), // void()(int, char const *)
1713 /* 1137 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 7),
1714 /* 1138 */ _CFFI_OP(_CFFI_OP_NOOP, 39),
1715 /* 1139 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1716 /* 1140 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1253), // void()(int, char const *, void *)
1717 /* 1141 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 7),
1718 /* 1142 */ _CFFI_OP(_CFFI_OP_NOOP, 39),
1719 /* 1143 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
1720 /* 1144 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1721 /* 1145 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1253), // void()(int, uint64_t *)
1722 /* 1146 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 7),
1723 /* 1147 */ _CFFI_OP(_CFFI_OP_NOOP, 54),
1724 /* 1148 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1725 /* 1149 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1253), // void()(uint64_t *)
1726 /* 1150 */ _CFFI_OP(_CFFI_OP_NOOP, 54),
1727 /* 1151 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1728 /* 1152 */ _CFFI_OP(_CFFI_OP_FUNCTION, 1253), // void()(void *)
1729 /* 1153 */ _CFFI_OP(_CFFI_OP_NOOP, 6),
1730 /* 1154 */ _CFFI_OP(_CFFI_OP_FUNCTION_END, 0),
1731 /* 1155 */ _CFFI_OP(_CFFI_OP_POINTER, 0), // _Bool(*)(_Bool, uint32_t const *, size_t, int32_t const *, size_t, void *)
1732 /* 1156 */ _CFFI_OP(_CFFI_OP_POINTER, 8), // _Bool(*)(_Bool, uint32_t const *, size_t, int32_t, clingo_weighted_literal_t const *, size_t, void *)
1733 /* 1157 */ _CFFI_OP(_CFFI_OP_POINTER, 17), // _Bool(*)(_Bool, void *)
1734 /* 1158 */ _CFFI_OP(_CFFI_OP_POINTER, 38), // _Bool(*)(char const *, _Bool *, void *)
1735 /* 1159 */ _CFFI_OP(_CFFI_OP_POINTER, 254), // _Bool(*)(clingo_ast_t const *, void *)
1736 /* 1160 */ _CFFI_OP(_CFFI_OP_POINTER, 386), // _Bool(*)(clingo_control_t *, char const * const *, size_t, void *)
1737 /* 1161 */ _CFFI_OP(_CFFI_OP_POINTER, 456), // _Bool(*)(clingo_control_t *, void *)
1738 /* 1162 */ _CFFI_OP(_CFFI_OP_POINTER, 485), // _Bool(*)(clingo_location_t *, char const *, void *)
1739 /* 1163 */ _CFFI_OP(_CFFI_OP_POINTER, 490), // _Bool(*)(clingo_location_t *, char const *, void *, size_t, void *, void *, void *)
1740 /* 1164 */ _CFFI_OP(_CFFI_OP_POINTER, 499), // _Bool(*)(clingo_location_t const *, char const *, uint64_t const *, size_t, _Bool(*)(uint64_t const *, size_t, void *), void *, void *)
1741 /* 1165 */ _CFFI_OP(_CFFI_OP_POINTER, 517), // _Bool(*)(clingo_location_t const *, char const *, void *)
1742 /* 1166 */ _CFFI_OP(_CFFI_OP_POINTER, 531), // _Bool(*)(clingo_model_t const *, _Bool(*)(void *), void *, void *)
1743 /* 1167 */ _CFFI_OP(_CFFI_OP_POINTER, 600), // _Bool(*)(clingo_options_t *, void *)
1744 /* 1168 */ _CFFI_OP(_CFFI_OP_POINTER, 626), // _Bool(*)(clingo_propagate_control_t *, int32_t const *, size_t, void *)
1745 /* 1169 */ _CFFI_OP(_CFFI_OP_POINTER, 636), // _Bool(*)(clingo_propagate_control_t *, void *)
1746 /* 1170 */ _CFFI_OP(_CFFI_OP_POINTER, 684), // _Bool(*)(clingo_propagate_init_t *, void *)
1747 /* 1171 */ _CFFI_OP(_CFFI_OP_POINTER, 884), // _Bool(*)(int, clingo_ast_t * *, ...)
1748 /* 1172 */ _CFFI_OP(_CFFI_OP_POINTER, 888), // _Bool(*)(int, int, int32_t const *, size_t, void *)
1749 /* 1173 */ _CFFI_OP(_CFFI_OP_POINTER, 895), // _Bool(*)(int32_t const *, size_t, void *)
1750 /* 1174 */ _CFFI_OP(_CFFI_OP_POINTER, 900), // _Bool(*)(int32_t, clingo_weighted_literal_t const *, size_t, void *)
1751 /* 1175 */ _CFFI_OP(_CFFI_OP_POINTER, 906), // _Bool(*)(uint32_t const *, size_t, void *)
1752 /* 1176 */ _CFFI_OP(_CFFI_OP_POINTER, 911), // _Bool(*)(uint32_t, char const *, void *)
1753 /* 1177 */ _CFFI_OP(_CFFI_OP_POINTER, 916), // _Bool(*)(uint32_t, clingo_assignment_t const *, int32_t, void *, int32_t *)
1754 /* 1178 */ _CFFI_OP(_CFFI_OP_POINTER, 923), // _Bool(*)(uint32_t, int, int, unsigned int, int32_t const *, size_t, void *)
1755 /* 1179 */ _CFFI_OP(_CFFI_OP_POINTER, 932), // _Bool(*)(uint32_t, int, uint32_t const *, size_t, void *)
1756 /* 1180 */ _CFFI_OP(_CFFI_OP_POINTER, 939), // _Bool(*)(uint32_t, int, void *)
1757 /* 1181 */ _CFFI_OP(_CFFI_OP_POINTER, 944), // _Bool(*)(uint32_t, uint32_t const *, size_t, int32_t const *, size_t, void *)
1758 /* 1182 */ _CFFI_OP(_CFFI_OP_POINTER, 952), // _Bool(*)(uint32_t, uint32_t, uint32_t const *, size_t, uint32_t, uint32_t, void *)
1759 /* 1183 */ _CFFI_OP(_CFFI_OP_POINTER, 961), // _Bool(*)(uint32_t, uint32_t, uint32_t const *, size_t, void *)
1760 /* 1184 */ _CFFI_OP(_CFFI_OP_POINTER, 993), // _Bool(*)(uint64_t, int, int32_t const *, size_t, void *)
1761 /* 1185 */ _CFFI_OP(_CFFI_OP_POINTER, 1000), // _Bool(*)(uint64_t, int32_t const *, size_t, void *)
1762 /* 1186 */ _CFFI_OP(_CFFI_OP_POINTER, 1010), // _Bool(*)(uint64_t, uint32_t, void *)
1763 /* 1187 */ _CFFI_OP(_CFFI_OP_POINTER, 1033), // _Bool(*)(void *, char const *, void *)
1764 /* 1188 */ _CFFI_OP(_CFFI_OP_POINTER, 1038), // _Bool(*)(void *, char const *, void *, size_t, void *, void *, void *)
1765 /* 1189 */ _CFFI_OP(_CFFI_OP_POINTER, 1047), // _Bool(*)(void *, void *)
1766 /* 1190 */ _CFFI_OP(_CFFI_OP_POINTER, 1060), // char const *(*)(void *)
1767 /* 1191 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 2), // char
1768 /* 1192 */ _CFFI_OP(_CFFI_OP_STRUCT_UNION, 0), // clingo_application_t
1769 /* 1193 */ _CFFI_OP(_CFFI_OP_STRUCT_UNION, 1), // clingo_assignment_t
1770 /* 1194 */ _CFFI_OP(_CFFI_OP_POINTER, 1195), // clingo_ast_argument_t const *
1771 /* 1195 */ _CFFI_OP(_CFFI_OP_STRUCT_UNION, 3), // clingo_ast_argument_t
1772 /* 1196 */ _CFFI_OP(_CFFI_OP_STRUCT_UNION, 4), // clingo_ast_attribute_names_t
1773 /* 1197 */ _CFFI_OP(_CFFI_OP_POINTER, 1198), // clingo_ast_constructor_t const *
1774 /* 1198 */ _CFFI_OP(_CFFI_OP_STRUCT_UNION, 5), // clingo_ast_constructor_t
1775 /* 1199 */ _CFFI_OP(_CFFI_OP_STRUCT_UNION, 6), // clingo_ast_constructors_t
1776 /* 1200 */ _CFFI_OP(_CFFI_OP_STRUCT_UNION, 2), // clingo_ast_t
1777 /* 1201 */ _CFFI_OP(_CFFI_OP_STRUCT_UNION, 7), // clingo_backend_t
1778 /* 1202 */ _CFFI_OP(_CFFI_OP_STRUCT_UNION, 8), // clingo_configuration_t
1779 /* 1203 */ _CFFI_OP(_CFFI_OP_STRUCT_UNION, 9), // clingo_control_t
1780 /* 1204 */ _CFFI_OP(_CFFI_OP_STRUCT_UNION, 10), // clingo_ground_program_observer_t
1781 /* 1205 */ _CFFI_OP(_CFFI_OP_STRUCT_UNION, 11), // clingo_location_t
1782 /* 1206 */ _CFFI_OP(_CFFI_OP_STRUCT_UNION, 12), // clingo_model_t
1783 /* 1207 */ _CFFI_OP(_CFFI_OP_STRUCT_UNION, 13), // clingo_options_t
1784 /* 1208 */ _CFFI_OP(_CFFI_OP_STRUCT_UNION, 14), // clingo_part_t
1785 /* 1209 */ _CFFI_OP(_CFFI_OP_STRUCT_UNION, 15), // clingo_program_builder_t
1786 /* 1210 */ _CFFI_OP(_CFFI_OP_STRUCT_UNION, 16), // clingo_propagate_control_t
1787 /* 1211 */ _CFFI_OP(_CFFI_OP_STRUCT_UNION, 17), // clingo_propagate_init_t
1788 /* 1212 */ _CFFI_OP(_CFFI_OP_STRUCT_UNION, 18), // clingo_propagator_t
1789 /* 1213 */ _CFFI_OP(_CFFI_OP_STRUCT_UNION, 19), // clingo_script_t
1790 /* 1214 */ _CFFI_OP(_CFFI_OP_STRUCT_UNION, 20), // clingo_solve_control_t
1791 /* 1215 */ _CFFI_OP(_CFFI_OP_STRUCT_UNION, 21), // clingo_solve_handle_t
1792 /* 1216 */ _CFFI_OP(_CFFI_OP_STRUCT_UNION, 22), // clingo_statistics_t
1793 /* 1217 */ _CFFI_OP(_CFFI_OP_STRUCT_UNION, 23), // clingo_symbolic_atoms_t
1794 /* 1218 */ _CFFI_OP(_CFFI_OP_STRUCT_UNION, 24), // clingo_theory_atoms_t
1795 /* 1219 */ _CFFI_OP(_CFFI_OP_STRUCT_UNION, 25), // clingo_weighted_literal_t
1796 /* 1220 */ _CFFI_OP(_CFFI_OP_ENUM, 0), // enum clingo_ast_aggregate_function_e
1797 /* 1221 */ _CFFI_OP(_CFFI_OP_ENUM, 1), // enum clingo_ast_attribute_e
1798 /* 1222 */ _CFFI_OP(_CFFI_OP_ENUM, 2), // enum clingo_ast_attribute_type_e
1799 /* 1223 */ _CFFI_OP(_CFFI_OP_ENUM, 3), // enum clingo_ast_binary_operator_e
1800 /* 1224 */ _CFFI_OP(_CFFI_OP_ENUM, 4), // enum clingo_ast_comparison_operator_e
1801 /* 1225 */ _CFFI_OP(_CFFI_OP_ENUM, 5), // enum clingo_ast_sign_e
1802 /* 1226 */ _CFFI_OP(_CFFI_OP_ENUM, 6), // enum clingo_ast_theory_atom_definition_type_e
1803 /* 1227 */ _CFFI_OP(_CFFI_OP_ENUM, 7), // enum clingo_ast_theory_operator_type_e
1804 /* 1228 */ _CFFI_OP(_CFFI_OP_ENUM, 8), // enum clingo_ast_theory_sequence_type_e
1805 /* 1229 */ _CFFI_OP(_CFFI_OP_ENUM, 9), // enum clingo_ast_type_e
1806 /* 1230 */ _CFFI_OP(_CFFI_OP_ENUM, 10), // enum clingo_ast_unary_operator_e
1807 /* 1231 */ _CFFI_OP(_CFFI_OP_ENUM, 11), // enum clingo_ast_unpool_type_e
1808 /* 1232 */ _CFFI_OP(_CFFI_OP_ENUM, 12), // enum clingo_clause_type_e
1809 /* 1233 */ _CFFI_OP(_CFFI_OP_ENUM, 13), // enum clingo_configuration_type_e
1810 /* 1234 */ _CFFI_OP(_CFFI_OP_ENUM, 14), // enum clingo_error_e
1811 /* 1235 */ _CFFI_OP(_CFFI_OP_ENUM, 15), // enum clingo_external_type_e
1812 /* 1236 */ _CFFI_OP(_CFFI_OP_ENUM, 16), // enum clingo_heuristic_type_e
1813 /* 1237 */ _CFFI_OP(_CFFI_OP_ENUM, 17), // enum clingo_model_type_e
1814 /* 1238 */ _CFFI_OP(_CFFI_OP_ENUM, 18), // enum clingo_propagator_check_mode_e
1815 /* 1239 */ _CFFI_OP(_CFFI_OP_ENUM, 19), // enum clingo_show_type_e
1816 /* 1240 */ _CFFI_OP(_CFFI_OP_ENUM, 20), // enum clingo_solve_event_type_e
1817 /* 1241 */ _CFFI_OP(_CFFI_OP_ENUM, 21), // enum clingo_solve_mode_e
1818 /* 1242 */ _CFFI_OP(_CFFI_OP_ENUM, 22), // enum clingo_solve_result_e
1819 /* 1243 */ _CFFI_OP(_CFFI_OP_ENUM, 23), // enum clingo_statistics_type_e
1820 /* 1244 */ _CFFI_OP(_CFFI_OP_ENUM, 24), // enum clingo_symbol_type_e
1821 /* 1245 */ _CFFI_OP(_CFFI_OP_ENUM, 25), // enum clingo_theory_term_type_e
1822 /* 1246 */ _CFFI_OP(_CFFI_OP_ENUM, 26), // enum clingo_truth_value_e
1823 /* 1247 */ _CFFI_OP(_CFFI_OP_ENUM, 27), // enum clingo_warning_e
1824 /* 1248 */ _CFFI_OP(_CFFI_OP_ENUM, 28), // enum clingo_weight_constraint_type_e
1825 /* 1249 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 23), // int64_t
1826 /* 1250 */ _CFFI_OP(_CFFI_OP_POINTER, 1103), // unsigned int(*)(void *)
1827 /* 1251 */ _CFFI_OP(_CFFI_OP_POINTER, 1116), // void(*)(clingo_propagate_control_t const *, int32_t const *, size_t, void *)
1828 /* 1252 */ _CFFI_OP(_CFFI_OP_POINTER, 1152), // void(*)(void *)
1829 /* 1253 */ _CFFI_OP(_CFFI_OP_PRIMITIVE, 0), // void
1830 };
1831 
_cffi_const_clingo_ast_aggregate_function_count(unsigned long long * o)1832 static int _cffi_const_clingo_ast_aggregate_function_count(unsigned long long *o)
1833 {
1834   int n = (clingo_ast_aggregate_function_count) <= 0;
1835   *o = (unsigned long long)((clingo_ast_aggregate_function_count) | 0);  /* check that clingo_ast_aggregate_function_count is an integer */
1836   return n;
1837 }
1838 
_cffi_const_clingo_ast_aggregate_function_sum(unsigned long long * o)1839 static int _cffi_const_clingo_ast_aggregate_function_sum(unsigned long long *o)
1840 {
1841   int n = (clingo_ast_aggregate_function_sum) <= 0;
1842   *o = (unsigned long long)((clingo_ast_aggregate_function_sum) | 0);  /* check that clingo_ast_aggregate_function_sum is an integer */
1843   return n;
1844 }
1845 
_cffi_const_clingo_ast_aggregate_function_sump(unsigned long long * o)1846 static int _cffi_const_clingo_ast_aggregate_function_sump(unsigned long long *o)
1847 {
1848   int n = (clingo_ast_aggregate_function_sump) <= 0;
1849   *o = (unsigned long long)((clingo_ast_aggregate_function_sump) | 0);  /* check that clingo_ast_aggregate_function_sump is an integer */
1850   return n;
1851 }
1852 
_cffi_const_clingo_ast_aggregate_function_min(unsigned long long * o)1853 static int _cffi_const_clingo_ast_aggregate_function_min(unsigned long long *o)
1854 {
1855   int n = (clingo_ast_aggregate_function_min) <= 0;
1856   *o = (unsigned long long)((clingo_ast_aggregate_function_min) | 0);  /* check that clingo_ast_aggregate_function_min is an integer */
1857   return n;
1858 }
1859 
_cffi_const_clingo_ast_aggregate_function_max(unsigned long long * o)1860 static int _cffi_const_clingo_ast_aggregate_function_max(unsigned long long *o)
1861 {
1862   int n = (clingo_ast_aggregate_function_max) <= 0;
1863   *o = (unsigned long long)((clingo_ast_aggregate_function_max) | 0);  /* check that clingo_ast_aggregate_function_max is an integer */
1864   return n;
1865 }
1866 
_cffi_const_clingo_ast_attribute_argument(unsigned long long * o)1867 static int _cffi_const_clingo_ast_attribute_argument(unsigned long long *o)
1868 {
1869   int n = (clingo_ast_attribute_argument) <= 0;
1870   *o = (unsigned long long)((clingo_ast_attribute_argument) | 0);  /* check that clingo_ast_attribute_argument is an integer */
1871   return n;
1872 }
1873 
_cffi_const_clingo_ast_attribute_arguments(unsigned long long * o)1874 static int _cffi_const_clingo_ast_attribute_arguments(unsigned long long *o)
1875 {
1876   int n = (clingo_ast_attribute_arguments) <= 0;
1877   *o = (unsigned long long)((clingo_ast_attribute_arguments) | 0);  /* check that clingo_ast_attribute_arguments is an integer */
1878   return n;
1879 }
1880 
_cffi_const_clingo_ast_attribute_arity(unsigned long long * o)1881 static int _cffi_const_clingo_ast_attribute_arity(unsigned long long *o)
1882 {
1883   int n = (clingo_ast_attribute_arity) <= 0;
1884   *o = (unsigned long long)((clingo_ast_attribute_arity) | 0);  /* check that clingo_ast_attribute_arity is an integer */
1885   return n;
1886 }
1887 
_cffi_const_clingo_ast_attribute_atom(unsigned long long * o)1888 static int _cffi_const_clingo_ast_attribute_atom(unsigned long long *o)
1889 {
1890   int n = (clingo_ast_attribute_atom) <= 0;
1891   *o = (unsigned long long)((clingo_ast_attribute_atom) | 0);  /* check that clingo_ast_attribute_atom is an integer */
1892   return n;
1893 }
1894 
_cffi_const_clingo_ast_attribute_atoms(unsigned long long * o)1895 static int _cffi_const_clingo_ast_attribute_atoms(unsigned long long *o)
1896 {
1897   int n = (clingo_ast_attribute_atoms) <= 0;
1898   *o = (unsigned long long)((clingo_ast_attribute_atoms) | 0);  /* check that clingo_ast_attribute_atoms is an integer */
1899   return n;
1900 }
1901 
_cffi_const_clingo_ast_attribute_atom_type(unsigned long long * o)1902 static int _cffi_const_clingo_ast_attribute_atom_type(unsigned long long *o)
1903 {
1904   int n = (clingo_ast_attribute_atom_type) <= 0;
1905   *o = (unsigned long long)((clingo_ast_attribute_atom_type) | 0);  /* check that clingo_ast_attribute_atom_type is an integer */
1906   return n;
1907 }
1908 
_cffi_const_clingo_ast_attribute_bias(unsigned long long * o)1909 static int _cffi_const_clingo_ast_attribute_bias(unsigned long long *o)
1910 {
1911   int n = (clingo_ast_attribute_bias) <= 0;
1912   *o = (unsigned long long)((clingo_ast_attribute_bias) | 0);  /* check that clingo_ast_attribute_bias is an integer */
1913   return n;
1914 }
1915 
_cffi_const_clingo_ast_attribute_body(unsigned long long * o)1916 static int _cffi_const_clingo_ast_attribute_body(unsigned long long *o)
1917 {
1918   int n = (clingo_ast_attribute_body) <= 0;
1919   *o = (unsigned long long)((clingo_ast_attribute_body) | 0);  /* check that clingo_ast_attribute_body is an integer */
1920   return n;
1921 }
1922 
_cffi_const_clingo_ast_attribute_code(unsigned long long * o)1923 static int _cffi_const_clingo_ast_attribute_code(unsigned long long *o)
1924 {
1925   int n = (clingo_ast_attribute_code) <= 0;
1926   *o = (unsigned long long)((clingo_ast_attribute_code) | 0);  /* check that clingo_ast_attribute_code is an integer */
1927   return n;
1928 }
1929 
_cffi_const_clingo_ast_attribute_coefficient(unsigned long long * o)1930 static int _cffi_const_clingo_ast_attribute_coefficient(unsigned long long *o)
1931 {
1932   int n = (clingo_ast_attribute_coefficient) <= 0;
1933   *o = (unsigned long long)((clingo_ast_attribute_coefficient) | 0);  /* check that clingo_ast_attribute_coefficient is an integer */
1934   return n;
1935 }
1936 
_cffi_const_clingo_ast_attribute_comparison(unsigned long long * o)1937 static int _cffi_const_clingo_ast_attribute_comparison(unsigned long long *o)
1938 {
1939   int n = (clingo_ast_attribute_comparison) <= 0;
1940   *o = (unsigned long long)((clingo_ast_attribute_comparison) | 0);  /* check that clingo_ast_attribute_comparison is an integer */
1941   return n;
1942 }
1943 
_cffi_const_clingo_ast_attribute_condition(unsigned long long * o)1944 static int _cffi_const_clingo_ast_attribute_condition(unsigned long long *o)
1945 {
1946   int n = (clingo_ast_attribute_condition) <= 0;
1947   *o = (unsigned long long)((clingo_ast_attribute_condition) | 0);  /* check that clingo_ast_attribute_condition is an integer */
1948   return n;
1949 }
1950 
_cffi_const_clingo_ast_attribute_csp(unsigned long long * o)1951 static int _cffi_const_clingo_ast_attribute_csp(unsigned long long *o)
1952 {
1953   int n = (clingo_ast_attribute_csp) <= 0;
1954   *o = (unsigned long long)((clingo_ast_attribute_csp) | 0);  /* check that clingo_ast_attribute_csp is an integer */
1955   return n;
1956 }
1957 
_cffi_const_clingo_ast_attribute_elements(unsigned long long * o)1958 static int _cffi_const_clingo_ast_attribute_elements(unsigned long long *o)
1959 {
1960   int n = (clingo_ast_attribute_elements) <= 0;
1961   *o = (unsigned long long)((clingo_ast_attribute_elements) | 0);  /* check that clingo_ast_attribute_elements is an integer */
1962   return n;
1963 }
1964 
_cffi_const_clingo_ast_attribute_external(unsigned long long * o)1965 static int _cffi_const_clingo_ast_attribute_external(unsigned long long *o)
1966 {
1967   int n = (clingo_ast_attribute_external) <= 0;
1968   *o = (unsigned long long)((clingo_ast_attribute_external) | 0);  /* check that clingo_ast_attribute_external is an integer */
1969   return n;
1970 }
1971 
_cffi_const_clingo_ast_attribute_external_type(unsigned long long * o)1972 static int _cffi_const_clingo_ast_attribute_external_type(unsigned long long *o)
1973 {
1974   int n = (clingo_ast_attribute_external_type) <= 0;
1975   *o = (unsigned long long)((clingo_ast_attribute_external_type) | 0);  /* check that clingo_ast_attribute_external_type is an integer */
1976   return n;
1977 }
1978 
_cffi_const_clingo_ast_attribute_function(unsigned long long * o)1979 static int _cffi_const_clingo_ast_attribute_function(unsigned long long *o)
1980 {
1981   int n = (clingo_ast_attribute_function) <= 0;
1982   *o = (unsigned long long)((clingo_ast_attribute_function) | 0);  /* check that clingo_ast_attribute_function is an integer */
1983   return n;
1984 }
1985 
_cffi_const_clingo_ast_attribute_guard(unsigned long long * o)1986 static int _cffi_const_clingo_ast_attribute_guard(unsigned long long *o)
1987 {
1988   int n = (clingo_ast_attribute_guard) <= 0;
1989   *o = (unsigned long long)((clingo_ast_attribute_guard) | 0);  /* check that clingo_ast_attribute_guard is an integer */
1990   return n;
1991 }
1992 
_cffi_const_clingo_ast_attribute_guards(unsigned long long * o)1993 static int _cffi_const_clingo_ast_attribute_guards(unsigned long long *o)
1994 {
1995   int n = (clingo_ast_attribute_guards) <= 0;
1996   *o = (unsigned long long)((clingo_ast_attribute_guards) | 0);  /* check that clingo_ast_attribute_guards is an integer */
1997   return n;
1998 }
1999 
_cffi_const_clingo_ast_attribute_head(unsigned long long * o)2000 static int _cffi_const_clingo_ast_attribute_head(unsigned long long *o)
2001 {
2002   int n = (clingo_ast_attribute_head) <= 0;
2003   *o = (unsigned long long)((clingo_ast_attribute_head) | 0);  /* check that clingo_ast_attribute_head is an integer */
2004   return n;
2005 }
2006 
_cffi_const_clingo_ast_attribute_is_default(unsigned long long * o)2007 static int _cffi_const_clingo_ast_attribute_is_default(unsigned long long *o)
2008 {
2009   int n = (clingo_ast_attribute_is_default) <= 0;
2010   *o = (unsigned long long)((clingo_ast_attribute_is_default) | 0);  /* check that clingo_ast_attribute_is_default is an integer */
2011   return n;
2012 }
2013 
_cffi_const_clingo_ast_attribute_left(unsigned long long * o)2014 static int _cffi_const_clingo_ast_attribute_left(unsigned long long *o)
2015 {
2016   int n = (clingo_ast_attribute_left) <= 0;
2017   *o = (unsigned long long)((clingo_ast_attribute_left) | 0);  /* check that clingo_ast_attribute_left is an integer */
2018   return n;
2019 }
2020 
_cffi_const_clingo_ast_attribute_left_guard(unsigned long long * o)2021 static int _cffi_const_clingo_ast_attribute_left_guard(unsigned long long *o)
2022 {
2023   int n = (clingo_ast_attribute_left_guard) <= 0;
2024   *o = (unsigned long long)((clingo_ast_attribute_left_guard) | 0);  /* check that clingo_ast_attribute_left_guard is an integer */
2025   return n;
2026 }
2027 
_cffi_const_clingo_ast_attribute_literal(unsigned long long * o)2028 static int _cffi_const_clingo_ast_attribute_literal(unsigned long long *o)
2029 {
2030   int n = (clingo_ast_attribute_literal) <= 0;
2031   *o = (unsigned long long)((clingo_ast_attribute_literal) | 0);  /* check that clingo_ast_attribute_literal is an integer */
2032   return n;
2033 }
2034 
_cffi_const_clingo_ast_attribute_location(unsigned long long * o)2035 static int _cffi_const_clingo_ast_attribute_location(unsigned long long *o)
2036 {
2037   int n = (clingo_ast_attribute_location) <= 0;
2038   *o = (unsigned long long)((clingo_ast_attribute_location) | 0);  /* check that clingo_ast_attribute_location is an integer */
2039   return n;
2040 }
2041 
_cffi_const_clingo_ast_attribute_modifier(unsigned long long * o)2042 static int _cffi_const_clingo_ast_attribute_modifier(unsigned long long *o)
2043 {
2044   int n = (clingo_ast_attribute_modifier) <= 0;
2045   *o = (unsigned long long)((clingo_ast_attribute_modifier) | 0);  /* check that clingo_ast_attribute_modifier is an integer */
2046   return n;
2047 }
2048 
_cffi_const_clingo_ast_attribute_name(unsigned long long * o)2049 static int _cffi_const_clingo_ast_attribute_name(unsigned long long *o)
2050 {
2051   int n = (clingo_ast_attribute_name) <= 0;
2052   *o = (unsigned long long)((clingo_ast_attribute_name) | 0);  /* check that clingo_ast_attribute_name is an integer */
2053   return n;
2054 }
2055 
_cffi_const_clingo_ast_attribute_node_u(unsigned long long * o)2056 static int _cffi_const_clingo_ast_attribute_node_u(unsigned long long *o)
2057 {
2058   int n = (clingo_ast_attribute_node_u) <= 0;
2059   *o = (unsigned long long)((clingo_ast_attribute_node_u) | 0);  /* check that clingo_ast_attribute_node_u is an integer */
2060   return n;
2061 }
2062 
_cffi_const_clingo_ast_attribute_node_v(unsigned long long * o)2063 static int _cffi_const_clingo_ast_attribute_node_v(unsigned long long *o)
2064 {
2065   int n = (clingo_ast_attribute_node_v) <= 0;
2066   *o = (unsigned long long)((clingo_ast_attribute_node_v) | 0);  /* check that clingo_ast_attribute_node_v is an integer */
2067   return n;
2068 }
2069 
_cffi_const_clingo_ast_attribute_operator_name(unsigned long long * o)2070 static int _cffi_const_clingo_ast_attribute_operator_name(unsigned long long *o)
2071 {
2072   int n = (clingo_ast_attribute_operator_name) <= 0;
2073   *o = (unsigned long long)((clingo_ast_attribute_operator_name) | 0);  /* check that clingo_ast_attribute_operator_name is an integer */
2074   return n;
2075 }
2076 
_cffi_const_clingo_ast_attribute_operator_type(unsigned long long * o)2077 static int _cffi_const_clingo_ast_attribute_operator_type(unsigned long long *o)
2078 {
2079   int n = (clingo_ast_attribute_operator_type) <= 0;
2080   *o = (unsigned long long)((clingo_ast_attribute_operator_type) | 0);  /* check that clingo_ast_attribute_operator_type is an integer */
2081   return n;
2082 }
2083 
_cffi_const_clingo_ast_attribute_operators(unsigned long long * o)2084 static int _cffi_const_clingo_ast_attribute_operators(unsigned long long *o)
2085 {
2086   int n = (clingo_ast_attribute_operators) <= 0;
2087   *o = (unsigned long long)((clingo_ast_attribute_operators) | 0);  /* check that clingo_ast_attribute_operators is an integer */
2088   return n;
2089 }
2090 
_cffi_const_clingo_ast_attribute_parameters(unsigned long long * o)2091 static int _cffi_const_clingo_ast_attribute_parameters(unsigned long long *o)
2092 {
2093   int n = (clingo_ast_attribute_parameters) <= 0;
2094   *o = (unsigned long long)((clingo_ast_attribute_parameters) | 0);  /* check that clingo_ast_attribute_parameters is an integer */
2095   return n;
2096 }
2097 
_cffi_const_clingo_ast_attribute_positive(unsigned long long * o)2098 static int _cffi_const_clingo_ast_attribute_positive(unsigned long long *o)
2099 {
2100   int n = (clingo_ast_attribute_positive) <= 0;
2101   *o = (unsigned long long)((clingo_ast_attribute_positive) | 0);  /* check that clingo_ast_attribute_positive is an integer */
2102   return n;
2103 }
2104 
_cffi_const_clingo_ast_attribute_priority(unsigned long long * o)2105 static int _cffi_const_clingo_ast_attribute_priority(unsigned long long *o)
2106 {
2107   int n = (clingo_ast_attribute_priority) <= 0;
2108   *o = (unsigned long long)((clingo_ast_attribute_priority) | 0);  /* check that clingo_ast_attribute_priority is an integer */
2109   return n;
2110 }
2111 
_cffi_const_clingo_ast_attribute_right(unsigned long long * o)2112 static int _cffi_const_clingo_ast_attribute_right(unsigned long long *o)
2113 {
2114   int n = (clingo_ast_attribute_right) <= 0;
2115   *o = (unsigned long long)((clingo_ast_attribute_right) | 0);  /* check that clingo_ast_attribute_right is an integer */
2116   return n;
2117 }
2118 
_cffi_const_clingo_ast_attribute_right_guard(unsigned long long * o)2119 static int _cffi_const_clingo_ast_attribute_right_guard(unsigned long long *o)
2120 {
2121   int n = (clingo_ast_attribute_right_guard) <= 0;
2122   *o = (unsigned long long)((clingo_ast_attribute_right_guard) | 0);  /* check that clingo_ast_attribute_right_guard is an integer */
2123   return n;
2124 }
2125 
_cffi_const_clingo_ast_attribute_sequence_type(unsigned long long * o)2126 static int _cffi_const_clingo_ast_attribute_sequence_type(unsigned long long *o)
2127 {
2128   int n = (clingo_ast_attribute_sequence_type) <= 0;
2129   *o = (unsigned long long)((clingo_ast_attribute_sequence_type) | 0);  /* check that clingo_ast_attribute_sequence_type is an integer */
2130   return n;
2131 }
2132 
_cffi_const_clingo_ast_attribute_sign(unsigned long long * o)2133 static int _cffi_const_clingo_ast_attribute_sign(unsigned long long *o)
2134 {
2135   int n = (clingo_ast_attribute_sign) <= 0;
2136   *o = (unsigned long long)((clingo_ast_attribute_sign) | 0);  /* check that clingo_ast_attribute_sign is an integer */
2137   return n;
2138 }
2139 
_cffi_const_clingo_ast_attribute_symbol(unsigned long long * o)2140 static int _cffi_const_clingo_ast_attribute_symbol(unsigned long long *o)
2141 {
2142   int n = (clingo_ast_attribute_symbol) <= 0;
2143   *o = (unsigned long long)((clingo_ast_attribute_symbol) | 0);  /* check that clingo_ast_attribute_symbol is an integer */
2144   return n;
2145 }
2146 
_cffi_const_clingo_ast_attribute_term(unsigned long long * o)2147 static int _cffi_const_clingo_ast_attribute_term(unsigned long long *o)
2148 {
2149   int n = (clingo_ast_attribute_term) <= 0;
2150   *o = (unsigned long long)((clingo_ast_attribute_term) | 0);  /* check that clingo_ast_attribute_term is an integer */
2151   return n;
2152 }
2153 
_cffi_const_clingo_ast_attribute_terms(unsigned long long * o)2154 static int _cffi_const_clingo_ast_attribute_terms(unsigned long long *o)
2155 {
2156   int n = (clingo_ast_attribute_terms) <= 0;
2157   *o = (unsigned long long)((clingo_ast_attribute_terms) | 0);  /* check that clingo_ast_attribute_terms is an integer */
2158   return n;
2159 }
2160 
_cffi_const_clingo_ast_attribute_value(unsigned long long * o)2161 static int _cffi_const_clingo_ast_attribute_value(unsigned long long *o)
2162 {
2163   int n = (clingo_ast_attribute_value) <= 0;
2164   *o = (unsigned long long)((clingo_ast_attribute_value) | 0);  /* check that clingo_ast_attribute_value is an integer */
2165   return n;
2166 }
2167 
_cffi_const_clingo_ast_attribute_variable(unsigned long long * o)2168 static int _cffi_const_clingo_ast_attribute_variable(unsigned long long *o)
2169 {
2170   int n = (clingo_ast_attribute_variable) <= 0;
2171   *o = (unsigned long long)((clingo_ast_attribute_variable) | 0);  /* check that clingo_ast_attribute_variable is an integer */
2172   return n;
2173 }
2174 
_cffi_const_clingo_ast_attribute_weight(unsigned long long * o)2175 static int _cffi_const_clingo_ast_attribute_weight(unsigned long long *o)
2176 {
2177   int n = (clingo_ast_attribute_weight) <= 0;
2178   *o = (unsigned long long)((clingo_ast_attribute_weight) | 0);  /* check that clingo_ast_attribute_weight is an integer */
2179   return n;
2180 }
2181 
_cffi_const_clingo_ast_attribute_type_number(unsigned long long * o)2182 static int _cffi_const_clingo_ast_attribute_type_number(unsigned long long *o)
2183 {
2184   int n = (clingo_ast_attribute_type_number) <= 0;
2185   *o = (unsigned long long)((clingo_ast_attribute_type_number) | 0);  /* check that clingo_ast_attribute_type_number is an integer */
2186   return n;
2187 }
2188 
_cffi_const_clingo_ast_attribute_type_symbol(unsigned long long * o)2189 static int _cffi_const_clingo_ast_attribute_type_symbol(unsigned long long *o)
2190 {
2191   int n = (clingo_ast_attribute_type_symbol) <= 0;
2192   *o = (unsigned long long)((clingo_ast_attribute_type_symbol) | 0);  /* check that clingo_ast_attribute_type_symbol is an integer */
2193   return n;
2194 }
2195 
_cffi_const_clingo_ast_attribute_type_location(unsigned long long * o)2196 static int _cffi_const_clingo_ast_attribute_type_location(unsigned long long *o)
2197 {
2198   int n = (clingo_ast_attribute_type_location) <= 0;
2199   *o = (unsigned long long)((clingo_ast_attribute_type_location) | 0);  /* check that clingo_ast_attribute_type_location is an integer */
2200   return n;
2201 }
2202 
_cffi_const_clingo_ast_attribute_type_string(unsigned long long * o)2203 static int _cffi_const_clingo_ast_attribute_type_string(unsigned long long *o)
2204 {
2205   int n = (clingo_ast_attribute_type_string) <= 0;
2206   *o = (unsigned long long)((clingo_ast_attribute_type_string) | 0);  /* check that clingo_ast_attribute_type_string is an integer */
2207   return n;
2208 }
2209 
_cffi_const_clingo_ast_attribute_type_ast(unsigned long long * o)2210 static int _cffi_const_clingo_ast_attribute_type_ast(unsigned long long *o)
2211 {
2212   int n = (clingo_ast_attribute_type_ast) <= 0;
2213   *o = (unsigned long long)((clingo_ast_attribute_type_ast) | 0);  /* check that clingo_ast_attribute_type_ast is an integer */
2214   return n;
2215 }
2216 
_cffi_const_clingo_ast_attribute_type_optional_ast(unsigned long long * o)2217 static int _cffi_const_clingo_ast_attribute_type_optional_ast(unsigned long long *o)
2218 {
2219   int n = (clingo_ast_attribute_type_optional_ast) <= 0;
2220   *o = (unsigned long long)((clingo_ast_attribute_type_optional_ast) | 0);  /* check that clingo_ast_attribute_type_optional_ast is an integer */
2221   return n;
2222 }
2223 
_cffi_const_clingo_ast_attribute_type_string_array(unsigned long long * o)2224 static int _cffi_const_clingo_ast_attribute_type_string_array(unsigned long long *o)
2225 {
2226   int n = (clingo_ast_attribute_type_string_array) <= 0;
2227   *o = (unsigned long long)((clingo_ast_attribute_type_string_array) | 0);  /* check that clingo_ast_attribute_type_string_array is an integer */
2228   return n;
2229 }
2230 
_cffi_const_clingo_ast_attribute_type_ast_array(unsigned long long * o)2231 static int _cffi_const_clingo_ast_attribute_type_ast_array(unsigned long long *o)
2232 {
2233   int n = (clingo_ast_attribute_type_ast_array) <= 0;
2234   *o = (unsigned long long)((clingo_ast_attribute_type_ast_array) | 0);  /* check that clingo_ast_attribute_type_ast_array is an integer */
2235   return n;
2236 }
2237 
_cffi_const_clingo_ast_binary_operator_xor(unsigned long long * o)2238 static int _cffi_const_clingo_ast_binary_operator_xor(unsigned long long *o)
2239 {
2240   int n = (clingo_ast_binary_operator_xor) <= 0;
2241   *o = (unsigned long long)((clingo_ast_binary_operator_xor) | 0);  /* check that clingo_ast_binary_operator_xor is an integer */
2242   return n;
2243 }
2244 
_cffi_const_clingo_ast_binary_operator_or(unsigned long long * o)2245 static int _cffi_const_clingo_ast_binary_operator_or(unsigned long long *o)
2246 {
2247   int n = (clingo_ast_binary_operator_or) <= 0;
2248   *o = (unsigned long long)((clingo_ast_binary_operator_or) | 0);  /* check that clingo_ast_binary_operator_or is an integer */
2249   return n;
2250 }
2251 
_cffi_const_clingo_ast_binary_operator_and(unsigned long long * o)2252 static int _cffi_const_clingo_ast_binary_operator_and(unsigned long long *o)
2253 {
2254   int n = (clingo_ast_binary_operator_and) <= 0;
2255   *o = (unsigned long long)((clingo_ast_binary_operator_and) | 0);  /* check that clingo_ast_binary_operator_and is an integer */
2256   return n;
2257 }
2258 
_cffi_const_clingo_ast_binary_operator_plus(unsigned long long * o)2259 static int _cffi_const_clingo_ast_binary_operator_plus(unsigned long long *o)
2260 {
2261   int n = (clingo_ast_binary_operator_plus) <= 0;
2262   *o = (unsigned long long)((clingo_ast_binary_operator_plus) | 0);  /* check that clingo_ast_binary_operator_plus is an integer */
2263   return n;
2264 }
2265 
_cffi_const_clingo_ast_binary_operator_minus(unsigned long long * o)2266 static int _cffi_const_clingo_ast_binary_operator_minus(unsigned long long *o)
2267 {
2268   int n = (clingo_ast_binary_operator_minus) <= 0;
2269   *o = (unsigned long long)((clingo_ast_binary_operator_minus) | 0);  /* check that clingo_ast_binary_operator_minus is an integer */
2270   return n;
2271 }
2272 
_cffi_const_clingo_ast_binary_operator_multiplication(unsigned long long * o)2273 static int _cffi_const_clingo_ast_binary_operator_multiplication(unsigned long long *o)
2274 {
2275   int n = (clingo_ast_binary_operator_multiplication) <= 0;
2276   *o = (unsigned long long)((clingo_ast_binary_operator_multiplication) | 0);  /* check that clingo_ast_binary_operator_multiplication is an integer */
2277   return n;
2278 }
2279 
_cffi_const_clingo_ast_binary_operator_division(unsigned long long * o)2280 static int _cffi_const_clingo_ast_binary_operator_division(unsigned long long *o)
2281 {
2282   int n = (clingo_ast_binary_operator_division) <= 0;
2283   *o = (unsigned long long)((clingo_ast_binary_operator_division) | 0);  /* check that clingo_ast_binary_operator_division is an integer */
2284   return n;
2285 }
2286 
_cffi_const_clingo_ast_binary_operator_modulo(unsigned long long * o)2287 static int _cffi_const_clingo_ast_binary_operator_modulo(unsigned long long *o)
2288 {
2289   int n = (clingo_ast_binary_operator_modulo) <= 0;
2290   *o = (unsigned long long)((clingo_ast_binary_operator_modulo) | 0);  /* check that clingo_ast_binary_operator_modulo is an integer */
2291   return n;
2292 }
2293 
_cffi_const_clingo_ast_binary_operator_power(unsigned long long * o)2294 static int _cffi_const_clingo_ast_binary_operator_power(unsigned long long *o)
2295 {
2296   int n = (clingo_ast_binary_operator_power) <= 0;
2297   *o = (unsigned long long)((clingo_ast_binary_operator_power) | 0);  /* check that clingo_ast_binary_operator_power is an integer */
2298   return n;
2299 }
2300 
_cffi_const_clingo_ast_comparison_operator_greater_than(unsigned long long * o)2301 static int _cffi_const_clingo_ast_comparison_operator_greater_than(unsigned long long *o)
2302 {
2303   int n = (clingo_ast_comparison_operator_greater_than) <= 0;
2304   *o = (unsigned long long)((clingo_ast_comparison_operator_greater_than) | 0);  /* check that clingo_ast_comparison_operator_greater_than is an integer */
2305   return n;
2306 }
2307 
_cffi_const_clingo_ast_comparison_operator_less_than(unsigned long long * o)2308 static int _cffi_const_clingo_ast_comparison_operator_less_than(unsigned long long *o)
2309 {
2310   int n = (clingo_ast_comparison_operator_less_than) <= 0;
2311   *o = (unsigned long long)((clingo_ast_comparison_operator_less_than) | 0);  /* check that clingo_ast_comparison_operator_less_than is an integer */
2312   return n;
2313 }
2314 
_cffi_const_clingo_ast_comparison_operator_less_equal(unsigned long long * o)2315 static int _cffi_const_clingo_ast_comparison_operator_less_equal(unsigned long long *o)
2316 {
2317   int n = (clingo_ast_comparison_operator_less_equal) <= 0;
2318   *o = (unsigned long long)((clingo_ast_comparison_operator_less_equal) | 0);  /* check that clingo_ast_comparison_operator_less_equal is an integer */
2319   return n;
2320 }
2321 
_cffi_const_clingo_ast_comparison_operator_greater_equal(unsigned long long * o)2322 static int _cffi_const_clingo_ast_comparison_operator_greater_equal(unsigned long long *o)
2323 {
2324   int n = (clingo_ast_comparison_operator_greater_equal) <= 0;
2325   *o = (unsigned long long)((clingo_ast_comparison_operator_greater_equal) | 0);  /* check that clingo_ast_comparison_operator_greater_equal is an integer */
2326   return n;
2327 }
2328 
_cffi_const_clingo_ast_comparison_operator_not_equal(unsigned long long * o)2329 static int _cffi_const_clingo_ast_comparison_operator_not_equal(unsigned long long *o)
2330 {
2331   int n = (clingo_ast_comparison_operator_not_equal) <= 0;
2332   *o = (unsigned long long)((clingo_ast_comparison_operator_not_equal) | 0);  /* check that clingo_ast_comparison_operator_not_equal is an integer */
2333   return n;
2334 }
2335 
_cffi_const_clingo_ast_comparison_operator_equal(unsigned long long * o)2336 static int _cffi_const_clingo_ast_comparison_operator_equal(unsigned long long *o)
2337 {
2338   int n = (clingo_ast_comparison_operator_equal) <= 0;
2339   *o = (unsigned long long)((clingo_ast_comparison_operator_equal) | 0);  /* check that clingo_ast_comparison_operator_equal is an integer */
2340   return n;
2341 }
2342 
_cffi_const_clingo_ast_sign_no_sign(unsigned long long * o)2343 static int _cffi_const_clingo_ast_sign_no_sign(unsigned long long *o)
2344 {
2345   int n = (clingo_ast_sign_no_sign) <= 0;
2346   *o = (unsigned long long)((clingo_ast_sign_no_sign) | 0);  /* check that clingo_ast_sign_no_sign is an integer */
2347   return n;
2348 }
2349 
_cffi_const_clingo_ast_sign_negation(unsigned long long * o)2350 static int _cffi_const_clingo_ast_sign_negation(unsigned long long *o)
2351 {
2352   int n = (clingo_ast_sign_negation) <= 0;
2353   *o = (unsigned long long)((clingo_ast_sign_negation) | 0);  /* check that clingo_ast_sign_negation is an integer */
2354   return n;
2355 }
2356 
_cffi_const_clingo_ast_sign_double_negation(unsigned long long * o)2357 static int _cffi_const_clingo_ast_sign_double_negation(unsigned long long *o)
2358 {
2359   int n = (clingo_ast_sign_double_negation) <= 0;
2360   *o = (unsigned long long)((clingo_ast_sign_double_negation) | 0);  /* check that clingo_ast_sign_double_negation is an integer */
2361   return n;
2362 }
2363 
_cffi_const_clingo_ast_theory_atom_definition_type_head(unsigned long long * o)2364 static int _cffi_const_clingo_ast_theory_atom_definition_type_head(unsigned long long *o)
2365 {
2366   int n = (clingo_ast_theory_atom_definition_type_head) <= 0;
2367   *o = (unsigned long long)((clingo_ast_theory_atom_definition_type_head) | 0);  /* check that clingo_ast_theory_atom_definition_type_head is an integer */
2368   return n;
2369 }
2370 
_cffi_const_clingo_ast_theory_atom_definition_type_body(unsigned long long * o)2371 static int _cffi_const_clingo_ast_theory_atom_definition_type_body(unsigned long long *o)
2372 {
2373   int n = (clingo_ast_theory_atom_definition_type_body) <= 0;
2374   *o = (unsigned long long)((clingo_ast_theory_atom_definition_type_body) | 0);  /* check that clingo_ast_theory_atom_definition_type_body is an integer */
2375   return n;
2376 }
2377 
_cffi_const_clingo_ast_theory_atom_definition_type_any(unsigned long long * o)2378 static int _cffi_const_clingo_ast_theory_atom_definition_type_any(unsigned long long *o)
2379 {
2380   int n = (clingo_ast_theory_atom_definition_type_any) <= 0;
2381   *o = (unsigned long long)((clingo_ast_theory_atom_definition_type_any) | 0);  /* check that clingo_ast_theory_atom_definition_type_any is an integer */
2382   return n;
2383 }
2384 
_cffi_const_clingo_ast_theory_atom_definition_type_directive(unsigned long long * o)2385 static int _cffi_const_clingo_ast_theory_atom_definition_type_directive(unsigned long long *o)
2386 {
2387   int n = (clingo_ast_theory_atom_definition_type_directive) <= 0;
2388   *o = (unsigned long long)((clingo_ast_theory_atom_definition_type_directive) | 0);  /* check that clingo_ast_theory_atom_definition_type_directive is an integer */
2389   return n;
2390 }
2391 
_cffi_const_clingo_ast_theory_operator_type_unary(unsigned long long * o)2392 static int _cffi_const_clingo_ast_theory_operator_type_unary(unsigned long long *o)
2393 {
2394   int n = (clingo_ast_theory_operator_type_unary) <= 0;
2395   *o = (unsigned long long)((clingo_ast_theory_operator_type_unary) | 0);  /* check that clingo_ast_theory_operator_type_unary is an integer */
2396   return n;
2397 }
2398 
_cffi_const_clingo_ast_theory_operator_type_binary_left(unsigned long long * o)2399 static int _cffi_const_clingo_ast_theory_operator_type_binary_left(unsigned long long *o)
2400 {
2401   int n = (clingo_ast_theory_operator_type_binary_left) <= 0;
2402   *o = (unsigned long long)((clingo_ast_theory_operator_type_binary_left) | 0);  /* check that clingo_ast_theory_operator_type_binary_left is an integer */
2403   return n;
2404 }
2405 
_cffi_const_clingo_ast_theory_operator_type_binary_right(unsigned long long * o)2406 static int _cffi_const_clingo_ast_theory_operator_type_binary_right(unsigned long long *o)
2407 {
2408   int n = (clingo_ast_theory_operator_type_binary_right) <= 0;
2409   *o = (unsigned long long)((clingo_ast_theory_operator_type_binary_right) | 0);  /* check that clingo_ast_theory_operator_type_binary_right is an integer */
2410   return n;
2411 }
2412 
_cffi_const_clingo_ast_theory_sequence_type_tuple(unsigned long long * o)2413 static int _cffi_const_clingo_ast_theory_sequence_type_tuple(unsigned long long *o)
2414 {
2415   int n = (clingo_ast_theory_sequence_type_tuple) <= 0;
2416   *o = (unsigned long long)((clingo_ast_theory_sequence_type_tuple) | 0);  /* check that clingo_ast_theory_sequence_type_tuple is an integer */
2417   return n;
2418 }
2419 
_cffi_const_clingo_ast_theory_sequence_type_list(unsigned long long * o)2420 static int _cffi_const_clingo_ast_theory_sequence_type_list(unsigned long long *o)
2421 {
2422   int n = (clingo_ast_theory_sequence_type_list) <= 0;
2423   *o = (unsigned long long)((clingo_ast_theory_sequence_type_list) | 0);  /* check that clingo_ast_theory_sequence_type_list is an integer */
2424   return n;
2425 }
2426 
_cffi_const_clingo_ast_theory_sequence_type_set(unsigned long long * o)2427 static int _cffi_const_clingo_ast_theory_sequence_type_set(unsigned long long *o)
2428 {
2429   int n = (clingo_ast_theory_sequence_type_set) <= 0;
2430   *o = (unsigned long long)((clingo_ast_theory_sequence_type_set) | 0);  /* check that clingo_ast_theory_sequence_type_set is an integer */
2431   return n;
2432 }
2433 
_cffi_const_clingo_ast_type_id(unsigned long long * o)2434 static int _cffi_const_clingo_ast_type_id(unsigned long long *o)
2435 {
2436   int n = (clingo_ast_type_id) <= 0;
2437   *o = (unsigned long long)((clingo_ast_type_id) | 0);  /* check that clingo_ast_type_id is an integer */
2438   return n;
2439 }
2440 
_cffi_const_clingo_ast_type_variable(unsigned long long * o)2441 static int _cffi_const_clingo_ast_type_variable(unsigned long long *o)
2442 {
2443   int n = (clingo_ast_type_variable) <= 0;
2444   *o = (unsigned long long)((clingo_ast_type_variable) | 0);  /* check that clingo_ast_type_variable is an integer */
2445   return n;
2446 }
2447 
_cffi_const_clingo_ast_type_symbolic_term(unsigned long long * o)2448 static int _cffi_const_clingo_ast_type_symbolic_term(unsigned long long *o)
2449 {
2450   int n = (clingo_ast_type_symbolic_term) <= 0;
2451   *o = (unsigned long long)((clingo_ast_type_symbolic_term) | 0);  /* check that clingo_ast_type_symbolic_term is an integer */
2452   return n;
2453 }
2454 
_cffi_const_clingo_ast_type_unary_operation(unsigned long long * o)2455 static int _cffi_const_clingo_ast_type_unary_operation(unsigned long long *o)
2456 {
2457   int n = (clingo_ast_type_unary_operation) <= 0;
2458   *o = (unsigned long long)((clingo_ast_type_unary_operation) | 0);  /* check that clingo_ast_type_unary_operation is an integer */
2459   return n;
2460 }
2461 
_cffi_const_clingo_ast_type_binary_operation(unsigned long long * o)2462 static int _cffi_const_clingo_ast_type_binary_operation(unsigned long long *o)
2463 {
2464   int n = (clingo_ast_type_binary_operation) <= 0;
2465   *o = (unsigned long long)((clingo_ast_type_binary_operation) | 0);  /* check that clingo_ast_type_binary_operation is an integer */
2466   return n;
2467 }
2468 
_cffi_const_clingo_ast_type_interval(unsigned long long * o)2469 static int _cffi_const_clingo_ast_type_interval(unsigned long long *o)
2470 {
2471   int n = (clingo_ast_type_interval) <= 0;
2472   *o = (unsigned long long)((clingo_ast_type_interval) | 0);  /* check that clingo_ast_type_interval is an integer */
2473   return n;
2474 }
2475 
_cffi_const_clingo_ast_type_function(unsigned long long * o)2476 static int _cffi_const_clingo_ast_type_function(unsigned long long *o)
2477 {
2478   int n = (clingo_ast_type_function) <= 0;
2479   *o = (unsigned long long)((clingo_ast_type_function) | 0);  /* check that clingo_ast_type_function is an integer */
2480   return n;
2481 }
2482 
_cffi_const_clingo_ast_type_pool(unsigned long long * o)2483 static int _cffi_const_clingo_ast_type_pool(unsigned long long *o)
2484 {
2485   int n = (clingo_ast_type_pool) <= 0;
2486   *o = (unsigned long long)((clingo_ast_type_pool) | 0);  /* check that clingo_ast_type_pool is an integer */
2487   return n;
2488 }
2489 
_cffi_const_clingo_ast_type_csp_product(unsigned long long * o)2490 static int _cffi_const_clingo_ast_type_csp_product(unsigned long long *o)
2491 {
2492   int n = (clingo_ast_type_csp_product) <= 0;
2493   *o = (unsigned long long)((clingo_ast_type_csp_product) | 0);  /* check that clingo_ast_type_csp_product is an integer */
2494   return n;
2495 }
2496 
_cffi_const_clingo_ast_type_csp_sum(unsigned long long * o)2497 static int _cffi_const_clingo_ast_type_csp_sum(unsigned long long *o)
2498 {
2499   int n = (clingo_ast_type_csp_sum) <= 0;
2500   *o = (unsigned long long)((clingo_ast_type_csp_sum) | 0);  /* check that clingo_ast_type_csp_sum is an integer */
2501   return n;
2502 }
2503 
_cffi_const_clingo_ast_type_csp_guard(unsigned long long * o)2504 static int _cffi_const_clingo_ast_type_csp_guard(unsigned long long *o)
2505 {
2506   int n = (clingo_ast_type_csp_guard) <= 0;
2507   *o = (unsigned long long)((clingo_ast_type_csp_guard) | 0);  /* check that clingo_ast_type_csp_guard is an integer */
2508   return n;
2509 }
2510 
_cffi_const_clingo_ast_type_boolean_constant(unsigned long long * o)2511 static int _cffi_const_clingo_ast_type_boolean_constant(unsigned long long *o)
2512 {
2513   int n = (clingo_ast_type_boolean_constant) <= 0;
2514   *o = (unsigned long long)((clingo_ast_type_boolean_constant) | 0);  /* check that clingo_ast_type_boolean_constant is an integer */
2515   return n;
2516 }
2517 
_cffi_const_clingo_ast_type_symbolic_atom(unsigned long long * o)2518 static int _cffi_const_clingo_ast_type_symbolic_atom(unsigned long long *o)
2519 {
2520   int n = (clingo_ast_type_symbolic_atom) <= 0;
2521   *o = (unsigned long long)((clingo_ast_type_symbolic_atom) | 0);  /* check that clingo_ast_type_symbolic_atom is an integer */
2522   return n;
2523 }
2524 
_cffi_const_clingo_ast_type_comparison(unsigned long long * o)2525 static int _cffi_const_clingo_ast_type_comparison(unsigned long long *o)
2526 {
2527   int n = (clingo_ast_type_comparison) <= 0;
2528   *o = (unsigned long long)((clingo_ast_type_comparison) | 0);  /* check that clingo_ast_type_comparison is an integer */
2529   return n;
2530 }
2531 
_cffi_const_clingo_ast_type_csp_literal(unsigned long long * o)2532 static int _cffi_const_clingo_ast_type_csp_literal(unsigned long long *o)
2533 {
2534   int n = (clingo_ast_type_csp_literal) <= 0;
2535   *o = (unsigned long long)((clingo_ast_type_csp_literal) | 0);  /* check that clingo_ast_type_csp_literal is an integer */
2536   return n;
2537 }
2538 
_cffi_const_clingo_ast_type_aggregate_guard(unsigned long long * o)2539 static int _cffi_const_clingo_ast_type_aggregate_guard(unsigned long long *o)
2540 {
2541   int n = (clingo_ast_type_aggregate_guard) <= 0;
2542   *o = (unsigned long long)((clingo_ast_type_aggregate_guard) | 0);  /* check that clingo_ast_type_aggregate_guard is an integer */
2543   return n;
2544 }
2545 
_cffi_const_clingo_ast_type_conditional_literal(unsigned long long * o)2546 static int _cffi_const_clingo_ast_type_conditional_literal(unsigned long long *o)
2547 {
2548   int n = (clingo_ast_type_conditional_literal) <= 0;
2549   *o = (unsigned long long)((clingo_ast_type_conditional_literal) | 0);  /* check that clingo_ast_type_conditional_literal is an integer */
2550   return n;
2551 }
2552 
_cffi_const_clingo_ast_type_aggregate(unsigned long long * o)2553 static int _cffi_const_clingo_ast_type_aggregate(unsigned long long *o)
2554 {
2555   int n = (clingo_ast_type_aggregate) <= 0;
2556   *o = (unsigned long long)((clingo_ast_type_aggregate) | 0);  /* check that clingo_ast_type_aggregate is an integer */
2557   return n;
2558 }
2559 
_cffi_const_clingo_ast_type_body_aggregate_element(unsigned long long * o)2560 static int _cffi_const_clingo_ast_type_body_aggregate_element(unsigned long long *o)
2561 {
2562   int n = (clingo_ast_type_body_aggregate_element) <= 0;
2563   *o = (unsigned long long)((clingo_ast_type_body_aggregate_element) | 0);  /* check that clingo_ast_type_body_aggregate_element is an integer */
2564   return n;
2565 }
2566 
_cffi_const_clingo_ast_type_body_aggregate(unsigned long long * o)2567 static int _cffi_const_clingo_ast_type_body_aggregate(unsigned long long *o)
2568 {
2569   int n = (clingo_ast_type_body_aggregate) <= 0;
2570   *o = (unsigned long long)((clingo_ast_type_body_aggregate) | 0);  /* check that clingo_ast_type_body_aggregate is an integer */
2571   return n;
2572 }
2573 
_cffi_const_clingo_ast_type_head_aggregate_element(unsigned long long * o)2574 static int _cffi_const_clingo_ast_type_head_aggregate_element(unsigned long long *o)
2575 {
2576   int n = (clingo_ast_type_head_aggregate_element) <= 0;
2577   *o = (unsigned long long)((clingo_ast_type_head_aggregate_element) | 0);  /* check that clingo_ast_type_head_aggregate_element is an integer */
2578   return n;
2579 }
2580 
_cffi_const_clingo_ast_type_head_aggregate(unsigned long long * o)2581 static int _cffi_const_clingo_ast_type_head_aggregate(unsigned long long *o)
2582 {
2583   int n = (clingo_ast_type_head_aggregate) <= 0;
2584   *o = (unsigned long long)((clingo_ast_type_head_aggregate) | 0);  /* check that clingo_ast_type_head_aggregate is an integer */
2585   return n;
2586 }
2587 
_cffi_const_clingo_ast_type_disjunction(unsigned long long * o)2588 static int _cffi_const_clingo_ast_type_disjunction(unsigned long long *o)
2589 {
2590   int n = (clingo_ast_type_disjunction) <= 0;
2591   *o = (unsigned long long)((clingo_ast_type_disjunction) | 0);  /* check that clingo_ast_type_disjunction is an integer */
2592   return n;
2593 }
2594 
_cffi_const_clingo_ast_type_disjoint_element(unsigned long long * o)2595 static int _cffi_const_clingo_ast_type_disjoint_element(unsigned long long *o)
2596 {
2597   int n = (clingo_ast_type_disjoint_element) <= 0;
2598   *o = (unsigned long long)((clingo_ast_type_disjoint_element) | 0);  /* check that clingo_ast_type_disjoint_element is an integer */
2599   return n;
2600 }
2601 
_cffi_const_clingo_ast_type_disjoint(unsigned long long * o)2602 static int _cffi_const_clingo_ast_type_disjoint(unsigned long long *o)
2603 {
2604   int n = (clingo_ast_type_disjoint) <= 0;
2605   *o = (unsigned long long)((clingo_ast_type_disjoint) | 0);  /* check that clingo_ast_type_disjoint is an integer */
2606   return n;
2607 }
2608 
_cffi_const_clingo_ast_type_theory_sequence(unsigned long long * o)2609 static int _cffi_const_clingo_ast_type_theory_sequence(unsigned long long *o)
2610 {
2611   int n = (clingo_ast_type_theory_sequence) <= 0;
2612   *o = (unsigned long long)((clingo_ast_type_theory_sequence) | 0);  /* check that clingo_ast_type_theory_sequence is an integer */
2613   return n;
2614 }
2615 
_cffi_const_clingo_ast_type_theory_function(unsigned long long * o)2616 static int _cffi_const_clingo_ast_type_theory_function(unsigned long long *o)
2617 {
2618   int n = (clingo_ast_type_theory_function) <= 0;
2619   *o = (unsigned long long)((clingo_ast_type_theory_function) | 0);  /* check that clingo_ast_type_theory_function is an integer */
2620   return n;
2621 }
2622 
_cffi_const_clingo_ast_type_theory_unparsed_term_element(unsigned long long * o)2623 static int _cffi_const_clingo_ast_type_theory_unparsed_term_element(unsigned long long *o)
2624 {
2625   int n = (clingo_ast_type_theory_unparsed_term_element) <= 0;
2626   *o = (unsigned long long)((clingo_ast_type_theory_unparsed_term_element) | 0);  /* check that clingo_ast_type_theory_unparsed_term_element is an integer */
2627   return n;
2628 }
2629 
_cffi_const_clingo_ast_type_theory_unparsed_term(unsigned long long * o)2630 static int _cffi_const_clingo_ast_type_theory_unparsed_term(unsigned long long *o)
2631 {
2632   int n = (clingo_ast_type_theory_unparsed_term) <= 0;
2633   *o = (unsigned long long)((clingo_ast_type_theory_unparsed_term) | 0);  /* check that clingo_ast_type_theory_unparsed_term is an integer */
2634   return n;
2635 }
2636 
_cffi_const_clingo_ast_type_theory_guard(unsigned long long * o)2637 static int _cffi_const_clingo_ast_type_theory_guard(unsigned long long *o)
2638 {
2639   int n = (clingo_ast_type_theory_guard) <= 0;
2640   *o = (unsigned long long)((clingo_ast_type_theory_guard) | 0);  /* check that clingo_ast_type_theory_guard is an integer */
2641   return n;
2642 }
2643 
_cffi_const_clingo_ast_type_theory_atom_element(unsigned long long * o)2644 static int _cffi_const_clingo_ast_type_theory_atom_element(unsigned long long *o)
2645 {
2646   int n = (clingo_ast_type_theory_atom_element) <= 0;
2647   *o = (unsigned long long)((clingo_ast_type_theory_atom_element) | 0);  /* check that clingo_ast_type_theory_atom_element is an integer */
2648   return n;
2649 }
2650 
_cffi_const_clingo_ast_type_theory_atom(unsigned long long * o)2651 static int _cffi_const_clingo_ast_type_theory_atom(unsigned long long *o)
2652 {
2653   int n = (clingo_ast_type_theory_atom) <= 0;
2654   *o = (unsigned long long)((clingo_ast_type_theory_atom) | 0);  /* check that clingo_ast_type_theory_atom is an integer */
2655   return n;
2656 }
2657 
_cffi_const_clingo_ast_type_literal(unsigned long long * o)2658 static int _cffi_const_clingo_ast_type_literal(unsigned long long *o)
2659 {
2660   int n = (clingo_ast_type_literal) <= 0;
2661   *o = (unsigned long long)((clingo_ast_type_literal) | 0);  /* check that clingo_ast_type_literal is an integer */
2662   return n;
2663 }
2664 
_cffi_const_clingo_ast_type_theory_operator_definition(unsigned long long * o)2665 static int _cffi_const_clingo_ast_type_theory_operator_definition(unsigned long long *o)
2666 {
2667   int n = (clingo_ast_type_theory_operator_definition) <= 0;
2668   *o = (unsigned long long)((clingo_ast_type_theory_operator_definition) | 0);  /* check that clingo_ast_type_theory_operator_definition is an integer */
2669   return n;
2670 }
2671 
_cffi_const_clingo_ast_type_theory_term_definition(unsigned long long * o)2672 static int _cffi_const_clingo_ast_type_theory_term_definition(unsigned long long *o)
2673 {
2674   int n = (clingo_ast_type_theory_term_definition) <= 0;
2675   *o = (unsigned long long)((clingo_ast_type_theory_term_definition) | 0);  /* check that clingo_ast_type_theory_term_definition is an integer */
2676   return n;
2677 }
2678 
_cffi_const_clingo_ast_type_theory_guard_definition(unsigned long long * o)2679 static int _cffi_const_clingo_ast_type_theory_guard_definition(unsigned long long *o)
2680 {
2681   int n = (clingo_ast_type_theory_guard_definition) <= 0;
2682   *o = (unsigned long long)((clingo_ast_type_theory_guard_definition) | 0);  /* check that clingo_ast_type_theory_guard_definition is an integer */
2683   return n;
2684 }
2685 
_cffi_const_clingo_ast_type_theory_atom_definition(unsigned long long * o)2686 static int _cffi_const_clingo_ast_type_theory_atom_definition(unsigned long long *o)
2687 {
2688   int n = (clingo_ast_type_theory_atom_definition) <= 0;
2689   *o = (unsigned long long)((clingo_ast_type_theory_atom_definition) | 0);  /* check that clingo_ast_type_theory_atom_definition is an integer */
2690   return n;
2691 }
2692 
_cffi_const_clingo_ast_type_rule(unsigned long long * o)2693 static int _cffi_const_clingo_ast_type_rule(unsigned long long *o)
2694 {
2695   int n = (clingo_ast_type_rule) <= 0;
2696   *o = (unsigned long long)((clingo_ast_type_rule) | 0);  /* check that clingo_ast_type_rule is an integer */
2697   return n;
2698 }
2699 
_cffi_const_clingo_ast_type_definition(unsigned long long * o)2700 static int _cffi_const_clingo_ast_type_definition(unsigned long long *o)
2701 {
2702   int n = (clingo_ast_type_definition) <= 0;
2703   *o = (unsigned long long)((clingo_ast_type_definition) | 0);  /* check that clingo_ast_type_definition is an integer */
2704   return n;
2705 }
2706 
_cffi_const_clingo_ast_type_show_signature(unsigned long long * o)2707 static int _cffi_const_clingo_ast_type_show_signature(unsigned long long *o)
2708 {
2709   int n = (clingo_ast_type_show_signature) <= 0;
2710   *o = (unsigned long long)((clingo_ast_type_show_signature) | 0);  /* check that clingo_ast_type_show_signature is an integer */
2711   return n;
2712 }
2713 
_cffi_const_clingo_ast_type_show_term(unsigned long long * o)2714 static int _cffi_const_clingo_ast_type_show_term(unsigned long long *o)
2715 {
2716   int n = (clingo_ast_type_show_term) <= 0;
2717   *o = (unsigned long long)((clingo_ast_type_show_term) | 0);  /* check that clingo_ast_type_show_term is an integer */
2718   return n;
2719 }
2720 
_cffi_const_clingo_ast_type_minimize(unsigned long long * o)2721 static int _cffi_const_clingo_ast_type_minimize(unsigned long long *o)
2722 {
2723   int n = (clingo_ast_type_minimize) <= 0;
2724   *o = (unsigned long long)((clingo_ast_type_minimize) | 0);  /* check that clingo_ast_type_minimize is an integer */
2725   return n;
2726 }
2727 
_cffi_const_clingo_ast_type_script(unsigned long long * o)2728 static int _cffi_const_clingo_ast_type_script(unsigned long long *o)
2729 {
2730   int n = (clingo_ast_type_script) <= 0;
2731   *o = (unsigned long long)((clingo_ast_type_script) | 0);  /* check that clingo_ast_type_script is an integer */
2732   return n;
2733 }
2734 
_cffi_const_clingo_ast_type_program(unsigned long long * o)2735 static int _cffi_const_clingo_ast_type_program(unsigned long long *o)
2736 {
2737   int n = (clingo_ast_type_program) <= 0;
2738   *o = (unsigned long long)((clingo_ast_type_program) | 0);  /* check that clingo_ast_type_program is an integer */
2739   return n;
2740 }
2741 
_cffi_const_clingo_ast_type_external(unsigned long long * o)2742 static int _cffi_const_clingo_ast_type_external(unsigned long long *o)
2743 {
2744   int n = (clingo_ast_type_external) <= 0;
2745   *o = (unsigned long long)((clingo_ast_type_external) | 0);  /* check that clingo_ast_type_external is an integer */
2746   return n;
2747 }
2748 
_cffi_const_clingo_ast_type_edge(unsigned long long * o)2749 static int _cffi_const_clingo_ast_type_edge(unsigned long long *o)
2750 {
2751   int n = (clingo_ast_type_edge) <= 0;
2752   *o = (unsigned long long)((clingo_ast_type_edge) | 0);  /* check that clingo_ast_type_edge is an integer */
2753   return n;
2754 }
2755 
_cffi_const_clingo_ast_type_heuristic(unsigned long long * o)2756 static int _cffi_const_clingo_ast_type_heuristic(unsigned long long *o)
2757 {
2758   int n = (clingo_ast_type_heuristic) <= 0;
2759   *o = (unsigned long long)((clingo_ast_type_heuristic) | 0);  /* check that clingo_ast_type_heuristic is an integer */
2760   return n;
2761 }
2762 
_cffi_const_clingo_ast_type_project_atom(unsigned long long * o)2763 static int _cffi_const_clingo_ast_type_project_atom(unsigned long long *o)
2764 {
2765   int n = (clingo_ast_type_project_atom) <= 0;
2766   *o = (unsigned long long)((clingo_ast_type_project_atom) | 0);  /* check that clingo_ast_type_project_atom is an integer */
2767   return n;
2768 }
2769 
_cffi_const_clingo_ast_type_project_signature(unsigned long long * o)2770 static int _cffi_const_clingo_ast_type_project_signature(unsigned long long *o)
2771 {
2772   int n = (clingo_ast_type_project_signature) <= 0;
2773   *o = (unsigned long long)((clingo_ast_type_project_signature) | 0);  /* check that clingo_ast_type_project_signature is an integer */
2774   return n;
2775 }
2776 
_cffi_const_clingo_ast_type_defined(unsigned long long * o)2777 static int _cffi_const_clingo_ast_type_defined(unsigned long long *o)
2778 {
2779   int n = (clingo_ast_type_defined) <= 0;
2780   *o = (unsigned long long)((clingo_ast_type_defined) | 0);  /* check that clingo_ast_type_defined is an integer */
2781   return n;
2782 }
2783 
_cffi_const_clingo_ast_type_theory_definition(unsigned long long * o)2784 static int _cffi_const_clingo_ast_type_theory_definition(unsigned long long *o)
2785 {
2786   int n = (clingo_ast_type_theory_definition) <= 0;
2787   *o = (unsigned long long)((clingo_ast_type_theory_definition) | 0);  /* check that clingo_ast_type_theory_definition is an integer */
2788   return n;
2789 }
2790 
_cffi_const_clingo_ast_unary_operator_minus(unsigned long long * o)2791 static int _cffi_const_clingo_ast_unary_operator_minus(unsigned long long *o)
2792 {
2793   int n = (clingo_ast_unary_operator_minus) <= 0;
2794   *o = (unsigned long long)((clingo_ast_unary_operator_minus) | 0);  /* check that clingo_ast_unary_operator_minus is an integer */
2795   return n;
2796 }
2797 
_cffi_const_clingo_ast_unary_operator_negation(unsigned long long * o)2798 static int _cffi_const_clingo_ast_unary_operator_negation(unsigned long long *o)
2799 {
2800   int n = (clingo_ast_unary_operator_negation) <= 0;
2801   *o = (unsigned long long)((clingo_ast_unary_operator_negation) | 0);  /* check that clingo_ast_unary_operator_negation is an integer */
2802   return n;
2803 }
2804 
_cffi_const_clingo_ast_unary_operator_absolute(unsigned long long * o)2805 static int _cffi_const_clingo_ast_unary_operator_absolute(unsigned long long *o)
2806 {
2807   int n = (clingo_ast_unary_operator_absolute) <= 0;
2808   *o = (unsigned long long)((clingo_ast_unary_operator_absolute) | 0);  /* check that clingo_ast_unary_operator_absolute is an integer */
2809   return n;
2810 }
2811 
_cffi_const_clingo_ast_unpool_type_condition(unsigned long long * o)2812 static int _cffi_const_clingo_ast_unpool_type_condition(unsigned long long *o)
2813 {
2814   int n = (clingo_ast_unpool_type_condition) <= 0;
2815   *o = (unsigned long long)((clingo_ast_unpool_type_condition) | 0);  /* check that clingo_ast_unpool_type_condition is an integer */
2816   return n;
2817 }
2818 
_cffi_const_clingo_ast_unpool_type_other(unsigned long long * o)2819 static int _cffi_const_clingo_ast_unpool_type_other(unsigned long long *o)
2820 {
2821   int n = (clingo_ast_unpool_type_other) <= 0;
2822   *o = (unsigned long long)((clingo_ast_unpool_type_other) | 0);  /* check that clingo_ast_unpool_type_other is an integer */
2823   return n;
2824 }
2825 
_cffi_const_clingo_ast_unpool_type_all(unsigned long long * o)2826 static int _cffi_const_clingo_ast_unpool_type_all(unsigned long long *o)
2827 {
2828   int n = (clingo_ast_unpool_type_all) <= 0;
2829   *o = (unsigned long long)((clingo_ast_unpool_type_all) | 0);  /* check that clingo_ast_unpool_type_all is an integer */
2830   return n;
2831 }
2832 
_cffi_const_clingo_clause_type_learnt(unsigned long long * o)2833 static int _cffi_const_clingo_clause_type_learnt(unsigned long long *o)
2834 {
2835   int n = (clingo_clause_type_learnt) <= 0;
2836   *o = (unsigned long long)((clingo_clause_type_learnt) | 0);  /* check that clingo_clause_type_learnt is an integer */
2837   return n;
2838 }
2839 
_cffi_const_clingo_clause_type_static(unsigned long long * o)2840 static int _cffi_const_clingo_clause_type_static(unsigned long long *o)
2841 {
2842   int n = (clingo_clause_type_static) <= 0;
2843   *o = (unsigned long long)((clingo_clause_type_static) | 0);  /* check that clingo_clause_type_static is an integer */
2844   return n;
2845 }
2846 
_cffi_const_clingo_clause_type_volatile(unsigned long long * o)2847 static int _cffi_const_clingo_clause_type_volatile(unsigned long long *o)
2848 {
2849   int n = (clingo_clause_type_volatile) <= 0;
2850   *o = (unsigned long long)((clingo_clause_type_volatile) | 0);  /* check that clingo_clause_type_volatile is an integer */
2851   return n;
2852 }
2853 
_cffi_const_clingo_clause_type_volatile_static(unsigned long long * o)2854 static int _cffi_const_clingo_clause_type_volatile_static(unsigned long long *o)
2855 {
2856   int n = (clingo_clause_type_volatile_static) <= 0;
2857   *o = (unsigned long long)((clingo_clause_type_volatile_static) | 0);  /* check that clingo_clause_type_volatile_static is an integer */
2858   return n;
2859 }
2860 
_cffi_const_clingo_configuration_type_value(unsigned long long * o)2861 static int _cffi_const_clingo_configuration_type_value(unsigned long long *o)
2862 {
2863   int n = (clingo_configuration_type_value) <= 0;
2864   *o = (unsigned long long)((clingo_configuration_type_value) | 0);  /* check that clingo_configuration_type_value is an integer */
2865   return n;
2866 }
2867 
_cffi_const_clingo_configuration_type_array(unsigned long long * o)2868 static int _cffi_const_clingo_configuration_type_array(unsigned long long *o)
2869 {
2870   int n = (clingo_configuration_type_array) <= 0;
2871   *o = (unsigned long long)((clingo_configuration_type_array) | 0);  /* check that clingo_configuration_type_array is an integer */
2872   return n;
2873 }
2874 
_cffi_const_clingo_configuration_type_map(unsigned long long * o)2875 static int _cffi_const_clingo_configuration_type_map(unsigned long long *o)
2876 {
2877   int n = (clingo_configuration_type_map) <= 0;
2878   *o = (unsigned long long)((clingo_configuration_type_map) | 0);  /* check that clingo_configuration_type_map is an integer */
2879   return n;
2880 }
2881 
_cffi_const_clingo_error_success(unsigned long long * o)2882 static int _cffi_const_clingo_error_success(unsigned long long *o)
2883 {
2884   int n = (clingo_error_success) <= 0;
2885   *o = (unsigned long long)((clingo_error_success) | 0);  /* check that clingo_error_success is an integer */
2886   return n;
2887 }
2888 
_cffi_const_clingo_error_runtime(unsigned long long * o)2889 static int _cffi_const_clingo_error_runtime(unsigned long long *o)
2890 {
2891   int n = (clingo_error_runtime) <= 0;
2892   *o = (unsigned long long)((clingo_error_runtime) | 0);  /* check that clingo_error_runtime is an integer */
2893   return n;
2894 }
2895 
_cffi_const_clingo_error_logic(unsigned long long * o)2896 static int _cffi_const_clingo_error_logic(unsigned long long *o)
2897 {
2898   int n = (clingo_error_logic) <= 0;
2899   *o = (unsigned long long)((clingo_error_logic) | 0);  /* check that clingo_error_logic is an integer */
2900   return n;
2901 }
2902 
_cffi_const_clingo_error_bad_alloc(unsigned long long * o)2903 static int _cffi_const_clingo_error_bad_alloc(unsigned long long *o)
2904 {
2905   int n = (clingo_error_bad_alloc) <= 0;
2906   *o = (unsigned long long)((clingo_error_bad_alloc) | 0);  /* check that clingo_error_bad_alloc is an integer */
2907   return n;
2908 }
2909 
_cffi_const_clingo_error_unknown(unsigned long long * o)2910 static int _cffi_const_clingo_error_unknown(unsigned long long *o)
2911 {
2912   int n = (clingo_error_unknown) <= 0;
2913   *o = (unsigned long long)((clingo_error_unknown) | 0);  /* check that clingo_error_unknown is an integer */
2914   return n;
2915 }
2916 
_cffi_const_clingo_external_type_free(unsigned long long * o)2917 static int _cffi_const_clingo_external_type_free(unsigned long long *o)
2918 {
2919   int n = (clingo_external_type_free) <= 0;
2920   *o = (unsigned long long)((clingo_external_type_free) | 0);  /* check that clingo_external_type_free is an integer */
2921   return n;
2922 }
2923 
_cffi_const_clingo_external_type_true(unsigned long long * o)2924 static int _cffi_const_clingo_external_type_true(unsigned long long *o)
2925 {
2926   int n = (clingo_external_type_true) <= 0;
2927   *o = (unsigned long long)((clingo_external_type_true) | 0);  /* check that clingo_external_type_true is an integer */
2928   return n;
2929 }
2930 
_cffi_const_clingo_external_type_false(unsigned long long * o)2931 static int _cffi_const_clingo_external_type_false(unsigned long long *o)
2932 {
2933   int n = (clingo_external_type_false) <= 0;
2934   *o = (unsigned long long)((clingo_external_type_false) | 0);  /* check that clingo_external_type_false is an integer */
2935   return n;
2936 }
2937 
_cffi_const_clingo_external_type_release(unsigned long long * o)2938 static int _cffi_const_clingo_external_type_release(unsigned long long *o)
2939 {
2940   int n = (clingo_external_type_release) <= 0;
2941   *o = (unsigned long long)((clingo_external_type_release) | 0);  /* check that clingo_external_type_release is an integer */
2942   return n;
2943 }
2944 
_cffi_const_clingo_heuristic_type_level(unsigned long long * o)2945 static int _cffi_const_clingo_heuristic_type_level(unsigned long long *o)
2946 {
2947   int n = (clingo_heuristic_type_level) <= 0;
2948   *o = (unsigned long long)((clingo_heuristic_type_level) | 0);  /* check that clingo_heuristic_type_level is an integer */
2949   return n;
2950 }
2951 
_cffi_const_clingo_heuristic_type_sign(unsigned long long * o)2952 static int _cffi_const_clingo_heuristic_type_sign(unsigned long long *o)
2953 {
2954   int n = (clingo_heuristic_type_sign) <= 0;
2955   *o = (unsigned long long)((clingo_heuristic_type_sign) | 0);  /* check that clingo_heuristic_type_sign is an integer */
2956   return n;
2957 }
2958 
_cffi_const_clingo_heuristic_type_factor(unsigned long long * o)2959 static int _cffi_const_clingo_heuristic_type_factor(unsigned long long *o)
2960 {
2961   int n = (clingo_heuristic_type_factor) <= 0;
2962   *o = (unsigned long long)((clingo_heuristic_type_factor) | 0);  /* check that clingo_heuristic_type_factor is an integer */
2963   return n;
2964 }
2965 
_cffi_const_clingo_heuristic_type_init(unsigned long long * o)2966 static int _cffi_const_clingo_heuristic_type_init(unsigned long long *o)
2967 {
2968   int n = (clingo_heuristic_type_init) <= 0;
2969   *o = (unsigned long long)((clingo_heuristic_type_init) | 0);  /* check that clingo_heuristic_type_init is an integer */
2970   return n;
2971 }
2972 
_cffi_const_clingo_heuristic_type_true(unsigned long long * o)2973 static int _cffi_const_clingo_heuristic_type_true(unsigned long long *o)
2974 {
2975   int n = (clingo_heuristic_type_true) <= 0;
2976   *o = (unsigned long long)((clingo_heuristic_type_true) | 0);  /* check that clingo_heuristic_type_true is an integer */
2977   return n;
2978 }
2979 
_cffi_const_clingo_heuristic_type_false(unsigned long long * o)2980 static int _cffi_const_clingo_heuristic_type_false(unsigned long long *o)
2981 {
2982   int n = (clingo_heuristic_type_false) <= 0;
2983   *o = (unsigned long long)((clingo_heuristic_type_false) | 0);  /* check that clingo_heuristic_type_false is an integer */
2984   return n;
2985 }
2986 
_cffi_const_clingo_model_type_stable_model(unsigned long long * o)2987 static int _cffi_const_clingo_model_type_stable_model(unsigned long long *o)
2988 {
2989   int n = (clingo_model_type_stable_model) <= 0;
2990   *o = (unsigned long long)((clingo_model_type_stable_model) | 0);  /* check that clingo_model_type_stable_model is an integer */
2991   return n;
2992 }
2993 
_cffi_const_clingo_model_type_brave_consequences(unsigned long long * o)2994 static int _cffi_const_clingo_model_type_brave_consequences(unsigned long long *o)
2995 {
2996   int n = (clingo_model_type_brave_consequences) <= 0;
2997   *o = (unsigned long long)((clingo_model_type_brave_consequences) | 0);  /* check that clingo_model_type_brave_consequences is an integer */
2998   return n;
2999 }
3000 
_cffi_const_clingo_model_type_cautious_consequences(unsigned long long * o)3001 static int _cffi_const_clingo_model_type_cautious_consequences(unsigned long long *o)
3002 {
3003   int n = (clingo_model_type_cautious_consequences) <= 0;
3004   *o = (unsigned long long)((clingo_model_type_cautious_consequences) | 0);  /* check that clingo_model_type_cautious_consequences is an integer */
3005   return n;
3006 }
3007 
_cffi_const_clingo_propagator_check_mode_none(unsigned long long * o)3008 static int _cffi_const_clingo_propagator_check_mode_none(unsigned long long *o)
3009 {
3010   int n = (clingo_propagator_check_mode_none) <= 0;
3011   *o = (unsigned long long)((clingo_propagator_check_mode_none) | 0);  /* check that clingo_propagator_check_mode_none is an integer */
3012   return n;
3013 }
3014 
_cffi_const_clingo_propagator_check_mode_total(unsigned long long * o)3015 static int _cffi_const_clingo_propagator_check_mode_total(unsigned long long *o)
3016 {
3017   int n = (clingo_propagator_check_mode_total) <= 0;
3018   *o = (unsigned long long)((clingo_propagator_check_mode_total) | 0);  /* check that clingo_propagator_check_mode_total is an integer */
3019   return n;
3020 }
3021 
_cffi_const_clingo_propagator_check_mode_fixpoint(unsigned long long * o)3022 static int _cffi_const_clingo_propagator_check_mode_fixpoint(unsigned long long *o)
3023 {
3024   int n = (clingo_propagator_check_mode_fixpoint) <= 0;
3025   *o = (unsigned long long)((clingo_propagator_check_mode_fixpoint) | 0);  /* check that clingo_propagator_check_mode_fixpoint is an integer */
3026   return n;
3027 }
3028 
_cffi_const_clingo_propagator_check_mode_both(unsigned long long * o)3029 static int _cffi_const_clingo_propagator_check_mode_both(unsigned long long *o)
3030 {
3031   int n = (clingo_propagator_check_mode_both) <= 0;
3032   *o = (unsigned long long)((clingo_propagator_check_mode_both) | 0);  /* check that clingo_propagator_check_mode_both is an integer */
3033   return n;
3034 }
3035 
_cffi_const_clingo_show_type_csp(unsigned long long * o)3036 static int _cffi_const_clingo_show_type_csp(unsigned long long *o)
3037 {
3038   int n = (clingo_show_type_csp) <= 0;
3039   *o = (unsigned long long)((clingo_show_type_csp) | 0);  /* check that clingo_show_type_csp is an integer */
3040   return n;
3041 }
3042 
_cffi_const_clingo_show_type_shown(unsigned long long * o)3043 static int _cffi_const_clingo_show_type_shown(unsigned long long *o)
3044 {
3045   int n = (clingo_show_type_shown) <= 0;
3046   *o = (unsigned long long)((clingo_show_type_shown) | 0);  /* check that clingo_show_type_shown is an integer */
3047   return n;
3048 }
3049 
_cffi_const_clingo_show_type_atoms(unsigned long long * o)3050 static int _cffi_const_clingo_show_type_atoms(unsigned long long *o)
3051 {
3052   int n = (clingo_show_type_atoms) <= 0;
3053   *o = (unsigned long long)((clingo_show_type_atoms) | 0);  /* check that clingo_show_type_atoms is an integer */
3054   return n;
3055 }
3056 
_cffi_const_clingo_show_type_terms(unsigned long long * o)3057 static int _cffi_const_clingo_show_type_terms(unsigned long long *o)
3058 {
3059   int n = (clingo_show_type_terms) <= 0;
3060   *o = (unsigned long long)((clingo_show_type_terms) | 0);  /* check that clingo_show_type_terms is an integer */
3061   return n;
3062 }
3063 
_cffi_const_clingo_show_type_theory(unsigned long long * o)3064 static int _cffi_const_clingo_show_type_theory(unsigned long long *o)
3065 {
3066   int n = (clingo_show_type_theory) <= 0;
3067   *o = (unsigned long long)((clingo_show_type_theory) | 0);  /* check that clingo_show_type_theory is an integer */
3068   return n;
3069 }
3070 
_cffi_const_clingo_show_type_all(unsigned long long * o)3071 static int _cffi_const_clingo_show_type_all(unsigned long long *o)
3072 {
3073   int n = (clingo_show_type_all) <= 0;
3074   *o = (unsigned long long)((clingo_show_type_all) | 0);  /* check that clingo_show_type_all is an integer */
3075   return n;
3076 }
3077 
_cffi_const_clingo_show_type_complement(unsigned long long * o)3078 static int _cffi_const_clingo_show_type_complement(unsigned long long *o)
3079 {
3080   int n = (clingo_show_type_complement) <= 0;
3081   *o = (unsigned long long)((clingo_show_type_complement) | 0);  /* check that clingo_show_type_complement is an integer */
3082   return n;
3083 }
3084 
_cffi_const_clingo_solve_event_type_model(unsigned long long * o)3085 static int _cffi_const_clingo_solve_event_type_model(unsigned long long *o)
3086 {
3087   int n = (clingo_solve_event_type_model) <= 0;
3088   *o = (unsigned long long)((clingo_solve_event_type_model) | 0);  /* check that clingo_solve_event_type_model is an integer */
3089   return n;
3090 }
3091 
_cffi_const_clingo_solve_event_type_unsat(unsigned long long * o)3092 static int _cffi_const_clingo_solve_event_type_unsat(unsigned long long *o)
3093 {
3094   int n = (clingo_solve_event_type_unsat) <= 0;
3095   *o = (unsigned long long)((clingo_solve_event_type_unsat) | 0);  /* check that clingo_solve_event_type_unsat is an integer */
3096   return n;
3097 }
3098 
_cffi_const_clingo_solve_event_type_statistics(unsigned long long * o)3099 static int _cffi_const_clingo_solve_event_type_statistics(unsigned long long *o)
3100 {
3101   int n = (clingo_solve_event_type_statistics) <= 0;
3102   *o = (unsigned long long)((clingo_solve_event_type_statistics) | 0);  /* check that clingo_solve_event_type_statistics is an integer */
3103   return n;
3104 }
3105 
_cffi_const_clingo_solve_event_type_finish(unsigned long long * o)3106 static int _cffi_const_clingo_solve_event_type_finish(unsigned long long *o)
3107 {
3108   int n = (clingo_solve_event_type_finish) <= 0;
3109   *o = (unsigned long long)((clingo_solve_event_type_finish) | 0);  /* check that clingo_solve_event_type_finish is an integer */
3110   return n;
3111 }
3112 
_cffi_const_clingo_solve_mode_async(unsigned long long * o)3113 static int _cffi_const_clingo_solve_mode_async(unsigned long long *o)
3114 {
3115   int n = (clingo_solve_mode_async) <= 0;
3116   *o = (unsigned long long)((clingo_solve_mode_async) | 0);  /* check that clingo_solve_mode_async is an integer */
3117   return n;
3118 }
3119 
_cffi_const_clingo_solve_mode_yield(unsigned long long * o)3120 static int _cffi_const_clingo_solve_mode_yield(unsigned long long *o)
3121 {
3122   int n = (clingo_solve_mode_yield) <= 0;
3123   *o = (unsigned long long)((clingo_solve_mode_yield) | 0);  /* check that clingo_solve_mode_yield is an integer */
3124   return n;
3125 }
3126 
_cffi_const_clingo_solve_result_satisfiable(unsigned long long * o)3127 static int _cffi_const_clingo_solve_result_satisfiable(unsigned long long *o)
3128 {
3129   int n = (clingo_solve_result_satisfiable) <= 0;
3130   *o = (unsigned long long)((clingo_solve_result_satisfiable) | 0);  /* check that clingo_solve_result_satisfiable is an integer */
3131   return n;
3132 }
3133 
_cffi_const_clingo_solve_result_unsatisfiable(unsigned long long * o)3134 static int _cffi_const_clingo_solve_result_unsatisfiable(unsigned long long *o)
3135 {
3136   int n = (clingo_solve_result_unsatisfiable) <= 0;
3137   *o = (unsigned long long)((clingo_solve_result_unsatisfiable) | 0);  /* check that clingo_solve_result_unsatisfiable is an integer */
3138   return n;
3139 }
3140 
_cffi_const_clingo_solve_result_exhausted(unsigned long long * o)3141 static int _cffi_const_clingo_solve_result_exhausted(unsigned long long *o)
3142 {
3143   int n = (clingo_solve_result_exhausted) <= 0;
3144   *o = (unsigned long long)((clingo_solve_result_exhausted) | 0);  /* check that clingo_solve_result_exhausted is an integer */
3145   return n;
3146 }
3147 
_cffi_const_clingo_solve_result_interrupted(unsigned long long * o)3148 static int _cffi_const_clingo_solve_result_interrupted(unsigned long long *o)
3149 {
3150   int n = (clingo_solve_result_interrupted) <= 0;
3151   *o = (unsigned long long)((clingo_solve_result_interrupted) | 0);  /* check that clingo_solve_result_interrupted is an integer */
3152   return n;
3153 }
3154 
_cffi_const_clingo_statistics_type_empty(unsigned long long * o)3155 static int _cffi_const_clingo_statistics_type_empty(unsigned long long *o)
3156 {
3157   int n = (clingo_statistics_type_empty) <= 0;
3158   *o = (unsigned long long)((clingo_statistics_type_empty) | 0);  /* check that clingo_statistics_type_empty is an integer */
3159   return n;
3160 }
3161 
_cffi_const_clingo_statistics_type_value(unsigned long long * o)3162 static int _cffi_const_clingo_statistics_type_value(unsigned long long *o)
3163 {
3164   int n = (clingo_statistics_type_value) <= 0;
3165   *o = (unsigned long long)((clingo_statistics_type_value) | 0);  /* check that clingo_statistics_type_value is an integer */
3166   return n;
3167 }
3168 
_cffi_const_clingo_statistics_type_array(unsigned long long * o)3169 static int _cffi_const_clingo_statistics_type_array(unsigned long long *o)
3170 {
3171   int n = (clingo_statistics_type_array) <= 0;
3172   *o = (unsigned long long)((clingo_statistics_type_array) | 0);  /* check that clingo_statistics_type_array is an integer */
3173   return n;
3174 }
3175 
_cffi_const_clingo_statistics_type_map(unsigned long long * o)3176 static int _cffi_const_clingo_statistics_type_map(unsigned long long *o)
3177 {
3178   int n = (clingo_statistics_type_map) <= 0;
3179   *o = (unsigned long long)((clingo_statistics_type_map) | 0);  /* check that clingo_statistics_type_map is an integer */
3180   return n;
3181 }
3182 
_cffi_const_clingo_symbol_type_infimum(unsigned long long * o)3183 static int _cffi_const_clingo_symbol_type_infimum(unsigned long long *o)
3184 {
3185   int n = (clingo_symbol_type_infimum) <= 0;
3186   *o = (unsigned long long)((clingo_symbol_type_infimum) | 0);  /* check that clingo_symbol_type_infimum is an integer */
3187   return n;
3188 }
3189 
_cffi_const_clingo_symbol_type_number(unsigned long long * o)3190 static int _cffi_const_clingo_symbol_type_number(unsigned long long *o)
3191 {
3192   int n = (clingo_symbol_type_number) <= 0;
3193   *o = (unsigned long long)((clingo_symbol_type_number) | 0);  /* check that clingo_symbol_type_number is an integer */
3194   return n;
3195 }
3196 
_cffi_const_clingo_symbol_type_string(unsigned long long * o)3197 static int _cffi_const_clingo_symbol_type_string(unsigned long long *o)
3198 {
3199   int n = (clingo_symbol_type_string) <= 0;
3200   *o = (unsigned long long)((clingo_symbol_type_string) | 0);  /* check that clingo_symbol_type_string is an integer */
3201   return n;
3202 }
3203 
_cffi_const_clingo_symbol_type_function(unsigned long long * o)3204 static int _cffi_const_clingo_symbol_type_function(unsigned long long *o)
3205 {
3206   int n = (clingo_symbol_type_function) <= 0;
3207   *o = (unsigned long long)((clingo_symbol_type_function) | 0);  /* check that clingo_symbol_type_function is an integer */
3208   return n;
3209 }
3210 
_cffi_const_clingo_symbol_type_supremum(unsigned long long * o)3211 static int _cffi_const_clingo_symbol_type_supremum(unsigned long long *o)
3212 {
3213   int n = (clingo_symbol_type_supremum) <= 0;
3214   *o = (unsigned long long)((clingo_symbol_type_supremum) | 0);  /* check that clingo_symbol_type_supremum is an integer */
3215   return n;
3216 }
3217 
_cffi_const_clingo_theory_term_type_tuple(unsigned long long * o)3218 static int _cffi_const_clingo_theory_term_type_tuple(unsigned long long *o)
3219 {
3220   int n = (clingo_theory_term_type_tuple) <= 0;
3221   *o = (unsigned long long)((clingo_theory_term_type_tuple) | 0);  /* check that clingo_theory_term_type_tuple is an integer */
3222   return n;
3223 }
3224 
_cffi_const_clingo_theory_term_type_list(unsigned long long * o)3225 static int _cffi_const_clingo_theory_term_type_list(unsigned long long *o)
3226 {
3227   int n = (clingo_theory_term_type_list) <= 0;
3228   *o = (unsigned long long)((clingo_theory_term_type_list) | 0);  /* check that clingo_theory_term_type_list is an integer */
3229   return n;
3230 }
3231 
_cffi_const_clingo_theory_term_type_set(unsigned long long * o)3232 static int _cffi_const_clingo_theory_term_type_set(unsigned long long *o)
3233 {
3234   int n = (clingo_theory_term_type_set) <= 0;
3235   *o = (unsigned long long)((clingo_theory_term_type_set) | 0);  /* check that clingo_theory_term_type_set is an integer */
3236   return n;
3237 }
3238 
_cffi_const_clingo_theory_term_type_function(unsigned long long * o)3239 static int _cffi_const_clingo_theory_term_type_function(unsigned long long *o)
3240 {
3241   int n = (clingo_theory_term_type_function) <= 0;
3242   *o = (unsigned long long)((clingo_theory_term_type_function) | 0);  /* check that clingo_theory_term_type_function is an integer */
3243   return n;
3244 }
3245 
_cffi_const_clingo_theory_term_type_number(unsigned long long * o)3246 static int _cffi_const_clingo_theory_term_type_number(unsigned long long *o)
3247 {
3248   int n = (clingo_theory_term_type_number) <= 0;
3249   *o = (unsigned long long)((clingo_theory_term_type_number) | 0);  /* check that clingo_theory_term_type_number is an integer */
3250   return n;
3251 }
3252 
_cffi_const_clingo_theory_term_type_symbol(unsigned long long * o)3253 static int _cffi_const_clingo_theory_term_type_symbol(unsigned long long *o)
3254 {
3255   int n = (clingo_theory_term_type_symbol) <= 0;
3256   *o = (unsigned long long)((clingo_theory_term_type_symbol) | 0);  /* check that clingo_theory_term_type_symbol is an integer */
3257   return n;
3258 }
3259 
_cffi_const_clingo_truth_value_free(unsigned long long * o)3260 static int _cffi_const_clingo_truth_value_free(unsigned long long *o)
3261 {
3262   int n = (clingo_truth_value_free) <= 0;
3263   *o = (unsigned long long)((clingo_truth_value_free) | 0);  /* check that clingo_truth_value_free is an integer */
3264   return n;
3265 }
3266 
_cffi_const_clingo_truth_value_true(unsigned long long * o)3267 static int _cffi_const_clingo_truth_value_true(unsigned long long *o)
3268 {
3269   int n = (clingo_truth_value_true) <= 0;
3270   *o = (unsigned long long)((clingo_truth_value_true) | 0);  /* check that clingo_truth_value_true is an integer */
3271   return n;
3272 }
3273 
_cffi_const_clingo_truth_value_false(unsigned long long * o)3274 static int _cffi_const_clingo_truth_value_false(unsigned long long *o)
3275 {
3276   int n = (clingo_truth_value_false) <= 0;
3277   *o = (unsigned long long)((clingo_truth_value_false) | 0);  /* check that clingo_truth_value_false is an integer */
3278   return n;
3279 }
3280 
_cffi_const_clingo_warning_operation_undefined(unsigned long long * o)3281 static int _cffi_const_clingo_warning_operation_undefined(unsigned long long *o)
3282 {
3283   int n = (clingo_warning_operation_undefined) <= 0;
3284   *o = (unsigned long long)((clingo_warning_operation_undefined) | 0);  /* check that clingo_warning_operation_undefined is an integer */
3285   return n;
3286 }
3287 
_cffi_const_clingo_warning_runtime_error(unsigned long long * o)3288 static int _cffi_const_clingo_warning_runtime_error(unsigned long long *o)
3289 {
3290   int n = (clingo_warning_runtime_error) <= 0;
3291   *o = (unsigned long long)((clingo_warning_runtime_error) | 0);  /* check that clingo_warning_runtime_error is an integer */
3292   return n;
3293 }
3294 
_cffi_const_clingo_warning_atom_undefined(unsigned long long * o)3295 static int _cffi_const_clingo_warning_atom_undefined(unsigned long long *o)
3296 {
3297   int n = (clingo_warning_atom_undefined) <= 0;
3298   *o = (unsigned long long)((clingo_warning_atom_undefined) | 0);  /* check that clingo_warning_atom_undefined is an integer */
3299   return n;
3300 }
3301 
_cffi_const_clingo_warning_file_included(unsigned long long * o)3302 static int _cffi_const_clingo_warning_file_included(unsigned long long *o)
3303 {
3304   int n = (clingo_warning_file_included) <= 0;
3305   *o = (unsigned long long)((clingo_warning_file_included) | 0);  /* check that clingo_warning_file_included is an integer */
3306   return n;
3307 }
3308 
_cffi_const_clingo_warning_variable_unbounded(unsigned long long * o)3309 static int _cffi_const_clingo_warning_variable_unbounded(unsigned long long *o)
3310 {
3311   int n = (clingo_warning_variable_unbounded) <= 0;
3312   *o = (unsigned long long)((clingo_warning_variable_unbounded) | 0);  /* check that clingo_warning_variable_unbounded is an integer */
3313   return n;
3314 }
3315 
_cffi_const_clingo_warning_global_variable(unsigned long long * o)3316 static int _cffi_const_clingo_warning_global_variable(unsigned long long *o)
3317 {
3318   int n = (clingo_warning_global_variable) <= 0;
3319   *o = (unsigned long long)((clingo_warning_global_variable) | 0);  /* check that clingo_warning_global_variable is an integer */
3320   return n;
3321 }
3322 
_cffi_const_clingo_warning_other(unsigned long long * o)3323 static int _cffi_const_clingo_warning_other(unsigned long long *o)
3324 {
3325   int n = (clingo_warning_other) <= 0;
3326   *o = (unsigned long long)((clingo_warning_other) | 0);  /* check that clingo_warning_other is an integer */
3327   return n;
3328 }
3329 
_cffi_const_clingo_weight_constraint_type_implication_left(unsigned long long * o)3330 static int _cffi_const_clingo_weight_constraint_type_implication_left(unsigned long long *o)
3331 {
3332   int n = (clingo_weight_constraint_type_implication_left) <= 0;
3333   *o = (unsigned long long)((clingo_weight_constraint_type_implication_left) | 0);  /* check that clingo_weight_constraint_type_implication_left is an integer */
3334   return n;
3335 }
3336 
_cffi_const_clingo_weight_constraint_type_implication_right(unsigned long long * o)3337 static int _cffi_const_clingo_weight_constraint_type_implication_right(unsigned long long *o)
3338 {
3339   int n = (clingo_weight_constraint_type_implication_right) <= 0;
3340   *o = (unsigned long long)((clingo_weight_constraint_type_implication_right) | 0);  /* check that clingo_weight_constraint_type_implication_right is an integer */
3341   return n;
3342 }
3343 
_cffi_const_clingo_weight_constraint_type_equivalence(unsigned long long * o)3344 static int _cffi_const_clingo_weight_constraint_type_equivalence(unsigned long long *o)
3345 {
3346   int n = (clingo_weight_constraint_type_equivalence) <= 0;
3347   *o = (unsigned long long)((clingo_weight_constraint_type_equivalence) | 0);  /* check that clingo_weight_constraint_type_equivalence is an integer */
3348   return n;
3349 }
3350 
3351 static struct _cffi_externpy_s _cffi_externpy__pyclingo_application_logger =
3352   { "_clingo.pyclingo_application_logger", 0, 0, 0 };
3353 
pyclingo_application_logger(int a0,char const * a1,void * a2)3354 static void pyclingo_application_logger(int a0, char const * a1, void * a2)
3355 {
3356   char a[24];
3357   char *p = a;
3358   *(int *)(p + 0) = a0;
3359   *(char const * *)(p + 8) = a1;
3360   *(void * *)(p + 16) = a2;
3361   _cffi_call_python(&_cffi_externpy__pyclingo_application_logger, p);
3362 }
3363 
3364 static struct _cffi_externpy_s _cffi_externpy__pyclingo_application_main =
3365   { "_clingo.pyclingo_application_main", (int)sizeof(_Bool), 0, 0 };
3366 
pyclingo_application_main(clingo_control_t * a0,char const * const * a1,size_t a2,void * a3)3367 static _Bool pyclingo_application_main(clingo_control_t * a0, char const * const * a1, size_t a2, void * a3)
3368 {
3369   char a[32];
3370   char *p = a;
3371   *(clingo_control_t * *)(p + 0) = a0;
3372   *(char const * const * *)(p + 8) = a1;
3373   *(size_t *)(p + 16) = a2;
3374   *(void * *)(p + 24) = a3;
3375   _cffi_call_python(&_cffi_externpy__pyclingo_application_main, p);
3376   return *(_Bool *)p;
3377 }
3378 
3379 static struct _cffi_externpy_s _cffi_externpy__pyclingo_application_message_limit =
3380   { "_clingo.pyclingo_application_message_limit", (int)sizeof(unsigned int), 0, 0 };
3381 
pyclingo_application_message_limit(void * a0)3382 static unsigned int pyclingo_application_message_limit(void * a0)
3383 {
3384   char a[8];
3385   char *p = a;
3386   *(void * *)(p + 0) = a0;
3387   _cffi_call_python(&_cffi_externpy__pyclingo_application_message_limit, p);
3388   return *(unsigned int *)p;
3389 }
3390 
3391 static struct _cffi_externpy_s _cffi_externpy__pyclingo_application_options_parse =
3392   { "_clingo.pyclingo_application_options_parse", (int)sizeof(_Bool), 0, 0 };
3393 
pyclingo_application_options_parse(char const * a0,void * a1)3394 static _Bool pyclingo_application_options_parse(char const * a0, void * a1)
3395 {
3396   char a[16];
3397   char *p = a;
3398   *(char const * *)(p + 0) = a0;
3399   *(void * *)(p + 8) = a1;
3400   _cffi_call_python(&_cffi_externpy__pyclingo_application_options_parse, p);
3401   return *(_Bool *)p;
3402 }
3403 
3404 static struct _cffi_externpy_s _cffi_externpy__pyclingo_application_print_model =
3405   { "_clingo.pyclingo_application_print_model", (int)sizeof(_Bool), 0, 0 };
3406 
pyclingo_application_print_model(clingo_model_t const * a0,_Bool (* a1)(void *),void * a2,void * a3)3407 static _Bool pyclingo_application_print_model(clingo_model_t const * a0, _Bool(* a1)(void *), void * a2, void * a3)
3408 {
3409   char a[32];
3410   char *p = a;
3411   *(clingo_model_t const * *)(p + 0) = a0;
3412   *(_Bool(* *)(void *))(p + 8) = a1;
3413   *(void * *)(p + 16) = a2;
3414   *(void * *)(p + 24) = a3;
3415   _cffi_call_python(&_cffi_externpy__pyclingo_application_print_model, p);
3416   return *(_Bool *)p;
3417 }
3418 
3419 static struct _cffi_externpy_s _cffi_externpy__pyclingo_application_program_name =
3420   { "_clingo.pyclingo_application_program_name", (int)sizeof(char const *), 0, 0 };
3421 
pyclingo_application_program_name(void * a0)3422 static char const * pyclingo_application_program_name(void * a0)
3423 {
3424   char a[8];
3425   char *p = a;
3426   *(void * *)(p + 0) = a0;
3427   _cffi_call_python(&_cffi_externpy__pyclingo_application_program_name, p);
3428   return *(char const * *)p;
3429 }
3430 
3431 static struct _cffi_externpy_s _cffi_externpy__pyclingo_application_register_options =
3432   { "_clingo.pyclingo_application_register_options", (int)sizeof(_Bool), 0, 0 };
3433 
pyclingo_application_register_options(clingo_options_t * a0,void * a1)3434 static _Bool pyclingo_application_register_options(clingo_options_t * a0, void * a1)
3435 {
3436   char a[16];
3437   char *p = a;
3438   *(clingo_options_t * *)(p + 0) = a0;
3439   *(void * *)(p + 8) = a1;
3440   _cffi_call_python(&_cffi_externpy__pyclingo_application_register_options, p);
3441   return *(_Bool *)p;
3442 }
3443 
3444 static struct _cffi_externpy_s _cffi_externpy__pyclingo_application_validate_options =
3445   { "_clingo.pyclingo_application_validate_options", (int)sizeof(_Bool), 0, 0 };
3446 
pyclingo_application_validate_options(void * a0)3447 static _Bool pyclingo_application_validate_options(void * a0)
3448 {
3449   char a[8];
3450   char *p = a;
3451   *(void * *)(p + 0) = a0;
3452   _cffi_call_python(&_cffi_externpy__pyclingo_application_validate_options, p);
3453   return *(_Bool *)p;
3454 }
3455 
3456 static struct _cffi_externpy_s _cffi_externpy__pyclingo_application_version =
3457   { "_clingo.pyclingo_application_version", (int)sizeof(char const *), 0, 0 };
3458 
pyclingo_application_version(void * a0)3459 static char const * pyclingo_application_version(void * a0)
3460 {
3461   char a[8];
3462   char *p = a;
3463   *(void * *)(p + 0) = a0;
3464   _cffi_call_python(&_cffi_externpy__pyclingo_application_version, p);
3465   return *(char const * *)p;
3466 }
3467 
3468 static struct _cffi_externpy_s _cffi_externpy__pyclingo_ast_callback =
3469   { "_clingo.pyclingo_ast_callback", (int)sizeof(_Bool), 0, 0 };
3470 
pyclingo_ast_callback(clingo_ast_t const * a0,void * a1)3471 static _Bool pyclingo_ast_callback(clingo_ast_t const * a0, void * a1)
3472 {
3473   char a[16];
3474   char *p = a;
3475   *(clingo_ast_t const * *)(p + 0) = a0;
3476   *(void * *)(p + 8) = a1;
3477   _cffi_call_python(&_cffi_externpy__pyclingo_ast_callback, p);
3478   return *(_Bool *)p;
3479 }
3480 
3481 static struct _cffi_externpy_s _cffi_externpy__pyclingo_call =
3482   { "_clingo.pyclingo_call", (int)sizeof(_Bool), 0, 0 };
3483 
pyclingo_call(void * a0,char const * a1,void * a2,size_t a3,void * a4,void * a5,void * a6)3484 static _Bool pyclingo_call(void * a0, char const * a1, void * a2, size_t a3, void * a4, void * a5, void * a6)
3485 {
3486   char a[56];
3487   char *p = a;
3488   *(void * *)(p + 0) = a0;
3489   *(char const * *)(p + 8) = a1;
3490   *(void * *)(p + 16) = a2;
3491   *(size_t *)(p + 24) = a3;
3492   *(void * *)(p + 32) = a4;
3493   *(void * *)(p + 40) = a5;
3494   *(void * *)(p + 48) = a6;
3495   _cffi_call_python(&_cffi_externpy__pyclingo_call, p);
3496   return *(_Bool *)p;
3497 }
3498 
3499 static struct _cffi_externpy_s _cffi_externpy__pyclingo_callable =
3500   { "_clingo.pyclingo_callable", (int)sizeof(_Bool), 0, 0 };
3501 
pyclingo_callable(char const * a0,_Bool * a1,void * a2)3502 static _Bool pyclingo_callable(char const * a0, _Bool * a1, void * a2)
3503 {
3504   char a[24];
3505   char *p = a;
3506   *(char const * *)(p + 0) = a0;
3507   *(_Bool * *)(p + 8) = a1;
3508   *(void * *)(p + 16) = a2;
3509   _cffi_call_python(&_cffi_externpy__pyclingo_callable, p);
3510   return *(_Bool *)p;
3511 }
3512 
3513 static struct _cffi_externpy_s _cffi_externpy__pyclingo_execute =
3514   { "_clingo.pyclingo_execute", (int)sizeof(_Bool), 0, 0 };
3515 
pyclingo_execute(void * a0,char const * a1,void * a2)3516 static _Bool pyclingo_execute(void * a0, char const * a1, void * a2)
3517 {
3518   char a[24];
3519   char *p = a;
3520   *(void * *)(p + 0) = a0;
3521   *(char const * *)(p + 8) = a1;
3522   *(void * *)(p + 16) = a2;
3523   _cffi_call_python(&_cffi_externpy__pyclingo_execute, p);
3524   return *(_Bool *)p;
3525 }
3526 
3527 static struct _cffi_externpy_s _cffi_externpy__pyclingo_ground_callback =
3528   { "_clingo.pyclingo_ground_callback", (int)sizeof(_Bool), 0, 0 };
3529 
pyclingo_ground_callback(clingo_location_t const * a0,char const * a1,uint64_t const * a2,size_t a3,void * a4,_Bool (* a5)(uint64_t const *,size_t,void *),void * a6)3530 static _Bool pyclingo_ground_callback(clingo_location_t const * a0, char const * a1, uint64_t const * a2, size_t a3, void * a4, _Bool(* a5)(uint64_t const *, size_t, void *), void * a6)
3531 {
3532   char a[56];
3533   char *p = a;
3534   *(clingo_location_t const * *)(p + 0) = a0;
3535   *(char const * *)(p + 8) = a1;
3536   *(uint64_t const * *)(p + 16) = a2;
3537   *(size_t *)(p + 24) = a3;
3538   *(void * *)(p + 32) = a4;
3539   *(_Bool(* *)(uint64_t const *, size_t, void *))(p + 40) = a5;
3540   *(void * *)(p + 48) = a6;
3541   _cffi_call_python(&_cffi_externpy__pyclingo_ground_callback, p);
3542   return *(_Bool *)p;
3543 }
3544 
3545 static struct _cffi_externpy_s _cffi_externpy__pyclingo_logger_callback =
3546   { "_clingo.pyclingo_logger_callback", 0, 0, 0 };
3547 
pyclingo_logger_callback(int a0,char const * a1,void * a2)3548 static void pyclingo_logger_callback(int a0, char const * a1, void * a2)
3549 {
3550   char a[24];
3551   char *p = a;
3552   *(int *)(p + 0) = a0;
3553   *(char const * *)(p + 8) = a1;
3554   *(void * *)(p + 16) = a2;
3555   _cffi_call_python(&_cffi_externpy__pyclingo_logger_callback, p);
3556 }
3557 
3558 static struct _cffi_externpy_s _cffi_externpy__pyclingo_main =
3559   { "_clingo.pyclingo_main", (int)sizeof(_Bool), 0, 0 };
3560 
pyclingo_main(void * a0,void * a1)3561 static _Bool pyclingo_main(void * a0, void * a1)
3562 {
3563   char a[16];
3564   char *p = a;
3565   *(void * *)(p + 0) = a0;
3566   *(void * *)(p + 8) = a1;
3567   _cffi_call_python(&_cffi_externpy__pyclingo_main, p);
3568   return *(_Bool *)p;
3569 }
3570 
3571 static struct _cffi_externpy_s _cffi_externpy__pyclingo_observer_acyc_edge =
3572   { "_clingo.pyclingo_observer_acyc_edge", (int)sizeof(_Bool), 0, 0 };
3573 
pyclingo_observer_acyc_edge(int a0,int a1,int32_t const * a2,size_t a3,void * a4)3574 static _Bool pyclingo_observer_acyc_edge(int a0, int a1, int32_t const * a2, size_t a3, void * a4)
3575 {
3576   char a[40];
3577   char *p = a;
3578   *(int *)(p + 0) = a0;
3579   *(int *)(p + 8) = a1;
3580   *(int32_t const * *)(p + 16) = a2;
3581   *(size_t *)(p + 24) = a3;
3582   *(void * *)(p + 32) = a4;
3583   _cffi_call_python(&_cffi_externpy__pyclingo_observer_acyc_edge, p);
3584   return *(_Bool *)p;
3585 }
3586 
3587 static struct _cffi_externpy_s _cffi_externpy__pyclingo_observer_assume =
3588   { "_clingo.pyclingo_observer_assume", (int)sizeof(_Bool), 0, 0 };
3589 
pyclingo_observer_assume(int32_t const * a0,size_t a1,void * a2)3590 static _Bool pyclingo_observer_assume(int32_t const * a0, size_t a1, void * a2)
3591 {
3592   char a[24];
3593   char *p = a;
3594   *(int32_t const * *)(p + 0) = a0;
3595   *(size_t *)(p + 8) = a1;
3596   *(void * *)(p + 16) = a2;
3597   _cffi_call_python(&_cffi_externpy__pyclingo_observer_assume, p);
3598   return *(_Bool *)p;
3599 }
3600 
3601 static struct _cffi_externpy_s _cffi_externpy__pyclingo_observer_begin_step =
3602   { "_clingo.pyclingo_observer_begin_step", (int)sizeof(_Bool), 0, 0 };
3603 
pyclingo_observer_begin_step(void * a0)3604 static _Bool pyclingo_observer_begin_step(void * a0)
3605 {
3606   char a[8];
3607   char *p = a;
3608   *(void * *)(p + 0) = a0;
3609   _cffi_call_python(&_cffi_externpy__pyclingo_observer_begin_step, p);
3610   return *(_Bool *)p;
3611 }
3612 
3613 static struct _cffi_externpy_s _cffi_externpy__pyclingo_observer_end_step =
3614   { "_clingo.pyclingo_observer_end_step", (int)sizeof(_Bool), 0, 0 };
3615 
pyclingo_observer_end_step(void * a0)3616 static _Bool pyclingo_observer_end_step(void * a0)
3617 {
3618   char a[8];
3619   char *p = a;
3620   *(void * *)(p + 0) = a0;
3621   _cffi_call_python(&_cffi_externpy__pyclingo_observer_end_step, p);
3622   return *(_Bool *)p;
3623 }
3624 
3625 static struct _cffi_externpy_s _cffi_externpy__pyclingo_observer_external =
3626   { "_clingo.pyclingo_observer_external", (int)sizeof(_Bool), 0, 0 };
3627 
pyclingo_observer_external(uint32_t a0,int a1,void * a2)3628 static _Bool pyclingo_observer_external(uint32_t a0, int a1, void * a2)
3629 {
3630   char a[24];
3631   char *p = a;
3632   *(uint32_t *)(p + 0) = a0;
3633   *(int *)(p + 8) = a1;
3634   *(void * *)(p + 16) = a2;
3635   _cffi_call_python(&_cffi_externpy__pyclingo_observer_external, p);
3636   return *(_Bool *)p;
3637 }
3638 
3639 static struct _cffi_externpy_s _cffi_externpy__pyclingo_observer_heuristic =
3640   { "_clingo.pyclingo_observer_heuristic", (int)sizeof(_Bool), 0, 0 };
3641 
pyclingo_observer_heuristic(uint32_t a0,int a1,int a2,unsigned int a3,int32_t const * a4,size_t a5,void * a6)3642 static _Bool pyclingo_observer_heuristic(uint32_t a0, int a1, int a2, unsigned int a3, int32_t const * a4, size_t a5, void * a6)
3643 {
3644   char a[56];
3645   char *p = a;
3646   *(uint32_t *)(p + 0) = a0;
3647   *(int *)(p + 8) = a1;
3648   *(int *)(p + 16) = a2;
3649   *(unsigned int *)(p + 24) = a3;
3650   *(int32_t const * *)(p + 32) = a4;
3651   *(size_t *)(p + 40) = a5;
3652   *(void * *)(p + 48) = a6;
3653   _cffi_call_python(&_cffi_externpy__pyclingo_observer_heuristic, p);
3654   return *(_Bool *)p;
3655 }
3656 
3657 static struct _cffi_externpy_s _cffi_externpy__pyclingo_observer_init_program =
3658   { "_clingo.pyclingo_observer_init_program", (int)sizeof(_Bool), 0, 0 };
3659 
pyclingo_observer_init_program(_Bool a0,void * a1)3660 static _Bool pyclingo_observer_init_program(_Bool a0, void * a1)
3661 {
3662   char a[16];
3663   char *p = a;
3664   *(_Bool *)(p + 0) = a0;
3665   *(void * *)(p + 8) = a1;
3666   _cffi_call_python(&_cffi_externpy__pyclingo_observer_init_program, p);
3667   return *(_Bool *)p;
3668 }
3669 
3670 static struct _cffi_externpy_s _cffi_externpy__pyclingo_observer_minimize =
3671   { "_clingo.pyclingo_observer_minimize", (int)sizeof(_Bool), 0, 0 };
3672 
pyclingo_observer_minimize(int32_t a0,clingo_weighted_literal_t const * a1,size_t a2,void * a3)3673 static _Bool pyclingo_observer_minimize(int32_t a0, clingo_weighted_literal_t const * a1, size_t a2, void * a3)
3674 {
3675   char a[32];
3676   char *p = a;
3677   *(int32_t *)(p + 0) = a0;
3678   *(clingo_weighted_literal_t const * *)(p + 8) = a1;
3679   *(size_t *)(p + 16) = a2;
3680   *(void * *)(p + 24) = a3;
3681   _cffi_call_python(&_cffi_externpy__pyclingo_observer_minimize, p);
3682   return *(_Bool *)p;
3683 }
3684 
3685 static struct _cffi_externpy_s _cffi_externpy__pyclingo_observer_output_atom =
3686   { "_clingo.pyclingo_observer_output_atom", (int)sizeof(_Bool), 0, 0 };
3687 
pyclingo_observer_output_atom(uint64_t a0,uint32_t a1,void * a2)3688 static _Bool pyclingo_observer_output_atom(uint64_t a0, uint32_t a1, void * a2)
3689 {
3690   char a[24];
3691   char *p = a;
3692   *(uint64_t *)(p + 0) = a0;
3693   *(uint32_t *)(p + 8) = a1;
3694   *(void * *)(p + 16) = a2;
3695   _cffi_call_python(&_cffi_externpy__pyclingo_observer_output_atom, p);
3696   return *(_Bool *)p;
3697 }
3698 
3699 static struct _cffi_externpy_s _cffi_externpy__pyclingo_observer_output_csp =
3700   { "_clingo.pyclingo_observer_output_csp", (int)sizeof(_Bool), 0, 0 };
3701 
pyclingo_observer_output_csp(uint64_t a0,int a1,int32_t const * a2,size_t a3,void * a4)3702 static _Bool pyclingo_observer_output_csp(uint64_t a0, int a1, int32_t const * a2, size_t a3, void * a4)
3703 {
3704   char a[40];
3705   char *p = a;
3706   *(uint64_t *)(p + 0) = a0;
3707   *(int *)(p + 8) = a1;
3708   *(int32_t const * *)(p + 16) = a2;
3709   *(size_t *)(p + 24) = a3;
3710   *(void * *)(p + 32) = a4;
3711   _cffi_call_python(&_cffi_externpy__pyclingo_observer_output_csp, p);
3712   return *(_Bool *)p;
3713 }
3714 
3715 static struct _cffi_externpy_s _cffi_externpy__pyclingo_observer_output_term =
3716   { "_clingo.pyclingo_observer_output_term", (int)sizeof(_Bool), 0, 0 };
3717 
pyclingo_observer_output_term(uint64_t a0,int32_t const * a1,size_t a2,void * a3)3718 static _Bool pyclingo_observer_output_term(uint64_t a0, int32_t const * a1, size_t a2, void * a3)
3719 {
3720   char a[32];
3721   char *p = a;
3722   *(uint64_t *)(p + 0) = a0;
3723   *(int32_t const * *)(p + 8) = a1;
3724   *(size_t *)(p + 16) = a2;
3725   *(void * *)(p + 24) = a3;
3726   _cffi_call_python(&_cffi_externpy__pyclingo_observer_output_term, p);
3727   return *(_Bool *)p;
3728 }
3729 
3730 static struct _cffi_externpy_s _cffi_externpy__pyclingo_observer_project =
3731   { "_clingo.pyclingo_observer_project", (int)sizeof(_Bool), 0, 0 };
3732 
pyclingo_observer_project(uint32_t const * a0,size_t a1,void * a2)3733 static _Bool pyclingo_observer_project(uint32_t const * a0, size_t a1, void * a2)
3734 {
3735   char a[24];
3736   char *p = a;
3737   *(uint32_t const * *)(p + 0) = a0;
3738   *(size_t *)(p + 8) = a1;
3739   *(void * *)(p + 16) = a2;
3740   _cffi_call_python(&_cffi_externpy__pyclingo_observer_project, p);
3741   return *(_Bool *)p;
3742 }
3743 
3744 static struct _cffi_externpy_s _cffi_externpy__pyclingo_observer_rule =
3745   { "_clingo.pyclingo_observer_rule", (int)sizeof(_Bool), 0, 0 };
3746 
pyclingo_observer_rule(_Bool a0,uint32_t const * a1,size_t a2,int32_t const * a3,size_t a4,void * a5)3747 static _Bool pyclingo_observer_rule(_Bool a0, uint32_t const * a1, size_t a2, int32_t const * a3, size_t a4, void * a5)
3748 {
3749   char a[48];
3750   char *p = a;
3751   *(_Bool *)(p + 0) = a0;
3752   *(uint32_t const * *)(p + 8) = a1;
3753   *(size_t *)(p + 16) = a2;
3754   *(int32_t const * *)(p + 24) = a3;
3755   *(size_t *)(p + 32) = a4;
3756   *(void * *)(p + 40) = a5;
3757   _cffi_call_python(&_cffi_externpy__pyclingo_observer_rule, p);
3758   return *(_Bool *)p;
3759 }
3760 
3761 static struct _cffi_externpy_s _cffi_externpy__pyclingo_observer_theory_atom =
3762   { "_clingo.pyclingo_observer_theory_atom", (int)sizeof(_Bool), 0, 0 };
3763 
pyclingo_observer_theory_atom(uint32_t a0,uint32_t a1,uint32_t const * a2,size_t a3,void * a4)3764 static _Bool pyclingo_observer_theory_atom(uint32_t a0, uint32_t a1, uint32_t const * a2, size_t a3, void * a4)
3765 {
3766   char a[40];
3767   char *p = a;
3768   *(uint32_t *)(p + 0) = a0;
3769   *(uint32_t *)(p + 8) = a1;
3770   *(uint32_t const * *)(p + 16) = a2;
3771   *(size_t *)(p + 24) = a3;
3772   *(void * *)(p + 32) = a4;
3773   _cffi_call_python(&_cffi_externpy__pyclingo_observer_theory_atom, p);
3774   return *(_Bool *)p;
3775 }
3776 
3777 static struct _cffi_externpy_s _cffi_externpy__pyclingo_observer_theory_atom_with_guard =
3778   { "_clingo.pyclingo_observer_theory_atom_with_guard", (int)sizeof(_Bool), 0, 0 };
3779 
pyclingo_observer_theory_atom_with_guard(uint32_t a0,uint32_t a1,uint32_t const * a2,size_t a3,uint32_t a4,uint32_t a5,void * a6)3780 static _Bool pyclingo_observer_theory_atom_with_guard(uint32_t a0, uint32_t a1, uint32_t const * a2, size_t a3, uint32_t a4, uint32_t a5, void * a6)
3781 {
3782   char a[56];
3783   char *p = a;
3784   *(uint32_t *)(p + 0) = a0;
3785   *(uint32_t *)(p + 8) = a1;
3786   *(uint32_t const * *)(p + 16) = a2;
3787   *(size_t *)(p + 24) = a3;
3788   *(uint32_t *)(p + 32) = a4;
3789   *(uint32_t *)(p + 40) = a5;
3790   *(void * *)(p + 48) = a6;
3791   _cffi_call_python(&_cffi_externpy__pyclingo_observer_theory_atom_with_guard, p);
3792   return *(_Bool *)p;
3793 }
3794 
3795 static struct _cffi_externpy_s _cffi_externpy__pyclingo_observer_theory_element =
3796   { "_clingo.pyclingo_observer_theory_element", (int)sizeof(_Bool), 0, 0 };
3797 
pyclingo_observer_theory_element(uint32_t a0,uint32_t const * a1,size_t a2,int32_t const * a3,size_t a4,void * a5)3798 static _Bool pyclingo_observer_theory_element(uint32_t a0, uint32_t const * a1, size_t a2, int32_t const * a3, size_t a4, void * a5)
3799 {
3800   char a[48];
3801   char *p = a;
3802   *(uint32_t *)(p + 0) = a0;
3803   *(uint32_t const * *)(p + 8) = a1;
3804   *(size_t *)(p + 16) = a2;
3805   *(int32_t const * *)(p + 24) = a3;
3806   *(size_t *)(p + 32) = a4;
3807   *(void * *)(p + 40) = a5;
3808   _cffi_call_python(&_cffi_externpy__pyclingo_observer_theory_element, p);
3809   return *(_Bool *)p;
3810 }
3811 
3812 static struct _cffi_externpy_s _cffi_externpy__pyclingo_observer_theory_term_compound =
3813   { "_clingo.pyclingo_observer_theory_term_compound", (int)sizeof(_Bool), 0, 0 };
3814 
pyclingo_observer_theory_term_compound(uint32_t a0,int a1,uint32_t const * a2,size_t a3,void * a4)3815 static _Bool pyclingo_observer_theory_term_compound(uint32_t a0, int a1, uint32_t const * a2, size_t a3, void * a4)
3816 {
3817   char a[40];
3818   char *p = a;
3819   *(uint32_t *)(p + 0) = a0;
3820   *(int *)(p + 8) = a1;
3821   *(uint32_t const * *)(p + 16) = a2;
3822   *(size_t *)(p + 24) = a3;
3823   *(void * *)(p + 32) = a4;
3824   _cffi_call_python(&_cffi_externpy__pyclingo_observer_theory_term_compound, p);
3825   return *(_Bool *)p;
3826 }
3827 
3828 static struct _cffi_externpy_s _cffi_externpy__pyclingo_observer_theory_term_number =
3829   { "_clingo.pyclingo_observer_theory_term_number", (int)sizeof(_Bool), 0, 0 };
3830 
pyclingo_observer_theory_term_number(uint32_t a0,int a1,void * a2)3831 static _Bool pyclingo_observer_theory_term_number(uint32_t a0, int a1, void * a2)
3832 {
3833   char a[24];
3834   char *p = a;
3835   *(uint32_t *)(p + 0) = a0;
3836   *(int *)(p + 8) = a1;
3837   *(void * *)(p + 16) = a2;
3838   _cffi_call_python(&_cffi_externpy__pyclingo_observer_theory_term_number, p);
3839   return *(_Bool *)p;
3840 }
3841 
3842 static struct _cffi_externpy_s _cffi_externpy__pyclingo_observer_theory_term_string =
3843   { "_clingo.pyclingo_observer_theory_term_string", (int)sizeof(_Bool), 0, 0 };
3844 
pyclingo_observer_theory_term_string(uint32_t a0,char const * a1,void * a2)3845 static _Bool pyclingo_observer_theory_term_string(uint32_t a0, char const * a1, void * a2)
3846 {
3847   char a[24];
3848   char *p = a;
3849   *(uint32_t *)(p + 0) = a0;
3850   *(char const * *)(p + 8) = a1;
3851   *(void * *)(p + 16) = a2;
3852   _cffi_call_python(&_cffi_externpy__pyclingo_observer_theory_term_string, p);
3853   return *(_Bool *)p;
3854 }
3855 
3856 static struct _cffi_externpy_s _cffi_externpy__pyclingo_observer_weight_rule =
3857   { "_clingo.pyclingo_observer_weight_rule", (int)sizeof(_Bool), 0, 0 };
3858 
pyclingo_observer_weight_rule(_Bool a0,uint32_t const * a1,size_t a2,int32_t a3,clingo_weighted_literal_t const * a4,size_t a5,void * a6)3859 static _Bool pyclingo_observer_weight_rule(_Bool a0, uint32_t const * a1, size_t a2, int32_t a3, clingo_weighted_literal_t const * a4, size_t a5, void * a6)
3860 {
3861   char a[56];
3862   char *p = a;
3863   *(_Bool *)(p + 0) = a0;
3864   *(uint32_t const * *)(p + 8) = a1;
3865   *(size_t *)(p + 16) = a2;
3866   *(int32_t *)(p + 24) = a3;
3867   *(clingo_weighted_literal_t const * *)(p + 32) = a4;
3868   *(size_t *)(p + 40) = a5;
3869   *(void * *)(p + 48) = a6;
3870   _cffi_call_python(&_cffi_externpy__pyclingo_observer_weight_rule, p);
3871   return *(_Bool *)p;
3872 }
3873 
3874 static struct _cffi_externpy_s _cffi_externpy__pyclingo_propagator_check =
3875   { "_clingo.pyclingo_propagator_check", (int)sizeof(_Bool), 0, 0 };
3876 
pyclingo_propagator_check(clingo_propagate_control_t * a0,void * a1)3877 static _Bool pyclingo_propagator_check(clingo_propagate_control_t * a0, void * a1)
3878 {
3879   char a[16];
3880   char *p = a;
3881   *(clingo_propagate_control_t * *)(p + 0) = a0;
3882   *(void * *)(p + 8) = a1;
3883   _cffi_call_python(&_cffi_externpy__pyclingo_propagator_check, p);
3884   return *(_Bool *)p;
3885 }
3886 
3887 static struct _cffi_externpy_s _cffi_externpy__pyclingo_propagator_decide =
3888   { "_clingo.pyclingo_propagator_decide", (int)sizeof(_Bool), 0, 0 };
3889 
pyclingo_propagator_decide(uint32_t a0,clingo_assignment_t const * a1,int32_t a2,void * a3,int32_t * a4)3890 static _Bool pyclingo_propagator_decide(uint32_t a0, clingo_assignment_t const * a1, int32_t a2, void * a3, int32_t * a4)
3891 {
3892   char a[40];
3893   char *p = a;
3894   *(uint32_t *)(p + 0) = a0;
3895   *(clingo_assignment_t const * *)(p + 8) = a1;
3896   *(int32_t *)(p + 16) = a2;
3897   *(void * *)(p + 24) = a3;
3898   *(int32_t * *)(p + 32) = a4;
3899   _cffi_call_python(&_cffi_externpy__pyclingo_propagator_decide, p);
3900   return *(_Bool *)p;
3901 }
3902 
3903 static struct _cffi_externpy_s _cffi_externpy__pyclingo_propagator_init =
3904   { "_clingo.pyclingo_propagator_init", (int)sizeof(_Bool), 0, 0 };
3905 
pyclingo_propagator_init(clingo_propagate_init_t * a0,void * a1)3906 static _Bool pyclingo_propagator_init(clingo_propagate_init_t * a0, void * a1)
3907 {
3908   char a[16];
3909   char *p = a;
3910   *(clingo_propagate_init_t * *)(p + 0) = a0;
3911   *(void * *)(p + 8) = a1;
3912   _cffi_call_python(&_cffi_externpy__pyclingo_propagator_init, p);
3913   return *(_Bool *)p;
3914 }
3915 
3916 static struct _cffi_externpy_s _cffi_externpy__pyclingo_propagator_propagate =
3917   { "_clingo.pyclingo_propagator_propagate", (int)sizeof(_Bool), 0, 0 };
3918 
pyclingo_propagator_propagate(clingo_propagate_control_t * a0,int32_t const * a1,size_t a2,void * a3)3919 static _Bool pyclingo_propagator_propagate(clingo_propagate_control_t * a0, int32_t const * a1, size_t a2, void * a3)
3920 {
3921   char a[32];
3922   char *p = a;
3923   *(clingo_propagate_control_t * *)(p + 0) = a0;
3924   *(int32_t const * *)(p + 8) = a1;
3925   *(size_t *)(p + 16) = a2;
3926   *(void * *)(p + 24) = a3;
3927   _cffi_call_python(&_cffi_externpy__pyclingo_propagator_propagate, p);
3928   return *(_Bool *)p;
3929 }
3930 
3931 static struct _cffi_externpy_s _cffi_externpy__pyclingo_propagator_undo =
3932   { "_clingo.pyclingo_propagator_undo", 0, 0, 0 };
3933 
pyclingo_propagator_undo(clingo_propagate_control_t const * a0,int32_t const * a1,size_t a2,void * a3)3934 static void pyclingo_propagator_undo(clingo_propagate_control_t const * a0, int32_t const * a1, size_t a2, void * a3)
3935 {
3936   char a[32];
3937   char *p = a;
3938   *(clingo_propagate_control_t const * *)(p + 0) = a0;
3939   *(int32_t const * *)(p + 8) = a1;
3940   *(size_t *)(p + 16) = a2;
3941   *(void * *)(p + 24) = a3;
3942   _cffi_call_python(&_cffi_externpy__pyclingo_propagator_undo, p);
3943 }
3944 
3945 static struct _cffi_externpy_s _cffi_externpy__pyclingo_script_call =
3946   { "_clingo.pyclingo_script_call", (int)sizeof(_Bool), 0, 0 };
3947 
pyclingo_script_call(clingo_location_t * a0,char const * a1,void * a2,size_t a3,void * a4,void * a5,void * a6)3948 static _Bool pyclingo_script_call(clingo_location_t * a0, char const * a1, void * a2, size_t a3, void * a4, void * a5, void * a6)
3949 {
3950   char a[56];
3951   char *p = a;
3952   *(clingo_location_t * *)(p + 0) = a0;
3953   *(char const * *)(p + 8) = a1;
3954   *(void * *)(p + 16) = a2;
3955   *(size_t *)(p + 24) = a3;
3956   *(void * *)(p + 32) = a4;
3957   *(void * *)(p + 40) = a5;
3958   *(void * *)(p + 48) = a6;
3959   _cffi_call_python(&_cffi_externpy__pyclingo_script_call, p);
3960   return *(_Bool *)p;
3961 }
3962 
3963 static struct _cffi_externpy_s _cffi_externpy__pyclingo_script_callable =
3964   { "_clingo.pyclingo_script_callable", (int)sizeof(_Bool), 0, 0 };
3965 
pyclingo_script_callable(char const * a0,_Bool * a1,void * a2)3966 static _Bool pyclingo_script_callable(char const * a0, _Bool * a1, void * a2)
3967 {
3968   char a[24];
3969   char *p = a;
3970   *(char const * *)(p + 0) = a0;
3971   *(_Bool * *)(p + 8) = a1;
3972   *(void * *)(p + 16) = a2;
3973   _cffi_call_python(&_cffi_externpy__pyclingo_script_callable, p);
3974   return *(_Bool *)p;
3975 }
3976 
3977 static struct _cffi_externpy_s _cffi_externpy__pyclingo_script_execute =
3978   { "_clingo.pyclingo_script_execute", (int)sizeof(_Bool), 0, 0 };
3979 
pyclingo_script_execute(clingo_location_t * a0,char const * a1,void * a2)3980 static _Bool pyclingo_script_execute(clingo_location_t * a0, char const * a1, void * a2)
3981 {
3982   char a[24];
3983   char *p = a;
3984   *(clingo_location_t * *)(p + 0) = a0;
3985   *(char const * *)(p + 8) = a1;
3986   *(void * *)(p + 16) = a2;
3987   _cffi_call_python(&_cffi_externpy__pyclingo_script_execute, p);
3988   return *(_Bool *)p;
3989 }
3990 
3991 static struct _cffi_externpy_s _cffi_externpy__pyclingo_script_main =
3992   { "_clingo.pyclingo_script_main", (int)sizeof(_Bool), 0, 0 };
3993 
pyclingo_script_main(clingo_control_t * a0,void * a1)3994 static _Bool pyclingo_script_main(clingo_control_t * a0, void * a1)
3995 {
3996   char a[16];
3997   char *p = a;
3998   *(clingo_control_t * *)(p + 0) = a0;
3999   *(void * *)(p + 8) = a1;
4000   _cffi_call_python(&_cffi_externpy__pyclingo_script_main, p);
4001   return *(_Bool *)p;
4002 }
4003 
4004 static struct _cffi_externpy_s _cffi_externpy__pyclingo_solve_event_callback =
4005   { "_clingo.pyclingo_solve_event_callback", (int)sizeof(_Bool), 0, 0 };
4006 
pyclingo_solve_event_callback(unsigned int a0,void * a1,void * a2,_Bool * a3)4007 static _Bool pyclingo_solve_event_callback(unsigned int a0, void * a1, void * a2, _Bool * a3)
4008 {
4009   char a[32];
4010   char *p = a;
4011   *(unsigned int *)(p + 0) = a0;
4012   *(void * *)(p + 8) = a1;
4013   *(void * *)(p + 16) = a2;
4014   *(_Bool * *)(p + 24) = a3;
4015   _cffi_call_python(&_cffi_externpy__pyclingo_solve_event_callback, p);
4016   return *(_Bool *)p;
4017 }
4018 
_cffi_d_clingo_add_string(char const * x0,char const ** x1)4019 static _Bool _cffi_d_clingo_add_string(char const * x0, char const * * x1)
4020 {
4021   return clingo_add_string(x0, x1);
4022 }
4023 #ifndef PYPY_VERSION
4024 static PyObject *
_cffi_f_clingo_add_string(PyObject * self,PyObject * args)4025 _cffi_f_clingo_add_string(PyObject *self, PyObject *args)
4026 {
4027   char const * x0;
4028   char const * * x1;
4029   Py_ssize_t datasize;
4030   struct _cffi_freeme_s *large_args_free = NULL;
4031   _Bool result;
4032   PyObject *pyresult;
4033   PyObject *arg0;
4034   PyObject *arg1;
4035 
4036   if (!PyArg_UnpackTuple(args, "clingo_add_string", 2, 2, &arg0, &arg1))
4037     return NULL;
4038 
4039   datasize = _cffi_prepare_pointer_call_argument(
4040       _cffi_type(39), arg0, (char **)&x0);
4041   if (datasize != 0) {
4042     x0 = ((size_t)datasize) <= 640 ? (char const *)alloca((size_t)datasize) : NULL;
4043     if (_cffi_convert_array_argument(_cffi_type(39), arg0, (char **)&x0,
4044             datasize, &large_args_free) < 0)
4045       return NULL;
4046   }
4047 
4048   datasize = _cffi_prepare_pointer_call_argument(
4049       _cffi_type(58), arg1, (char **)&x1);
4050   if (datasize != 0) {
4051     x1 = ((size_t)datasize) <= 640 ? (char const * *)alloca((size_t)datasize) : NULL;
4052     if (_cffi_convert_array_argument(_cffi_type(58), arg1, (char **)&x1,
4053             datasize, &large_args_free) < 0)
4054       return NULL;
4055   }
4056 
4057   Py_BEGIN_ALLOW_THREADS
4058   _cffi_restore_errno();
4059   { result = clingo_add_string(x0, x1); }
4060   _cffi_save_errno();
4061   Py_END_ALLOW_THREADS
4062 
4063   (void)self; /* unused */
4064   pyresult = _cffi_from_c__Bool(result);
4065   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
4066   return pyresult;
4067 }
4068 #else
4069 #  define _cffi_f_clingo_add_string _cffi_d_clingo_add_string
4070 #endif
4071 
_cffi_d_clingo_assignment_at(clingo_assignment_t const * x0,size_t x1,int32_t * x2)4072 static _Bool _cffi_d_clingo_assignment_at(clingo_assignment_t const * x0, size_t x1, int32_t * x2)
4073 {
4074   return clingo_assignment_at(x0, x1, x2);
4075 }
4076 #ifndef PYPY_VERSION
4077 static PyObject *
_cffi_f_clingo_assignment_at(PyObject * self,PyObject * args)4078 _cffi_f_clingo_assignment_at(PyObject *self, PyObject *args)
4079 {
4080   clingo_assignment_t const * x0;
4081   size_t x1;
4082   int32_t * x2;
4083   Py_ssize_t datasize;
4084   struct _cffi_freeme_s *large_args_free = NULL;
4085   _Bool result;
4086   PyObject *pyresult;
4087   PyObject *arg0;
4088   PyObject *arg1;
4089   PyObject *arg2;
4090 
4091   if (!PyArg_UnpackTuple(args, "clingo_assignment_at", 3, 3, &arg0, &arg1, &arg2))
4092     return NULL;
4093 
4094   datasize = _cffi_prepare_pointer_call_argument(
4095       _cffi_type(94), arg0, (char **)&x0);
4096   if (datasize != 0) {
4097     x0 = ((size_t)datasize) <= 640 ? (clingo_assignment_t const *)alloca((size_t)datasize) : NULL;
4098     if (_cffi_convert_array_argument(_cffi_type(94), arg0, (char **)&x0,
4099             datasize, &large_args_free) < 0)
4100       return NULL;
4101   }
4102 
4103   x1 = _cffi_to_c_int(arg1, size_t);
4104   if (x1 == (size_t)-1 && PyErr_Occurred())
4105     return NULL;
4106 
4107   datasize = _cffi_prepare_pointer_call_argument(
4108       _cffi_type(118), arg2, (char **)&x2);
4109   if (datasize != 0) {
4110     x2 = ((size_t)datasize) <= 640 ? (int32_t *)alloca((size_t)datasize) : NULL;
4111     if (_cffi_convert_array_argument(_cffi_type(118), arg2, (char **)&x2,
4112             datasize, &large_args_free) < 0)
4113       return NULL;
4114   }
4115 
4116   Py_BEGIN_ALLOW_THREADS
4117   _cffi_restore_errno();
4118   { result = clingo_assignment_at(x0, x1, x2); }
4119   _cffi_save_errno();
4120   Py_END_ALLOW_THREADS
4121 
4122   (void)self; /* unused */
4123   pyresult = _cffi_from_c__Bool(result);
4124   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
4125   return pyresult;
4126 }
4127 #else
4128 #  define _cffi_f_clingo_assignment_at _cffi_d_clingo_assignment_at
4129 #endif
4130 
_cffi_d_clingo_assignment_decision(clingo_assignment_t const * x0,uint32_t x1,int32_t * x2)4131 static _Bool _cffi_d_clingo_assignment_decision(clingo_assignment_t const * x0, uint32_t x1, int32_t * x2)
4132 {
4133   return clingo_assignment_decision(x0, x1, x2);
4134 }
4135 #ifndef PYPY_VERSION
4136 static PyObject *
_cffi_f_clingo_assignment_decision(PyObject * self,PyObject * args)4137 _cffi_f_clingo_assignment_decision(PyObject *self, PyObject *args)
4138 {
4139   clingo_assignment_t const * x0;
4140   uint32_t x1;
4141   int32_t * x2;
4142   Py_ssize_t datasize;
4143   struct _cffi_freeme_s *large_args_free = NULL;
4144   _Bool result;
4145   PyObject *pyresult;
4146   PyObject *arg0;
4147   PyObject *arg1;
4148   PyObject *arg2;
4149 
4150   if (!PyArg_UnpackTuple(args, "clingo_assignment_decision", 3, 3, &arg0, &arg1, &arg2))
4151     return NULL;
4152 
4153   datasize = _cffi_prepare_pointer_call_argument(
4154       _cffi_type(94), arg0, (char **)&x0);
4155   if (datasize != 0) {
4156     x0 = ((size_t)datasize) <= 640 ? (clingo_assignment_t const *)alloca((size_t)datasize) : NULL;
4157     if (_cffi_convert_array_argument(_cffi_type(94), arg0, (char **)&x0,
4158             datasize, &large_args_free) < 0)
4159       return NULL;
4160   }
4161 
4162   x1 = _cffi_to_c_int(arg1, uint32_t);
4163   if (x1 == (uint32_t)-1 && PyErr_Occurred())
4164     return NULL;
4165 
4166   datasize = _cffi_prepare_pointer_call_argument(
4167       _cffi_type(118), arg2, (char **)&x2);
4168   if (datasize != 0) {
4169     x2 = ((size_t)datasize) <= 640 ? (int32_t *)alloca((size_t)datasize) : NULL;
4170     if (_cffi_convert_array_argument(_cffi_type(118), arg2, (char **)&x2,
4171             datasize, &large_args_free) < 0)
4172       return NULL;
4173   }
4174 
4175   Py_BEGIN_ALLOW_THREADS
4176   _cffi_restore_errno();
4177   { result = clingo_assignment_decision(x0, x1, x2); }
4178   _cffi_save_errno();
4179   Py_END_ALLOW_THREADS
4180 
4181   (void)self; /* unused */
4182   pyresult = _cffi_from_c__Bool(result);
4183   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
4184   return pyresult;
4185 }
4186 #else
4187 #  define _cffi_f_clingo_assignment_decision _cffi_d_clingo_assignment_decision
4188 #endif
4189 
_cffi_d_clingo_assignment_decision_level(clingo_assignment_t const * x0)4190 static uint32_t _cffi_d_clingo_assignment_decision_level(clingo_assignment_t const * x0)
4191 {
4192   return clingo_assignment_decision_level(x0);
4193 }
4194 #ifndef PYPY_VERSION
4195 static PyObject *
_cffi_f_clingo_assignment_decision_level(PyObject * self,PyObject * arg0)4196 _cffi_f_clingo_assignment_decision_level(PyObject *self, PyObject *arg0)
4197 {
4198   clingo_assignment_t const * x0;
4199   Py_ssize_t datasize;
4200   struct _cffi_freeme_s *large_args_free = NULL;
4201   uint32_t result;
4202   PyObject *pyresult;
4203 
4204   datasize = _cffi_prepare_pointer_call_argument(
4205       _cffi_type(94), arg0, (char **)&x0);
4206   if (datasize != 0) {
4207     x0 = ((size_t)datasize) <= 640 ? (clingo_assignment_t const *)alloca((size_t)datasize) : NULL;
4208     if (_cffi_convert_array_argument(_cffi_type(94), arg0, (char **)&x0,
4209             datasize, &large_args_free) < 0)
4210       return NULL;
4211   }
4212 
4213   Py_BEGIN_ALLOW_THREADS
4214   _cffi_restore_errno();
4215   { result = clingo_assignment_decision_level(x0); }
4216   _cffi_save_errno();
4217   Py_END_ALLOW_THREADS
4218 
4219   (void)self; /* unused */
4220   pyresult = _cffi_from_c_int(result, uint32_t);
4221   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
4222   return pyresult;
4223 }
4224 #else
4225 #  define _cffi_f_clingo_assignment_decision_level _cffi_d_clingo_assignment_decision_level
4226 #endif
4227 
_cffi_d_clingo_assignment_has_conflict(clingo_assignment_t const * x0)4228 static _Bool _cffi_d_clingo_assignment_has_conflict(clingo_assignment_t const * x0)
4229 {
4230   return clingo_assignment_has_conflict(x0);
4231 }
4232 #ifndef PYPY_VERSION
4233 static PyObject *
_cffi_f_clingo_assignment_has_conflict(PyObject * self,PyObject * arg0)4234 _cffi_f_clingo_assignment_has_conflict(PyObject *self, PyObject *arg0)
4235 {
4236   clingo_assignment_t const * x0;
4237   Py_ssize_t datasize;
4238   struct _cffi_freeme_s *large_args_free = NULL;
4239   _Bool result;
4240   PyObject *pyresult;
4241 
4242   datasize = _cffi_prepare_pointer_call_argument(
4243       _cffi_type(94), arg0, (char **)&x0);
4244   if (datasize != 0) {
4245     x0 = ((size_t)datasize) <= 640 ? (clingo_assignment_t const *)alloca((size_t)datasize) : NULL;
4246     if (_cffi_convert_array_argument(_cffi_type(94), arg0, (char **)&x0,
4247             datasize, &large_args_free) < 0)
4248       return NULL;
4249   }
4250 
4251   Py_BEGIN_ALLOW_THREADS
4252   _cffi_restore_errno();
4253   { result = clingo_assignment_has_conflict(x0); }
4254   _cffi_save_errno();
4255   Py_END_ALLOW_THREADS
4256 
4257   (void)self; /* unused */
4258   pyresult = _cffi_from_c__Bool(result);
4259   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
4260   return pyresult;
4261 }
4262 #else
4263 #  define _cffi_f_clingo_assignment_has_conflict _cffi_d_clingo_assignment_has_conflict
4264 #endif
4265 
_cffi_d_clingo_assignment_has_literal(clingo_assignment_t const * x0,int32_t x1)4266 static _Bool _cffi_d_clingo_assignment_has_literal(clingo_assignment_t const * x0, int32_t x1)
4267 {
4268   return clingo_assignment_has_literal(x0, x1);
4269 }
4270 #ifndef PYPY_VERSION
4271 static PyObject *
_cffi_f_clingo_assignment_has_literal(PyObject * self,PyObject * args)4272 _cffi_f_clingo_assignment_has_literal(PyObject *self, PyObject *args)
4273 {
4274   clingo_assignment_t const * x0;
4275   int32_t x1;
4276   Py_ssize_t datasize;
4277   struct _cffi_freeme_s *large_args_free = NULL;
4278   _Bool result;
4279   PyObject *pyresult;
4280   PyObject *arg0;
4281   PyObject *arg1;
4282 
4283   if (!PyArg_UnpackTuple(args, "clingo_assignment_has_literal", 2, 2, &arg0, &arg1))
4284     return NULL;
4285 
4286   datasize = _cffi_prepare_pointer_call_argument(
4287       _cffi_type(94), arg0, (char **)&x0);
4288   if (datasize != 0) {
4289     x0 = ((size_t)datasize) <= 640 ? (clingo_assignment_t const *)alloca((size_t)datasize) : NULL;
4290     if (_cffi_convert_array_argument(_cffi_type(94), arg0, (char **)&x0,
4291             datasize, &large_args_free) < 0)
4292       return NULL;
4293   }
4294 
4295   x1 = _cffi_to_c_int(arg1, int32_t);
4296   if (x1 == (int32_t)-1 && PyErr_Occurred())
4297     return NULL;
4298 
4299   Py_BEGIN_ALLOW_THREADS
4300   _cffi_restore_errno();
4301   { result = clingo_assignment_has_literal(x0, x1); }
4302   _cffi_save_errno();
4303   Py_END_ALLOW_THREADS
4304 
4305   (void)self; /* unused */
4306   pyresult = _cffi_from_c__Bool(result);
4307   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
4308   return pyresult;
4309 }
4310 #else
4311 #  define _cffi_f_clingo_assignment_has_literal _cffi_d_clingo_assignment_has_literal
4312 #endif
4313 
_cffi_d_clingo_assignment_is_false(clingo_assignment_t const * x0,int32_t x1,_Bool * x2)4314 static _Bool _cffi_d_clingo_assignment_is_false(clingo_assignment_t const * x0, int32_t x1, _Bool * x2)
4315 {
4316   return clingo_assignment_is_false(x0, x1, x2);
4317 }
4318 #ifndef PYPY_VERSION
4319 static PyObject *
_cffi_f_clingo_assignment_is_false(PyObject * self,PyObject * args)4320 _cffi_f_clingo_assignment_is_false(PyObject *self, PyObject *args)
4321 {
4322   clingo_assignment_t const * x0;
4323   int32_t x1;
4324   _Bool * x2;
4325   Py_ssize_t datasize;
4326   struct _cffi_freeme_s *large_args_free = NULL;
4327   _Bool result;
4328   PyObject *pyresult;
4329   PyObject *arg0;
4330   PyObject *arg1;
4331   PyObject *arg2;
4332 
4333   if (!PyArg_UnpackTuple(args, "clingo_assignment_is_false", 3, 3, &arg0, &arg1, &arg2))
4334     return NULL;
4335 
4336   datasize = _cffi_prepare_pointer_call_argument(
4337       _cffi_type(94), arg0, (char **)&x0);
4338   if (datasize != 0) {
4339     x0 = ((size_t)datasize) <= 640 ? (clingo_assignment_t const *)alloca((size_t)datasize) : NULL;
4340     if (_cffi_convert_array_argument(_cffi_type(94), arg0, (char **)&x0,
4341             datasize, &large_args_free) < 0)
4342       return NULL;
4343   }
4344 
4345   x1 = _cffi_to_c_int(arg1, int32_t);
4346   if (x1 == (int32_t)-1 && PyErr_Occurred())
4347     return NULL;
4348 
4349   datasize = _cffi_prepare_pointer_call_argument(
4350       _cffi_type(40), arg2, (char **)&x2);
4351   if (datasize != 0) {
4352     x2 = ((size_t)datasize) <= 640 ? (_Bool *)alloca((size_t)datasize) : NULL;
4353     if (_cffi_convert_array_argument(_cffi_type(40), arg2, (char **)&x2,
4354             datasize, &large_args_free) < 0)
4355       return NULL;
4356   }
4357 
4358   Py_BEGIN_ALLOW_THREADS
4359   _cffi_restore_errno();
4360   { result = clingo_assignment_is_false(x0, x1, x2); }
4361   _cffi_save_errno();
4362   Py_END_ALLOW_THREADS
4363 
4364   (void)self; /* unused */
4365   pyresult = _cffi_from_c__Bool(result);
4366   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
4367   return pyresult;
4368 }
4369 #else
4370 #  define _cffi_f_clingo_assignment_is_false _cffi_d_clingo_assignment_is_false
4371 #endif
4372 
_cffi_d_clingo_assignment_is_fixed(clingo_assignment_t const * x0,int32_t x1,_Bool * x2)4373 static _Bool _cffi_d_clingo_assignment_is_fixed(clingo_assignment_t const * x0, int32_t x1, _Bool * x2)
4374 {
4375   return clingo_assignment_is_fixed(x0, x1, x2);
4376 }
4377 #ifndef PYPY_VERSION
4378 static PyObject *
_cffi_f_clingo_assignment_is_fixed(PyObject * self,PyObject * args)4379 _cffi_f_clingo_assignment_is_fixed(PyObject *self, PyObject *args)
4380 {
4381   clingo_assignment_t const * x0;
4382   int32_t x1;
4383   _Bool * x2;
4384   Py_ssize_t datasize;
4385   struct _cffi_freeme_s *large_args_free = NULL;
4386   _Bool result;
4387   PyObject *pyresult;
4388   PyObject *arg0;
4389   PyObject *arg1;
4390   PyObject *arg2;
4391 
4392   if (!PyArg_UnpackTuple(args, "clingo_assignment_is_fixed", 3, 3, &arg0, &arg1, &arg2))
4393     return NULL;
4394 
4395   datasize = _cffi_prepare_pointer_call_argument(
4396       _cffi_type(94), arg0, (char **)&x0);
4397   if (datasize != 0) {
4398     x0 = ((size_t)datasize) <= 640 ? (clingo_assignment_t const *)alloca((size_t)datasize) : NULL;
4399     if (_cffi_convert_array_argument(_cffi_type(94), arg0, (char **)&x0,
4400             datasize, &large_args_free) < 0)
4401       return NULL;
4402   }
4403 
4404   x1 = _cffi_to_c_int(arg1, int32_t);
4405   if (x1 == (int32_t)-1 && PyErr_Occurred())
4406     return NULL;
4407 
4408   datasize = _cffi_prepare_pointer_call_argument(
4409       _cffi_type(40), arg2, (char **)&x2);
4410   if (datasize != 0) {
4411     x2 = ((size_t)datasize) <= 640 ? (_Bool *)alloca((size_t)datasize) : NULL;
4412     if (_cffi_convert_array_argument(_cffi_type(40), arg2, (char **)&x2,
4413             datasize, &large_args_free) < 0)
4414       return NULL;
4415   }
4416 
4417   Py_BEGIN_ALLOW_THREADS
4418   _cffi_restore_errno();
4419   { result = clingo_assignment_is_fixed(x0, x1, x2); }
4420   _cffi_save_errno();
4421   Py_END_ALLOW_THREADS
4422 
4423   (void)self; /* unused */
4424   pyresult = _cffi_from_c__Bool(result);
4425   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
4426   return pyresult;
4427 }
4428 #else
4429 #  define _cffi_f_clingo_assignment_is_fixed _cffi_d_clingo_assignment_is_fixed
4430 #endif
4431 
_cffi_d_clingo_assignment_is_total(clingo_assignment_t const * x0)4432 static _Bool _cffi_d_clingo_assignment_is_total(clingo_assignment_t const * x0)
4433 {
4434   return clingo_assignment_is_total(x0);
4435 }
4436 #ifndef PYPY_VERSION
4437 static PyObject *
_cffi_f_clingo_assignment_is_total(PyObject * self,PyObject * arg0)4438 _cffi_f_clingo_assignment_is_total(PyObject *self, PyObject *arg0)
4439 {
4440   clingo_assignment_t const * x0;
4441   Py_ssize_t datasize;
4442   struct _cffi_freeme_s *large_args_free = NULL;
4443   _Bool result;
4444   PyObject *pyresult;
4445 
4446   datasize = _cffi_prepare_pointer_call_argument(
4447       _cffi_type(94), arg0, (char **)&x0);
4448   if (datasize != 0) {
4449     x0 = ((size_t)datasize) <= 640 ? (clingo_assignment_t const *)alloca((size_t)datasize) : NULL;
4450     if (_cffi_convert_array_argument(_cffi_type(94), arg0, (char **)&x0,
4451             datasize, &large_args_free) < 0)
4452       return NULL;
4453   }
4454 
4455   Py_BEGIN_ALLOW_THREADS
4456   _cffi_restore_errno();
4457   { result = clingo_assignment_is_total(x0); }
4458   _cffi_save_errno();
4459   Py_END_ALLOW_THREADS
4460 
4461   (void)self; /* unused */
4462   pyresult = _cffi_from_c__Bool(result);
4463   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
4464   return pyresult;
4465 }
4466 #else
4467 #  define _cffi_f_clingo_assignment_is_total _cffi_d_clingo_assignment_is_total
4468 #endif
4469 
_cffi_d_clingo_assignment_is_true(clingo_assignment_t const * x0,int32_t x1,_Bool * x2)4470 static _Bool _cffi_d_clingo_assignment_is_true(clingo_assignment_t const * x0, int32_t x1, _Bool * x2)
4471 {
4472   return clingo_assignment_is_true(x0, x1, x2);
4473 }
4474 #ifndef PYPY_VERSION
4475 static PyObject *
_cffi_f_clingo_assignment_is_true(PyObject * self,PyObject * args)4476 _cffi_f_clingo_assignment_is_true(PyObject *self, PyObject *args)
4477 {
4478   clingo_assignment_t const * x0;
4479   int32_t x1;
4480   _Bool * x2;
4481   Py_ssize_t datasize;
4482   struct _cffi_freeme_s *large_args_free = NULL;
4483   _Bool result;
4484   PyObject *pyresult;
4485   PyObject *arg0;
4486   PyObject *arg1;
4487   PyObject *arg2;
4488 
4489   if (!PyArg_UnpackTuple(args, "clingo_assignment_is_true", 3, 3, &arg0, &arg1, &arg2))
4490     return NULL;
4491 
4492   datasize = _cffi_prepare_pointer_call_argument(
4493       _cffi_type(94), arg0, (char **)&x0);
4494   if (datasize != 0) {
4495     x0 = ((size_t)datasize) <= 640 ? (clingo_assignment_t const *)alloca((size_t)datasize) : NULL;
4496     if (_cffi_convert_array_argument(_cffi_type(94), arg0, (char **)&x0,
4497             datasize, &large_args_free) < 0)
4498       return NULL;
4499   }
4500 
4501   x1 = _cffi_to_c_int(arg1, int32_t);
4502   if (x1 == (int32_t)-1 && PyErr_Occurred())
4503     return NULL;
4504 
4505   datasize = _cffi_prepare_pointer_call_argument(
4506       _cffi_type(40), arg2, (char **)&x2);
4507   if (datasize != 0) {
4508     x2 = ((size_t)datasize) <= 640 ? (_Bool *)alloca((size_t)datasize) : NULL;
4509     if (_cffi_convert_array_argument(_cffi_type(40), arg2, (char **)&x2,
4510             datasize, &large_args_free) < 0)
4511       return NULL;
4512   }
4513 
4514   Py_BEGIN_ALLOW_THREADS
4515   _cffi_restore_errno();
4516   { result = clingo_assignment_is_true(x0, x1, x2); }
4517   _cffi_save_errno();
4518   Py_END_ALLOW_THREADS
4519 
4520   (void)self; /* unused */
4521   pyresult = _cffi_from_c__Bool(result);
4522   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
4523   return pyresult;
4524 }
4525 #else
4526 #  define _cffi_f_clingo_assignment_is_true _cffi_d_clingo_assignment_is_true
4527 #endif
4528 
_cffi_d_clingo_assignment_level(clingo_assignment_t const * x0,int32_t x1,uint32_t * x2)4529 static _Bool _cffi_d_clingo_assignment_level(clingo_assignment_t const * x0, int32_t x1, uint32_t * x2)
4530 {
4531   return clingo_assignment_level(x0, x1, x2);
4532 }
4533 #ifndef PYPY_VERSION
4534 static PyObject *
_cffi_f_clingo_assignment_level(PyObject * self,PyObject * args)4535 _cffi_f_clingo_assignment_level(PyObject *self, PyObject *args)
4536 {
4537   clingo_assignment_t const * x0;
4538   int32_t x1;
4539   uint32_t * x2;
4540   Py_ssize_t datasize;
4541   struct _cffi_freeme_s *large_args_free = NULL;
4542   _Bool result;
4543   PyObject *pyresult;
4544   PyObject *arg0;
4545   PyObject *arg1;
4546   PyObject *arg2;
4547 
4548   if (!PyArg_UnpackTuple(args, "clingo_assignment_level", 3, 3, &arg0, &arg1, &arg2))
4549     return NULL;
4550 
4551   datasize = _cffi_prepare_pointer_call_argument(
4552       _cffi_type(94), arg0, (char **)&x0);
4553   if (datasize != 0) {
4554     x0 = ((size_t)datasize) <= 640 ? (clingo_assignment_t const *)alloca((size_t)datasize) : NULL;
4555     if (_cffi_convert_array_argument(_cffi_type(94), arg0, (char **)&x0,
4556             datasize, &large_args_free) < 0)
4557       return NULL;
4558   }
4559 
4560   x1 = _cffi_to_c_int(arg1, int32_t);
4561   if (x1 == (int32_t)-1 && PyErr_Occurred())
4562     return NULL;
4563 
4564   datasize = _cffi_prepare_pointer_call_argument(
4565       _cffi_type(113), arg2, (char **)&x2);
4566   if (datasize != 0) {
4567     x2 = ((size_t)datasize) <= 640 ? (uint32_t *)alloca((size_t)datasize) : NULL;
4568     if (_cffi_convert_array_argument(_cffi_type(113), arg2, (char **)&x2,
4569             datasize, &large_args_free) < 0)
4570       return NULL;
4571   }
4572 
4573   Py_BEGIN_ALLOW_THREADS
4574   _cffi_restore_errno();
4575   { result = clingo_assignment_level(x0, x1, x2); }
4576   _cffi_save_errno();
4577   Py_END_ALLOW_THREADS
4578 
4579   (void)self; /* unused */
4580   pyresult = _cffi_from_c__Bool(result);
4581   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
4582   return pyresult;
4583 }
4584 #else
4585 #  define _cffi_f_clingo_assignment_level _cffi_d_clingo_assignment_level
4586 #endif
4587 
_cffi_d_clingo_assignment_root_level(clingo_assignment_t const * x0)4588 static uint32_t _cffi_d_clingo_assignment_root_level(clingo_assignment_t const * x0)
4589 {
4590   return clingo_assignment_root_level(x0);
4591 }
4592 #ifndef PYPY_VERSION
4593 static PyObject *
_cffi_f_clingo_assignment_root_level(PyObject * self,PyObject * arg0)4594 _cffi_f_clingo_assignment_root_level(PyObject *self, PyObject *arg0)
4595 {
4596   clingo_assignment_t const * x0;
4597   Py_ssize_t datasize;
4598   struct _cffi_freeme_s *large_args_free = NULL;
4599   uint32_t result;
4600   PyObject *pyresult;
4601 
4602   datasize = _cffi_prepare_pointer_call_argument(
4603       _cffi_type(94), arg0, (char **)&x0);
4604   if (datasize != 0) {
4605     x0 = ((size_t)datasize) <= 640 ? (clingo_assignment_t const *)alloca((size_t)datasize) : NULL;
4606     if (_cffi_convert_array_argument(_cffi_type(94), arg0, (char **)&x0,
4607             datasize, &large_args_free) < 0)
4608       return NULL;
4609   }
4610 
4611   Py_BEGIN_ALLOW_THREADS
4612   _cffi_restore_errno();
4613   { result = clingo_assignment_root_level(x0); }
4614   _cffi_save_errno();
4615   Py_END_ALLOW_THREADS
4616 
4617   (void)self; /* unused */
4618   pyresult = _cffi_from_c_int(result, uint32_t);
4619   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
4620   return pyresult;
4621 }
4622 #else
4623 #  define _cffi_f_clingo_assignment_root_level _cffi_d_clingo_assignment_root_level
4624 #endif
4625 
_cffi_d_clingo_assignment_size(clingo_assignment_t const * x0)4626 static size_t _cffi_d_clingo_assignment_size(clingo_assignment_t const * x0)
4627 {
4628   return clingo_assignment_size(x0);
4629 }
4630 #ifndef PYPY_VERSION
4631 static PyObject *
_cffi_f_clingo_assignment_size(PyObject * self,PyObject * arg0)4632 _cffi_f_clingo_assignment_size(PyObject *self, PyObject *arg0)
4633 {
4634   clingo_assignment_t const * x0;
4635   Py_ssize_t datasize;
4636   struct _cffi_freeme_s *large_args_free = NULL;
4637   size_t result;
4638   PyObject *pyresult;
4639 
4640   datasize = _cffi_prepare_pointer_call_argument(
4641       _cffi_type(94), arg0, (char **)&x0);
4642   if (datasize != 0) {
4643     x0 = ((size_t)datasize) <= 640 ? (clingo_assignment_t const *)alloca((size_t)datasize) : NULL;
4644     if (_cffi_convert_array_argument(_cffi_type(94), arg0, (char **)&x0,
4645             datasize, &large_args_free) < 0)
4646       return NULL;
4647   }
4648 
4649   Py_BEGIN_ALLOW_THREADS
4650   _cffi_restore_errno();
4651   { result = clingo_assignment_size(x0); }
4652   _cffi_save_errno();
4653   Py_END_ALLOW_THREADS
4654 
4655   (void)self; /* unused */
4656   pyresult = _cffi_from_c_int(result, size_t);
4657   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
4658   return pyresult;
4659 }
4660 #else
4661 #  define _cffi_f_clingo_assignment_size _cffi_d_clingo_assignment_size
4662 #endif
4663 
_cffi_d_clingo_assignment_trail_at(clingo_assignment_t const * x0,uint32_t x1,int32_t * x2)4664 static _Bool _cffi_d_clingo_assignment_trail_at(clingo_assignment_t const * x0, uint32_t x1, int32_t * x2)
4665 {
4666   return clingo_assignment_trail_at(x0, x1, x2);
4667 }
4668 #ifndef PYPY_VERSION
4669 static PyObject *
_cffi_f_clingo_assignment_trail_at(PyObject * self,PyObject * args)4670 _cffi_f_clingo_assignment_trail_at(PyObject *self, PyObject *args)
4671 {
4672   clingo_assignment_t const * x0;
4673   uint32_t x1;
4674   int32_t * x2;
4675   Py_ssize_t datasize;
4676   struct _cffi_freeme_s *large_args_free = NULL;
4677   _Bool result;
4678   PyObject *pyresult;
4679   PyObject *arg0;
4680   PyObject *arg1;
4681   PyObject *arg2;
4682 
4683   if (!PyArg_UnpackTuple(args, "clingo_assignment_trail_at", 3, 3, &arg0, &arg1, &arg2))
4684     return NULL;
4685 
4686   datasize = _cffi_prepare_pointer_call_argument(
4687       _cffi_type(94), arg0, (char **)&x0);
4688   if (datasize != 0) {
4689     x0 = ((size_t)datasize) <= 640 ? (clingo_assignment_t const *)alloca((size_t)datasize) : NULL;
4690     if (_cffi_convert_array_argument(_cffi_type(94), arg0, (char **)&x0,
4691             datasize, &large_args_free) < 0)
4692       return NULL;
4693   }
4694 
4695   x1 = _cffi_to_c_int(arg1, uint32_t);
4696   if (x1 == (uint32_t)-1 && PyErr_Occurred())
4697     return NULL;
4698 
4699   datasize = _cffi_prepare_pointer_call_argument(
4700       _cffi_type(118), arg2, (char **)&x2);
4701   if (datasize != 0) {
4702     x2 = ((size_t)datasize) <= 640 ? (int32_t *)alloca((size_t)datasize) : NULL;
4703     if (_cffi_convert_array_argument(_cffi_type(118), arg2, (char **)&x2,
4704             datasize, &large_args_free) < 0)
4705       return NULL;
4706   }
4707 
4708   Py_BEGIN_ALLOW_THREADS
4709   _cffi_restore_errno();
4710   { result = clingo_assignment_trail_at(x0, x1, x2); }
4711   _cffi_save_errno();
4712   Py_END_ALLOW_THREADS
4713 
4714   (void)self; /* unused */
4715   pyresult = _cffi_from_c__Bool(result);
4716   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
4717   return pyresult;
4718 }
4719 #else
4720 #  define _cffi_f_clingo_assignment_trail_at _cffi_d_clingo_assignment_trail_at
4721 #endif
4722 
_cffi_d_clingo_assignment_trail_begin(clingo_assignment_t const * x0,uint32_t x1,uint32_t * x2)4723 static _Bool _cffi_d_clingo_assignment_trail_begin(clingo_assignment_t const * x0, uint32_t x1, uint32_t * x2)
4724 {
4725   return clingo_assignment_trail_begin(x0, x1, x2);
4726 }
4727 #ifndef PYPY_VERSION
4728 static PyObject *
_cffi_f_clingo_assignment_trail_begin(PyObject * self,PyObject * args)4729 _cffi_f_clingo_assignment_trail_begin(PyObject *self, PyObject *args)
4730 {
4731   clingo_assignment_t const * x0;
4732   uint32_t x1;
4733   uint32_t * x2;
4734   Py_ssize_t datasize;
4735   struct _cffi_freeme_s *large_args_free = NULL;
4736   _Bool result;
4737   PyObject *pyresult;
4738   PyObject *arg0;
4739   PyObject *arg1;
4740   PyObject *arg2;
4741 
4742   if (!PyArg_UnpackTuple(args, "clingo_assignment_trail_begin", 3, 3, &arg0, &arg1, &arg2))
4743     return NULL;
4744 
4745   datasize = _cffi_prepare_pointer_call_argument(
4746       _cffi_type(94), arg0, (char **)&x0);
4747   if (datasize != 0) {
4748     x0 = ((size_t)datasize) <= 640 ? (clingo_assignment_t const *)alloca((size_t)datasize) : NULL;
4749     if (_cffi_convert_array_argument(_cffi_type(94), arg0, (char **)&x0,
4750             datasize, &large_args_free) < 0)
4751       return NULL;
4752   }
4753 
4754   x1 = _cffi_to_c_int(arg1, uint32_t);
4755   if (x1 == (uint32_t)-1 && PyErr_Occurred())
4756     return NULL;
4757 
4758   datasize = _cffi_prepare_pointer_call_argument(
4759       _cffi_type(113), arg2, (char **)&x2);
4760   if (datasize != 0) {
4761     x2 = ((size_t)datasize) <= 640 ? (uint32_t *)alloca((size_t)datasize) : NULL;
4762     if (_cffi_convert_array_argument(_cffi_type(113), arg2, (char **)&x2,
4763             datasize, &large_args_free) < 0)
4764       return NULL;
4765   }
4766 
4767   Py_BEGIN_ALLOW_THREADS
4768   _cffi_restore_errno();
4769   { result = clingo_assignment_trail_begin(x0, x1, x2); }
4770   _cffi_save_errno();
4771   Py_END_ALLOW_THREADS
4772 
4773   (void)self; /* unused */
4774   pyresult = _cffi_from_c__Bool(result);
4775   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
4776   return pyresult;
4777 }
4778 #else
4779 #  define _cffi_f_clingo_assignment_trail_begin _cffi_d_clingo_assignment_trail_begin
4780 #endif
4781 
_cffi_d_clingo_assignment_trail_end(clingo_assignment_t const * x0,uint32_t x1,uint32_t * x2)4782 static _Bool _cffi_d_clingo_assignment_trail_end(clingo_assignment_t const * x0, uint32_t x1, uint32_t * x2)
4783 {
4784   return clingo_assignment_trail_end(x0, x1, x2);
4785 }
4786 #ifndef PYPY_VERSION
4787 static PyObject *
_cffi_f_clingo_assignment_trail_end(PyObject * self,PyObject * args)4788 _cffi_f_clingo_assignment_trail_end(PyObject *self, PyObject *args)
4789 {
4790   clingo_assignment_t const * x0;
4791   uint32_t x1;
4792   uint32_t * x2;
4793   Py_ssize_t datasize;
4794   struct _cffi_freeme_s *large_args_free = NULL;
4795   _Bool result;
4796   PyObject *pyresult;
4797   PyObject *arg0;
4798   PyObject *arg1;
4799   PyObject *arg2;
4800 
4801   if (!PyArg_UnpackTuple(args, "clingo_assignment_trail_end", 3, 3, &arg0, &arg1, &arg2))
4802     return NULL;
4803 
4804   datasize = _cffi_prepare_pointer_call_argument(
4805       _cffi_type(94), arg0, (char **)&x0);
4806   if (datasize != 0) {
4807     x0 = ((size_t)datasize) <= 640 ? (clingo_assignment_t const *)alloca((size_t)datasize) : NULL;
4808     if (_cffi_convert_array_argument(_cffi_type(94), arg0, (char **)&x0,
4809             datasize, &large_args_free) < 0)
4810       return NULL;
4811   }
4812 
4813   x1 = _cffi_to_c_int(arg1, uint32_t);
4814   if (x1 == (uint32_t)-1 && PyErr_Occurred())
4815     return NULL;
4816 
4817   datasize = _cffi_prepare_pointer_call_argument(
4818       _cffi_type(113), arg2, (char **)&x2);
4819   if (datasize != 0) {
4820     x2 = ((size_t)datasize) <= 640 ? (uint32_t *)alloca((size_t)datasize) : NULL;
4821     if (_cffi_convert_array_argument(_cffi_type(113), arg2, (char **)&x2,
4822             datasize, &large_args_free) < 0)
4823       return NULL;
4824   }
4825 
4826   Py_BEGIN_ALLOW_THREADS
4827   _cffi_restore_errno();
4828   { result = clingo_assignment_trail_end(x0, x1, x2); }
4829   _cffi_save_errno();
4830   Py_END_ALLOW_THREADS
4831 
4832   (void)self; /* unused */
4833   pyresult = _cffi_from_c__Bool(result);
4834   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
4835   return pyresult;
4836 }
4837 #else
4838 #  define _cffi_f_clingo_assignment_trail_end _cffi_d_clingo_assignment_trail_end
4839 #endif
4840 
_cffi_d_clingo_assignment_trail_size(clingo_assignment_t const * x0,uint32_t * x1)4841 static _Bool _cffi_d_clingo_assignment_trail_size(clingo_assignment_t const * x0, uint32_t * x1)
4842 {
4843   return clingo_assignment_trail_size(x0, x1);
4844 }
4845 #ifndef PYPY_VERSION
4846 static PyObject *
_cffi_f_clingo_assignment_trail_size(PyObject * self,PyObject * args)4847 _cffi_f_clingo_assignment_trail_size(PyObject *self, PyObject *args)
4848 {
4849   clingo_assignment_t const * x0;
4850   uint32_t * x1;
4851   Py_ssize_t datasize;
4852   struct _cffi_freeme_s *large_args_free = NULL;
4853   _Bool result;
4854   PyObject *pyresult;
4855   PyObject *arg0;
4856   PyObject *arg1;
4857 
4858   if (!PyArg_UnpackTuple(args, "clingo_assignment_trail_size", 2, 2, &arg0, &arg1))
4859     return NULL;
4860 
4861   datasize = _cffi_prepare_pointer_call_argument(
4862       _cffi_type(94), arg0, (char **)&x0);
4863   if (datasize != 0) {
4864     x0 = ((size_t)datasize) <= 640 ? (clingo_assignment_t const *)alloca((size_t)datasize) : NULL;
4865     if (_cffi_convert_array_argument(_cffi_type(94), arg0, (char **)&x0,
4866             datasize, &large_args_free) < 0)
4867       return NULL;
4868   }
4869 
4870   datasize = _cffi_prepare_pointer_call_argument(
4871       _cffi_type(113), arg1, (char **)&x1);
4872   if (datasize != 0) {
4873     x1 = ((size_t)datasize) <= 640 ? (uint32_t *)alloca((size_t)datasize) : NULL;
4874     if (_cffi_convert_array_argument(_cffi_type(113), arg1, (char **)&x1,
4875             datasize, &large_args_free) < 0)
4876       return NULL;
4877   }
4878 
4879   Py_BEGIN_ALLOW_THREADS
4880   _cffi_restore_errno();
4881   { result = clingo_assignment_trail_size(x0, x1); }
4882   _cffi_save_errno();
4883   Py_END_ALLOW_THREADS
4884 
4885   (void)self; /* unused */
4886   pyresult = _cffi_from_c__Bool(result);
4887   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
4888   return pyresult;
4889 }
4890 #else
4891 #  define _cffi_f_clingo_assignment_trail_size _cffi_d_clingo_assignment_trail_size
4892 #endif
4893 
_cffi_d_clingo_assignment_truth_value(clingo_assignment_t const * x0,int32_t x1,int * x2)4894 static _Bool _cffi_d_clingo_assignment_truth_value(clingo_assignment_t const * x0, int32_t x1, int * x2)
4895 {
4896   return clingo_assignment_truth_value(x0, x1, x2);
4897 }
4898 #ifndef PYPY_VERSION
4899 static PyObject *
_cffi_f_clingo_assignment_truth_value(PyObject * self,PyObject * args)4900 _cffi_f_clingo_assignment_truth_value(PyObject *self, PyObject *args)
4901 {
4902   clingo_assignment_t const * x0;
4903   int32_t x1;
4904   int * x2;
4905   Py_ssize_t datasize;
4906   struct _cffi_freeme_s *large_args_free = NULL;
4907   _Bool result;
4908   PyObject *pyresult;
4909   PyObject *arg0;
4910   PyObject *arg1;
4911   PyObject *arg2;
4912 
4913   if (!PyArg_UnpackTuple(args, "clingo_assignment_truth_value", 3, 3, &arg0, &arg1, &arg2))
4914     return NULL;
4915 
4916   datasize = _cffi_prepare_pointer_call_argument(
4917       _cffi_type(94), arg0, (char **)&x0);
4918   if (datasize != 0) {
4919     x0 = ((size_t)datasize) <= 640 ? (clingo_assignment_t const *)alloca((size_t)datasize) : NULL;
4920     if (_cffi_convert_array_argument(_cffi_type(94), arg0, (char **)&x0,
4921             datasize, &large_args_free) < 0)
4922       return NULL;
4923   }
4924 
4925   x1 = _cffi_to_c_int(arg1, int32_t);
4926   if (x1 == (int32_t)-1 && PyErr_Occurred())
4927     return NULL;
4928 
4929   datasize = _cffi_prepare_pointer_call_argument(
4930       _cffi_type(108), arg2, (char **)&x2);
4931   if (datasize != 0) {
4932     x2 = ((size_t)datasize) <= 640 ? (int *)alloca((size_t)datasize) : NULL;
4933     if (_cffi_convert_array_argument(_cffi_type(108), arg2, (char **)&x2,
4934             datasize, &large_args_free) < 0)
4935       return NULL;
4936   }
4937 
4938   Py_BEGIN_ALLOW_THREADS
4939   _cffi_restore_errno();
4940   { result = clingo_assignment_truth_value(x0, x1, x2); }
4941   _cffi_save_errno();
4942   Py_END_ALLOW_THREADS
4943 
4944   (void)self; /* unused */
4945   pyresult = _cffi_from_c__Bool(result);
4946   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
4947   return pyresult;
4948 }
4949 #else
4950 #  define _cffi_f_clingo_assignment_truth_value _cffi_d_clingo_assignment_truth_value
4951 #endif
4952 
_cffi_d_clingo_ast_acquire(clingo_ast_t * x0)4953 static void _cffi_d_clingo_ast_acquire(clingo_ast_t * x0)
4954 {
4955   clingo_ast_acquire(x0);
4956 }
4957 #ifndef PYPY_VERSION
4958 static PyObject *
_cffi_f_clingo_ast_acquire(PyObject * self,PyObject * arg0)4959 _cffi_f_clingo_ast_acquire(PyObject *self, PyObject *arg0)
4960 {
4961   clingo_ast_t * x0;
4962   Py_ssize_t datasize;
4963   struct _cffi_freeme_s *large_args_free = NULL;
4964 
4965   datasize = _cffi_prepare_pointer_call_argument(
4966       _cffi_type(135), arg0, (char **)&x0);
4967   if (datasize != 0) {
4968     x0 = ((size_t)datasize) <= 640 ? (clingo_ast_t *)alloca((size_t)datasize) : NULL;
4969     if (_cffi_convert_array_argument(_cffi_type(135), arg0, (char **)&x0,
4970             datasize, &large_args_free) < 0)
4971       return NULL;
4972   }
4973 
4974   Py_BEGIN_ALLOW_THREADS
4975   _cffi_restore_errno();
4976   { clingo_ast_acquire(x0); }
4977   _cffi_save_errno();
4978   Py_END_ALLOW_THREADS
4979 
4980   (void)self; /* unused */
4981   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
4982   Py_INCREF(Py_None);
4983   return Py_None;
4984 }
4985 #else
4986 #  define _cffi_f_clingo_ast_acquire _cffi_d_clingo_ast_acquire
4987 #endif
4988 
_cffi_d_clingo_ast_attribute_delete_ast_at(clingo_ast_t * x0,int x1,size_t x2)4989 static _Bool _cffi_d_clingo_ast_attribute_delete_ast_at(clingo_ast_t * x0, int x1, size_t x2)
4990 {
4991   return clingo_ast_attribute_delete_ast_at(x0, x1, x2);
4992 }
4993 #ifndef PYPY_VERSION
4994 static PyObject *
_cffi_f_clingo_ast_attribute_delete_ast_at(PyObject * self,PyObject * args)4995 _cffi_f_clingo_ast_attribute_delete_ast_at(PyObject *self, PyObject *args)
4996 {
4997   clingo_ast_t * x0;
4998   int x1;
4999   size_t x2;
5000   Py_ssize_t datasize;
5001   struct _cffi_freeme_s *large_args_free = NULL;
5002   _Bool result;
5003   PyObject *pyresult;
5004   PyObject *arg0;
5005   PyObject *arg1;
5006   PyObject *arg2;
5007 
5008   if (!PyArg_UnpackTuple(args, "clingo_ast_attribute_delete_ast_at", 3, 3, &arg0, &arg1, &arg2))
5009     return NULL;
5010 
5011   datasize = _cffi_prepare_pointer_call_argument(
5012       _cffi_type(135), arg0, (char **)&x0);
5013   if (datasize != 0) {
5014     x0 = ((size_t)datasize) <= 640 ? (clingo_ast_t *)alloca((size_t)datasize) : NULL;
5015     if (_cffi_convert_array_argument(_cffi_type(135), arg0, (char **)&x0,
5016             datasize, &large_args_free) < 0)
5017       return NULL;
5018   }
5019 
5020   x1 = _cffi_to_c_int(arg1, int);
5021   if (x1 == (int)-1 && PyErr_Occurred())
5022     return NULL;
5023 
5024   x2 = _cffi_to_c_int(arg2, size_t);
5025   if (x2 == (size_t)-1 && PyErr_Occurred())
5026     return NULL;
5027 
5028   Py_BEGIN_ALLOW_THREADS
5029   _cffi_restore_errno();
5030   { result = clingo_ast_attribute_delete_ast_at(x0, x1, x2); }
5031   _cffi_save_errno();
5032   Py_END_ALLOW_THREADS
5033 
5034   (void)self; /* unused */
5035   pyresult = _cffi_from_c__Bool(result);
5036   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
5037   return pyresult;
5038 }
5039 #else
5040 #  define _cffi_f_clingo_ast_attribute_delete_ast_at _cffi_d_clingo_ast_attribute_delete_ast_at
5041 #endif
5042 
_cffi_d_clingo_ast_attribute_delete_string_at(clingo_ast_t * x0,int x1,size_t x2)5043 static _Bool _cffi_d_clingo_ast_attribute_delete_string_at(clingo_ast_t * x0, int x1, size_t x2)
5044 {
5045   return clingo_ast_attribute_delete_string_at(x0, x1, x2);
5046 }
5047 #ifndef PYPY_VERSION
5048 static PyObject *
_cffi_f_clingo_ast_attribute_delete_string_at(PyObject * self,PyObject * args)5049 _cffi_f_clingo_ast_attribute_delete_string_at(PyObject *self, PyObject *args)
5050 {
5051   clingo_ast_t * x0;
5052   int x1;
5053   size_t x2;
5054   Py_ssize_t datasize;
5055   struct _cffi_freeme_s *large_args_free = NULL;
5056   _Bool result;
5057   PyObject *pyresult;
5058   PyObject *arg0;
5059   PyObject *arg1;
5060   PyObject *arg2;
5061 
5062   if (!PyArg_UnpackTuple(args, "clingo_ast_attribute_delete_string_at", 3, 3, &arg0, &arg1, &arg2))
5063     return NULL;
5064 
5065   datasize = _cffi_prepare_pointer_call_argument(
5066       _cffi_type(135), arg0, (char **)&x0);
5067   if (datasize != 0) {
5068     x0 = ((size_t)datasize) <= 640 ? (clingo_ast_t *)alloca((size_t)datasize) : NULL;
5069     if (_cffi_convert_array_argument(_cffi_type(135), arg0, (char **)&x0,
5070             datasize, &large_args_free) < 0)
5071       return NULL;
5072   }
5073 
5074   x1 = _cffi_to_c_int(arg1, int);
5075   if (x1 == (int)-1 && PyErr_Occurred())
5076     return NULL;
5077 
5078   x2 = _cffi_to_c_int(arg2, size_t);
5079   if (x2 == (size_t)-1 && PyErr_Occurred())
5080     return NULL;
5081 
5082   Py_BEGIN_ALLOW_THREADS
5083   _cffi_restore_errno();
5084   { result = clingo_ast_attribute_delete_string_at(x0, x1, x2); }
5085   _cffi_save_errno();
5086   Py_END_ALLOW_THREADS
5087 
5088   (void)self; /* unused */
5089   pyresult = _cffi_from_c__Bool(result);
5090   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
5091   return pyresult;
5092 }
5093 #else
5094 #  define _cffi_f_clingo_ast_attribute_delete_string_at _cffi_d_clingo_ast_attribute_delete_string_at
5095 #endif
5096 
_cffi_d_clingo_ast_attribute_get_ast(clingo_ast_t * x0,int x1,clingo_ast_t ** x2)5097 static _Bool _cffi_d_clingo_ast_attribute_get_ast(clingo_ast_t * x0, int x1, clingo_ast_t * * x2)
5098 {
5099   return clingo_ast_attribute_get_ast(x0, x1, x2);
5100 }
5101 #ifndef PYPY_VERSION
5102 static PyObject *
_cffi_f_clingo_ast_attribute_get_ast(PyObject * self,PyObject * args)5103 _cffi_f_clingo_ast_attribute_get_ast(PyObject *self, PyObject *args)
5104 {
5105   clingo_ast_t * x0;
5106   int x1;
5107   clingo_ast_t * * x2;
5108   Py_ssize_t datasize;
5109   struct _cffi_freeme_s *large_args_free = NULL;
5110   _Bool result;
5111   PyObject *pyresult;
5112   PyObject *arg0;
5113   PyObject *arg1;
5114   PyObject *arg2;
5115 
5116   if (!PyArg_UnpackTuple(args, "clingo_ast_attribute_get_ast", 3, 3, &arg0, &arg1, &arg2))
5117     return NULL;
5118 
5119   datasize = _cffi_prepare_pointer_call_argument(
5120       _cffi_type(135), arg0, (char **)&x0);
5121   if (datasize != 0) {
5122     x0 = ((size_t)datasize) <= 640 ? (clingo_ast_t *)alloca((size_t)datasize) : NULL;
5123     if (_cffi_convert_array_argument(_cffi_type(135), arg0, (char **)&x0,
5124             datasize, &large_args_free) < 0)
5125       return NULL;
5126   }
5127 
5128   x1 = _cffi_to_c_int(arg1, int);
5129   if (x1 == (int)-1 && PyErr_Occurred())
5130     return NULL;
5131 
5132   datasize = _cffi_prepare_pointer_call_argument(
5133       _cffi_type(141), arg2, (char **)&x2);
5134   if (datasize != 0) {
5135     x2 = ((size_t)datasize) <= 640 ? (clingo_ast_t * *)alloca((size_t)datasize) : NULL;
5136     if (_cffi_convert_array_argument(_cffi_type(141), arg2, (char **)&x2,
5137             datasize, &large_args_free) < 0)
5138       return NULL;
5139   }
5140 
5141   Py_BEGIN_ALLOW_THREADS
5142   _cffi_restore_errno();
5143   { result = clingo_ast_attribute_get_ast(x0, x1, x2); }
5144   _cffi_save_errno();
5145   Py_END_ALLOW_THREADS
5146 
5147   (void)self; /* unused */
5148   pyresult = _cffi_from_c__Bool(result);
5149   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
5150   return pyresult;
5151 }
5152 #else
5153 #  define _cffi_f_clingo_ast_attribute_get_ast _cffi_d_clingo_ast_attribute_get_ast
5154 #endif
5155 
_cffi_d_clingo_ast_attribute_get_ast_at(clingo_ast_t * x0,int x1,size_t x2,clingo_ast_t ** x3)5156 static _Bool _cffi_d_clingo_ast_attribute_get_ast_at(clingo_ast_t * x0, int x1, size_t x2, clingo_ast_t * * x3)
5157 {
5158   return clingo_ast_attribute_get_ast_at(x0, x1, x2, x3);
5159 }
5160 #ifndef PYPY_VERSION
5161 static PyObject *
_cffi_f_clingo_ast_attribute_get_ast_at(PyObject * self,PyObject * args)5162 _cffi_f_clingo_ast_attribute_get_ast_at(PyObject *self, PyObject *args)
5163 {
5164   clingo_ast_t * x0;
5165   int x1;
5166   size_t x2;
5167   clingo_ast_t * * x3;
5168   Py_ssize_t datasize;
5169   struct _cffi_freeme_s *large_args_free = NULL;
5170   _Bool result;
5171   PyObject *pyresult;
5172   PyObject *arg0;
5173   PyObject *arg1;
5174   PyObject *arg2;
5175   PyObject *arg3;
5176 
5177   if (!PyArg_UnpackTuple(args, "clingo_ast_attribute_get_ast_at", 4, 4, &arg0, &arg1, &arg2, &arg3))
5178     return NULL;
5179 
5180   datasize = _cffi_prepare_pointer_call_argument(
5181       _cffi_type(135), arg0, (char **)&x0);
5182   if (datasize != 0) {
5183     x0 = ((size_t)datasize) <= 640 ? (clingo_ast_t *)alloca((size_t)datasize) : NULL;
5184     if (_cffi_convert_array_argument(_cffi_type(135), arg0, (char **)&x0,
5185             datasize, &large_args_free) < 0)
5186       return NULL;
5187   }
5188 
5189   x1 = _cffi_to_c_int(arg1, int);
5190   if (x1 == (int)-1 && PyErr_Occurred())
5191     return NULL;
5192 
5193   x2 = _cffi_to_c_int(arg2, size_t);
5194   if (x2 == (size_t)-1 && PyErr_Occurred())
5195     return NULL;
5196 
5197   datasize = _cffi_prepare_pointer_call_argument(
5198       _cffi_type(141), arg3, (char **)&x3);
5199   if (datasize != 0) {
5200     x3 = ((size_t)datasize) <= 640 ? (clingo_ast_t * *)alloca((size_t)datasize) : NULL;
5201     if (_cffi_convert_array_argument(_cffi_type(141), arg3, (char **)&x3,
5202             datasize, &large_args_free) < 0)
5203       return NULL;
5204   }
5205 
5206   Py_BEGIN_ALLOW_THREADS
5207   _cffi_restore_errno();
5208   { result = clingo_ast_attribute_get_ast_at(x0, x1, x2, x3); }
5209   _cffi_save_errno();
5210   Py_END_ALLOW_THREADS
5211 
5212   (void)self; /* unused */
5213   pyresult = _cffi_from_c__Bool(result);
5214   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
5215   return pyresult;
5216 }
5217 #else
5218 #  define _cffi_f_clingo_ast_attribute_get_ast_at _cffi_d_clingo_ast_attribute_get_ast_at
5219 #endif
5220 
_cffi_d_clingo_ast_attribute_get_location(clingo_ast_t * x0,int x1,clingo_location_t * x2)5221 static _Bool _cffi_d_clingo_ast_attribute_get_location(clingo_ast_t * x0, int x1, clingo_location_t * x2)
5222 {
5223   return clingo_ast_attribute_get_location(x0, x1, x2);
5224 }
5225 #ifndef PYPY_VERSION
5226 static PyObject *
_cffi_f_clingo_ast_attribute_get_location(PyObject * self,PyObject * args)5227 _cffi_f_clingo_ast_attribute_get_location(PyObject *self, PyObject *args)
5228 {
5229   clingo_ast_t * x0;
5230   int x1;
5231   clingo_location_t * x2;
5232   Py_ssize_t datasize;
5233   struct _cffi_freeme_s *large_args_free = NULL;
5234   _Bool result;
5235   PyObject *pyresult;
5236   PyObject *arg0;
5237   PyObject *arg1;
5238   PyObject *arg2;
5239 
5240   if (!PyArg_UnpackTuple(args, "clingo_ast_attribute_get_location", 3, 3, &arg0, &arg1, &arg2))
5241     return NULL;
5242 
5243   datasize = _cffi_prepare_pointer_call_argument(
5244       _cffi_type(135), arg0, (char **)&x0);
5245   if (datasize != 0) {
5246     x0 = ((size_t)datasize) <= 640 ? (clingo_ast_t *)alloca((size_t)datasize) : NULL;
5247     if (_cffi_convert_array_argument(_cffi_type(135), arg0, (char **)&x0,
5248             datasize, &large_args_free) < 0)
5249       return NULL;
5250   }
5251 
5252   x1 = _cffi_to_c_int(arg1, int);
5253   if (x1 == (int)-1 && PyErr_Occurred())
5254     return NULL;
5255 
5256   datasize = _cffi_prepare_pointer_call_argument(
5257       _cffi_type(185), arg2, (char **)&x2);
5258   if (datasize != 0) {
5259     x2 = ((size_t)datasize) <= 640 ? (clingo_location_t *)alloca((size_t)datasize) : NULL;
5260     if (_cffi_convert_array_argument(_cffi_type(185), arg2, (char **)&x2,
5261             datasize, &large_args_free) < 0)
5262       return NULL;
5263   }
5264 
5265   Py_BEGIN_ALLOW_THREADS
5266   _cffi_restore_errno();
5267   { result = clingo_ast_attribute_get_location(x0, x1, x2); }
5268   _cffi_save_errno();
5269   Py_END_ALLOW_THREADS
5270 
5271   (void)self; /* unused */
5272   pyresult = _cffi_from_c__Bool(result);
5273   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
5274   return pyresult;
5275 }
5276 #else
5277 #  define _cffi_f_clingo_ast_attribute_get_location _cffi_d_clingo_ast_attribute_get_location
5278 #endif
5279 
_cffi_d_clingo_ast_attribute_get_number(clingo_ast_t * x0,int x1,int * x2)5280 static _Bool _cffi_d_clingo_ast_attribute_get_number(clingo_ast_t * x0, int x1, int * x2)
5281 {
5282   return clingo_ast_attribute_get_number(x0, x1, x2);
5283 }
5284 #ifndef PYPY_VERSION
5285 static PyObject *
_cffi_f_clingo_ast_attribute_get_number(PyObject * self,PyObject * args)5286 _cffi_f_clingo_ast_attribute_get_number(PyObject *self, PyObject *args)
5287 {
5288   clingo_ast_t * x0;
5289   int x1;
5290   int * x2;
5291   Py_ssize_t datasize;
5292   struct _cffi_freeme_s *large_args_free = NULL;
5293   _Bool result;
5294   PyObject *pyresult;
5295   PyObject *arg0;
5296   PyObject *arg1;
5297   PyObject *arg2;
5298 
5299   if (!PyArg_UnpackTuple(args, "clingo_ast_attribute_get_number", 3, 3, &arg0, &arg1, &arg2))
5300     return NULL;
5301 
5302   datasize = _cffi_prepare_pointer_call_argument(
5303       _cffi_type(135), arg0, (char **)&x0);
5304   if (datasize != 0) {
5305     x0 = ((size_t)datasize) <= 640 ? (clingo_ast_t *)alloca((size_t)datasize) : NULL;
5306     if (_cffi_convert_array_argument(_cffi_type(135), arg0, (char **)&x0,
5307             datasize, &large_args_free) < 0)
5308       return NULL;
5309   }
5310 
5311   x1 = _cffi_to_c_int(arg1, int);
5312   if (x1 == (int)-1 && PyErr_Occurred())
5313     return NULL;
5314 
5315   datasize = _cffi_prepare_pointer_call_argument(
5316       _cffi_type(108), arg2, (char **)&x2);
5317   if (datasize != 0) {
5318     x2 = ((size_t)datasize) <= 640 ? (int *)alloca((size_t)datasize) : NULL;
5319     if (_cffi_convert_array_argument(_cffi_type(108), arg2, (char **)&x2,
5320             datasize, &large_args_free) < 0)
5321       return NULL;
5322   }
5323 
5324   Py_BEGIN_ALLOW_THREADS
5325   _cffi_restore_errno();
5326   { result = clingo_ast_attribute_get_number(x0, x1, x2); }
5327   _cffi_save_errno();
5328   Py_END_ALLOW_THREADS
5329 
5330   (void)self; /* unused */
5331   pyresult = _cffi_from_c__Bool(result);
5332   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
5333   return pyresult;
5334 }
5335 #else
5336 #  define _cffi_f_clingo_ast_attribute_get_number _cffi_d_clingo_ast_attribute_get_number
5337 #endif
5338 
_cffi_d_clingo_ast_attribute_get_optional_ast(clingo_ast_t * x0,int x1,clingo_ast_t ** x2)5339 static _Bool _cffi_d_clingo_ast_attribute_get_optional_ast(clingo_ast_t * x0, int x1, clingo_ast_t * * x2)
5340 {
5341   return clingo_ast_attribute_get_optional_ast(x0, x1, x2);
5342 }
5343 #ifndef PYPY_VERSION
5344 static PyObject *
_cffi_f_clingo_ast_attribute_get_optional_ast(PyObject * self,PyObject * args)5345 _cffi_f_clingo_ast_attribute_get_optional_ast(PyObject *self, PyObject *args)
5346 {
5347   clingo_ast_t * x0;
5348   int x1;
5349   clingo_ast_t * * x2;
5350   Py_ssize_t datasize;
5351   struct _cffi_freeme_s *large_args_free = NULL;
5352   _Bool result;
5353   PyObject *pyresult;
5354   PyObject *arg0;
5355   PyObject *arg1;
5356   PyObject *arg2;
5357 
5358   if (!PyArg_UnpackTuple(args, "clingo_ast_attribute_get_optional_ast", 3, 3, &arg0, &arg1, &arg2))
5359     return NULL;
5360 
5361   datasize = _cffi_prepare_pointer_call_argument(
5362       _cffi_type(135), arg0, (char **)&x0);
5363   if (datasize != 0) {
5364     x0 = ((size_t)datasize) <= 640 ? (clingo_ast_t *)alloca((size_t)datasize) : NULL;
5365     if (_cffi_convert_array_argument(_cffi_type(135), arg0, (char **)&x0,
5366             datasize, &large_args_free) < 0)
5367       return NULL;
5368   }
5369 
5370   x1 = _cffi_to_c_int(arg1, int);
5371   if (x1 == (int)-1 && PyErr_Occurred())
5372     return NULL;
5373 
5374   datasize = _cffi_prepare_pointer_call_argument(
5375       _cffi_type(141), arg2, (char **)&x2);
5376   if (datasize != 0) {
5377     x2 = ((size_t)datasize) <= 640 ? (clingo_ast_t * *)alloca((size_t)datasize) : NULL;
5378     if (_cffi_convert_array_argument(_cffi_type(141), arg2, (char **)&x2,
5379             datasize, &large_args_free) < 0)
5380       return NULL;
5381   }
5382 
5383   Py_BEGIN_ALLOW_THREADS
5384   _cffi_restore_errno();
5385   { result = clingo_ast_attribute_get_optional_ast(x0, x1, x2); }
5386   _cffi_save_errno();
5387   Py_END_ALLOW_THREADS
5388 
5389   (void)self; /* unused */
5390   pyresult = _cffi_from_c__Bool(result);
5391   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
5392   return pyresult;
5393 }
5394 #else
5395 #  define _cffi_f_clingo_ast_attribute_get_optional_ast _cffi_d_clingo_ast_attribute_get_optional_ast
5396 #endif
5397 
_cffi_d_clingo_ast_attribute_get_string(clingo_ast_t * x0,int x1,char const ** x2)5398 static _Bool _cffi_d_clingo_ast_attribute_get_string(clingo_ast_t * x0, int x1, char const * * x2)
5399 {
5400   return clingo_ast_attribute_get_string(x0, x1, x2);
5401 }
5402 #ifndef PYPY_VERSION
5403 static PyObject *
_cffi_f_clingo_ast_attribute_get_string(PyObject * self,PyObject * args)5404 _cffi_f_clingo_ast_attribute_get_string(PyObject *self, PyObject *args)
5405 {
5406   clingo_ast_t * x0;
5407   int x1;
5408   char const * * x2;
5409   Py_ssize_t datasize;
5410   struct _cffi_freeme_s *large_args_free = NULL;
5411   _Bool result;
5412   PyObject *pyresult;
5413   PyObject *arg0;
5414   PyObject *arg1;
5415   PyObject *arg2;
5416 
5417   if (!PyArg_UnpackTuple(args, "clingo_ast_attribute_get_string", 3, 3, &arg0, &arg1, &arg2))
5418     return NULL;
5419 
5420   datasize = _cffi_prepare_pointer_call_argument(
5421       _cffi_type(135), arg0, (char **)&x0);
5422   if (datasize != 0) {
5423     x0 = ((size_t)datasize) <= 640 ? (clingo_ast_t *)alloca((size_t)datasize) : NULL;
5424     if (_cffi_convert_array_argument(_cffi_type(135), arg0, (char **)&x0,
5425             datasize, &large_args_free) < 0)
5426       return NULL;
5427   }
5428 
5429   x1 = _cffi_to_c_int(arg1, int);
5430   if (x1 == (int)-1 && PyErr_Occurred())
5431     return NULL;
5432 
5433   datasize = _cffi_prepare_pointer_call_argument(
5434       _cffi_type(58), arg2, (char **)&x2);
5435   if (datasize != 0) {
5436     x2 = ((size_t)datasize) <= 640 ? (char const * *)alloca((size_t)datasize) : NULL;
5437     if (_cffi_convert_array_argument(_cffi_type(58), arg2, (char **)&x2,
5438             datasize, &large_args_free) < 0)
5439       return NULL;
5440   }
5441 
5442   Py_BEGIN_ALLOW_THREADS
5443   _cffi_restore_errno();
5444   { result = clingo_ast_attribute_get_string(x0, x1, x2); }
5445   _cffi_save_errno();
5446   Py_END_ALLOW_THREADS
5447 
5448   (void)self; /* unused */
5449   pyresult = _cffi_from_c__Bool(result);
5450   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
5451   return pyresult;
5452 }
5453 #else
5454 #  define _cffi_f_clingo_ast_attribute_get_string _cffi_d_clingo_ast_attribute_get_string
5455 #endif
5456 
_cffi_d_clingo_ast_attribute_get_string_at(clingo_ast_t * x0,int x1,size_t x2,char const ** x3)5457 static _Bool _cffi_d_clingo_ast_attribute_get_string_at(clingo_ast_t * x0, int x1, size_t x2, char const * * x3)
5458 {
5459   return clingo_ast_attribute_get_string_at(x0, x1, x2, x3);
5460 }
5461 #ifndef PYPY_VERSION
5462 static PyObject *
_cffi_f_clingo_ast_attribute_get_string_at(PyObject * self,PyObject * args)5463 _cffi_f_clingo_ast_attribute_get_string_at(PyObject *self, PyObject *args)
5464 {
5465   clingo_ast_t * x0;
5466   int x1;
5467   size_t x2;
5468   char const * * x3;
5469   Py_ssize_t datasize;
5470   struct _cffi_freeme_s *large_args_free = NULL;
5471   _Bool result;
5472   PyObject *pyresult;
5473   PyObject *arg0;
5474   PyObject *arg1;
5475   PyObject *arg2;
5476   PyObject *arg3;
5477 
5478   if (!PyArg_UnpackTuple(args, "clingo_ast_attribute_get_string_at", 4, 4, &arg0, &arg1, &arg2, &arg3))
5479     return NULL;
5480 
5481   datasize = _cffi_prepare_pointer_call_argument(
5482       _cffi_type(135), arg0, (char **)&x0);
5483   if (datasize != 0) {
5484     x0 = ((size_t)datasize) <= 640 ? (clingo_ast_t *)alloca((size_t)datasize) : NULL;
5485     if (_cffi_convert_array_argument(_cffi_type(135), arg0, (char **)&x0,
5486             datasize, &large_args_free) < 0)
5487       return NULL;
5488   }
5489 
5490   x1 = _cffi_to_c_int(arg1, int);
5491   if (x1 == (int)-1 && PyErr_Occurred())
5492     return NULL;
5493 
5494   x2 = _cffi_to_c_int(arg2, size_t);
5495   if (x2 == (size_t)-1 && PyErr_Occurred())
5496     return NULL;
5497 
5498   datasize = _cffi_prepare_pointer_call_argument(
5499       _cffi_type(58), arg3, (char **)&x3);
5500   if (datasize != 0) {
5501     x3 = ((size_t)datasize) <= 640 ? (char const * *)alloca((size_t)datasize) : NULL;
5502     if (_cffi_convert_array_argument(_cffi_type(58), arg3, (char **)&x3,
5503             datasize, &large_args_free) < 0)
5504       return NULL;
5505   }
5506 
5507   Py_BEGIN_ALLOW_THREADS
5508   _cffi_restore_errno();
5509   { result = clingo_ast_attribute_get_string_at(x0, x1, x2, x3); }
5510   _cffi_save_errno();
5511   Py_END_ALLOW_THREADS
5512 
5513   (void)self; /* unused */
5514   pyresult = _cffi_from_c__Bool(result);
5515   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
5516   return pyresult;
5517 }
5518 #else
5519 #  define _cffi_f_clingo_ast_attribute_get_string_at _cffi_d_clingo_ast_attribute_get_string_at
5520 #endif
5521 
_cffi_d_clingo_ast_attribute_get_symbol(clingo_ast_t * x0,int x1,uint64_t * x2)5522 static _Bool _cffi_d_clingo_ast_attribute_get_symbol(clingo_ast_t * x0, int x1, uint64_t * x2)
5523 {
5524   return clingo_ast_attribute_get_symbol(x0, x1, x2);
5525 }
5526 #ifndef PYPY_VERSION
5527 static PyObject *
_cffi_f_clingo_ast_attribute_get_symbol(PyObject * self,PyObject * args)5528 _cffi_f_clingo_ast_attribute_get_symbol(PyObject *self, PyObject *args)
5529 {
5530   clingo_ast_t * x0;
5531   int x1;
5532   uint64_t * x2;
5533   Py_ssize_t datasize;
5534   struct _cffi_freeme_s *large_args_free = NULL;
5535   _Bool result;
5536   PyObject *pyresult;
5537   PyObject *arg0;
5538   PyObject *arg1;
5539   PyObject *arg2;
5540 
5541   if (!PyArg_UnpackTuple(args, "clingo_ast_attribute_get_symbol", 3, 3, &arg0, &arg1, &arg2))
5542     return NULL;
5543 
5544   datasize = _cffi_prepare_pointer_call_argument(
5545       _cffi_type(135), arg0, (char **)&x0);
5546   if (datasize != 0) {
5547     x0 = ((size_t)datasize) <= 640 ? (clingo_ast_t *)alloca((size_t)datasize) : NULL;
5548     if (_cffi_convert_array_argument(_cffi_type(135), arg0, (char **)&x0,
5549             datasize, &large_args_free) < 0)
5550       return NULL;
5551   }
5552 
5553   x1 = _cffi_to_c_int(arg1, int);
5554   if (x1 == (int)-1 && PyErr_Occurred())
5555     return NULL;
5556 
5557   datasize = _cffi_prepare_pointer_call_argument(
5558       _cffi_type(54), arg2, (char **)&x2);
5559   if (datasize != 0) {
5560     x2 = ((size_t)datasize) <= 640 ? (uint64_t *)alloca((size_t)datasize) : NULL;
5561     if (_cffi_convert_array_argument(_cffi_type(54), arg2, (char **)&x2,
5562             datasize, &large_args_free) < 0)
5563       return NULL;
5564   }
5565 
5566   Py_BEGIN_ALLOW_THREADS
5567   _cffi_restore_errno();
5568   { result = clingo_ast_attribute_get_symbol(x0, x1, x2); }
5569   _cffi_save_errno();
5570   Py_END_ALLOW_THREADS
5571 
5572   (void)self; /* unused */
5573   pyresult = _cffi_from_c__Bool(result);
5574   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
5575   return pyresult;
5576 }
5577 #else
5578 #  define _cffi_f_clingo_ast_attribute_get_symbol _cffi_d_clingo_ast_attribute_get_symbol
5579 #endif
5580 
_cffi_d_clingo_ast_attribute_insert_ast_at(clingo_ast_t * x0,int x1,size_t x2,clingo_ast_t * x3)5581 static _Bool _cffi_d_clingo_ast_attribute_insert_ast_at(clingo_ast_t * x0, int x1, size_t x2, clingo_ast_t * x3)
5582 {
5583   return clingo_ast_attribute_insert_ast_at(x0, x1, x2, x3);
5584 }
5585 #ifndef PYPY_VERSION
5586 static PyObject *
_cffi_f_clingo_ast_attribute_insert_ast_at(PyObject * self,PyObject * args)5587 _cffi_f_clingo_ast_attribute_insert_ast_at(PyObject *self, PyObject *args)
5588 {
5589   clingo_ast_t * x0;
5590   int x1;
5591   size_t x2;
5592   clingo_ast_t * x3;
5593   Py_ssize_t datasize;
5594   struct _cffi_freeme_s *large_args_free = NULL;
5595   _Bool result;
5596   PyObject *pyresult;
5597   PyObject *arg0;
5598   PyObject *arg1;
5599   PyObject *arg2;
5600   PyObject *arg3;
5601 
5602   if (!PyArg_UnpackTuple(args, "clingo_ast_attribute_insert_ast_at", 4, 4, &arg0, &arg1, &arg2, &arg3))
5603     return NULL;
5604 
5605   datasize = _cffi_prepare_pointer_call_argument(
5606       _cffi_type(135), arg0, (char **)&x0);
5607   if (datasize != 0) {
5608     x0 = ((size_t)datasize) <= 640 ? (clingo_ast_t *)alloca((size_t)datasize) : NULL;
5609     if (_cffi_convert_array_argument(_cffi_type(135), arg0, (char **)&x0,
5610             datasize, &large_args_free) < 0)
5611       return NULL;
5612   }
5613 
5614   x1 = _cffi_to_c_int(arg1, int);
5615   if (x1 == (int)-1 && PyErr_Occurred())
5616     return NULL;
5617 
5618   x2 = _cffi_to_c_int(arg2, size_t);
5619   if (x2 == (size_t)-1 && PyErr_Occurred())
5620     return NULL;
5621 
5622   datasize = _cffi_prepare_pointer_call_argument(
5623       _cffi_type(135), arg3, (char **)&x3);
5624   if (datasize != 0) {
5625     x3 = ((size_t)datasize) <= 640 ? (clingo_ast_t *)alloca((size_t)datasize) : NULL;
5626     if (_cffi_convert_array_argument(_cffi_type(135), arg3, (char **)&x3,
5627             datasize, &large_args_free) < 0)
5628       return NULL;
5629   }
5630 
5631   Py_BEGIN_ALLOW_THREADS
5632   _cffi_restore_errno();
5633   { result = clingo_ast_attribute_insert_ast_at(x0, x1, x2, x3); }
5634   _cffi_save_errno();
5635   Py_END_ALLOW_THREADS
5636 
5637   (void)self; /* unused */
5638   pyresult = _cffi_from_c__Bool(result);
5639   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
5640   return pyresult;
5641 }
5642 #else
5643 #  define _cffi_f_clingo_ast_attribute_insert_ast_at _cffi_d_clingo_ast_attribute_insert_ast_at
5644 #endif
5645 
_cffi_d_clingo_ast_attribute_insert_string_at(clingo_ast_t * x0,int x1,size_t x2,char const * x3)5646 static _Bool _cffi_d_clingo_ast_attribute_insert_string_at(clingo_ast_t * x0, int x1, size_t x2, char const * x3)
5647 {
5648   return clingo_ast_attribute_insert_string_at(x0, x1, x2, x3);
5649 }
5650 #ifndef PYPY_VERSION
5651 static PyObject *
_cffi_f_clingo_ast_attribute_insert_string_at(PyObject * self,PyObject * args)5652 _cffi_f_clingo_ast_attribute_insert_string_at(PyObject *self, PyObject *args)
5653 {
5654   clingo_ast_t * x0;
5655   int x1;
5656   size_t x2;
5657   char const * x3;
5658   Py_ssize_t datasize;
5659   struct _cffi_freeme_s *large_args_free = NULL;
5660   _Bool result;
5661   PyObject *pyresult;
5662   PyObject *arg0;
5663   PyObject *arg1;
5664   PyObject *arg2;
5665   PyObject *arg3;
5666 
5667   if (!PyArg_UnpackTuple(args, "clingo_ast_attribute_insert_string_at", 4, 4, &arg0, &arg1, &arg2, &arg3))
5668     return NULL;
5669 
5670   datasize = _cffi_prepare_pointer_call_argument(
5671       _cffi_type(135), arg0, (char **)&x0);
5672   if (datasize != 0) {
5673     x0 = ((size_t)datasize) <= 640 ? (clingo_ast_t *)alloca((size_t)datasize) : NULL;
5674     if (_cffi_convert_array_argument(_cffi_type(135), arg0, (char **)&x0,
5675             datasize, &large_args_free) < 0)
5676       return NULL;
5677   }
5678 
5679   x1 = _cffi_to_c_int(arg1, int);
5680   if (x1 == (int)-1 && PyErr_Occurred())
5681     return NULL;
5682 
5683   x2 = _cffi_to_c_int(arg2, size_t);
5684   if (x2 == (size_t)-1 && PyErr_Occurred())
5685     return NULL;
5686 
5687   datasize = _cffi_prepare_pointer_call_argument(
5688       _cffi_type(39), arg3, (char **)&x3);
5689   if (datasize != 0) {
5690     x3 = ((size_t)datasize) <= 640 ? (char const *)alloca((size_t)datasize) : NULL;
5691     if (_cffi_convert_array_argument(_cffi_type(39), arg3, (char **)&x3,
5692             datasize, &large_args_free) < 0)
5693       return NULL;
5694   }
5695 
5696   Py_BEGIN_ALLOW_THREADS
5697   _cffi_restore_errno();
5698   { result = clingo_ast_attribute_insert_string_at(x0, x1, x2, x3); }
5699   _cffi_save_errno();
5700   Py_END_ALLOW_THREADS
5701 
5702   (void)self; /* unused */
5703   pyresult = _cffi_from_c__Bool(result);
5704   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
5705   return pyresult;
5706 }
5707 #else
5708 #  define _cffi_f_clingo_ast_attribute_insert_string_at _cffi_d_clingo_ast_attribute_insert_string_at
5709 #endif
5710 
_cffi_d_clingo_ast_attribute_set_ast(clingo_ast_t * x0,int x1,clingo_ast_t * x2)5711 static _Bool _cffi_d_clingo_ast_attribute_set_ast(clingo_ast_t * x0, int x1, clingo_ast_t * x2)
5712 {
5713   return clingo_ast_attribute_set_ast(x0, x1, x2);
5714 }
5715 #ifndef PYPY_VERSION
5716 static PyObject *
_cffi_f_clingo_ast_attribute_set_ast(PyObject * self,PyObject * args)5717 _cffi_f_clingo_ast_attribute_set_ast(PyObject *self, PyObject *args)
5718 {
5719   clingo_ast_t * x0;
5720   int x1;
5721   clingo_ast_t * x2;
5722   Py_ssize_t datasize;
5723   struct _cffi_freeme_s *large_args_free = NULL;
5724   _Bool result;
5725   PyObject *pyresult;
5726   PyObject *arg0;
5727   PyObject *arg1;
5728   PyObject *arg2;
5729 
5730   if (!PyArg_UnpackTuple(args, "clingo_ast_attribute_set_ast", 3, 3, &arg0, &arg1, &arg2))
5731     return NULL;
5732 
5733   datasize = _cffi_prepare_pointer_call_argument(
5734       _cffi_type(135), arg0, (char **)&x0);
5735   if (datasize != 0) {
5736     x0 = ((size_t)datasize) <= 640 ? (clingo_ast_t *)alloca((size_t)datasize) : NULL;
5737     if (_cffi_convert_array_argument(_cffi_type(135), arg0, (char **)&x0,
5738             datasize, &large_args_free) < 0)
5739       return NULL;
5740   }
5741 
5742   x1 = _cffi_to_c_int(arg1, int);
5743   if (x1 == (int)-1 && PyErr_Occurred())
5744     return NULL;
5745 
5746   datasize = _cffi_prepare_pointer_call_argument(
5747       _cffi_type(135), arg2, (char **)&x2);
5748   if (datasize != 0) {
5749     x2 = ((size_t)datasize) <= 640 ? (clingo_ast_t *)alloca((size_t)datasize) : NULL;
5750     if (_cffi_convert_array_argument(_cffi_type(135), arg2, (char **)&x2,
5751             datasize, &large_args_free) < 0)
5752       return NULL;
5753   }
5754 
5755   Py_BEGIN_ALLOW_THREADS
5756   _cffi_restore_errno();
5757   { result = clingo_ast_attribute_set_ast(x0, x1, x2); }
5758   _cffi_save_errno();
5759   Py_END_ALLOW_THREADS
5760 
5761   (void)self; /* unused */
5762   pyresult = _cffi_from_c__Bool(result);
5763   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
5764   return pyresult;
5765 }
5766 #else
5767 #  define _cffi_f_clingo_ast_attribute_set_ast _cffi_d_clingo_ast_attribute_set_ast
5768 #endif
5769 
_cffi_d_clingo_ast_attribute_set_ast_at(clingo_ast_t * x0,int x1,size_t x2,clingo_ast_t * x3)5770 static _Bool _cffi_d_clingo_ast_attribute_set_ast_at(clingo_ast_t * x0, int x1, size_t x2, clingo_ast_t * x3)
5771 {
5772   return clingo_ast_attribute_set_ast_at(x0, x1, x2, x3);
5773 }
5774 #ifndef PYPY_VERSION
5775 static PyObject *
_cffi_f_clingo_ast_attribute_set_ast_at(PyObject * self,PyObject * args)5776 _cffi_f_clingo_ast_attribute_set_ast_at(PyObject *self, PyObject *args)
5777 {
5778   clingo_ast_t * x0;
5779   int x1;
5780   size_t x2;
5781   clingo_ast_t * x3;
5782   Py_ssize_t datasize;
5783   struct _cffi_freeme_s *large_args_free = NULL;
5784   _Bool result;
5785   PyObject *pyresult;
5786   PyObject *arg0;
5787   PyObject *arg1;
5788   PyObject *arg2;
5789   PyObject *arg3;
5790 
5791   if (!PyArg_UnpackTuple(args, "clingo_ast_attribute_set_ast_at", 4, 4, &arg0, &arg1, &arg2, &arg3))
5792     return NULL;
5793 
5794   datasize = _cffi_prepare_pointer_call_argument(
5795       _cffi_type(135), arg0, (char **)&x0);
5796   if (datasize != 0) {
5797     x0 = ((size_t)datasize) <= 640 ? (clingo_ast_t *)alloca((size_t)datasize) : NULL;
5798     if (_cffi_convert_array_argument(_cffi_type(135), arg0, (char **)&x0,
5799             datasize, &large_args_free) < 0)
5800       return NULL;
5801   }
5802 
5803   x1 = _cffi_to_c_int(arg1, int);
5804   if (x1 == (int)-1 && PyErr_Occurred())
5805     return NULL;
5806 
5807   x2 = _cffi_to_c_int(arg2, size_t);
5808   if (x2 == (size_t)-1 && PyErr_Occurred())
5809     return NULL;
5810 
5811   datasize = _cffi_prepare_pointer_call_argument(
5812       _cffi_type(135), arg3, (char **)&x3);
5813   if (datasize != 0) {
5814     x3 = ((size_t)datasize) <= 640 ? (clingo_ast_t *)alloca((size_t)datasize) : NULL;
5815     if (_cffi_convert_array_argument(_cffi_type(135), arg3, (char **)&x3,
5816             datasize, &large_args_free) < 0)
5817       return NULL;
5818   }
5819 
5820   Py_BEGIN_ALLOW_THREADS
5821   _cffi_restore_errno();
5822   { result = clingo_ast_attribute_set_ast_at(x0, x1, x2, x3); }
5823   _cffi_save_errno();
5824   Py_END_ALLOW_THREADS
5825 
5826   (void)self; /* unused */
5827   pyresult = _cffi_from_c__Bool(result);
5828   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
5829   return pyresult;
5830 }
5831 #else
5832 #  define _cffi_f_clingo_ast_attribute_set_ast_at _cffi_d_clingo_ast_attribute_set_ast_at
5833 #endif
5834 
_cffi_d_clingo_ast_attribute_set_location(clingo_ast_t * x0,int x1,clingo_location_t const * x2)5835 static _Bool _cffi_d_clingo_ast_attribute_set_location(clingo_ast_t * x0, int x1, clingo_location_t const * x2)
5836 {
5837   return clingo_ast_attribute_set_location(x0, x1, x2);
5838 }
5839 #ifndef PYPY_VERSION
5840 static PyObject *
_cffi_f_clingo_ast_attribute_set_location(PyObject * self,PyObject * args)5841 _cffi_f_clingo_ast_attribute_set_location(PyObject *self, PyObject *args)
5842 {
5843   clingo_ast_t * x0;
5844   int x1;
5845   clingo_location_t const * x2;
5846   Py_ssize_t datasize;
5847   struct _cffi_freeme_s *large_args_free = NULL;
5848   _Bool result;
5849   PyObject *pyresult;
5850   PyObject *arg0;
5851   PyObject *arg1;
5852   PyObject *arg2;
5853 
5854   if (!PyArg_UnpackTuple(args, "clingo_ast_attribute_set_location", 3, 3, &arg0, &arg1, &arg2))
5855     return NULL;
5856 
5857   datasize = _cffi_prepare_pointer_call_argument(
5858       _cffi_type(135), arg0, (char **)&x0);
5859   if (datasize != 0) {
5860     x0 = ((size_t)datasize) <= 640 ? (clingo_ast_t *)alloca((size_t)datasize) : NULL;
5861     if (_cffi_convert_array_argument(_cffi_type(135), arg0, (char **)&x0,
5862             datasize, &large_args_free) < 0)
5863       return NULL;
5864   }
5865 
5866   x1 = _cffi_to_c_int(arg1, int);
5867   if (x1 == (int)-1 && PyErr_Occurred())
5868     return NULL;
5869 
5870   datasize = _cffi_prepare_pointer_call_argument(
5871       _cffi_type(190), arg2, (char **)&x2);
5872   if (datasize != 0) {
5873     x2 = ((size_t)datasize) <= 640 ? (clingo_location_t const *)alloca((size_t)datasize) : NULL;
5874     if (_cffi_convert_array_argument(_cffi_type(190), arg2, (char **)&x2,
5875             datasize, &large_args_free) < 0)
5876       return NULL;
5877   }
5878 
5879   Py_BEGIN_ALLOW_THREADS
5880   _cffi_restore_errno();
5881   { result = clingo_ast_attribute_set_location(x0, x1, x2); }
5882   _cffi_save_errno();
5883   Py_END_ALLOW_THREADS
5884 
5885   (void)self; /* unused */
5886   pyresult = _cffi_from_c__Bool(result);
5887   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
5888   return pyresult;
5889 }
5890 #else
5891 #  define _cffi_f_clingo_ast_attribute_set_location _cffi_d_clingo_ast_attribute_set_location
5892 #endif
5893 
_cffi_d_clingo_ast_attribute_set_number(clingo_ast_t * x0,int x1,int x2)5894 static _Bool _cffi_d_clingo_ast_attribute_set_number(clingo_ast_t * x0, int x1, int x2)
5895 {
5896   return clingo_ast_attribute_set_number(x0, x1, x2);
5897 }
5898 #ifndef PYPY_VERSION
5899 static PyObject *
_cffi_f_clingo_ast_attribute_set_number(PyObject * self,PyObject * args)5900 _cffi_f_clingo_ast_attribute_set_number(PyObject *self, PyObject *args)
5901 {
5902   clingo_ast_t * x0;
5903   int x1;
5904   int x2;
5905   Py_ssize_t datasize;
5906   struct _cffi_freeme_s *large_args_free = NULL;
5907   _Bool result;
5908   PyObject *pyresult;
5909   PyObject *arg0;
5910   PyObject *arg1;
5911   PyObject *arg2;
5912 
5913   if (!PyArg_UnpackTuple(args, "clingo_ast_attribute_set_number", 3, 3, &arg0, &arg1, &arg2))
5914     return NULL;
5915 
5916   datasize = _cffi_prepare_pointer_call_argument(
5917       _cffi_type(135), arg0, (char **)&x0);
5918   if (datasize != 0) {
5919     x0 = ((size_t)datasize) <= 640 ? (clingo_ast_t *)alloca((size_t)datasize) : NULL;
5920     if (_cffi_convert_array_argument(_cffi_type(135), arg0, (char **)&x0,
5921             datasize, &large_args_free) < 0)
5922       return NULL;
5923   }
5924 
5925   x1 = _cffi_to_c_int(arg1, int);
5926   if (x1 == (int)-1 && PyErr_Occurred())
5927     return NULL;
5928 
5929   x2 = _cffi_to_c_int(arg2, int);
5930   if (x2 == (int)-1 && PyErr_Occurred())
5931     return NULL;
5932 
5933   Py_BEGIN_ALLOW_THREADS
5934   _cffi_restore_errno();
5935   { result = clingo_ast_attribute_set_number(x0, x1, x2); }
5936   _cffi_save_errno();
5937   Py_END_ALLOW_THREADS
5938 
5939   (void)self; /* unused */
5940   pyresult = _cffi_from_c__Bool(result);
5941   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
5942   return pyresult;
5943 }
5944 #else
5945 #  define _cffi_f_clingo_ast_attribute_set_number _cffi_d_clingo_ast_attribute_set_number
5946 #endif
5947 
_cffi_d_clingo_ast_attribute_set_optional_ast(clingo_ast_t * x0,int x1,clingo_ast_t * x2)5948 static _Bool _cffi_d_clingo_ast_attribute_set_optional_ast(clingo_ast_t * x0, int x1, clingo_ast_t * x2)
5949 {
5950   return clingo_ast_attribute_set_optional_ast(x0, x1, x2);
5951 }
5952 #ifndef PYPY_VERSION
5953 static PyObject *
_cffi_f_clingo_ast_attribute_set_optional_ast(PyObject * self,PyObject * args)5954 _cffi_f_clingo_ast_attribute_set_optional_ast(PyObject *self, PyObject *args)
5955 {
5956   clingo_ast_t * x0;
5957   int x1;
5958   clingo_ast_t * x2;
5959   Py_ssize_t datasize;
5960   struct _cffi_freeme_s *large_args_free = NULL;
5961   _Bool result;
5962   PyObject *pyresult;
5963   PyObject *arg0;
5964   PyObject *arg1;
5965   PyObject *arg2;
5966 
5967   if (!PyArg_UnpackTuple(args, "clingo_ast_attribute_set_optional_ast", 3, 3, &arg0, &arg1, &arg2))
5968     return NULL;
5969 
5970   datasize = _cffi_prepare_pointer_call_argument(
5971       _cffi_type(135), arg0, (char **)&x0);
5972   if (datasize != 0) {
5973     x0 = ((size_t)datasize) <= 640 ? (clingo_ast_t *)alloca((size_t)datasize) : NULL;
5974     if (_cffi_convert_array_argument(_cffi_type(135), arg0, (char **)&x0,
5975             datasize, &large_args_free) < 0)
5976       return NULL;
5977   }
5978 
5979   x1 = _cffi_to_c_int(arg1, int);
5980   if (x1 == (int)-1 && PyErr_Occurred())
5981     return NULL;
5982 
5983   datasize = _cffi_prepare_pointer_call_argument(
5984       _cffi_type(135), arg2, (char **)&x2);
5985   if (datasize != 0) {
5986     x2 = ((size_t)datasize) <= 640 ? (clingo_ast_t *)alloca((size_t)datasize) : NULL;
5987     if (_cffi_convert_array_argument(_cffi_type(135), arg2, (char **)&x2,
5988             datasize, &large_args_free) < 0)
5989       return NULL;
5990   }
5991 
5992   Py_BEGIN_ALLOW_THREADS
5993   _cffi_restore_errno();
5994   { result = clingo_ast_attribute_set_optional_ast(x0, x1, x2); }
5995   _cffi_save_errno();
5996   Py_END_ALLOW_THREADS
5997 
5998   (void)self; /* unused */
5999   pyresult = _cffi_from_c__Bool(result);
6000   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
6001   return pyresult;
6002 }
6003 #else
6004 #  define _cffi_f_clingo_ast_attribute_set_optional_ast _cffi_d_clingo_ast_attribute_set_optional_ast
6005 #endif
6006 
_cffi_d_clingo_ast_attribute_set_string(clingo_ast_t * x0,int x1,char const * x2)6007 static _Bool _cffi_d_clingo_ast_attribute_set_string(clingo_ast_t * x0, int x1, char const * x2)
6008 {
6009   return clingo_ast_attribute_set_string(x0, x1, x2);
6010 }
6011 #ifndef PYPY_VERSION
6012 static PyObject *
_cffi_f_clingo_ast_attribute_set_string(PyObject * self,PyObject * args)6013 _cffi_f_clingo_ast_attribute_set_string(PyObject *self, PyObject *args)
6014 {
6015   clingo_ast_t * x0;
6016   int x1;
6017   char const * x2;
6018   Py_ssize_t datasize;
6019   struct _cffi_freeme_s *large_args_free = NULL;
6020   _Bool result;
6021   PyObject *pyresult;
6022   PyObject *arg0;
6023   PyObject *arg1;
6024   PyObject *arg2;
6025 
6026   if (!PyArg_UnpackTuple(args, "clingo_ast_attribute_set_string", 3, 3, &arg0, &arg1, &arg2))
6027     return NULL;
6028 
6029   datasize = _cffi_prepare_pointer_call_argument(
6030       _cffi_type(135), arg0, (char **)&x0);
6031   if (datasize != 0) {
6032     x0 = ((size_t)datasize) <= 640 ? (clingo_ast_t *)alloca((size_t)datasize) : NULL;
6033     if (_cffi_convert_array_argument(_cffi_type(135), arg0, (char **)&x0,
6034             datasize, &large_args_free) < 0)
6035       return NULL;
6036   }
6037 
6038   x1 = _cffi_to_c_int(arg1, int);
6039   if (x1 == (int)-1 && PyErr_Occurred())
6040     return NULL;
6041 
6042   datasize = _cffi_prepare_pointer_call_argument(
6043       _cffi_type(39), arg2, (char **)&x2);
6044   if (datasize != 0) {
6045     x2 = ((size_t)datasize) <= 640 ? (char const *)alloca((size_t)datasize) : NULL;
6046     if (_cffi_convert_array_argument(_cffi_type(39), arg2, (char **)&x2,
6047             datasize, &large_args_free) < 0)
6048       return NULL;
6049   }
6050 
6051   Py_BEGIN_ALLOW_THREADS
6052   _cffi_restore_errno();
6053   { result = clingo_ast_attribute_set_string(x0, x1, x2); }
6054   _cffi_save_errno();
6055   Py_END_ALLOW_THREADS
6056 
6057   (void)self; /* unused */
6058   pyresult = _cffi_from_c__Bool(result);
6059   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
6060   return pyresult;
6061 }
6062 #else
6063 #  define _cffi_f_clingo_ast_attribute_set_string _cffi_d_clingo_ast_attribute_set_string
6064 #endif
6065 
_cffi_d_clingo_ast_attribute_set_string_at(clingo_ast_t * x0,int x1,size_t x2,char const * x3)6066 static _Bool _cffi_d_clingo_ast_attribute_set_string_at(clingo_ast_t * x0, int x1, size_t x2, char const * x3)
6067 {
6068   return clingo_ast_attribute_set_string_at(x0, x1, x2, x3);
6069 }
6070 #ifndef PYPY_VERSION
6071 static PyObject *
_cffi_f_clingo_ast_attribute_set_string_at(PyObject * self,PyObject * args)6072 _cffi_f_clingo_ast_attribute_set_string_at(PyObject *self, PyObject *args)
6073 {
6074   clingo_ast_t * x0;
6075   int x1;
6076   size_t x2;
6077   char const * x3;
6078   Py_ssize_t datasize;
6079   struct _cffi_freeme_s *large_args_free = NULL;
6080   _Bool result;
6081   PyObject *pyresult;
6082   PyObject *arg0;
6083   PyObject *arg1;
6084   PyObject *arg2;
6085   PyObject *arg3;
6086 
6087   if (!PyArg_UnpackTuple(args, "clingo_ast_attribute_set_string_at", 4, 4, &arg0, &arg1, &arg2, &arg3))
6088     return NULL;
6089 
6090   datasize = _cffi_prepare_pointer_call_argument(
6091       _cffi_type(135), arg0, (char **)&x0);
6092   if (datasize != 0) {
6093     x0 = ((size_t)datasize) <= 640 ? (clingo_ast_t *)alloca((size_t)datasize) : NULL;
6094     if (_cffi_convert_array_argument(_cffi_type(135), arg0, (char **)&x0,
6095             datasize, &large_args_free) < 0)
6096       return NULL;
6097   }
6098 
6099   x1 = _cffi_to_c_int(arg1, int);
6100   if (x1 == (int)-1 && PyErr_Occurred())
6101     return NULL;
6102 
6103   x2 = _cffi_to_c_int(arg2, size_t);
6104   if (x2 == (size_t)-1 && PyErr_Occurred())
6105     return NULL;
6106 
6107   datasize = _cffi_prepare_pointer_call_argument(
6108       _cffi_type(39), arg3, (char **)&x3);
6109   if (datasize != 0) {
6110     x3 = ((size_t)datasize) <= 640 ? (char const *)alloca((size_t)datasize) : NULL;
6111     if (_cffi_convert_array_argument(_cffi_type(39), arg3, (char **)&x3,
6112             datasize, &large_args_free) < 0)
6113       return NULL;
6114   }
6115 
6116   Py_BEGIN_ALLOW_THREADS
6117   _cffi_restore_errno();
6118   { result = clingo_ast_attribute_set_string_at(x0, x1, x2, x3); }
6119   _cffi_save_errno();
6120   Py_END_ALLOW_THREADS
6121 
6122   (void)self; /* unused */
6123   pyresult = _cffi_from_c__Bool(result);
6124   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
6125   return pyresult;
6126 }
6127 #else
6128 #  define _cffi_f_clingo_ast_attribute_set_string_at _cffi_d_clingo_ast_attribute_set_string_at
6129 #endif
6130 
_cffi_d_clingo_ast_attribute_set_symbol(clingo_ast_t * x0,int x1,uint64_t x2)6131 static _Bool _cffi_d_clingo_ast_attribute_set_symbol(clingo_ast_t * x0, int x1, uint64_t x2)
6132 {
6133   return clingo_ast_attribute_set_symbol(x0, x1, x2);
6134 }
6135 #ifndef PYPY_VERSION
6136 static PyObject *
_cffi_f_clingo_ast_attribute_set_symbol(PyObject * self,PyObject * args)6137 _cffi_f_clingo_ast_attribute_set_symbol(PyObject *self, PyObject *args)
6138 {
6139   clingo_ast_t * x0;
6140   int x1;
6141   uint64_t x2;
6142   Py_ssize_t datasize;
6143   struct _cffi_freeme_s *large_args_free = NULL;
6144   _Bool result;
6145   PyObject *pyresult;
6146   PyObject *arg0;
6147   PyObject *arg1;
6148   PyObject *arg2;
6149 
6150   if (!PyArg_UnpackTuple(args, "clingo_ast_attribute_set_symbol", 3, 3, &arg0, &arg1, &arg2))
6151     return NULL;
6152 
6153   datasize = _cffi_prepare_pointer_call_argument(
6154       _cffi_type(135), arg0, (char **)&x0);
6155   if (datasize != 0) {
6156     x0 = ((size_t)datasize) <= 640 ? (clingo_ast_t *)alloca((size_t)datasize) : NULL;
6157     if (_cffi_convert_array_argument(_cffi_type(135), arg0, (char **)&x0,
6158             datasize, &large_args_free) < 0)
6159       return NULL;
6160   }
6161 
6162   x1 = _cffi_to_c_int(arg1, int);
6163   if (x1 == (int)-1 && PyErr_Occurred())
6164     return NULL;
6165 
6166   x2 = _cffi_to_c_int(arg2, uint64_t);
6167   if (x2 == (uint64_t)-1 && PyErr_Occurred())
6168     return NULL;
6169 
6170   Py_BEGIN_ALLOW_THREADS
6171   _cffi_restore_errno();
6172   { result = clingo_ast_attribute_set_symbol(x0, x1, x2); }
6173   _cffi_save_errno();
6174   Py_END_ALLOW_THREADS
6175 
6176   (void)self; /* unused */
6177   pyresult = _cffi_from_c__Bool(result);
6178   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
6179   return pyresult;
6180 }
6181 #else
6182 #  define _cffi_f_clingo_ast_attribute_set_symbol _cffi_d_clingo_ast_attribute_set_symbol
6183 #endif
6184 
_cffi_d_clingo_ast_attribute_size_ast_array(clingo_ast_t * x0,int x1,size_t * x2)6185 static _Bool _cffi_d_clingo_ast_attribute_size_ast_array(clingo_ast_t * x0, int x1, size_t * x2)
6186 {
6187   return clingo_ast_attribute_size_ast_array(x0, x1, x2);
6188 }
6189 #ifndef PYPY_VERSION
6190 static PyObject *
_cffi_f_clingo_ast_attribute_size_ast_array(PyObject * self,PyObject * args)6191 _cffi_f_clingo_ast_attribute_size_ast_array(PyObject *self, PyObject *args)
6192 {
6193   clingo_ast_t * x0;
6194   int x1;
6195   size_t * x2;
6196   Py_ssize_t datasize;
6197   struct _cffi_freeme_s *large_args_free = NULL;
6198   _Bool result;
6199   PyObject *pyresult;
6200   PyObject *arg0;
6201   PyObject *arg1;
6202   PyObject *arg2;
6203 
6204   if (!PyArg_UnpackTuple(args, "clingo_ast_attribute_size_ast_array", 3, 3, &arg0, &arg1, &arg2))
6205     return NULL;
6206 
6207   datasize = _cffi_prepare_pointer_call_argument(
6208       _cffi_type(135), arg0, (char **)&x0);
6209   if (datasize != 0) {
6210     x0 = ((size_t)datasize) <= 640 ? (clingo_ast_t *)alloca((size_t)datasize) : NULL;
6211     if (_cffi_convert_array_argument(_cffi_type(135), arg0, (char **)&x0,
6212             datasize, &large_args_free) < 0)
6213       return NULL;
6214   }
6215 
6216   x1 = _cffi_to_c_int(arg1, int);
6217   if (x1 == (int)-1 && PyErr_Occurred())
6218     return NULL;
6219 
6220   datasize = _cffi_prepare_pointer_call_argument(
6221       _cffi_type(205), arg2, (char **)&x2);
6222   if (datasize != 0) {
6223     x2 = ((size_t)datasize) <= 640 ? (size_t *)alloca((size_t)datasize) : NULL;
6224     if (_cffi_convert_array_argument(_cffi_type(205), arg2, (char **)&x2,
6225             datasize, &large_args_free) < 0)
6226       return NULL;
6227   }
6228 
6229   Py_BEGIN_ALLOW_THREADS
6230   _cffi_restore_errno();
6231   { result = clingo_ast_attribute_size_ast_array(x0, x1, x2); }
6232   _cffi_save_errno();
6233   Py_END_ALLOW_THREADS
6234 
6235   (void)self; /* unused */
6236   pyresult = _cffi_from_c__Bool(result);
6237   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
6238   return pyresult;
6239 }
6240 #else
6241 #  define _cffi_f_clingo_ast_attribute_size_ast_array _cffi_d_clingo_ast_attribute_size_ast_array
6242 #endif
6243 
_cffi_d_clingo_ast_attribute_size_string_array(clingo_ast_t * x0,int x1,size_t * x2)6244 static _Bool _cffi_d_clingo_ast_attribute_size_string_array(clingo_ast_t * x0, int x1, size_t * x2)
6245 {
6246   return clingo_ast_attribute_size_string_array(x0, x1, x2);
6247 }
6248 #ifndef PYPY_VERSION
6249 static PyObject *
_cffi_f_clingo_ast_attribute_size_string_array(PyObject * self,PyObject * args)6250 _cffi_f_clingo_ast_attribute_size_string_array(PyObject *self, PyObject *args)
6251 {
6252   clingo_ast_t * x0;
6253   int x1;
6254   size_t * x2;
6255   Py_ssize_t datasize;
6256   struct _cffi_freeme_s *large_args_free = NULL;
6257   _Bool result;
6258   PyObject *pyresult;
6259   PyObject *arg0;
6260   PyObject *arg1;
6261   PyObject *arg2;
6262 
6263   if (!PyArg_UnpackTuple(args, "clingo_ast_attribute_size_string_array", 3, 3, &arg0, &arg1, &arg2))
6264     return NULL;
6265 
6266   datasize = _cffi_prepare_pointer_call_argument(
6267       _cffi_type(135), arg0, (char **)&x0);
6268   if (datasize != 0) {
6269     x0 = ((size_t)datasize) <= 640 ? (clingo_ast_t *)alloca((size_t)datasize) : NULL;
6270     if (_cffi_convert_array_argument(_cffi_type(135), arg0, (char **)&x0,
6271             datasize, &large_args_free) < 0)
6272       return NULL;
6273   }
6274 
6275   x1 = _cffi_to_c_int(arg1, int);
6276   if (x1 == (int)-1 && PyErr_Occurred())
6277     return NULL;
6278 
6279   datasize = _cffi_prepare_pointer_call_argument(
6280       _cffi_type(205), arg2, (char **)&x2);
6281   if (datasize != 0) {
6282     x2 = ((size_t)datasize) <= 640 ? (size_t *)alloca((size_t)datasize) : NULL;
6283     if (_cffi_convert_array_argument(_cffi_type(205), arg2, (char **)&x2,
6284             datasize, &large_args_free) < 0)
6285       return NULL;
6286   }
6287 
6288   Py_BEGIN_ALLOW_THREADS
6289   _cffi_restore_errno();
6290   { result = clingo_ast_attribute_size_string_array(x0, x1, x2); }
6291   _cffi_save_errno();
6292   Py_END_ALLOW_THREADS
6293 
6294   (void)self; /* unused */
6295   pyresult = _cffi_from_c__Bool(result);
6296   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
6297   return pyresult;
6298 }
6299 #else
6300 #  define _cffi_f_clingo_ast_attribute_size_string_array _cffi_d_clingo_ast_attribute_size_string_array
6301 #endif
6302 
_cffi_d_clingo_ast_attribute_type(clingo_ast_t * x0,int x1,int * x2)6303 static _Bool _cffi_d_clingo_ast_attribute_type(clingo_ast_t * x0, int x1, int * x2)
6304 {
6305   return clingo_ast_attribute_type(x0, x1, x2);
6306 }
6307 #ifndef PYPY_VERSION
6308 static PyObject *
_cffi_f_clingo_ast_attribute_type(PyObject * self,PyObject * args)6309 _cffi_f_clingo_ast_attribute_type(PyObject *self, PyObject *args)
6310 {
6311   clingo_ast_t * x0;
6312   int x1;
6313   int * x2;
6314   Py_ssize_t datasize;
6315   struct _cffi_freeme_s *large_args_free = NULL;
6316   _Bool result;
6317   PyObject *pyresult;
6318   PyObject *arg0;
6319   PyObject *arg1;
6320   PyObject *arg2;
6321 
6322   if (!PyArg_UnpackTuple(args, "clingo_ast_attribute_type", 3, 3, &arg0, &arg1, &arg2))
6323     return NULL;
6324 
6325   datasize = _cffi_prepare_pointer_call_argument(
6326       _cffi_type(135), arg0, (char **)&x0);
6327   if (datasize != 0) {
6328     x0 = ((size_t)datasize) <= 640 ? (clingo_ast_t *)alloca((size_t)datasize) : NULL;
6329     if (_cffi_convert_array_argument(_cffi_type(135), arg0, (char **)&x0,
6330             datasize, &large_args_free) < 0)
6331       return NULL;
6332   }
6333 
6334   x1 = _cffi_to_c_int(arg1, int);
6335   if (x1 == (int)-1 && PyErr_Occurred())
6336     return NULL;
6337 
6338   datasize = _cffi_prepare_pointer_call_argument(
6339       _cffi_type(108), arg2, (char **)&x2);
6340   if (datasize != 0) {
6341     x2 = ((size_t)datasize) <= 640 ? (int *)alloca((size_t)datasize) : NULL;
6342     if (_cffi_convert_array_argument(_cffi_type(108), arg2, (char **)&x2,
6343             datasize, &large_args_free) < 0)
6344       return NULL;
6345   }
6346 
6347   Py_BEGIN_ALLOW_THREADS
6348   _cffi_restore_errno();
6349   { result = clingo_ast_attribute_type(x0, x1, x2); }
6350   _cffi_save_errno();
6351   Py_END_ALLOW_THREADS
6352 
6353   (void)self; /* unused */
6354   pyresult = _cffi_from_c__Bool(result);
6355   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
6356   return pyresult;
6357 }
6358 #else
6359 #  define _cffi_f_clingo_ast_attribute_type _cffi_d_clingo_ast_attribute_type
6360 #endif
6361 
_cffi_const_clingo_ast_build(char * o)6362 static void _cffi_const_clingo_ast_build(char *o)
6363 {
6364   *(_Bool(* *)(int, clingo_ast_t * *, ...))o = clingo_ast_build;
6365 }
6366 
_cffi_d_clingo_ast_copy(clingo_ast_t * x0,clingo_ast_t ** x1)6367 static _Bool _cffi_d_clingo_ast_copy(clingo_ast_t * x0, clingo_ast_t * * x1)
6368 {
6369   return clingo_ast_copy(x0, x1);
6370 }
6371 #ifndef PYPY_VERSION
6372 static PyObject *
_cffi_f_clingo_ast_copy(PyObject * self,PyObject * args)6373 _cffi_f_clingo_ast_copy(PyObject *self, PyObject *args)
6374 {
6375   clingo_ast_t * x0;
6376   clingo_ast_t * * x1;
6377   Py_ssize_t datasize;
6378   struct _cffi_freeme_s *large_args_free = NULL;
6379   _Bool result;
6380   PyObject *pyresult;
6381   PyObject *arg0;
6382   PyObject *arg1;
6383 
6384   if (!PyArg_UnpackTuple(args, "clingo_ast_copy", 2, 2, &arg0, &arg1))
6385     return NULL;
6386 
6387   datasize = _cffi_prepare_pointer_call_argument(
6388       _cffi_type(135), arg0, (char **)&x0);
6389   if (datasize != 0) {
6390     x0 = ((size_t)datasize) <= 640 ? (clingo_ast_t *)alloca((size_t)datasize) : NULL;
6391     if (_cffi_convert_array_argument(_cffi_type(135), arg0, (char **)&x0,
6392             datasize, &large_args_free) < 0)
6393       return NULL;
6394   }
6395 
6396   datasize = _cffi_prepare_pointer_call_argument(
6397       _cffi_type(141), arg1, (char **)&x1);
6398   if (datasize != 0) {
6399     x1 = ((size_t)datasize) <= 640 ? (clingo_ast_t * *)alloca((size_t)datasize) : NULL;
6400     if (_cffi_convert_array_argument(_cffi_type(141), arg1, (char **)&x1,
6401             datasize, &large_args_free) < 0)
6402       return NULL;
6403   }
6404 
6405   Py_BEGIN_ALLOW_THREADS
6406   _cffi_restore_errno();
6407   { result = clingo_ast_copy(x0, x1); }
6408   _cffi_save_errno();
6409   Py_END_ALLOW_THREADS
6410 
6411   (void)self; /* unused */
6412   pyresult = _cffi_from_c__Bool(result);
6413   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
6414   return pyresult;
6415 }
6416 #else
6417 #  define _cffi_f_clingo_ast_copy _cffi_d_clingo_ast_copy
6418 #endif
6419 
_cffi_d_clingo_ast_deep_copy(clingo_ast_t * x0,clingo_ast_t ** x1)6420 static _Bool _cffi_d_clingo_ast_deep_copy(clingo_ast_t * x0, clingo_ast_t * * x1)
6421 {
6422   return clingo_ast_deep_copy(x0, x1);
6423 }
6424 #ifndef PYPY_VERSION
6425 static PyObject *
_cffi_f_clingo_ast_deep_copy(PyObject * self,PyObject * args)6426 _cffi_f_clingo_ast_deep_copy(PyObject *self, PyObject *args)
6427 {
6428   clingo_ast_t * x0;
6429   clingo_ast_t * * x1;
6430   Py_ssize_t datasize;
6431   struct _cffi_freeme_s *large_args_free = NULL;
6432   _Bool result;
6433   PyObject *pyresult;
6434   PyObject *arg0;
6435   PyObject *arg1;
6436 
6437   if (!PyArg_UnpackTuple(args, "clingo_ast_deep_copy", 2, 2, &arg0, &arg1))
6438     return NULL;
6439 
6440   datasize = _cffi_prepare_pointer_call_argument(
6441       _cffi_type(135), arg0, (char **)&x0);
6442   if (datasize != 0) {
6443     x0 = ((size_t)datasize) <= 640 ? (clingo_ast_t *)alloca((size_t)datasize) : NULL;
6444     if (_cffi_convert_array_argument(_cffi_type(135), arg0, (char **)&x0,
6445             datasize, &large_args_free) < 0)
6446       return NULL;
6447   }
6448 
6449   datasize = _cffi_prepare_pointer_call_argument(
6450       _cffi_type(141), arg1, (char **)&x1);
6451   if (datasize != 0) {
6452     x1 = ((size_t)datasize) <= 640 ? (clingo_ast_t * *)alloca((size_t)datasize) : NULL;
6453     if (_cffi_convert_array_argument(_cffi_type(141), arg1, (char **)&x1,
6454             datasize, &large_args_free) < 0)
6455       return NULL;
6456   }
6457 
6458   Py_BEGIN_ALLOW_THREADS
6459   _cffi_restore_errno();
6460   { result = clingo_ast_deep_copy(x0, x1); }
6461   _cffi_save_errno();
6462   Py_END_ALLOW_THREADS
6463 
6464   (void)self; /* unused */
6465   pyresult = _cffi_from_c__Bool(result);
6466   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
6467   return pyresult;
6468 }
6469 #else
6470 #  define _cffi_f_clingo_ast_deep_copy _cffi_d_clingo_ast_deep_copy
6471 #endif
6472 
_cffi_d_clingo_ast_equal(clingo_ast_t * x0,clingo_ast_t * x1)6473 static _Bool _cffi_d_clingo_ast_equal(clingo_ast_t * x0, clingo_ast_t * x1)
6474 {
6475   return clingo_ast_equal(x0, x1);
6476 }
6477 #ifndef PYPY_VERSION
6478 static PyObject *
_cffi_f_clingo_ast_equal(PyObject * self,PyObject * args)6479 _cffi_f_clingo_ast_equal(PyObject *self, PyObject *args)
6480 {
6481   clingo_ast_t * x0;
6482   clingo_ast_t * x1;
6483   Py_ssize_t datasize;
6484   struct _cffi_freeme_s *large_args_free = NULL;
6485   _Bool result;
6486   PyObject *pyresult;
6487   PyObject *arg0;
6488   PyObject *arg1;
6489 
6490   if (!PyArg_UnpackTuple(args, "clingo_ast_equal", 2, 2, &arg0, &arg1))
6491     return NULL;
6492 
6493   datasize = _cffi_prepare_pointer_call_argument(
6494       _cffi_type(135), arg0, (char **)&x0);
6495   if (datasize != 0) {
6496     x0 = ((size_t)datasize) <= 640 ? (clingo_ast_t *)alloca((size_t)datasize) : NULL;
6497     if (_cffi_convert_array_argument(_cffi_type(135), arg0, (char **)&x0,
6498             datasize, &large_args_free) < 0)
6499       return NULL;
6500   }
6501 
6502   datasize = _cffi_prepare_pointer_call_argument(
6503       _cffi_type(135), arg1, (char **)&x1);
6504   if (datasize != 0) {
6505     x1 = ((size_t)datasize) <= 640 ? (clingo_ast_t *)alloca((size_t)datasize) : NULL;
6506     if (_cffi_convert_array_argument(_cffi_type(135), arg1, (char **)&x1,
6507             datasize, &large_args_free) < 0)
6508       return NULL;
6509   }
6510 
6511   Py_BEGIN_ALLOW_THREADS
6512   _cffi_restore_errno();
6513   { result = clingo_ast_equal(x0, x1); }
6514   _cffi_save_errno();
6515   Py_END_ALLOW_THREADS
6516 
6517   (void)self; /* unused */
6518   pyresult = _cffi_from_c__Bool(result);
6519   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
6520   return pyresult;
6521 }
6522 #else
6523 #  define _cffi_f_clingo_ast_equal _cffi_d_clingo_ast_equal
6524 #endif
6525 
_cffi_d_clingo_ast_get_type(clingo_ast_t * x0,int * x1)6526 static _Bool _cffi_d_clingo_ast_get_type(clingo_ast_t * x0, int * x1)
6527 {
6528   return clingo_ast_get_type(x0, x1);
6529 }
6530 #ifndef PYPY_VERSION
6531 static PyObject *
_cffi_f_clingo_ast_get_type(PyObject * self,PyObject * args)6532 _cffi_f_clingo_ast_get_type(PyObject *self, PyObject *args)
6533 {
6534   clingo_ast_t * x0;
6535   int * x1;
6536   Py_ssize_t datasize;
6537   struct _cffi_freeme_s *large_args_free = NULL;
6538   _Bool result;
6539   PyObject *pyresult;
6540   PyObject *arg0;
6541   PyObject *arg1;
6542 
6543   if (!PyArg_UnpackTuple(args, "clingo_ast_get_type", 2, 2, &arg0, &arg1))
6544     return NULL;
6545 
6546   datasize = _cffi_prepare_pointer_call_argument(
6547       _cffi_type(135), arg0, (char **)&x0);
6548   if (datasize != 0) {
6549     x0 = ((size_t)datasize) <= 640 ? (clingo_ast_t *)alloca((size_t)datasize) : NULL;
6550     if (_cffi_convert_array_argument(_cffi_type(135), arg0, (char **)&x0,
6551             datasize, &large_args_free) < 0)
6552       return NULL;
6553   }
6554 
6555   datasize = _cffi_prepare_pointer_call_argument(
6556       _cffi_type(108), arg1, (char **)&x1);
6557   if (datasize != 0) {
6558     x1 = ((size_t)datasize) <= 640 ? (int *)alloca((size_t)datasize) : NULL;
6559     if (_cffi_convert_array_argument(_cffi_type(108), arg1, (char **)&x1,
6560             datasize, &large_args_free) < 0)
6561       return NULL;
6562   }
6563 
6564   Py_BEGIN_ALLOW_THREADS
6565   _cffi_restore_errno();
6566   { result = clingo_ast_get_type(x0, x1); }
6567   _cffi_save_errno();
6568   Py_END_ALLOW_THREADS
6569 
6570   (void)self; /* unused */
6571   pyresult = _cffi_from_c__Bool(result);
6572   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
6573   return pyresult;
6574 }
6575 #else
6576 #  define _cffi_f_clingo_ast_get_type _cffi_d_clingo_ast_get_type
6577 #endif
6578 
_cffi_d_clingo_ast_has_attribute(clingo_ast_t * x0,int x1,_Bool * x2)6579 static _Bool _cffi_d_clingo_ast_has_attribute(clingo_ast_t * x0, int x1, _Bool * x2)
6580 {
6581   return clingo_ast_has_attribute(x0, x1, x2);
6582 }
6583 #ifndef PYPY_VERSION
6584 static PyObject *
_cffi_f_clingo_ast_has_attribute(PyObject * self,PyObject * args)6585 _cffi_f_clingo_ast_has_attribute(PyObject *self, PyObject *args)
6586 {
6587   clingo_ast_t * x0;
6588   int x1;
6589   _Bool * x2;
6590   Py_ssize_t datasize;
6591   struct _cffi_freeme_s *large_args_free = NULL;
6592   _Bool result;
6593   PyObject *pyresult;
6594   PyObject *arg0;
6595   PyObject *arg1;
6596   PyObject *arg2;
6597 
6598   if (!PyArg_UnpackTuple(args, "clingo_ast_has_attribute", 3, 3, &arg0, &arg1, &arg2))
6599     return NULL;
6600 
6601   datasize = _cffi_prepare_pointer_call_argument(
6602       _cffi_type(135), arg0, (char **)&x0);
6603   if (datasize != 0) {
6604     x0 = ((size_t)datasize) <= 640 ? (clingo_ast_t *)alloca((size_t)datasize) : NULL;
6605     if (_cffi_convert_array_argument(_cffi_type(135), arg0, (char **)&x0,
6606             datasize, &large_args_free) < 0)
6607       return NULL;
6608   }
6609 
6610   x1 = _cffi_to_c_int(arg1, int);
6611   if (x1 == (int)-1 && PyErr_Occurred())
6612     return NULL;
6613 
6614   datasize = _cffi_prepare_pointer_call_argument(
6615       _cffi_type(40), arg2, (char **)&x2);
6616   if (datasize != 0) {
6617     x2 = ((size_t)datasize) <= 640 ? (_Bool *)alloca((size_t)datasize) : NULL;
6618     if (_cffi_convert_array_argument(_cffi_type(40), arg2, (char **)&x2,
6619             datasize, &large_args_free) < 0)
6620       return NULL;
6621   }
6622 
6623   Py_BEGIN_ALLOW_THREADS
6624   _cffi_restore_errno();
6625   { result = clingo_ast_has_attribute(x0, x1, x2); }
6626   _cffi_save_errno();
6627   Py_END_ALLOW_THREADS
6628 
6629   (void)self; /* unused */
6630   pyresult = _cffi_from_c__Bool(result);
6631   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
6632   return pyresult;
6633 }
6634 #else
6635 #  define _cffi_f_clingo_ast_has_attribute _cffi_d_clingo_ast_has_attribute
6636 #endif
6637 
_cffi_d_clingo_ast_hash(clingo_ast_t * x0)6638 static size_t _cffi_d_clingo_ast_hash(clingo_ast_t * x0)
6639 {
6640   return clingo_ast_hash(x0);
6641 }
6642 #ifndef PYPY_VERSION
6643 static PyObject *
_cffi_f_clingo_ast_hash(PyObject * self,PyObject * arg0)6644 _cffi_f_clingo_ast_hash(PyObject *self, PyObject *arg0)
6645 {
6646   clingo_ast_t * x0;
6647   Py_ssize_t datasize;
6648   struct _cffi_freeme_s *large_args_free = NULL;
6649   size_t result;
6650   PyObject *pyresult;
6651 
6652   datasize = _cffi_prepare_pointer_call_argument(
6653       _cffi_type(135), arg0, (char **)&x0);
6654   if (datasize != 0) {
6655     x0 = ((size_t)datasize) <= 640 ? (clingo_ast_t *)alloca((size_t)datasize) : NULL;
6656     if (_cffi_convert_array_argument(_cffi_type(135), arg0, (char **)&x0,
6657             datasize, &large_args_free) < 0)
6658       return NULL;
6659   }
6660 
6661   Py_BEGIN_ALLOW_THREADS
6662   _cffi_restore_errno();
6663   { result = clingo_ast_hash(x0); }
6664   _cffi_save_errno();
6665   Py_END_ALLOW_THREADS
6666 
6667   (void)self; /* unused */
6668   pyresult = _cffi_from_c_int(result, size_t);
6669   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
6670   return pyresult;
6671 }
6672 #else
6673 #  define _cffi_f_clingo_ast_hash _cffi_d_clingo_ast_hash
6674 #endif
6675 
_cffi_d_clingo_ast_less_than(clingo_ast_t * x0,clingo_ast_t * x1)6676 static _Bool _cffi_d_clingo_ast_less_than(clingo_ast_t * x0, clingo_ast_t * x1)
6677 {
6678   return clingo_ast_less_than(x0, x1);
6679 }
6680 #ifndef PYPY_VERSION
6681 static PyObject *
_cffi_f_clingo_ast_less_than(PyObject * self,PyObject * args)6682 _cffi_f_clingo_ast_less_than(PyObject *self, PyObject *args)
6683 {
6684   clingo_ast_t * x0;
6685   clingo_ast_t * x1;
6686   Py_ssize_t datasize;
6687   struct _cffi_freeme_s *large_args_free = NULL;
6688   _Bool result;
6689   PyObject *pyresult;
6690   PyObject *arg0;
6691   PyObject *arg1;
6692 
6693   if (!PyArg_UnpackTuple(args, "clingo_ast_less_than", 2, 2, &arg0, &arg1))
6694     return NULL;
6695 
6696   datasize = _cffi_prepare_pointer_call_argument(
6697       _cffi_type(135), arg0, (char **)&x0);
6698   if (datasize != 0) {
6699     x0 = ((size_t)datasize) <= 640 ? (clingo_ast_t *)alloca((size_t)datasize) : NULL;
6700     if (_cffi_convert_array_argument(_cffi_type(135), arg0, (char **)&x0,
6701             datasize, &large_args_free) < 0)
6702       return NULL;
6703   }
6704 
6705   datasize = _cffi_prepare_pointer_call_argument(
6706       _cffi_type(135), arg1, (char **)&x1);
6707   if (datasize != 0) {
6708     x1 = ((size_t)datasize) <= 640 ? (clingo_ast_t *)alloca((size_t)datasize) : NULL;
6709     if (_cffi_convert_array_argument(_cffi_type(135), arg1, (char **)&x1,
6710             datasize, &large_args_free) < 0)
6711       return NULL;
6712   }
6713 
6714   Py_BEGIN_ALLOW_THREADS
6715   _cffi_restore_errno();
6716   { result = clingo_ast_less_than(x0, x1); }
6717   _cffi_save_errno();
6718   Py_END_ALLOW_THREADS
6719 
6720   (void)self; /* unused */
6721   pyresult = _cffi_from_c__Bool(result);
6722   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
6723   return pyresult;
6724 }
6725 #else
6726 #  define _cffi_f_clingo_ast_less_than _cffi_d_clingo_ast_less_than
6727 #endif
6728 
_cffi_d_clingo_ast_parse_files(char const * const * x0,size_t x1,_Bool (* x2)(clingo_ast_t *,void *),void * x3,void (* x4)(int,char const *,void *),void * x5,unsigned int x6)6729 static _Bool _cffi_d_clingo_ast_parse_files(char const * const * x0, size_t x1, _Bool(* x2)(clingo_ast_t *, void *), void * x3, void(* x4)(int, char const *, void *), void * x5, unsigned int x6)
6730 {
6731   return clingo_ast_parse_files(x0, x1, x2, x3, x4, x5, x6);
6732 }
6733 #ifndef PYPY_VERSION
6734 static PyObject *
_cffi_f_clingo_ast_parse_files(PyObject * self,PyObject * args)6735 _cffi_f_clingo_ast_parse_files(PyObject *self, PyObject *args)
6736 {
6737   char const * const * x0;
6738   size_t x1;
6739   _Bool(* x2)(clingo_ast_t *, void *);
6740   void * x3;
6741   void(* x4)(int, char const *, void *);
6742   void * x5;
6743   unsigned int x6;
6744   Py_ssize_t datasize;
6745   struct _cffi_freeme_s *large_args_free = NULL;
6746   _Bool result;
6747   PyObject *pyresult;
6748   PyObject *arg0;
6749   PyObject *arg1;
6750   PyObject *arg2;
6751   PyObject *arg3;
6752   PyObject *arg4;
6753   PyObject *arg5;
6754   PyObject *arg6;
6755 
6756   if (!PyArg_UnpackTuple(args, "clingo_ast_parse_files", 7, 7, &arg0, &arg1, &arg2, &arg3, &arg4, &arg5, &arg6))
6757     return NULL;
6758 
6759   datasize = _cffi_prepare_pointer_call_argument(
6760       _cffi_type(22), arg0, (char **)&x0);
6761   if (datasize != 0) {
6762     x0 = ((size_t)datasize) <= 640 ? (char const * const *)alloca((size_t)datasize) : NULL;
6763     if (_cffi_convert_array_argument(_cffi_type(22), arg0, (char **)&x0,
6764             datasize, &large_args_free) < 0)
6765       return NULL;
6766   }
6767 
6768   x1 = _cffi_to_c_int(arg1, size_t);
6769   if (x1 == (size_t)-1 && PyErr_Occurred())
6770     return NULL;
6771 
6772   x2 = (_Bool(*)(clingo_ast_t *, void *))_cffi_to_c_pointer(arg2, _cffi_type(24));
6773   if (x2 == (_Bool(*)(clingo_ast_t *, void *))NULL && PyErr_Occurred())
6774     return NULL;
6775 
6776   datasize = _cffi_prepare_pointer_call_argument(
6777       _cffi_type(6), arg3, (char **)&x3);
6778   if (datasize != 0) {
6779     x3 = ((size_t)datasize) <= 640 ? (void *)alloca((size_t)datasize) : NULL;
6780     if (_cffi_convert_array_argument(_cffi_type(6), arg3, (char **)&x3,
6781             datasize, &large_args_free) < 0)
6782       return NULL;
6783   }
6784 
6785   x4 = (void(*)(int, char const *, void *))_cffi_to_c_pointer(arg4, _cffi_type(26));
6786   if (x4 == (void(*)(int, char const *, void *))NULL && PyErr_Occurred())
6787     return NULL;
6788 
6789   datasize = _cffi_prepare_pointer_call_argument(
6790       _cffi_type(6), arg5, (char **)&x5);
6791   if (datasize != 0) {
6792     x5 = ((size_t)datasize) <= 640 ? (void *)alloca((size_t)datasize) : NULL;
6793     if (_cffi_convert_array_argument(_cffi_type(6), arg5, (char **)&x5,
6794             datasize, &large_args_free) < 0)
6795       return NULL;
6796   }
6797 
6798   x6 = _cffi_to_c_int(arg6, unsigned int);
6799   if (x6 == (unsigned int)-1 && PyErr_Occurred())
6800     return NULL;
6801 
6802   Py_BEGIN_ALLOW_THREADS
6803   _cffi_restore_errno();
6804   { result = clingo_ast_parse_files(x0, x1, x2, x3, x4, x5, x6); }
6805   _cffi_save_errno();
6806   Py_END_ALLOW_THREADS
6807 
6808   (void)self; /* unused */
6809   pyresult = _cffi_from_c__Bool(result);
6810   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
6811   return pyresult;
6812 }
6813 #else
6814 #  define _cffi_f_clingo_ast_parse_files _cffi_d_clingo_ast_parse_files
6815 #endif
6816 
_cffi_d_clingo_ast_parse_string(char const * x0,_Bool (* x1)(clingo_ast_t *,void *),void * x2,void (* x3)(int,char const *,void *),void * x4,unsigned int x5)6817 static _Bool _cffi_d_clingo_ast_parse_string(char const * x0, _Bool(* x1)(clingo_ast_t *, void *), void * x2, void(* x3)(int, char const *, void *), void * x4, unsigned int x5)
6818 {
6819   return clingo_ast_parse_string(x0, x1, x2, x3, x4, x5);
6820 }
6821 #ifndef PYPY_VERSION
6822 static PyObject *
_cffi_f_clingo_ast_parse_string(PyObject * self,PyObject * args)6823 _cffi_f_clingo_ast_parse_string(PyObject *self, PyObject *args)
6824 {
6825   char const * x0;
6826   _Bool(* x1)(clingo_ast_t *, void *);
6827   void * x2;
6828   void(* x3)(int, char const *, void *);
6829   void * x4;
6830   unsigned int x5;
6831   Py_ssize_t datasize;
6832   struct _cffi_freeme_s *large_args_free = NULL;
6833   _Bool result;
6834   PyObject *pyresult;
6835   PyObject *arg0;
6836   PyObject *arg1;
6837   PyObject *arg2;
6838   PyObject *arg3;
6839   PyObject *arg4;
6840   PyObject *arg5;
6841 
6842   if (!PyArg_UnpackTuple(args, "clingo_ast_parse_string", 6, 6, &arg0, &arg1, &arg2, &arg3, &arg4, &arg5))
6843     return NULL;
6844 
6845   datasize = _cffi_prepare_pointer_call_argument(
6846       _cffi_type(39), arg0, (char **)&x0);
6847   if (datasize != 0) {
6848     x0 = ((size_t)datasize) <= 640 ? (char const *)alloca((size_t)datasize) : NULL;
6849     if (_cffi_convert_array_argument(_cffi_type(39), arg0, (char **)&x0,
6850             datasize, &large_args_free) < 0)
6851       return NULL;
6852   }
6853 
6854   x1 = (_Bool(*)(clingo_ast_t *, void *))_cffi_to_c_pointer(arg1, _cffi_type(24));
6855   if (x1 == (_Bool(*)(clingo_ast_t *, void *))NULL && PyErr_Occurred())
6856     return NULL;
6857 
6858   datasize = _cffi_prepare_pointer_call_argument(
6859       _cffi_type(6), arg2, (char **)&x2);
6860   if (datasize != 0) {
6861     x2 = ((size_t)datasize) <= 640 ? (void *)alloca((size_t)datasize) : NULL;
6862     if (_cffi_convert_array_argument(_cffi_type(6), arg2, (char **)&x2,
6863             datasize, &large_args_free) < 0)
6864       return NULL;
6865   }
6866 
6867   x3 = (void(*)(int, char const *, void *))_cffi_to_c_pointer(arg3, _cffi_type(26));
6868   if (x3 == (void(*)(int, char const *, void *))NULL && PyErr_Occurred())
6869     return NULL;
6870 
6871   datasize = _cffi_prepare_pointer_call_argument(
6872       _cffi_type(6), arg4, (char **)&x4);
6873   if (datasize != 0) {
6874     x4 = ((size_t)datasize) <= 640 ? (void *)alloca((size_t)datasize) : NULL;
6875     if (_cffi_convert_array_argument(_cffi_type(6), arg4, (char **)&x4,
6876             datasize, &large_args_free) < 0)
6877       return NULL;
6878   }
6879 
6880   x5 = _cffi_to_c_int(arg5, unsigned int);
6881   if (x5 == (unsigned int)-1 && PyErr_Occurred())
6882     return NULL;
6883 
6884   Py_BEGIN_ALLOW_THREADS
6885   _cffi_restore_errno();
6886   { result = clingo_ast_parse_string(x0, x1, x2, x3, x4, x5); }
6887   _cffi_save_errno();
6888   Py_END_ALLOW_THREADS
6889 
6890   (void)self; /* unused */
6891   pyresult = _cffi_from_c__Bool(result);
6892   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
6893   return pyresult;
6894 }
6895 #else
6896 #  define _cffi_f_clingo_ast_parse_string _cffi_d_clingo_ast_parse_string
6897 #endif
6898 
_cffi_d_clingo_ast_release(clingo_ast_t * x0)6899 static void _cffi_d_clingo_ast_release(clingo_ast_t * x0)
6900 {
6901   clingo_ast_release(x0);
6902 }
6903 #ifndef PYPY_VERSION
6904 static PyObject *
_cffi_f_clingo_ast_release(PyObject * self,PyObject * arg0)6905 _cffi_f_clingo_ast_release(PyObject *self, PyObject *arg0)
6906 {
6907   clingo_ast_t * x0;
6908   Py_ssize_t datasize;
6909   struct _cffi_freeme_s *large_args_free = NULL;
6910 
6911   datasize = _cffi_prepare_pointer_call_argument(
6912       _cffi_type(135), arg0, (char **)&x0);
6913   if (datasize != 0) {
6914     x0 = ((size_t)datasize) <= 640 ? (clingo_ast_t *)alloca((size_t)datasize) : NULL;
6915     if (_cffi_convert_array_argument(_cffi_type(135), arg0, (char **)&x0,
6916             datasize, &large_args_free) < 0)
6917       return NULL;
6918   }
6919 
6920   Py_BEGIN_ALLOW_THREADS
6921   _cffi_restore_errno();
6922   { clingo_ast_release(x0); }
6923   _cffi_save_errno();
6924   Py_END_ALLOW_THREADS
6925 
6926   (void)self; /* unused */
6927   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
6928   Py_INCREF(Py_None);
6929   return Py_None;
6930 }
6931 #else
6932 #  define _cffi_f_clingo_ast_release _cffi_d_clingo_ast_release
6933 #endif
6934 
_cffi_d_clingo_ast_to_string(clingo_ast_t * x0,char * x1,size_t x2)6935 static _Bool _cffi_d_clingo_ast_to_string(clingo_ast_t * x0, char * x1, size_t x2)
6936 {
6937   return clingo_ast_to_string(x0, x1, x2);
6938 }
6939 #ifndef PYPY_VERSION
6940 static PyObject *
_cffi_f_clingo_ast_to_string(PyObject * self,PyObject * args)6941 _cffi_f_clingo_ast_to_string(PyObject *self, PyObject *args)
6942 {
6943   clingo_ast_t * x0;
6944   char * x1;
6945   size_t x2;
6946   Py_ssize_t datasize;
6947   struct _cffi_freeme_s *large_args_free = NULL;
6948   _Bool result;
6949   PyObject *pyresult;
6950   PyObject *arg0;
6951   PyObject *arg1;
6952   PyObject *arg2;
6953 
6954   if (!PyArg_UnpackTuple(args, "clingo_ast_to_string", 3, 3, &arg0, &arg1, &arg2))
6955     return NULL;
6956 
6957   datasize = _cffi_prepare_pointer_call_argument(
6958       _cffi_type(135), arg0, (char **)&x0);
6959   if (datasize != 0) {
6960     x0 = ((size_t)datasize) <= 640 ? (clingo_ast_t *)alloca((size_t)datasize) : NULL;
6961     if (_cffi_convert_array_argument(_cffi_type(135), arg0, (char **)&x0,
6962             datasize, &large_args_free) < 0)
6963       return NULL;
6964   }
6965 
6966   datasize = _cffi_prepare_pointer_call_argument(
6967       _cffi_type(136), arg1, (char **)&x1);
6968   if (datasize != 0) {
6969     x1 = ((size_t)datasize) <= 640 ? (char *)alloca((size_t)datasize) : NULL;
6970     if (_cffi_convert_array_argument(_cffi_type(136), arg1, (char **)&x1,
6971             datasize, &large_args_free) < 0)
6972       return NULL;
6973   }
6974 
6975   x2 = _cffi_to_c_int(arg2, size_t);
6976   if (x2 == (size_t)-1 && PyErr_Occurred())
6977     return NULL;
6978 
6979   Py_BEGIN_ALLOW_THREADS
6980   _cffi_restore_errno();
6981   { result = clingo_ast_to_string(x0, x1, x2); }
6982   _cffi_save_errno();
6983   Py_END_ALLOW_THREADS
6984 
6985   (void)self; /* unused */
6986   pyresult = _cffi_from_c__Bool(result);
6987   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
6988   return pyresult;
6989 }
6990 #else
6991 #  define _cffi_f_clingo_ast_to_string _cffi_d_clingo_ast_to_string
6992 #endif
6993 
_cffi_d_clingo_ast_to_string_size(clingo_ast_t * x0,size_t * x1)6994 static _Bool _cffi_d_clingo_ast_to_string_size(clingo_ast_t * x0, size_t * x1)
6995 {
6996   return clingo_ast_to_string_size(x0, x1);
6997 }
6998 #ifndef PYPY_VERSION
6999 static PyObject *
_cffi_f_clingo_ast_to_string_size(PyObject * self,PyObject * args)7000 _cffi_f_clingo_ast_to_string_size(PyObject *self, PyObject *args)
7001 {
7002   clingo_ast_t * x0;
7003   size_t * x1;
7004   Py_ssize_t datasize;
7005   struct _cffi_freeme_s *large_args_free = NULL;
7006   _Bool result;
7007   PyObject *pyresult;
7008   PyObject *arg0;
7009   PyObject *arg1;
7010 
7011   if (!PyArg_UnpackTuple(args, "clingo_ast_to_string_size", 2, 2, &arg0, &arg1))
7012     return NULL;
7013 
7014   datasize = _cffi_prepare_pointer_call_argument(
7015       _cffi_type(135), arg0, (char **)&x0);
7016   if (datasize != 0) {
7017     x0 = ((size_t)datasize) <= 640 ? (clingo_ast_t *)alloca((size_t)datasize) : NULL;
7018     if (_cffi_convert_array_argument(_cffi_type(135), arg0, (char **)&x0,
7019             datasize, &large_args_free) < 0)
7020       return NULL;
7021   }
7022 
7023   datasize = _cffi_prepare_pointer_call_argument(
7024       _cffi_type(205), arg1, (char **)&x1);
7025   if (datasize != 0) {
7026     x1 = ((size_t)datasize) <= 640 ? (size_t *)alloca((size_t)datasize) : NULL;
7027     if (_cffi_convert_array_argument(_cffi_type(205), arg1, (char **)&x1,
7028             datasize, &large_args_free) < 0)
7029       return NULL;
7030   }
7031 
7032   Py_BEGIN_ALLOW_THREADS
7033   _cffi_restore_errno();
7034   { result = clingo_ast_to_string_size(x0, x1); }
7035   _cffi_save_errno();
7036   Py_END_ALLOW_THREADS
7037 
7038   (void)self; /* unused */
7039   pyresult = _cffi_from_c__Bool(result);
7040   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
7041   return pyresult;
7042 }
7043 #else
7044 #  define _cffi_f_clingo_ast_to_string_size _cffi_d_clingo_ast_to_string_size
7045 #endif
7046 
_cffi_d_clingo_ast_unpool(clingo_ast_t * x0,int x1,_Bool (* x2)(clingo_ast_t *,void *),void * x3)7047 static _Bool _cffi_d_clingo_ast_unpool(clingo_ast_t * x0, int x1, _Bool(* x2)(clingo_ast_t *, void *), void * x3)
7048 {
7049   return clingo_ast_unpool(x0, x1, x2, x3);
7050 }
7051 #ifndef PYPY_VERSION
7052 static PyObject *
_cffi_f_clingo_ast_unpool(PyObject * self,PyObject * args)7053 _cffi_f_clingo_ast_unpool(PyObject *self, PyObject *args)
7054 {
7055   clingo_ast_t * x0;
7056   int x1;
7057   _Bool(* x2)(clingo_ast_t *, void *);
7058   void * x3;
7059   Py_ssize_t datasize;
7060   struct _cffi_freeme_s *large_args_free = NULL;
7061   _Bool result;
7062   PyObject *pyresult;
7063   PyObject *arg0;
7064   PyObject *arg1;
7065   PyObject *arg2;
7066   PyObject *arg3;
7067 
7068   if (!PyArg_UnpackTuple(args, "clingo_ast_unpool", 4, 4, &arg0, &arg1, &arg2, &arg3))
7069     return NULL;
7070 
7071   datasize = _cffi_prepare_pointer_call_argument(
7072       _cffi_type(135), arg0, (char **)&x0);
7073   if (datasize != 0) {
7074     x0 = ((size_t)datasize) <= 640 ? (clingo_ast_t *)alloca((size_t)datasize) : NULL;
7075     if (_cffi_convert_array_argument(_cffi_type(135), arg0, (char **)&x0,
7076             datasize, &large_args_free) < 0)
7077       return NULL;
7078   }
7079 
7080   x1 = _cffi_to_c_int(arg1, int);
7081   if (x1 == (int)-1 && PyErr_Occurred())
7082     return NULL;
7083 
7084   x2 = (_Bool(*)(clingo_ast_t *, void *))_cffi_to_c_pointer(arg2, _cffi_type(24));
7085   if (x2 == (_Bool(*)(clingo_ast_t *, void *))NULL && PyErr_Occurred())
7086     return NULL;
7087 
7088   datasize = _cffi_prepare_pointer_call_argument(
7089       _cffi_type(6), arg3, (char **)&x3);
7090   if (datasize != 0) {
7091     x3 = ((size_t)datasize) <= 640 ? (void *)alloca((size_t)datasize) : NULL;
7092     if (_cffi_convert_array_argument(_cffi_type(6), arg3, (char **)&x3,
7093             datasize, &large_args_free) < 0)
7094       return NULL;
7095   }
7096 
7097   Py_BEGIN_ALLOW_THREADS
7098   _cffi_restore_errno();
7099   { result = clingo_ast_unpool(x0, x1, x2, x3); }
7100   _cffi_save_errno();
7101   Py_END_ALLOW_THREADS
7102 
7103   (void)self; /* unused */
7104   pyresult = _cffi_from_c__Bool(result);
7105   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
7106   return pyresult;
7107 }
7108 #else
7109 #  define _cffi_f_clingo_ast_unpool _cffi_d_clingo_ast_unpool
7110 #endif
7111 
_cffi_d_clingo_backend_acyc_edge(clingo_backend_t * x0,int x1,int x2,int32_t const * x3,size_t x4)7112 static _Bool _cffi_d_clingo_backend_acyc_edge(clingo_backend_t * x0, int x1, int x2, int32_t const * x3, size_t x4)
7113 {
7114   return clingo_backend_acyc_edge(x0, x1, x2, x3, x4);
7115 }
7116 #ifndef PYPY_VERSION
7117 static PyObject *
_cffi_f_clingo_backend_acyc_edge(PyObject * self,PyObject * args)7118 _cffi_f_clingo_backend_acyc_edge(PyObject *self, PyObject *args)
7119 {
7120   clingo_backend_t * x0;
7121   int x1;
7122   int x2;
7123   int32_t const * x3;
7124   size_t x4;
7125   Py_ssize_t datasize;
7126   struct _cffi_freeme_s *large_args_free = NULL;
7127   _Bool result;
7128   PyObject *pyresult;
7129   PyObject *arg0;
7130   PyObject *arg1;
7131   PyObject *arg2;
7132   PyObject *arg3;
7133   PyObject *arg4;
7134 
7135   if (!PyArg_UnpackTuple(args, "clingo_backend_acyc_edge", 5, 5, &arg0, &arg1, &arg2, &arg3, &arg4))
7136     return NULL;
7137 
7138   datasize = _cffi_prepare_pointer_call_argument(
7139       _cffi_type(259), arg0, (char **)&x0);
7140   if (datasize != 0) {
7141     x0 = ((size_t)datasize) <= 640 ? (clingo_backend_t *)alloca((size_t)datasize) : NULL;
7142     if (_cffi_convert_array_argument(_cffi_type(259), arg0, (char **)&x0,
7143             datasize, &large_args_free) < 0)
7144       return NULL;
7145   }
7146 
7147   x1 = _cffi_to_c_int(arg1, int);
7148   if (x1 == (int)-1 && PyErr_Occurred())
7149     return NULL;
7150 
7151   x2 = _cffi_to_c_int(arg2, int);
7152   if (x2 == (int)-1 && PyErr_Occurred())
7153     return NULL;
7154 
7155   datasize = _cffi_prepare_pointer_call_argument(
7156       _cffi_type(4), arg3, (char **)&x3);
7157   if (datasize != 0) {
7158     x3 = ((size_t)datasize) <= 640 ? (int32_t const *)alloca((size_t)datasize) : NULL;
7159     if (_cffi_convert_array_argument(_cffi_type(4), arg3, (char **)&x3,
7160             datasize, &large_args_free) < 0)
7161       return NULL;
7162   }
7163 
7164   x4 = _cffi_to_c_int(arg4, size_t);
7165   if (x4 == (size_t)-1 && PyErr_Occurred())
7166     return NULL;
7167 
7168   Py_BEGIN_ALLOW_THREADS
7169   _cffi_restore_errno();
7170   { result = clingo_backend_acyc_edge(x0, x1, x2, x3, x4); }
7171   _cffi_save_errno();
7172   Py_END_ALLOW_THREADS
7173 
7174   (void)self; /* unused */
7175   pyresult = _cffi_from_c__Bool(result);
7176   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
7177   return pyresult;
7178 }
7179 #else
7180 #  define _cffi_f_clingo_backend_acyc_edge _cffi_d_clingo_backend_acyc_edge
7181 #endif
7182 
_cffi_d_clingo_backend_add_atom(clingo_backend_t * x0,uint64_t * x1,uint32_t * x2)7183 static _Bool _cffi_d_clingo_backend_add_atom(clingo_backend_t * x0, uint64_t * x1, uint32_t * x2)
7184 {
7185   return clingo_backend_add_atom(x0, x1, x2);
7186 }
7187 #ifndef PYPY_VERSION
7188 static PyObject *
_cffi_f_clingo_backend_add_atom(PyObject * self,PyObject * args)7189 _cffi_f_clingo_backend_add_atom(PyObject *self, PyObject *args)
7190 {
7191   clingo_backend_t * x0;
7192   uint64_t * x1;
7193   uint32_t * x2;
7194   Py_ssize_t datasize;
7195   struct _cffi_freeme_s *large_args_free = NULL;
7196   _Bool result;
7197   PyObject *pyresult;
7198   PyObject *arg0;
7199   PyObject *arg1;
7200   PyObject *arg2;
7201 
7202   if (!PyArg_UnpackTuple(args, "clingo_backend_add_atom", 3, 3, &arg0, &arg1, &arg2))
7203     return NULL;
7204 
7205   datasize = _cffi_prepare_pointer_call_argument(
7206       _cffi_type(259), arg0, (char **)&x0);
7207   if (datasize != 0) {
7208     x0 = ((size_t)datasize) <= 640 ? (clingo_backend_t *)alloca((size_t)datasize) : NULL;
7209     if (_cffi_convert_array_argument(_cffi_type(259), arg0, (char **)&x0,
7210             datasize, &large_args_free) < 0)
7211       return NULL;
7212   }
7213 
7214   datasize = _cffi_prepare_pointer_call_argument(
7215       _cffi_type(54), arg1, (char **)&x1);
7216   if (datasize != 0) {
7217     x1 = ((size_t)datasize) <= 640 ? (uint64_t *)alloca((size_t)datasize) : NULL;
7218     if (_cffi_convert_array_argument(_cffi_type(54), arg1, (char **)&x1,
7219             datasize, &large_args_free) < 0)
7220       return NULL;
7221   }
7222 
7223   datasize = _cffi_prepare_pointer_call_argument(
7224       _cffi_type(113), arg2, (char **)&x2);
7225   if (datasize != 0) {
7226     x2 = ((size_t)datasize) <= 640 ? (uint32_t *)alloca((size_t)datasize) : NULL;
7227     if (_cffi_convert_array_argument(_cffi_type(113), arg2, (char **)&x2,
7228             datasize, &large_args_free) < 0)
7229       return NULL;
7230   }
7231 
7232   Py_BEGIN_ALLOW_THREADS
7233   _cffi_restore_errno();
7234   { result = clingo_backend_add_atom(x0, x1, x2); }
7235   _cffi_save_errno();
7236   Py_END_ALLOW_THREADS
7237 
7238   (void)self; /* unused */
7239   pyresult = _cffi_from_c__Bool(result);
7240   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
7241   return pyresult;
7242 }
7243 #else
7244 #  define _cffi_f_clingo_backend_add_atom _cffi_d_clingo_backend_add_atom
7245 #endif
7246 
_cffi_d_clingo_backend_assume(clingo_backend_t * x0,int32_t const * x1,size_t x2)7247 static _Bool _cffi_d_clingo_backend_assume(clingo_backend_t * x0, int32_t const * x1, size_t x2)
7248 {
7249   return clingo_backend_assume(x0, x1, x2);
7250 }
7251 #ifndef PYPY_VERSION
7252 static PyObject *
_cffi_f_clingo_backend_assume(PyObject * self,PyObject * args)7253 _cffi_f_clingo_backend_assume(PyObject *self, PyObject *args)
7254 {
7255   clingo_backend_t * x0;
7256   int32_t const * x1;
7257   size_t x2;
7258   Py_ssize_t datasize;
7259   struct _cffi_freeme_s *large_args_free = NULL;
7260   _Bool result;
7261   PyObject *pyresult;
7262   PyObject *arg0;
7263   PyObject *arg1;
7264   PyObject *arg2;
7265 
7266   if (!PyArg_UnpackTuple(args, "clingo_backend_assume", 3, 3, &arg0, &arg1, &arg2))
7267     return NULL;
7268 
7269   datasize = _cffi_prepare_pointer_call_argument(
7270       _cffi_type(259), arg0, (char **)&x0);
7271   if (datasize != 0) {
7272     x0 = ((size_t)datasize) <= 640 ? (clingo_backend_t *)alloca((size_t)datasize) : NULL;
7273     if (_cffi_convert_array_argument(_cffi_type(259), arg0, (char **)&x0,
7274             datasize, &large_args_free) < 0)
7275       return NULL;
7276   }
7277 
7278   datasize = _cffi_prepare_pointer_call_argument(
7279       _cffi_type(4), arg1, (char **)&x1);
7280   if (datasize != 0) {
7281     x1 = ((size_t)datasize) <= 640 ? (int32_t const *)alloca((size_t)datasize) : NULL;
7282     if (_cffi_convert_array_argument(_cffi_type(4), arg1, (char **)&x1,
7283             datasize, &large_args_free) < 0)
7284       return NULL;
7285   }
7286 
7287   x2 = _cffi_to_c_int(arg2, size_t);
7288   if (x2 == (size_t)-1 && PyErr_Occurred())
7289     return NULL;
7290 
7291   Py_BEGIN_ALLOW_THREADS
7292   _cffi_restore_errno();
7293   { result = clingo_backend_assume(x0, x1, x2); }
7294   _cffi_save_errno();
7295   Py_END_ALLOW_THREADS
7296 
7297   (void)self; /* unused */
7298   pyresult = _cffi_from_c__Bool(result);
7299   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
7300   return pyresult;
7301 }
7302 #else
7303 #  define _cffi_f_clingo_backend_assume _cffi_d_clingo_backend_assume
7304 #endif
7305 
_cffi_d_clingo_backend_begin(clingo_backend_t * x0)7306 static _Bool _cffi_d_clingo_backend_begin(clingo_backend_t * x0)
7307 {
7308   return clingo_backend_begin(x0);
7309 }
7310 #ifndef PYPY_VERSION
7311 static PyObject *
_cffi_f_clingo_backend_begin(PyObject * self,PyObject * arg0)7312 _cffi_f_clingo_backend_begin(PyObject *self, PyObject *arg0)
7313 {
7314   clingo_backend_t * x0;
7315   Py_ssize_t datasize;
7316   struct _cffi_freeme_s *large_args_free = NULL;
7317   _Bool result;
7318   PyObject *pyresult;
7319 
7320   datasize = _cffi_prepare_pointer_call_argument(
7321       _cffi_type(259), arg0, (char **)&x0);
7322   if (datasize != 0) {
7323     x0 = ((size_t)datasize) <= 640 ? (clingo_backend_t *)alloca((size_t)datasize) : NULL;
7324     if (_cffi_convert_array_argument(_cffi_type(259), arg0, (char **)&x0,
7325             datasize, &large_args_free) < 0)
7326       return NULL;
7327   }
7328 
7329   Py_BEGIN_ALLOW_THREADS
7330   _cffi_restore_errno();
7331   { result = clingo_backend_begin(x0); }
7332   _cffi_save_errno();
7333   Py_END_ALLOW_THREADS
7334 
7335   (void)self; /* unused */
7336   pyresult = _cffi_from_c__Bool(result);
7337   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
7338   return pyresult;
7339 }
7340 #else
7341 #  define _cffi_f_clingo_backend_begin _cffi_d_clingo_backend_begin
7342 #endif
7343 
_cffi_d_clingo_backend_end(clingo_backend_t * x0)7344 static _Bool _cffi_d_clingo_backend_end(clingo_backend_t * x0)
7345 {
7346   return clingo_backend_end(x0);
7347 }
7348 #ifndef PYPY_VERSION
7349 static PyObject *
_cffi_f_clingo_backend_end(PyObject * self,PyObject * arg0)7350 _cffi_f_clingo_backend_end(PyObject *self, PyObject *arg0)
7351 {
7352   clingo_backend_t * x0;
7353   Py_ssize_t datasize;
7354   struct _cffi_freeme_s *large_args_free = NULL;
7355   _Bool result;
7356   PyObject *pyresult;
7357 
7358   datasize = _cffi_prepare_pointer_call_argument(
7359       _cffi_type(259), arg0, (char **)&x0);
7360   if (datasize != 0) {
7361     x0 = ((size_t)datasize) <= 640 ? (clingo_backend_t *)alloca((size_t)datasize) : NULL;
7362     if (_cffi_convert_array_argument(_cffi_type(259), arg0, (char **)&x0,
7363             datasize, &large_args_free) < 0)
7364       return NULL;
7365   }
7366 
7367   Py_BEGIN_ALLOW_THREADS
7368   _cffi_restore_errno();
7369   { result = clingo_backend_end(x0); }
7370   _cffi_save_errno();
7371   Py_END_ALLOW_THREADS
7372 
7373   (void)self; /* unused */
7374   pyresult = _cffi_from_c__Bool(result);
7375   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
7376   return pyresult;
7377 }
7378 #else
7379 #  define _cffi_f_clingo_backend_end _cffi_d_clingo_backend_end
7380 #endif
7381 
_cffi_d_clingo_backend_external(clingo_backend_t * x0,uint32_t x1,int x2)7382 static _Bool _cffi_d_clingo_backend_external(clingo_backend_t * x0, uint32_t x1, int x2)
7383 {
7384   return clingo_backend_external(x0, x1, x2);
7385 }
7386 #ifndef PYPY_VERSION
7387 static PyObject *
_cffi_f_clingo_backend_external(PyObject * self,PyObject * args)7388 _cffi_f_clingo_backend_external(PyObject *self, PyObject *args)
7389 {
7390   clingo_backend_t * x0;
7391   uint32_t x1;
7392   int x2;
7393   Py_ssize_t datasize;
7394   struct _cffi_freeme_s *large_args_free = NULL;
7395   _Bool result;
7396   PyObject *pyresult;
7397   PyObject *arg0;
7398   PyObject *arg1;
7399   PyObject *arg2;
7400 
7401   if (!PyArg_UnpackTuple(args, "clingo_backend_external", 3, 3, &arg0, &arg1, &arg2))
7402     return NULL;
7403 
7404   datasize = _cffi_prepare_pointer_call_argument(
7405       _cffi_type(259), arg0, (char **)&x0);
7406   if (datasize != 0) {
7407     x0 = ((size_t)datasize) <= 640 ? (clingo_backend_t *)alloca((size_t)datasize) : NULL;
7408     if (_cffi_convert_array_argument(_cffi_type(259), arg0, (char **)&x0,
7409             datasize, &large_args_free) < 0)
7410       return NULL;
7411   }
7412 
7413   x1 = _cffi_to_c_int(arg1, uint32_t);
7414   if (x1 == (uint32_t)-1 && PyErr_Occurred())
7415     return NULL;
7416 
7417   x2 = _cffi_to_c_int(arg2, int);
7418   if (x2 == (int)-1 && PyErr_Occurred())
7419     return NULL;
7420 
7421   Py_BEGIN_ALLOW_THREADS
7422   _cffi_restore_errno();
7423   { result = clingo_backend_external(x0, x1, x2); }
7424   _cffi_save_errno();
7425   Py_END_ALLOW_THREADS
7426 
7427   (void)self; /* unused */
7428   pyresult = _cffi_from_c__Bool(result);
7429   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
7430   return pyresult;
7431 }
7432 #else
7433 #  define _cffi_f_clingo_backend_external _cffi_d_clingo_backend_external
7434 #endif
7435 
_cffi_d_clingo_backend_heuristic(clingo_backend_t * x0,uint32_t x1,int x2,int x3,unsigned int x4,int32_t const * x5,size_t x6)7436 static _Bool _cffi_d_clingo_backend_heuristic(clingo_backend_t * x0, uint32_t x1, int x2, int x3, unsigned int x4, int32_t const * x5, size_t x6)
7437 {
7438   return clingo_backend_heuristic(x0, x1, x2, x3, x4, x5, x6);
7439 }
7440 #ifndef PYPY_VERSION
7441 static PyObject *
_cffi_f_clingo_backend_heuristic(PyObject * self,PyObject * args)7442 _cffi_f_clingo_backend_heuristic(PyObject *self, PyObject *args)
7443 {
7444   clingo_backend_t * x0;
7445   uint32_t x1;
7446   int x2;
7447   int x3;
7448   unsigned int x4;
7449   int32_t const * x5;
7450   size_t x6;
7451   Py_ssize_t datasize;
7452   struct _cffi_freeme_s *large_args_free = NULL;
7453   _Bool result;
7454   PyObject *pyresult;
7455   PyObject *arg0;
7456   PyObject *arg1;
7457   PyObject *arg2;
7458   PyObject *arg3;
7459   PyObject *arg4;
7460   PyObject *arg5;
7461   PyObject *arg6;
7462 
7463   if (!PyArg_UnpackTuple(args, "clingo_backend_heuristic", 7, 7, &arg0, &arg1, &arg2, &arg3, &arg4, &arg5, &arg6))
7464     return NULL;
7465 
7466   datasize = _cffi_prepare_pointer_call_argument(
7467       _cffi_type(259), arg0, (char **)&x0);
7468   if (datasize != 0) {
7469     x0 = ((size_t)datasize) <= 640 ? (clingo_backend_t *)alloca((size_t)datasize) : NULL;
7470     if (_cffi_convert_array_argument(_cffi_type(259), arg0, (char **)&x0,
7471             datasize, &large_args_free) < 0)
7472       return NULL;
7473   }
7474 
7475   x1 = _cffi_to_c_int(arg1, uint32_t);
7476   if (x1 == (uint32_t)-1 && PyErr_Occurred())
7477     return NULL;
7478 
7479   x2 = _cffi_to_c_int(arg2, int);
7480   if (x2 == (int)-1 && PyErr_Occurred())
7481     return NULL;
7482 
7483   x3 = _cffi_to_c_int(arg3, int);
7484   if (x3 == (int)-1 && PyErr_Occurred())
7485     return NULL;
7486 
7487   x4 = _cffi_to_c_int(arg4, unsigned int);
7488   if (x4 == (unsigned int)-1 && PyErr_Occurred())
7489     return NULL;
7490 
7491   datasize = _cffi_prepare_pointer_call_argument(
7492       _cffi_type(4), arg5, (char **)&x5);
7493   if (datasize != 0) {
7494     x5 = ((size_t)datasize) <= 640 ? (int32_t const *)alloca((size_t)datasize) : NULL;
7495     if (_cffi_convert_array_argument(_cffi_type(4), arg5, (char **)&x5,
7496             datasize, &large_args_free) < 0)
7497       return NULL;
7498   }
7499 
7500   x6 = _cffi_to_c_int(arg6, size_t);
7501   if (x6 == (size_t)-1 && PyErr_Occurred())
7502     return NULL;
7503 
7504   Py_BEGIN_ALLOW_THREADS
7505   _cffi_restore_errno();
7506   { result = clingo_backend_heuristic(x0, x1, x2, x3, x4, x5, x6); }
7507   _cffi_save_errno();
7508   Py_END_ALLOW_THREADS
7509 
7510   (void)self; /* unused */
7511   pyresult = _cffi_from_c__Bool(result);
7512   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
7513   return pyresult;
7514 }
7515 #else
7516 #  define _cffi_f_clingo_backend_heuristic _cffi_d_clingo_backend_heuristic
7517 #endif
7518 
_cffi_d_clingo_backend_minimize(clingo_backend_t * x0,int32_t x1,clingo_weighted_literal_t const * x2,size_t x3)7519 static _Bool _cffi_d_clingo_backend_minimize(clingo_backend_t * x0, int32_t x1, clingo_weighted_literal_t const * x2, size_t x3)
7520 {
7521   return clingo_backend_minimize(x0, x1, x2, x3);
7522 }
7523 #ifndef PYPY_VERSION
7524 static PyObject *
_cffi_f_clingo_backend_minimize(PyObject * self,PyObject * args)7525 _cffi_f_clingo_backend_minimize(PyObject *self, PyObject *args)
7526 {
7527   clingo_backend_t * x0;
7528   int32_t x1;
7529   clingo_weighted_literal_t const * x2;
7530   size_t x3;
7531   Py_ssize_t datasize;
7532   struct _cffi_freeme_s *large_args_free = NULL;
7533   _Bool result;
7534   PyObject *pyresult;
7535   PyObject *arg0;
7536   PyObject *arg1;
7537   PyObject *arg2;
7538   PyObject *arg3;
7539 
7540   if (!PyArg_UnpackTuple(args, "clingo_backend_minimize", 4, 4, &arg0, &arg1, &arg2, &arg3))
7541     return NULL;
7542 
7543   datasize = _cffi_prepare_pointer_call_argument(
7544       _cffi_type(259), arg0, (char **)&x0);
7545   if (datasize != 0) {
7546     x0 = ((size_t)datasize) <= 640 ? (clingo_backend_t *)alloca((size_t)datasize) : NULL;
7547     if (_cffi_convert_array_argument(_cffi_type(259), arg0, (char **)&x0,
7548             datasize, &large_args_free) < 0)
7549       return NULL;
7550   }
7551 
7552   x1 = _cffi_to_c_int(arg1, int32_t);
7553   if (x1 == (int32_t)-1 && PyErr_Occurred())
7554     return NULL;
7555 
7556   datasize = _cffi_prepare_pointer_call_argument(
7557       _cffi_type(13), arg2, (char **)&x2);
7558   if (datasize != 0) {
7559     x2 = ((size_t)datasize) <= 640 ? (clingo_weighted_literal_t const *)alloca((size_t)datasize) : NULL;
7560     if (_cffi_convert_array_argument(_cffi_type(13), arg2, (char **)&x2,
7561             datasize, &large_args_free) < 0)
7562       return NULL;
7563   }
7564 
7565   x3 = _cffi_to_c_int(arg3, size_t);
7566   if (x3 == (size_t)-1 && PyErr_Occurred())
7567     return NULL;
7568 
7569   Py_BEGIN_ALLOW_THREADS
7570   _cffi_restore_errno();
7571   { result = clingo_backend_minimize(x0, x1, x2, x3); }
7572   _cffi_save_errno();
7573   Py_END_ALLOW_THREADS
7574 
7575   (void)self; /* unused */
7576   pyresult = _cffi_from_c__Bool(result);
7577   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
7578   return pyresult;
7579 }
7580 #else
7581 #  define _cffi_f_clingo_backend_minimize _cffi_d_clingo_backend_minimize
7582 #endif
7583 
_cffi_d_clingo_backend_project(clingo_backend_t * x0,uint32_t const * x1,size_t x2)7584 static _Bool _cffi_d_clingo_backend_project(clingo_backend_t * x0, uint32_t const * x1, size_t x2)
7585 {
7586   return clingo_backend_project(x0, x1, x2);
7587 }
7588 #ifndef PYPY_VERSION
7589 static PyObject *
_cffi_f_clingo_backend_project(PyObject * self,PyObject * args)7590 _cffi_f_clingo_backend_project(PyObject *self, PyObject *args)
7591 {
7592   clingo_backend_t * x0;
7593   uint32_t const * x1;
7594   size_t x2;
7595   Py_ssize_t datasize;
7596   struct _cffi_freeme_s *large_args_free = NULL;
7597   _Bool result;
7598   PyObject *pyresult;
7599   PyObject *arg0;
7600   PyObject *arg1;
7601   PyObject *arg2;
7602 
7603   if (!PyArg_UnpackTuple(args, "clingo_backend_project", 3, 3, &arg0, &arg1, &arg2))
7604     return NULL;
7605 
7606   datasize = _cffi_prepare_pointer_call_argument(
7607       _cffi_type(259), arg0, (char **)&x0);
7608   if (datasize != 0) {
7609     x0 = ((size_t)datasize) <= 640 ? (clingo_backend_t *)alloca((size_t)datasize) : NULL;
7610     if (_cffi_convert_array_argument(_cffi_type(259), arg0, (char **)&x0,
7611             datasize, &large_args_free) < 0)
7612       return NULL;
7613   }
7614 
7615   datasize = _cffi_prepare_pointer_call_argument(
7616       _cffi_type(2), arg1, (char **)&x1);
7617   if (datasize != 0) {
7618     x1 = ((size_t)datasize) <= 640 ? (uint32_t const *)alloca((size_t)datasize) : NULL;
7619     if (_cffi_convert_array_argument(_cffi_type(2), arg1, (char **)&x1,
7620             datasize, &large_args_free) < 0)
7621       return NULL;
7622   }
7623 
7624   x2 = _cffi_to_c_int(arg2, size_t);
7625   if (x2 == (size_t)-1 && PyErr_Occurred())
7626     return NULL;
7627 
7628   Py_BEGIN_ALLOW_THREADS
7629   _cffi_restore_errno();
7630   { result = clingo_backend_project(x0, x1, x2); }
7631   _cffi_save_errno();
7632   Py_END_ALLOW_THREADS
7633 
7634   (void)self; /* unused */
7635   pyresult = _cffi_from_c__Bool(result);
7636   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
7637   return pyresult;
7638 }
7639 #else
7640 #  define _cffi_f_clingo_backend_project _cffi_d_clingo_backend_project
7641 #endif
7642 
_cffi_d_clingo_backend_rule(clingo_backend_t * x0,_Bool x1,uint32_t const * x2,size_t x3,int32_t const * x4,size_t x5)7643 static _Bool _cffi_d_clingo_backend_rule(clingo_backend_t * x0, _Bool x1, uint32_t const * x2, size_t x3, int32_t const * x4, size_t x5)
7644 {
7645   return clingo_backend_rule(x0, x1, x2, x3, x4, x5);
7646 }
7647 #ifndef PYPY_VERSION
7648 static PyObject *
_cffi_f_clingo_backend_rule(PyObject * self,PyObject * args)7649 _cffi_f_clingo_backend_rule(PyObject *self, PyObject *args)
7650 {
7651   clingo_backend_t * x0;
7652   _Bool x1;
7653   uint32_t const * x2;
7654   size_t x3;
7655   int32_t const * x4;
7656   size_t x5;
7657   Py_ssize_t datasize;
7658   struct _cffi_freeme_s *large_args_free = NULL;
7659   _Bool result;
7660   PyObject *pyresult;
7661   PyObject *arg0;
7662   PyObject *arg1;
7663   PyObject *arg2;
7664   PyObject *arg3;
7665   PyObject *arg4;
7666   PyObject *arg5;
7667 
7668   if (!PyArg_UnpackTuple(args, "clingo_backend_rule", 6, 6, &arg0, &arg1, &arg2, &arg3, &arg4, &arg5))
7669     return NULL;
7670 
7671   datasize = _cffi_prepare_pointer_call_argument(
7672       _cffi_type(259), arg0, (char **)&x0);
7673   if (datasize != 0) {
7674     x0 = ((size_t)datasize) <= 640 ? (clingo_backend_t *)alloca((size_t)datasize) : NULL;
7675     if (_cffi_convert_array_argument(_cffi_type(259), arg0, (char **)&x0,
7676             datasize, &large_args_free) < 0)
7677       return NULL;
7678   }
7679 
7680   x1 = (_Bool)_cffi_to_c__Bool(arg1);
7681   if (x1 == (_Bool)-1 && PyErr_Occurred())
7682     return NULL;
7683 
7684   datasize = _cffi_prepare_pointer_call_argument(
7685       _cffi_type(2), arg2, (char **)&x2);
7686   if (datasize != 0) {
7687     x2 = ((size_t)datasize) <= 640 ? (uint32_t const *)alloca((size_t)datasize) : NULL;
7688     if (_cffi_convert_array_argument(_cffi_type(2), arg2, (char **)&x2,
7689             datasize, &large_args_free) < 0)
7690       return NULL;
7691   }
7692 
7693   x3 = _cffi_to_c_int(arg3, size_t);
7694   if (x3 == (size_t)-1 && PyErr_Occurred())
7695     return NULL;
7696 
7697   datasize = _cffi_prepare_pointer_call_argument(
7698       _cffi_type(4), arg4, (char **)&x4);
7699   if (datasize != 0) {
7700     x4 = ((size_t)datasize) <= 640 ? (int32_t const *)alloca((size_t)datasize) : NULL;
7701     if (_cffi_convert_array_argument(_cffi_type(4), arg4, (char **)&x4,
7702             datasize, &large_args_free) < 0)
7703       return NULL;
7704   }
7705 
7706   x5 = _cffi_to_c_int(arg5, size_t);
7707   if (x5 == (size_t)-1 && PyErr_Occurred())
7708     return NULL;
7709 
7710   Py_BEGIN_ALLOW_THREADS
7711   _cffi_restore_errno();
7712   { result = clingo_backend_rule(x0, x1, x2, x3, x4, x5); }
7713   _cffi_save_errno();
7714   Py_END_ALLOW_THREADS
7715 
7716   (void)self; /* unused */
7717   pyresult = _cffi_from_c__Bool(result);
7718   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
7719   return pyresult;
7720 }
7721 #else
7722 #  define _cffi_f_clingo_backend_rule _cffi_d_clingo_backend_rule
7723 #endif
7724 
_cffi_d_clingo_backend_weight_rule(clingo_backend_t * x0,_Bool x1,uint32_t const * x2,size_t x3,int32_t x4,clingo_weighted_literal_t const * x5,size_t x6)7725 static _Bool _cffi_d_clingo_backend_weight_rule(clingo_backend_t * x0, _Bool x1, uint32_t const * x2, size_t x3, int32_t x4, clingo_weighted_literal_t const * x5, size_t x6)
7726 {
7727   return clingo_backend_weight_rule(x0, x1, x2, x3, x4, x5, x6);
7728 }
7729 #ifndef PYPY_VERSION
7730 static PyObject *
_cffi_f_clingo_backend_weight_rule(PyObject * self,PyObject * args)7731 _cffi_f_clingo_backend_weight_rule(PyObject *self, PyObject *args)
7732 {
7733   clingo_backend_t * x0;
7734   _Bool x1;
7735   uint32_t const * x2;
7736   size_t x3;
7737   int32_t x4;
7738   clingo_weighted_literal_t const * x5;
7739   size_t x6;
7740   Py_ssize_t datasize;
7741   struct _cffi_freeme_s *large_args_free = NULL;
7742   _Bool result;
7743   PyObject *pyresult;
7744   PyObject *arg0;
7745   PyObject *arg1;
7746   PyObject *arg2;
7747   PyObject *arg3;
7748   PyObject *arg4;
7749   PyObject *arg5;
7750   PyObject *arg6;
7751 
7752   if (!PyArg_UnpackTuple(args, "clingo_backend_weight_rule", 7, 7, &arg0, &arg1, &arg2, &arg3, &arg4, &arg5, &arg6))
7753     return NULL;
7754 
7755   datasize = _cffi_prepare_pointer_call_argument(
7756       _cffi_type(259), arg0, (char **)&x0);
7757   if (datasize != 0) {
7758     x0 = ((size_t)datasize) <= 640 ? (clingo_backend_t *)alloca((size_t)datasize) : NULL;
7759     if (_cffi_convert_array_argument(_cffi_type(259), arg0, (char **)&x0,
7760             datasize, &large_args_free) < 0)
7761       return NULL;
7762   }
7763 
7764   x1 = (_Bool)_cffi_to_c__Bool(arg1);
7765   if (x1 == (_Bool)-1 && PyErr_Occurred())
7766     return NULL;
7767 
7768   datasize = _cffi_prepare_pointer_call_argument(
7769       _cffi_type(2), arg2, (char **)&x2);
7770   if (datasize != 0) {
7771     x2 = ((size_t)datasize) <= 640 ? (uint32_t const *)alloca((size_t)datasize) : NULL;
7772     if (_cffi_convert_array_argument(_cffi_type(2), arg2, (char **)&x2,
7773             datasize, &large_args_free) < 0)
7774       return NULL;
7775   }
7776 
7777   x3 = _cffi_to_c_int(arg3, size_t);
7778   if (x3 == (size_t)-1 && PyErr_Occurred())
7779     return NULL;
7780 
7781   x4 = _cffi_to_c_int(arg4, int32_t);
7782   if (x4 == (int32_t)-1 && PyErr_Occurred())
7783     return NULL;
7784 
7785   datasize = _cffi_prepare_pointer_call_argument(
7786       _cffi_type(13), arg5, (char **)&x5);
7787   if (datasize != 0) {
7788     x5 = ((size_t)datasize) <= 640 ? (clingo_weighted_literal_t const *)alloca((size_t)datasize) : NULL;
7789     if (_cffi_convert_array_argument(_cffi_type(13), arg5, (char **)&x5,
7790             datasize, &large_args_free) < 0)
7791       return NULL;
7792   }
7793 
7794   x6 = _cffi_to_c_int(arg6, size_t);
7795   if (x6 == (size_t)-1 && PyErr_Occurred())
7796     return NULL;
7797 
7798   Py_BEGIN_ALLOW_THREADS
7799   _cffi_restore_errno();
7800   { result = clingo_backend_weight_rule(x0, x1, x2, x3, x4, x5, x6); }
7801   _cffi_save_errno();
7802   Py_END_ALLOW_THREADS
7803 
7804   (void)self; /* unused */
7805   pyresult = _cffi_from_c__Bool(result);
7806   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
7807   return pyresult;
7808 }
7809 #else
7810 #  define _cffi_f_clingo_backend_weight_rule _cffi_d_clingo_backend_weight_rule
7811 #endif
7812 
_cffi_d_clingo_configuration_array_at(clingo_configuration_t const * x0,uint32_t x1,size_t x2,uint32_t * x3)7813 static _Bool _cffi_d_clingo_configuration_array_at(clingo_configuration_t const * x0, uint32_t x1, size_t x2, uint32_t * x3)
7814 {
7815   return clingo_configuration_array_at(x0, x1, x2, x3);
7816 }
7817 #ifndef PYPY_VERSION
7818 static PyObject *
_cffi_f_clingo_configuration_array_at(PyObject * self,PyObject * args)7819 _cffi_f_clingo_configuration_array_at(PyObject *self, PyObject *args)
7820 {
7821   clingo_configuration_t const * x0;
7822   uint32_t x1;
7823   size_t x2;
7824   uint32_t * x3;
7825   Py_ssize_t datasize;
7826   struct _cffi_freeme_s *large_args_free = NULL;
7827   _Bool result;
7828   PyObject *pyresult;
7829   PyObject *arg0;
7830   PyObject *arg1;
7831   PyObject *arg2;
7832   PyObject *arg3;
7833 
7834   if (!PyArg_UnpackTuple(args, "clingo_configuration_array_at", 4, 4, &arg0, &arg1, &arg2, &arg3))
7835     return NULL;
7836 
7837   datasize = _cffi_prepare_pointer_call_argument(
7838       _cffi_type(326), arg0, (char **)&x0);
7839   if (datasize != 0) {
7840     x0 = ((size_t)datasize) <= 640 ? (clingo_configuration_t const *)alloca((size_t)datasize) : NULL;
7841     if (_cffi_convert_array_argument(_cffi_type(326), arg0, (char **)&x0,
7842             datasize, &large_args_free) < 0)
7843       return NULL;
7844   }
7845 
7846   x1 = _cffi_to_c_int(arg1, uint32_t);
7847   if (x1 == (uint32_t)-1 && PyErr_Occurred())
7848     return NULL;
7849 
7850   x2 = _cffi_to_c_int(arg2, size_t);
7851   if (x2 == (size_t)-1 && PyErr_Occurred())
7852     return NULL;
7853 
7854   datasize = _cffi_prepare_pointer_call_argument(
7855       _cffi_type(113), arg3, (char **)&x3);
7856   if (datasize != 0) {
7857     x3 = ((size_t)datasize) <= 640 ? (uint32_t *)alloca((size_t)datasize) : NULL;
7858     if (_cffi_convert_array_argument(_cffi_type(113), arg3, (char **)&x3,
7859             datasize, &large_args_free) < 0)
7860       return NULL;
7861   }
7862 
7863   Py_BEGIN_ALLOW_THREADS
7864   _cffi_restore_errno();
7865   { result = clingo_configuration_array_at(x0, x1, x2, x3); }
7866   _cffi_save_errno();
7867   Py_END_ALLOW_THREADS
7868 
7869   (void)self; /* unused */
7870   pyresult = _cffi_from_c__Bool(result);
7871   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
7872   return pyresult;
7873 }
7874 #else
7875 #  define _cffi_f_clingo_configuration_array_at _cffi_d_clingo_configuration_array_at
7876 #endif
7877 
_cffi_d_clingo_configuration_array_size(clingo_configuration_t const * x0,uint32_t x1,size_t * x2)7878 static _Bool _cffi_d_clingo_configuration_array_size(clingo_configuration_t const * x0, uint32_t x1, size_t * x2)
7879 {
7880   return clingo_configuration_array_size(x0, x1, x2);
7881 }
7882 #ifndef PYPY_VERSION
7883 static PyObject *
_cffi_f_clingo_configuration_array_size(PyObject * self,PyObject * args)7884 _cffi_f_clingo_configuration_array_size(PyObject *self, PyObject *args)
7885 {
7886   clingo_configuration_t const * x0;
7887   uint32_t x1;
7888   size_t * x2;
7889   Py_ssize_t datasize;
7890   struct _cffi_freeme_s *large_args_free = NULL;
7891   _Bool result;
7892   PyObject *pyresult;
7893   PyObject *arg0;
7894   PyObject *arg1;
7895   PyObject *arg2;
7896 
7897   if (!PyArg_UnpackTuple(args, "clingo_configuration_array_size", 3, 3, &arg0, &arg1, &arg2))
7898     return NULL;
7899 
7900   datasize = _cffi_prepare_pointer_call_argument(
7901       _cffi_type(326), arg0, (char **)&x0);
7902   if (datasize != 0) {
7903     x0 = ((size_t)datasize) <= 640 ? (clingo_configuration_t const *)alloca((size_t)datasize) : NULL;
7904     if (_cffi_convert_array_argument(_cffi_type(326), arg0, (char **)&x0,
7905             datasize, &large_args_free) < 0)
7906       return NULL;
7907   }
7908 
7909   x1 = _cffi_to_c_int(arg1, uint32_t);
7910   if (x1 == (uint32_t)-1 && PyErr_Occurred())
7911     return NULL;
7912 
7913   datasize = _cffi_prepare_pointer_call_argument(
7914       _cffi_type(205), arg2, (char **)&x2);
7915   if (datasize != 0) {
7916     x2 = ((size_t)datasize) <= 640 ? (size_t *)alloca((size_t)datasize) : NULL;
7917     if (_cffi_convert_array_argument(_cffi_type(205), arg2, (char **)&x2,
7918             datasize, &large_args_free) < 0)
7919       return NULL;
7920   }
7921 
7922   Py_BEGIN_ALLOW_THREADS
7923   _cffi_restore_errno();
7924   { result = clingo_configuration_array_size(x0, x1, x2); }
7925   _cffi_save_errno();
7926   Py_END_ALLOW_THREADS
7927 
7928   (void)self; /* unused */
7929   pyresult = _cffi_from_c__Bool(result);
7930   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
7931   return pyresult;
7932 }
7933 #else
7934 #  define _cffi_f_clingo_configuration_array_size _cffi_d_clingo_configuration_array_size
7935 #endif
7936 
_cffi_d_clingo_configuration_description(clingo_configuration_t const * x0,uint32_t x1,char const ** x2)7937 static _Bool _cffi_d_clingo_configuration_description(clingo_configuration_t const * x0, uint32_t x1, char const * * x2)
7938 {
7939   return clingo_configuration_description(x0, x1, x2);
7940 }
7941 #ifndef PYPY_VERSION
7942 static PyObject *
_cffi_f_clingo_configuration_description(PyObject * self,PyObject * args)7943 _cffi_f_clingo_configuration_description(PyObject *self, PyObject *args)
7944 {
7945   clingo_configuration_t const * x0;
7946   uint32_t x1;
7947   char const * * x2;
7948   Py_ssize_t datasize;
7949   struct _cffi_freeme_s *large_args_free = NULL;
7950   _Bool result;
7951   PyObject *pyresult;
7952   PyObject *arg0;
7953   PyObject *arg1;
7954   PyObject *arg2;
7955 
7956   if (!PyArg_UnpackTuple(args, "clingo_configuration_description", 3, 3, &arg0, &arg1, &arg2))
7957     return NULL;
7958 
7959   datasize = _cffi_prepare_pointer_call_argument(
7960       _cffi_type(326), arg0, (char **)&x0);
7961   if (datasize != 0) {
7962     x0 = ((size_t)datasize) <= 640 ? (clingo_configuration_t const *)alloca((size_t)datasize) : NULL;
7963     if (_cffi_convert_array_argument(_cffi_type(326), arg0, (char **)&x0,
7964             datasize, &large_args_free) < 0)
7965       return NULL;
7966   }
7967 
7968   x1 = _cffi_to_c_int(arg1, uint32_t);
7969   if (x1 == (uint32_t)-1 && PyErr_Occurred())
7970     return NULL;
7971 
7972   datasize = _cffi_prepare_pointer_call_argument(
7973       _cffi_type(58), arg2, (char **)&x2);
7974   if (datasize != 0) {
7975     x2 = ((size_t)datasize) <= 640 ? (char const * *)alloca((size_t)datasize) : NULL;
7976     if (_cffi_convert_array_argument(_cffi_type(58), arg2, (char **)&x2,
7977             datasize, &large_args_free) < 0)
7978       return NULL;
7979   }
7980 
7981   Py_BEGIN_ALLOW_THREADS
7982   _cffi_restore_errno();
7983   { result = clingo_configuration_description(x0, x1, x2); }
7984   _cffi_save_errno();
7985   Py_END_ALLOW_THREADS
7986 
7987   (void)self; /* unused */
7988   pyresult = _cffi_from_c__Bool(result);
7989   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
7990   return pyresult;
7991 }
7992 #else
7993 #  define _cffi_f_clingo_configuration_description _cffi_d_clingo_configuration_description
7994 #endif
7995 
_cffi_d_clingo_configuration_map_at(clingo_configuration_t const * x0,uint32_t x1,char const * x2,uint32_t * x3)7996 static _Bool _cffi_d_clingo_configuration_map_at(clingo_configuration_t const * x0, uint32_t x1, char const * x2, uint32_t * x3)
7997 {
7998   return clingo_configuration_map_at(x0, x1, x2, x3);
7999 }
8000 #ifndef PYPY_VERSION
8001 static PyObject *
_cffi_f_clingo_configuration_map_at(PyObject * self,PyObject * args)8002 _cffi_f_clingo_configuration_map_at(PyObject *self, PyObject *args)
8003 {
8004   clingo_configuration_t const * x0;
8005   uint32_t x1;
8006   char const * x2;
8007   uint32_t * x3;
8008   Py_ssize_t datasize;
8009   struct _cffi_freeme_s *large_args_free = NULL;
8010   _Bool result;
8011   PyObject *pyresult;
8012   PyObject *arg0;
8013   PyObject *arg1;
8014   PyObject *arg2;
8015   PyObject *arg3;
8016 
8017   if (!PyArg_UnpackTuple(args, "clingo_configuration_map_at", 4, 4, &arg0, &arg1, &arg2, &arg3))
8018     return NULL;
8019 
8020   datasize = _cffi_prepare_pointer_call_argument(
8021       _cffi_type(326), arg0, (char **)&x0);
8022   if (datasize != 0) {
8023     x0 = ((size_t)datasize) <= 640 ? (clingo_configuration_t const *)alloca((size_t)datasize) : NULL;
8024     if (_cffi_convert_array_argument(_cffi_type(326), arg0, (char **)&x0,
8025             datasize, &large_args_free) < 0)
8026       return NULL;
8027   }
8028 
8029   x1 = _cffi_to_c_int(arg1, uint32_t);
8030   if (x1 == (uint32_t)-1 && PyErr_Occurred())
8031     return NULL;
8032 
8033   datasize = _cffi_prepare_pointer_call_argument(
8034       _cffi_type(39), arg2, (char **)&x2);
8035   if (datasize != 0) {
8036     x2 = ((size_t)datasize) <= 640 ? (char const *)alloca((size_t)datasize) : NULL;
8037     if (_cffi_convert_array_argument(_cffi_type(39), arg2, (char **)&x2,
8038             datasize, &large_args_free) < 0)
8039       return NULL;
8040   }
8041 
8042   datasize = _cffi_prepare_pointer_call_argument(
8043       _cffi_type(113), arg3, (char **)&x3);
8044   if (datasize != 0) {
8045     x3 = ((size_t)datasize) <= 640 ? (uint32_t *)alloca((size_t)datasize) : NULL;
8046     if (_cffi_convert_array_argument(_cffi_type(113), arg3, (char **)&x3,
8047             datasize, &large_args_free) < 0)
8048       return NULL;
8049   }
8050 
8051   Py_BEGIN_ALLOW_THREADS
8052   _cffi_restore_errno();
8053   { result = clingo_configuration_map_at(x0, x1, x2, x3); }
8054   _cffi_save_errno();
8055   Py_END_ALLOW_THREADS
8056 
8057   (void)self; /* unused */
8058   pyresult = _cffi_from_c__Bool(result);
8059   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
8060   return pyresult;
8061 }
8062 #else
8063 #  define _cffi_f_clingo_configuration_map_at _cffi_d_clingo_configuration_map_at
8064 #endif
8065 
_cffi_d_clingo_configuration_map_has_subkey(clingo_configuration_t const * x0,uint32_t x1,char const * x2,_Bool * x3)8066 static _Bool _cffi_d_clingo_configuration_map_has_subkey(clingo_configuration_t const * x0, uint32_t x1, char const * x2, _Bool * x3)
8067 {
8068   return clingo_configuration_map_has_subkey(x0, x1, x2, x3);
8069 }
8070 #ifndef PYPY_VERSION
8071 static PyObject *
_cffi_f_clingo_configuration_map_has_subkey(PyObject * self,PyObject * args)8072 _cffi_f_clingo_configuration_map_has_subkey(PyObject *self, PyObject *args)
8073 {
8074   clingo_configuration_t const * x0;
8075   uint32_t x1;
8076   char const * x2;
8077   _Bool * x3;
8078   Py_ssize_t datasize;
8079   struct _cffi_freeme_s *large_args_free = NULL;
8080   _Bool result;
8081   PyObject *pyresult;
8082   PyObject *arg0;
8083   PyObject *arg1;
8084   PyObject *arg2;
8085   PyObject *arg3;
8086 
8087   if (!PyArg_UnpackTuple(args, "clingo_configuration_map_has_subkey", 4, 4, &arg0, &arg1, &arg2, &arg3))
8088     return NULL;
8089 
8090   datasize = _cffi_prepare_pointer_call_argument(
8091       _cffi_type(326), arg0, (char **)&x0);
8092   if (datasize != 0) {
8093     x0 = ((size_t)datasize) <= 640 ? (clingo_configuration_t const *)alloca((size_t)datasize) : NULL;
8094     if (_cffi_convert_array_argument(_cffi_type(326), arg0, (char **)&x0,
8095             datasize, &large_args_free) < 0)
8096       return NULL;
8097   }
8098 
8099   x1 = _cffi_to_c_int(arg1, uint32_t);
8100   if (x1 == (uint32_t)-1 && PyErr_Occurred())
8101     return NULL;
8102 
8103   datasize = _cffi_prepare_pointer_call_argument(
8104       _cffi_type(39), arg2, (char **)&x2);
8105   if (datasize != 0) {
8106     x2 = ((size_t)datasize) <= 640 ? (char const *)alloca((size_t)datasize) : NULL;
8107     if (_cffi_convert_array_argument(_cffi_type(39), arg2, (char **)&x2,
8108             datasize, &large_args_free) < 0)
8109       return NULL;
8110   }
8111 
8112   datasize = _cffi_prepare_pointer_call_argument(
8113       _cffi_type(40), arg3, (char **)&x3);
8114   if (datasize != 0) {
8115     x3 = ((size_t)datasize) <= 640 ? (_Bool *)alloca((size_t)datasize) : NULL;
8116     if (_cffi_convert_array_argument(_cffi_type(40), arg3, (char **)&x3,
8117             datasize, &large_args_free) < 0)
8118       return NULL;
8119   }
8120 
8121   Py_BEGIN_ALLOW_THREADS
8122   _cffi_restore_errno();
8123   { result = clingo_configuration_map_has_subkey(x0, x1, x2, x3); }
8124   _cffi_save_errno();
8125   Py_END_ALLOW_THREADS
8126 
8127   (void)self; /* unused */
8128   pyresult = _cffi_from_c__Bool(result);
8129   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
8130   return pyresult;
8131 }
8132 #else
8133 #  define _cffi_f_clingo_configuration_map_has_subkey _cffi_d_clingo_configuration_map_has_subkey
8134 #endif
8135 
_cffi_d_clingo_configuration_map_size(clingo_configuration_t const * x0,uint32_t x1,size_t * x2)8136 static _Bool _cffi_d_clingo_configuration_map_size(clingo_configuration_t const * x0, uint32_t x1, size_t * x2)
8137 {
8138   return clingo_configuration_map_size(x0, x1, x2);
8139 }
8140 #ifndef PYPY_VERSION
8141 static PyObject *
_cffi_f_clingo_configuration_map_size(PyObject * self,PyObject * args)8142 _cffi_f_clingo_configuration_map_size(PyObject *self, PyObject *args)
8143 {
8144   clingo_configuration_t const * x0;
8145   uint32_t x1;
8146   size_t * x2;
8147   Py_ssize_t datasize;
8148   struct _cffi_freeme_s *large_args_free = NULL;
8149   _Bool result;
8150   PyObject *pyresult;
8151   PyObject *arg0;
8152   PyObject *arg1;
8153   PyObject *arg2;
8154 
8155   if (!PyArg_UnpackTuple(args, "clingo_configuration_map_size", 3, 3, &arg0, &arg1, &arg2))
8156     return NULL;
8157 
8158   datasize = _cffi_prepare_pointer_call_argument(
8159       _cffi_type(326), arg0, (char **)&x0);
8160   if (datasize != 0) {
8161     x0 = ((size_t)datasize) <= 640 ? (clingo_configuration_t const *)alloca((size_t)datasize) : NULL;
8162     if (_cffi_convert_array_argument(_cffi_type(326), arg0, (char **)&x0,
8163             datasize, &large_args_free) < 0)
8164       return NULL;
8165   }
8166 
8167   x1 = _cffi_to_c_int(arg1, uint32_t);
8168   if (x1 == (uint32_t)-1 && PyErr_Occurred())
8169     return NULL;
8170 
8171   datasize = _cffi_prepare_pointer_call_argument(
8172       _cffi_type(205), arg2, (char **)&x2);
8173   if (datasize != 0) {
8174     x2 = ((size_t)datasize) <= 640 ? (size_t *)alloca((size_t)datasize) : NULL;
8175     if (_cffi_convert_array_argument(_cffi_type(205), arg2, (char **)&x2,
8176             datasize, &large_args_free) < 0)
8177       return NULL;
8178   }
8179 
8180   Py_BEGIN_ALLOW_THREADS
8181   _cffi_restore_errno();
8182   { result = clingo_configuration_map_size(x0, x1, x2); }
8183   _cffi_save_errno();
8184   Py_END_ALLOW_THREADS
8185 
8186   (void)self; /* unused */
8187   pyresult = _cffi_from_c__Bool(result);
8188   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
8189   return pyresult;
8190 }
8191 #else
8192 #  define _cffi_f_clingo_configuration_map_size _cffi_d_clingo_configuration_map_size
8193 #endif
8194 
_cffi_d_clingo_configuration_map_subkey_name(clingo_configuration_t const * x0,uint32_t x1,size_t x2,char const ** x3)8195 static _Bool _cffi_d_clingo_configuration_map_subkey_name(clingo_configuration_t const * x0, uint32_t x1, size_t x2, char const * * x3)
8196 {
8197   return clingo_configuration_map_subkey_name(x0, x1, x2, x3);
8198 }
8199 #ifndef PYPY_VERSION
8200 static PyObject *
_cffi_f_clingo_configuration_map_subkey_name(PyObject * self,PyObject * args)8201 _cffi_f_clingo_configuration_map_subkey_name(PyObject *self, PyObject *args)
8202 {
8203   clingo_configuration_t const * x0;
8204   uint32_t x1;
8205   size_t x2;
8206   char const * * x3;
8207   Py_ssize_t datasize;
8208   struct _cffi_freeme_s *large_args_free = NULL;
8209   _Bool result;
8210   PyObject *pyresult;
8211   PyObject *arg0;
8212   PyObject *arg1;
8213   PyObject *arg2;
8214   PyObject *arg3;
8215 
8216   if (!PyArg_UnpackTuple(args, "clingo_configuration_map_subkey_name", 4, 4, &arg0, &arg1, &arg2, &arg3))
8217     return NULL;
8218 
8219   datasize = _cffi_prepare_pointer_call_argument(
8220       _cffi_type(326), arg0, (char **)&x0);
8221   if (datasize != 0) {
8222     x0 = ((size_t)datasize) <= 640 ? (clingo_configuration_t const *)alloca((size_t)datasize) : NULL;
8223     if (_cffi_convert_array_argument(_cffi_type(326), arg0, (char **)&x0,
8224             datasize, &large_args_free) < 0)
8225       return NULL;
8226   }
8227 
8228   x1 = _cffi_to_c_int(arg1, uint32_t);
8229   if (x1 == (uint32_t)-1 && PyErr_Occurred())
8230     return NULL;
8231 
8232   x2 = _cffi_to_c_int(arg2, size_t);
8233   if (x2 == (size_t)-1 && PyErr_Occurred())
8234     return NULL;
8235 
8236   datasize = _cffi_prepare_pointer_call_argument(
8237       _cffi_type(58), arg3, (char **)&x3);
8238   if (datasize != 0) {
8239     x3 = ((size_t)datasize) <= 640 ? (char const * *)alloca((size_t)datasize) : NULL;
8240     if (_cffi_convert_array_argument(_cffi_type(58), arg3, (char **)&x3,
8241             datasize, &large_args_free) < 0)
8242       return NULL;
8243   }
8244 
8245   Py_BEGIN_ALLOW_THREADS
8246   _cffi_restore_errno();
8247   { result = clingo_configuration_map_subkey_name(x0, x1, x2, x3); }
8248   _cffi_save_errno();
8249   Py_END_ALLOW_THREADS
8250 
8251   (void)self; /* unused */
8252   pyresult = _cffi_from_c__Bool(result);
8253   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
8254   return pyresult;
8255 }
8256 #else
8257 #  define _cffi_f_clingo_configuration_map_subkey_name _cffi_d_clingo_configuration_map_subkey_name
8258 #endif
8259 
_cffi_d_clingo_configuration_root(clingo_configuration_t const * x0,uint32_t * x1)8260 static _Bool _cffi_d_clingo_configuration_root(clingo_configuration_t const * x0, uint32_t * x1)
8261 {
8262   return clingo_configuration_root(x0, x1);
8263 }
8264 #ifndef PYPY_VERSION
8265 static PyObject *
_cffi_f_clingo_configuration_root(PyObject * self,PyObject * args)8266 _cffi_f_clingo_configuration_root(PyObject *self, PyObject *args)
8267 {
8268   clingo_configuration_t const * x0;
8269   uint32_t * x1;
8270   Py_ssize_t datasize;
8271   struct _cffi_freeme_s *large_args_free = NULL;
8272   _Bool result;
8273   PyObject *pyresult;
8274   PyObject *arg0;
8275   PyObject *arg1;
8276 
8277   if (!PyArg_UnpackTuple(args, "clingo_configuration_root", 2, 2, &arg0, &arg1))
8278     return NULL;
8279 
8280   datasize = _cffi_prepare_pointer_call_argument(
8281       _cffi_type(326), arg0, (char **)&x0);
8282   if (datasize != 0) {
8283     x0 = ((size_t)datasize) <= 640 ? (clingo_configuration_t const *)alloca((size_t)datasize) : NULL;
8284     if (_cffi_convert_array_argument(_cffi_type(326), arg0, (char **)&x0,
8285             datasize, &large_args_free) < 0)
8286       return NULL;
8287   }
8288 
8289   datasize = _cffi_prepare_pointer_call_argument(
8290       _cffi_type(113), arg1, (char **)&x1);
8291   if (datasize != 0) {
8292     x1 = ((size_t)datasize) <= 640 ? (uint32_t *)alloca((size_t)datasize) : NULL;
8293     if (_cffi_convert_array_argument(_cffi_type(113), arg1, (char **)&x1,
8294             datasize, &large_args_free) < 0)
8295       return NULL;
8296   }
8297 
8298   Py_BEGIN_ALLOW_THREADS
8299   _cffi_restore_errno();
8300   { result = clingo_configuration_root(x0, x1); }
8301   _cffi_save_errno();
8302   Py_END_ALLOW_THREADS
8303 
8304   (void)self; /* unused */
8305   pyresult = _cffi_from_c__Bool(result);
8306   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
8307   return pyresult;
8308 }
8309 #else
8310 #  define _cffi_f_clingo_configuration_root _cffi_d_clingo_configuration_root
8311 #endif
8312 
_cffi_d_clingo_configuration_type(clingo_configuration_t const * x0,uint32_t x1,unsigned int * x2)8313 static _Bool _cffi_d_clingo_configuration_type(clingo_configuration_t const * x0, uint32_t x1, unsigned int * x2)
8314 {
8315   return clingo_configuration_type(x0, x1, x2);
8316 }
8317 #ifndef PYPY_VERSION
8318 static PyObject *
_cffi_f_clingo_configuration_type(PyObject * self,PyObject * args)8319 _cffi_f_clingo_configuration_type(PyObject *self, PyObject *args)
8320 {
8321   clingo_configuration_t const * x0;
8322   uint32_t x1;
8323   unsigned int * x2;
8324   Py_ssize_t datasize;
8325   struct _cffi_freeme_s *large_args_free = NULL;
8326   _Bool result;
8327   PyObject *pyresult;
8328   PyObject *arg0;
8329   PyObject *arg1;
8330   PyObject *arg2;
8331 
8332   if (!PyArg_UnpackTuple(args, "clingo_configuration_type", 3, 3, &arg0, &arg1, &arg2))
8333     return NULL;
8334 
8335   datasize = _cffi_prepare_pointer_call_argument(
8336       _cffi_type(326), arg0, (char **)&x0);
8337   if (datasize != 0) {
8338     x0 = ((size_t)datasize) <= 640 ? (clingo_configuration_t const *)alloca((size_t)datasize) : NULL;
8339     if (_cffi_convert_array_argument(_cffi_type(326), arg0, (char **)&x0,
8340             datasize, &large_args_free) < 0)
8341       return NULL;
8342   }
8343 
8344   x1 = _cffi_to_c_int(arg1, uint32_t);
8345   if (x1 == (uint32_t)-1 && PyErr_Occurred())
8346     return NULL;
8347 
8348   datasize = _cffi_prepare_pointer_call_argument(
8349       _cffi_type(377), arg2, (char **)&x2);
8350   if (datasize != 0) {
8351     x2 = ((size_t)datasize) <= 640 ? (unsigned int *)alloca((size_t)datasize) : NULL;
8352     if (_cffi_convert_array_argument(_cffi_type(377), arg2, (char **)&x2,
8353             datasize, &large_args_free) < 0)
8354       return NULL;
8355   }
8356 
8357   Py_BEGIN_ALLOW_THREADS
8358   _cffi_restore_errno();
8359   { result = clingo_configuration_type(x0, x1, x2); }
8360   _cffi_save_errno();
8361   Py_END_ALLOW_THREADS
8362 
8363   (void)self; /* unused */
8364   pyresult = _cffi_from_c__Bool(result);
8365   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
8366   return pyresult;
8367 }
8368 #else
8369 #  define _cffi_f_clingo_configuration_type _cffi_d_clingo_configuration_type
8370 #endif
8371 
_cffi_d_clingo_configuration_value_get(clingo_configuration_t const * x0,uint32_t x1,char * x2,size_t x3)8372 static _Bool _cffi_d_clingo_configuration_value_get(clingo_configuration_t const * x0, uint32_t x1, char * x2, size_t x3)
8373 {
8374   return clingo_configuration_value_get(x0, x1, x2, x3);
8375 }
8376 #ifndef PYPY_VERSION
8377 static PyObject *
_cffi_f_clingo_configuration_value_get(PyObject * self,PyObject * args)8378 _cffi_f_clingo_configuration_value_get(PyObject *self, PyObject *args)
8379 {
8380   clingo_configuration_t const * x0;
8381   uint32_t x1;
8382   char * x2;
8383   size_t x3;
8384   Py_ssize_t datasize;
8385   struct _cffi_freeme_s *large_args_free = NULL;
8386   _Bool result;
8387   PyObject *pyresult;
8388   PyObject *arg0;
8389   PyObject *arg1;
8390   PyObject *arg2;
8391   PyObject *arg3;
8392 
8393   if (!PyArg_UnpackTuple(args, "clingo_configuration_value_get", 4, 4, &arg0, &arg1, &arg2, &arg3))
8394     return NULL;
8395 
8396   datasize = _cffi_prepare_pointer_call_argument(
8397       _cffi_type(326), arg0, (char **)&x0);
8398   if (datasize != 0) {
8399     x0 = ((size_t)datasize) <= 640 ? (clingo_configuration_t const *)alloca((size_t)datasize) : NULL;
8400     if (_cffi_convert_array_argument(_cffi_type(326), arg0, (char **)&x0,
8401             datasize, &large_args_free) < 0)
8402       return NULL;
8403   }
8404 
8405   x1 = _cffi_to_c_int(arg1, uint32_t);
8406   if (x1 == (uint32_t)-1 && PyErr_Occurred())
8407     return NULL;
8408 
8409   datasize = _cffi_prepare_pointer_call_argument(
8410       _cffi_type(136), arg2, (char **)&x2);
8411   if (datasize != 0) {
8412     x2 = ((size_t)datasize) <= 640 ? (char *)alloca((size_t)datasize) : NULL;
8413     if (_cffi_convert_array_argument(_cffi_type(136), arg2, (char **)&x2,
8414             datasize, &large_args_free) < 0)
8415       return NULL;
8416   }
8417 
8418   x3 = _cffi_to_c_int(arg3, size_t);
8419   if (x3 == (size_t)-1 && PyErr_Occurred())
8420     return NULL;
8421 
8422   Py_BEGIN_ALLOW_THREADS
8423   _cffi_restore_errno();
8424   { result = clingo_configuration_value_get(x0, x1, x2, x3); }
8425   _cffi_save_errno();
8426   Py_END_ALLOW_THREADS
8427 
8428   (void)self; /* unused */
8429   pyresult = _cffi_from_c__Bool(result);
8430   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
8431   return pyresult;
8432 }
8433 #else
8434 #  define _cffi_f_clingo_configuration_value_get _cffi_d_clingo_configuration_value_get
8435 #endif
8436 
_cffi_d_clingo_configuration_value_get_size(clingo_configuration_t const * x0,uint32_t x1,size_t * x2)8437 static _Bool _cffi_d_clingo_configuration_value_get_size(clingo_configuration_t const * x0, uint32_t x1, size_t * x2)
8438 {
8439   return clingo_configuration_value_get_size(x0, x1, x2);
8440 }
8441 #ifndef PYPY_VERSION
8442 static PyObject *
_cffi_f_clingo_configuration_value_get_size(PyObject * self,PyObject * args)8443 _cffi_f_clingo_configuration_value_get_size(PyObject *self, PyObject *args)
8444 {
8445   clingo_configuration_t const * x0;
8446   uint32_t x1;
8447   size_t * x2;
8448   Py_ssize_t datasize;
8449   struct _cffi_freeme_s *large_args_free = NULL;
8450   _Bool result;
8451   PyObject *pyresult;
8452   PyObject *arg0;
8453   PyObject *arg1;
8454   PyObject *arg2;
8455 
8456   if (!PyArg_UnpackTuple(args, "clingo_configuration_value_get_size", 3, 3, &arg0, &arg1, &arg2))
8457     return NULL;
8458 
8459   datasize = _cffi_prepare_pointer_call_argument(
8460       _cffi_type(326), arg0, (char **)&x0);
8461   if (datasize != 0) {
8462     x0 = ((size_t)datasize) <= 640 ? (clingo_configuration_t const *)alloca((size_t)datasize) : NULL;
8463     if (_cffi_convert_array_argument(_cffi_type(326), arg0, (char **)&x0,
8464             datasize, &large_args_free) < 0)
8465       return NULL;
8466   }
8467 
8468   x1 = _cffi_to_c_int(arg1, uint32_t);
8469   if (x1 == (uint32_t)-1 && PyErr_Occurred())
8470     return NULL;
8471 
8472   datasize = _cffi_prepare_pointer_call_argument(
8473       _cffi_type(205), arg2, (char **)&x2);
8474   if (datasize != 0) {
8475     x2 = ((size_t)datasize) <= 640 ? (size_t *)alloca((size_t)datasize) : NULL;
8476     if (_cffi_convert_array_argument(_cffi_type(205), arg2, (char **)&x2,
8477             datasize, &large_args_free) < 0)
8478       return NULL;
8479   }
8480 
8481   Py_BEGIN_ALLOW_THREADS
8482   _cffi_restore_errno();
8483   { result = clingo_configuration_value_get_size(x0, x1, x2); }
8484   _cffi_save_errno();
8485   Py_END_ALLOW_THREADS
8486 
8487   (void)self; /* unused */
8488   pyresult = _cffi_from_c__Bool(result);
8489   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
8490   return pyresult;
8491 }
8492 #else
8493 #  define _cffi_f_clingo_configuration_value_get_size _cffi_d_clingo_configuration_value_get_size
8494 #endif
8495 
_cffi_d_clingo_configuration_value_is_assigned(clingo_configuration_t const * x0,uint32_t x1,_Bool * x2)8496 static _Bool _cffi_d_clingo_configuration_value_is_assigned(clingo_configuration_t const * x0, uint32_t x1, _Bool * x2)
8497 {
8498   return clingo_configuration_value_is_assigned(x0, x1, x2);
8499 }
8500 #ifndef PYPY_VERSION
8501 static PyObject *
_cffi_f_clingo_configuration_value_is_assigned(PyObject * self,PyObject * args)8502 _cffi_f_clingo_configuration_value_is_assigned(PyObject *self, PyObject *args)
8503 {
8504   clingo_configuration_t const * x0;
8505   uint32_t x1;
8506   _Bool * x2;
8507   Py_ssize_t datasize;
8508   struct _cffi_freeme_s *large_args_free = NULL;
8509   _Bool result;
8510   PyObject *pyresult;
8511   PyObject *arg0;
8512   PyObject *arg1;
8513   PyObject *arg2;
8514 
8515   if (!PyArg_UnpackTuple(args, "clingo_configuration_value_is_assigned", 3, 3, &arg0, &arg1, &arg2))
8516     return NULL;
8517 
8518   datasize = _cffi_prepare_pointer_call_argument(
8519       _cffi_type(326), arg0, (char **)&x0);
8520   if (datasize != 0) {
8521     x0 = ((size_t)datasize) <= 640 ? (clingo_configuration_t const *)alloca((size_t)datasize) : NULL;
8522     if (_cffi_convert_array_argument(_cffi_type(326), arg0, (char **)&x0,
8523             datasize, &large_args_free) < 0)
8524       return NULL;
8525   }
8526 
8527   x1 = _cffi_to_c_int(arg1, uint32_t);
8528   if (x1 == (uint32_t)-1 && PyErr_Occurred())
8529     return NULL;
8530 
8531   datasize = _cffi_prepare_pointer_call_argument(
8532       _cffi_type(40), arg2, (char **)&x2);
8533   if (datasize != 0) {
8534     x2 = ((size_t)datasize) <= 640 ? (_Bool *)alloca((size_t)datasize) : NULL;
8535     if (_cffi_convert_array_argument(_cffi_type(40), arg2, (char **)&x2,
8536             datasize, &large_args_free) < 0)
8537       return NULL;
8538   }
8539 
8540   Py_BEGIN_ALLOW_THREADS
8541   _cffi_restore_errno();
8542   { result = clingo_configuration_value_is_assigned(x0, x1, x2); }
8543   _cffi_save_errno();
8544   Py_END_ALLOW_THREADS
8545 
8546   (void)self; /* unused */
8547   pyresult = _cffi_from_c__Bool(result);
8548   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
8549   return pyresult;
8550 }
8551 #else
8552 #  define _cffi_f_clingo_configuration_value_is_assigned _cffi_d_clingo_configuration_value_is_assigned
8553 #endif
8554 
_cffi_d_clingo_configuration_value_set(clingo_configuration_t * x0,uint32_t x1,char const * x2)8555 static _Bool _cffi_d_clingo_configuration_value_set(clingo_configuration_t * x0, uint32_t x1, char const * x2)
8556 {
8557   return clingo_configuration_value_set(x0, x1, x2);
8558 }
8559 #ifndef PYPY_VERSION
8560 static PyObject *
_cffi_f_clingo_configuration_value_set(PyObject * self,PyObject * args)8561 _cffi_f_clingo_configuration_value_set(PyObject *self, PyObject *args)
8562 {
8563   clingo_configuration_t * x0;
8564   uint32_t x1;
8565   char const * x2;
8566   Py_ssize_t datasize;
8567   struct _cffi_freeme_s *large_args_free = NULL;
8568   _Bool result;
8569   PyObject *pyresult;
8570   PyObject *arg0;
8571   PyObject *arg1;
8572   PyObject *arg2;
8573 
8574   if (!PyArg_UnpackTuple(args, "clingo_configuration_value_set", 3, 3, &arg0, &arg1, &arg2))
8575     return NULL;
8576 
8577   datasize = _cffi_prepare_pointer_call_argument(
8578       _cffi_type(321), arg0, (char **)&x0);
8579   if (datasize != 0) {
8580     x0 = ((size_t)datasize) <= 640 ? (clingo_configuration_t *)alloca((size_t)datasize) : NULL;
8581     if (_cffi_convert_array_argument(_cffi_type(321), arg0, (char **)&x0,
8582             datasize, &large_args_free) < 0)
8583       return NULL;
8584   }
8585 
8586   x1 = _cffi_to_c_int(arg1, uint32_t);
8587   if (x1 == (uint32_t)-1 && PyErr_Occurred())
8588     return NULL;
8589 
8590   datasize = _cffi_prepare_pointer_call_argument(
8591       _cffi_type(39), arg2, (char **)&x2);
8592   if (datasize != 0) {
8593     x2 = ((size_t)datasize) <= 640 ? (char const *)alloca((size_t)datasize) : NULL;
8594     if (_cffi_convert_array_argument(_cffi_type(39), arg2, (char **)&x2,
8595             datasize, &large_args_free) < 0)
8596       return NULL;
8597   }
8598 
8599   Py_BEGIN_ALLOW_THREADS
8600   _cffi_restore_errno();
8601   { result = clingo_configuration_value_set(x0, x1, x2); }
8602   _cffi_save_errno();
8603   Py_END_ALLOW_THREADS
8604 
8605   (void)self; /* unused */
8606   pyresult = _cffi_from_c__Bool(result);
8607   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
8608   return pyresult;
8609 }
8610 #else
8611 #  define _cffi_f_clingo_configuration_value_set _cffi_d_clingo_configuration_value_set
8612 #endif
8613 
_cffi_d_clingo_control_add(clingo_control_t * x0,char const * x1,char const * const * x2,size_t x3,char const * x4)8614 static _Bool _cffi_d_clingo_control_add(clingo_control_t * x0, char const * x1, char const * const * x2, size_t x3, char const * x4)
8615 {
8616   return clingo_control_add(x0, x1, x2, x3, x4);
8617 }
8618 #ifndef PYPY_VERSION
8619 static PyObject *
_cffi_f_clingo_control_add(PyObject * self,PyObject * args)8620 _cffi_f_clingo_control_add(PyObject *self, PyObject *args)
8621 {
8622   clingo_control_t * x0;
8623   char const * x1;
8624   char const * const * x2;
8625   size_t x3;
8626   char const * x4;
8627   Py_ssize_t datasize;
8628   struct _cffi_freeme_s *large_args_free = NULL;
8629   _Bool result;
8630   PyObject *pyresult;
8631   PyObject *arg0;
8632   PyObject *arg1;
8633   PyObject *arg2;
8634   PyObject *arg3;
8635   PyObject *arg4;
8636 
8637   if (!PyArg_UnpackTuple(args, "clingo_control_add", 5, 5, &arg0, &arg1, &arg2, &arg3, &arg4))
8638     return NULL;
8639 
8640   datasize = _cffi_prepare_pointer_call_argument(
8641       _cffi_type(380), arg0, (char **)&x0);
8642   if (datasize != 0) {
8643     x0 = ((size_t)datasize) <= 640 ? (clingo_control_t *)alloca((size_t)datasize) : NULL;
8644     if (_cffi_convert_array_argument(_cffi_type(380), arg0, (char **)&x0,
8645             datasize, &large_args_free) < 0)
8646       return NULL;
8647   }
8648 
8649   datasize = _cffi_prepare_pointer_call_argument(
8650       _cffi_type(39), arg1, (char **)&x1);
8651   if (datasize != 0) {
8652     x1 = ((size_t)datasize) <= 640 ? (char const *)alloca((size_t)datasize) : NULL;
8653     if (_cffi_convert_array_argument(_cffi_type(39), arg1, (char **)&x1,
8654             datasize, &large_args_free) < 0)
8655       return NULL;
8656   }
8657 
8658   datasize = _cffi_prepare_pointer_call_argument(
8659       _cffi_type(22), arg2, (char **)&x2);
8660   if (datasize != 0) {
8661     x2 = ((size_t)datasize) <= 640 ? (char const * const *)alloca((size_t)datasize) : NULL;
8662     if (_cffi_convert_array_argument(_cffi_type(22), arg2, (char **)&x2,
8663             datasize, &large_args_free) < 0)
8664       return NULL;
8665   }
8666 
8667   x3 = _cffi_to_c_int(arg3, size_t);
8668   if (x3 == (size_t)-1 && PyErr_Occurred())
8669     return NULL;
8670 
8671   datasize = _cffi_prepare_pointer_call_argument(
8672       _cffi_type(39), arg4, (char **)&x4);
8673   if (datasize != 0) {
8674     x4 = ((size_t)datasize) <= 640 ? (char const *)alloca((size_t)datasize) : NULL;
8675     if (_cffi_convert_array_argument(_cffi_type(39), arg4, (char **)&x4,
8676             datasize, &large_args_free) < 0)
8677       return NULL;
8678   }
8679 
8680   Py_BEGIN_ALLOW_THREADS
8681   _cffi_restore_errno();
8682   { result = clingo_control_add(x0, x1, x2, x3, x4); }
8683   _cffi_save_errno();
8684   Py_END_ALLOW_THREADS
8685 
8686   (void)self; /* unused */
8687   pyresult = _cffi_from_c__Bool(result);
8688   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
8689   return pyresult;
8690 }
8691 #else
8692 #  define _cffi_f_clingo_control_add _cffi_d_clingo_control_add
8693 #endif
8694 
_cffi_d_clingo_control_assign_external(clingo_control_t * x0,int32_t x1,int x2)8695 static _Bool _cffi_d_clingo_control_assign_external(clingo_control_t * x0, int32_t x1, int x2)
8696 {
8697   return clingo_control_assign_external(x0, x1, x2);
8698 }
8699 #ifndef PYPY_VERSION
8700 static PyObject *
_cffi_f_clingo_control_assign_external(PyObject * self,PyObject * args)8701 _cffi_f_clingo_control_assign_external(PyObject *self, PyObject *args)
8702 {
8703   clingo_control_t * x0;
8704   int32_t x1;
8705   int x2;
8706   Py_ssize_t datasize;
8707   struct _cffi_freeme_s *large_args_free = NULL;
8708   _Bool result;
8709   PyObject *pyresult;
8710   PyObject *arg0;
8711   PyObject *arg1;
8712   PyObject *arg2;
8713 
8714   if (!PyArg_UnpackTuple(args, "clingo_control_assign_external", 3, 3, &arg0, &arg1, &arg2))
8715     return NULL;
8716 
8717   datasize = _cffi_prepare_pointer_call_argument(
8718       _cffi_type(380), arg0, (char **)&x0);
8719   if (datasize != 0) {
8720     x0 = ((size_t)datasize) <= 640 ? (clingo_control_t *)alloca((size_t)datasize) : NULL;
8721     if (_cffi_convert_array_argument(_cffi_type(380), arg0, (char **)&x0,
8722             datasize, &large_args_free) < 0)
8723       return NULL;
8724   }
8725 
8726   x1 = _cffi_to_c_int(arg1, int32_t);
8727   if (x1 == (int32_t)-1 && PyErr_Occurred())
8728     return NULL;
8729 
8730   x2 = _cffi_to_c_int(arg2, int);
8731   if (x2 == (int)-1 && PyErr_Occurred())
8732     return NULL;
8733 
8734   Py_BEGIN_ALLOW_THREADS
8735   _cffi_restore_errno();
8736   { result = clingo_control_assign_external(x0, x1, x2); }
8737   _cffi_save_errno();
8738   Py_END_ALLOW_THREADS
8739 
8740   (void)self; /* unused */
8741   pyresult = _cffi_from_c__Bool(result);
8742   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
8743   return pyresult;
8744 }
8745 #else
8746 #  define _cffi_f_clingo_control_assign_external _cffi_d_clingo_control_assign_external
8747 #endif
8748 
_cffi_d_clingo_control_backend(clingo_control_t * x0,clingo_backend_t ** x1)8749 static _Bool _cffi_d_clingo_control_backend(clingo_control_t * x0, clingo_backend_t * * x1)
8750 {
8751   return clingo_control_backend(x0, x1);
8752 }
8753 #ifndef PYPY_VERSION
8754 static PyObject *
_cffi_f_clingo_control_backend(PyObject * self,PyObject * args)8755 _cffi_f_clingo_control_backend(PyObject *self, PyObject *args)
8756 {
8757   clingo_control_t * x0;
8758   clingo_backend_t * * x1;
8759   Py_ssize_t datasize;
8760   struct _cffi_freeme_s *large_args_free = NULL;
8761   _Bool result;
8762   PyObject *pyresult;
8763   PyObject *arg0;
8764   PyObject *arg1;
8765 
8766   if (!PyArg_UnpackTuple(args, "clingo_control_backend", 2, 2, &arg0, &arg1))
8767     return NULL;
8768 
8769   datasize = _cffi_prepare_pointer_call_argument(
8770       _cffi_type(380), arg0, (char **)&x0);
8771   if (datasize != 0) {
8772     x0 = ((size_t)datasize) <= 640 ? (clingo_control_t *)alloca((size_t)datasize) : NULL;
8773     if (_cffi_convert_array_argument(_cffi_type(380), arg0, (char **)&x0,
8774             datasize, &large_args_free) < 0)
8775       return NULL;
8776   }
8777 
8778   datasize = _cffi_prepare_pointer_call_argument(
8779       _cffi_type(405), arg1, (char **)&x1);
8780   if (datasize != 0) {
8781     x1 = ((size_t)datasize) <= 640 ? (clingo_backend_t * *)alloca((size_t)datasize) : NULL;
8782     if (_cffi_convert_array_argument(_cffi_type(405), arg1, (char **)&x1,
8783             datasize, &large_args_free) < 0)
8784       return NULL;
8785   }
8786 
8787   Py_BEGIN_ALLOW_THREADS
8788   _cffi_restore_errno();
8789   { result = clingo_control_backend(x0, x1); }
8790   _cffi_save_errno();
8791   Py_END_ALLOW_THREADS
8792 
8793   (void)self; /* unused */
8794   pyresult = _cffi_from_c__Bool(result);
8795   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
8796   return pyresult;
8797 }
8798 #else
8799 #  define _cffi_f_clingo_control_backend _cffi_d_clingo_control_backend
8800 #endif
8801 
_cffi_d_clingo_control_clasp_facade(clingo_control_t * x0,void ** x1)8802 static _Bool _cffi_d_clingo_control_clasp_facade(clingo_control_t * x0, void * * x1)
8803 {
8804   return clingo_control_clasp_facade(x0, x1);
8805 }
8806 #ifndef PYPY_VERSION
8807 static PyObject *
_cffi_f_clingo_control_clasp_facade(PyObject * self,PyObject * args)8808 _cffi_f_clingo_control_clasp_facade(PyObject *self, PyObject *args)
8809 {
8810   clingo_control_t * x0;
8811   void * * x1;
8812   Py_ssize_t datasize;
8813   struct _cffi_freeme_s *large_args_free = NULL;
8814   _Bool result;
8815   PyObject *pyresult;
8816   PyObject *arg0;
8817   PyObject *arg1;
8818 
8819   if (!PyArg_UnpackTuple(args, "clingo_control_clasp_facade", 2, 2, &arg0, &arg1))
8820     return NULL;
8821 
8822   datasize = _cffi_prepare_pointer_call_argument(
8823       _cffi_type(380), arg0, (char **)&x0);
8824   if (datasize != 0) {
8825     x0 = ((size_t)datasize) <= 640 ? (clingo_control_t *)alloca((size_t)datasize) : NULL;
8826     if (_cffi_convert_array_argument(_cffi_type(380), arg0, (char **)&x0,
8827             datasize, &large_args_free) < 0)
8828       return NULL;
8829   }
8830 
8831   datasize = _cffi_prepare_pointer_call_argument(
8832       _cffi_type(454), arg1, (char **)&x1);
8833   if (datasize != 0) {
8834     x1 = ((size_t)datasize) <= 640 ? (void * *)alloca((size_t)datasize) : NULL;
8835     if (_cffi_convert_array_argument(_cffi_type(454), arg1, (char **)&x1,
8836             datasize, &large_args_free) < 0)
8837       return NULL;
8838   }
8839 
8840   Py_BEGIN_ALLOW_THREADS
8841   _cffi_restore_errno();
8842   { result = clingo_control_clasp_facade(x0, x1); }
8843   _cffi_save_errno();
8844   Py_END_ALLOW_THREADS
8845 
8846   (void)self; /* unused */
8847   pyresult = _cffi_from_c__Bool(result);
8848   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
8849   return pyresult;
8850 }
8851 #else
8852 #  define _cffi_f_clingo_control_clasp_facade _cffi_d_clingo_control_clasp_facade
8853 #endif
8854 
_cffi_d_clingo_control_cleanup(clingo_control_t * x0)8855 static _Bool _cffi_d_clingo_control_cleanup(clingo_control_t * x0)
8856 {
8857   return clingo_control_cleanup(x0);
8858 }
8859 #ifndef PYPY_VERSION
8860 static PyObject *
_cffi_f_clingo_control_cleanup(PyObject * self,PyObject * arg0)8861 _cffi_f_clingo_control_cleanup(PyObject *self, PyObject *arg0)
8862 {
8863   clingo_control_t * x0;
8864   Py_ssize_t datasize;
8865   struct _cffi_freeme_s *large_args_free = NULL;
8866   _Bool result;
8867   PyObject *pyresult;
8868 
8869   datasize = _cffi_prepare_pointer_call_argument(
8870       _cffi_type(380), arg0, (char **)&x0);
8871   if (datasize != 0) {
8872     x0 = ((size_t)datasize) <= 640 ? (clingo_control_t *)alloca((size_t)datasize) : NULL;
8873     if (_cffi_convert_array_argument(_cffi_type(380), arg0, (char **)&x0,
8874             datasize, &large_args_free) < 0)
8875       return NULL;
8876   }
8877 
8878   Py_BEGIN_ALLOW_THREADS
8879   _cffi_restore_errno();
8880   { result = clingo_control_cleanup(x0); }
8881   _cffi_save_errno();
8882   Py_END_ALLOW_THREADS
8883 
8884   (void)self; /* unused */
8885   pyresult = _cffi_from_c__Bool(result);
8886   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
8887   return pyresult;
8888 }
8889 #else
8890 #  define _cffi_f_clingo_control_cleanup _cffi_d_clingo_control_cleanup
8891 #endif
8892 
_cffi_d_clingo_control_configuration(clingo_control_t * x0,clingo_configuration_t ** x1)8893 static _Bool _cffi_d_clingo_control_configuration(clingo_control_t * x0, clingo_configuration_t * * x1)
8894 {
8895   return clingo_control_configuration(x0, x1);
8896 }
8897 #ifndef PYPY_VERSION
8898 static PyObject *
_cffi_f_clingo_control_configuration(PyObject * self,PyObject * args)8899 _cffi_f_clingo_control_configuration(PyObject *self, PyObject *args)
8900 {
8901   clingo_control_t * x0;
8902   clingo_configuration_t * * x1;
8903   Py_ssize_t datasize;
8904   struct _cffi_freeme_s *large_args_free = NULL;
8905   _Bool result;
8906   PyObject *pyresult;
8907   PyObject *arg0;
8908   PyObject *arg1;
8909 
8910   if (!PyArg_UnpackTuple(args, "clingo_control_configuration", 2, 2, &arg0, &arg1))
8911     return NULL;
8912 
8913   datasize = _cffi_prepare_pointer_call_argument(
8914       _cffi_type(380), arg0, (char **)&x0);
8915   if (datasize != 0) {
8916     x0 = ((size_t)datasize) <= 640 ? (clingo_control_t *)alloca((size_t)datasize) : NULL;
8917     if (_cffi_convert_array_argument(_cffi_type(380), arg0, (char **)&x0,
8918             datasize, &large_args_free) < 0)
8919       return NULL;
8920   }
8921 
8922   datasize = _cffi_prepare_pointer_call_argument(
8923       _cffi_type(409), arg1, (char **)&x1);
8924   if (datasize != 0) {
8925     x1 = ((size_t)datasize) <= 640 ? (clingo_configuration_t * *)alloca((size_t)datasize) : NULL;
8926     if (_cffi_convert_array_argument(_cffi_type(409), arg1, (char **)&x1,
8927             datasize, &large_args_free) < 0)
8928       return NULL;
8929   }
8930 
8931   Py_BEGIN_ALLOW_THREADS
8932   _cffi_restore_errno();
8933   { result = clingo_control_configuration(x0, x1); }
8934   _cffi_save_errno();
8935   Py_END_ALLOW_THREADS
8936 
8937   (void)self; /* unused */
8938   pyresult = _cffi_from_c__Bool(result);
8939   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
8940   return pyresult;
8941 }
8942 #else
8943 #  define _cffi_f_clingo_control_configuration _cffi_d_clingo_control_configuration
8944 #endif
8945 
_cffi_d_clingo_control_free(clingo_control_t * x0)8946 static void _cffi_d_clingo_control_free(clingo_control_t * x0)
8947 {
8948   clingo_control_free(x0);
8949 }
8950 #ifndef PYPY_VERSION
8951 static PyObject *
_cffi_f_clingo_control_free(PyObject * self,PyObject * arg0)8952 _cffi_f_clingo_control_free(PyObject *self, PyObject *arg0)
8953 {
8954   clingo_control_t * x0;
8955   Py_ssize_t datasize;
8956   struct _cffi_freeme_s *large_args_free = NULL;
8957 
8958   datasize = _cffi_prepare_pointer_call_argument(
8959       _cffi_type(380), arg0, (char **)&x0);
8960   if (datasize != 0) {
8961     x0 = ((size_t)datasize) <= 640 ? (clingo_control_t *)alloca((size_t)datasize) : NULL;
8962     if (_cffi_convert_array_argument(_cffi_type(380), arg0, (char **)&x0,
8963             datasize, &large_args_free) < 0)
8964       return NULL;
8965   }
8966 
8967   Py_BEGIN_ALLOW_THREADS
8968   _cffi_restore_errno();
8969   { clingo_control_free(x0); }
8970   _cffi_save_errno();
8971   Py_END_ALLOW_THREADS
8972 
8973   (void)self; /* unused */
8974   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
8975   Py_INCREF(Py_None);
8976   return Py_None;
8977 }
8978 #else
8979 #  define _cffi_f_clingo_control_free _cffi_d_clingo_control_free
8980 #endif
8981 
_cffi_d_clingo_control_get_const(clingo_control_t const * x0,char const * x1,uint64_t * x2)8982 static _Bool _cffi_d_clingo_control_get_const(clingo_control_t const * x0, char const * x1, uint64_t * x2)
8983 {
8984   return clingo_control_get_const(x0, x1, x2);
8985 }
8986 #ifndef PYPY_VERSION
8987 static PyObject *
_cffi_f_clingo_control_get_const(PyObject * self,PyObject * args)8988 _cffi_f_clingo_control_get_const(PyObject *self, PyObject *args)
8989 {
8990   clingo_control_t const * x0;
8991   char const * x1;
8992   uint64_t * x2;
8993   Py_ssize_t datasize;
8994   struct _cffi_freeme_s *large_args_free = NULL;
8995   _Bool result;
8996   PyObject *pyresult;
8997   PyObject *arg0;
8998   PyObject *arg1;
8999   PyObject *arg2;
9000 
9001   if (!PyArg_UnpackTuple(args, "clingo_control_get_const", 3, 3, &arg0, &arg1, &arg2))
9002     return NULL;
9003 
9004   datasize = _cffi_prepare_pointer_call_argument(
9005       _cffi_type(461), arg0, (char **)&x0);
9006   if (datasize != 0) {
9007     x0 = ((size_t)datasize) <= 640 ? (clingo_control_t const *)alloca((size_t)datasize) : NULL;
9008     if (_cffi_convert_array_argument(_cffi_type(461), arg0, (char **)&x0,
9009             datasize, &large_args_free) < 0)
9010       return NULL;
9011   }
9012 
9013   datasize = _cffi_prepare_pointer_call_argument(
9014       _cffi_type(39), arg1, (char **)&x1);
9015   if (datasize != 0) {
9016     x1 = ((size_t)datasize) <= 640 ? (char const *)alloca((size_t)datasize) : NULL;
9017     if (_cffi_convert_array_argument(_cffi_type(39), arg1, (char **)&x1,
9018             datasize, &large_args_free) < 0)
9019       return NULL;
9020   }
9021 
9022   datasize = _cffi_prepare_pointer_call_argument(
9023       _cffi_type(54), arg2, (char **)&x2);
9024   if (datasize != 0) {
9025     x2 = ((size_t)datasize) <= 640 ? (uint64_t *)alloca((size_t)datasize) : NULL;
9026     if (_cffi_convert_array_argument(_cffi_type(54), arg2, (char **)&x2,
9027             datasize, &large_args_free) < 0)
9028       return NULL;
9029   }
9030 
9031   Py_BEGIN_ALLOW_THREADS
9032   _cffi_restore_errno();
9033   { result = clingo_control_get_const(x0, x1, x2); }
9034   _cffi_save_errno();
9035   Py_END_ALLOW_THREADS
9036 
9037   (void)self; /* unused */
9038   pyresult = _cffi_from_c__Bool(result);
9039   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
9040   return pyresult;
9041 }
9042 #else
9043 #  define _cffi_f_clingo_control_get_const _cffi_d_clingo_control_get_const
9044 #endif
9045 
_cffi_d_clingo_control_get_enable_cleanup(clingo_control_t * x0)9046 static _Bool _cffi_d_clingo_control_get_enable_cleanup(clingo_control_t * x0)
9047 {
9048   return clingo_control_get_enable_cleanup(x0);
9049 }
9050 #ifndef PYPY_VERSION
9051 static PyObject *
_cffi_f_clingo_control_get_enable_cleanup(PyObject * self,PyObject * arg0)9052 _cffi_f_clingo_control_get_enable_cleanup(PyObject *self, PyObject *arg0)
9053 {
9054   clingo_control_t * x0;
9055   Py_ssize_t datasize;
9056   struct _cffi_freeme_s *large_args_free = NULL;
9057   _Bool result;
9058   PyObject *pyresult;
9059 
9060   datasize = _cffi_prepare_pointer_call_argument(
9061       _cffi_type(380), arg0, (char **)&x0);
9062   if (datasize != 0) {
9063     x0 = ((size_t)datasize) <= 640 ? (clingo_control_t *)alloca((size_t)datasize) : NULL;
9064     if (_cffi_convert_array_argument(_cffi_type(380), arg0, (char **)&x0,
9065             datasize, &large_args_free) < 0)
9066       return NULL;
9067   }
9068 
9069   Py_BEGIN_ALLOW_THREADS
9070   _cffi_restore_errno();
9071   { result = clingo_control_get_enable_cleanup(x0); }
9072   _cffi_save_errno();
9073   Py_END_ALLOW_THREADS
9074 
9075   (void)self; /* unused */
9076   pyresult = _cffi_from_c__Bool(result);
9077   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
9078   return pyresult;
9079 }
9080 #else
9081 #  define _cffi_f_clingo_control_get_enable_cleanup _cffi_d_clingo_control_get_enable_cleanup
9082 #endif
9083 
_cffi_d_clingo_control_get_enable_enumeration_assumption(clingo_control_t * x0)9084 static _Bool _cffi_d_clingo_control_get_enable_enumeration_assumption(clingo_control_t * x0)
9085 {
9086   return clingo_control_get_enable_enumeration_assumption(x0);
9087 }
9088 #ifndef PYPY_VERSION
9089 static PyObject *
_cffi_f_clingo_control_get_enable_enumeration_assumption(PyObject * self,PyObject * arg0)9090 _cffi_f_clingo_control_get_enable_enumeration_assumption(PyObject *self, PyObject *arg0)
9091 {
9092   clingo_control_t * x0;
9093   Py_ssize_t datasize;
9094   struct _cffi_freeme_s *large_args_free = NULL;
9095   _Bool result;
9096   PyObject *pyresult;
9097 
9098   datasize = _cffi_prepare_pointer_call_argument(
9099       _cffi_type(380), arg0, (char **)&x0);
9100   if (datasize != 0) {
9101     x0 = ((size_t)datasize) <= 640 ? (clingo_control_t *)alloca((size_t)datasize) : NULL;
9102     if (_cffi_convert_array_argument(_cffi_type(380), arg0, (char **)&x0,
9103             datasize, &large_args_free) < 0)
9104       return NULL;
9105   }
9106 
9107   Py_BEGIN_ALLOW_THREADS
9108   _cffi_restore_errno();
9109   { result = clingo_control_get_enable_enumeration_assumption(x0); }
9110   _cffi_save_errno();
9111   Py_END_ALLOW_THREADS
9112 
9113   (void)self; /* unused */
9114   pyresult = _cffi_from_c__Bool(result);
9115   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
9116   return pyresult;
9117 }
9118 #else
9119 #  define _cffi_f_clingo_control_get_enable_enumeration_assumption _cffi_d_clingo_control_get_enable_enumeration_assumption
9120 #endif
9121 
_cffi_d_clingo_control_ground(clingo_control_t * x0,clingo_part_t const * x1,size_t x2,_Bool (* x3)(clingo_location_t const *,char const *,uint64_t const *,size_t,void *,_Bool (*)(uint64_t const *,size_t,void *),void *),void * x4)9122 static _Bool _cffi_d_clingo_control_ground(clingo_control_t * x0, clingo_part_t const * x1, size_t x2, _Bool(* x3)(clingo_location_t const *, char const *, uint64_t const *, size_t, void *, _Bool(*)(uint64_t const *, size_t, void *), void *), void * x4)
9123 {
9124   return clingo_control_ground(x0, x1, x2, x3, x4);
9125 }
9126 #ifndef PYPY_VERSION
9127 static PyObject *
_cffi_f_clingo_control_ground(PyObject * self,PyObject * args)9128 _cffi_f_clingo_control_ground(PyObject *self, PyObject *args)
9129 {
9130   clingo_control_t * x0;
9131   clingo_part_t const * x1;
9132   size_t x2;
9133   _Bool(* x3)(clingo_location_t const *, char const *, uint64_t const *, size_t, void *, _Bool(*)(uint64_t const *, size_t, void *), void *);
9134   void * x4;
9135   Py_ssize_t datasize;
9136   struct _cffi_freeme_s *large_args_free = NULL;
9137   _Bool result;
9138   PyObject *pyresult;
9139   PyObject *arg0;
9140   PyObject *arg1;
9141   PyObject *arg2;
9142   PyObject *arg3;
9143   PyObject *arg4;
9144 
9145   if (!PyArg_UnpackTuple(args, "clingo_control_ground", 5, 5, &arg0, &arg1, &arg2, &arg3, &arg4))
9146     return NULL;
9147 
9148   datasize = _cffi_prepare_pointer_call_argument(
9149       _cffi_type(380), arg0, (char **)&x0);
9150   if (datasize != 0) {
9151     x0 = ((size_t)datasize) <= 640 ? (clingo_control_t *)alloca((size_t)datasize) : NULL;
9152     if (_cffi_convert_array_argument(_cffi_type(380), arg0, (char **)&x0,
9153             datasize, &large_args_free) < 0)
9154       return NULL;
9155   }
9156 
9157   datasize = _cffi_prepare_pointer_call_argument(
9158       _cffi_type(419), arg1, (char **)&x1);
9159   if (datasize != 0) {
9160     x1 = ((size_t)datasize) <= 640 ? (clingo_part_t const *)alloca((size_t)datasize) : NULL;
9161     if (_cffi_convert_array_argument(_cffi_type(419), arg1, (char **)&x1,
9162             datasize, &large_args_free) < 0)
9163       return NULL;
9164   }
9165 
9166   x2 = _cffi_to_c_int(arg2, size_t);
9167   if (x2 == (size_t)-1 && PyErr_Occurred())
9168     return NULL;
9169 
9170   x3 = (_Bool(*)(clingo_location_t const *, char const *, uint64_t const *, size_t, void *, _Bool(*)(uint64_t const *, size_t, void *), void *))_cffi_to_c_pointer(arg3, _cffi_type(421));
9171   if (x3 == (_Bool(*)(clingo_location_t const *, char const *, uint64_t const *, size_t, void *, _Bool(*)(uint64_t const *, size_t, void *), void *))NULL && PyErr_Occurred())
9172     return NULL;
9173 
9174   datasize = _cffi_prepare_pointer_call_argument(
9175       _cffi_type(6), arg4, (char **)&x4);
9176   if (datasize != 0) {
9177     x4 = ((size_t)datasize) <= 640 ? (void *)alloca((size_t)datasize) : NULL;
9178     if (_cffi_convert_array_argument(_cffi_type(6), arg4, (char **)&x4,
9179             datasize, &large_args_free) < 0)
9180       return NULL;
9181   }
9182 
9183   Py_BEGIN_ALLOW_THREADS
9184   _cffi_restore_errno();
9185   { result = clingo_control_ground(x0, x1, x2, x3, x4); }
9186   _cffi_save_errno();
9187   Py_END_ALLOW_THREADS
9188 
9189   (void)self; /* unused */
9190   pyresult = _cffi_from_c__Bool(result);
9191   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
9192   return pyresult;
9193 }
9194 #else
9195 #  define _cffi_f_clingo_control_ground _cffi_d_clingo_control_ground
9196 #endif
9197 
_cffi_d_clingo_control_has_const(clingo_control_t const * x0,char const * x1,_Bool * x2)9198 static _Bool _cffi_d_clingo_control_has_const(clingo_control_t const * x0, char const * x1, _Bool * x2)
9199 {
9200   return clingo_control_has_const(x0, x1, x2);
9201 }
9202 #ifndef PYPY_VERSION
9203 static PyObject *
_cffi_f_clingo_control_has_const(PyObject * self,PyObject * args)9204 _cffi_f_clingo_control_has_const(PyObject *self, PyObject *args)
9205 {
9206   clingo_control_t const * x0;
9207   char const * x1;
9208   _Bool * x2;
9209   Py_ssize_t datasize;
9210   struct _cffi_freeme_s *large_args_free = NULL;
9211   _Bool result;
9212   PyObject *pyresult;
9213   PyObject *arg0;
9214   PyObject *arg1;
9215   PyObject *arg2;
9216 
9217   if (!PyArg_UnpackTuple(args, "clingo_control_has_const", 3, 3, &arg0, &arg1, &arg2))
9218     return NULL;
9219 
9220   datasize = _cffi_prepare_pointer_call_argument(
9221       _cffi_type(461), arg0, (char **)&x0);
9222   if (datasize != 0) {
9223     x0 = ((size_t)datasize) <= 640 ? (clingo_control_t const *)alloca((size_t)datasize) : NULL;
9224     if (_cffi_convert_array_argument(_cffi_type(461), arg0, (char **)&x0,
9225             datasize, &large_args_free) < 0)
9226       return NULL;
9227   }
9228 
9229   datasize = _cffi_prepare_pointer_call_argument(
9230       _cffi_type(39), arg1, (char **)&x1);
9231   if (datasize != 0) {
9232     x1 = ((size_t)datasize) <= 640 ? (char const *)alloca((size_t)datasize) : NULL;
9233     if (_cffi_convert_array_argument(_cffi_type(39), arg1, (char **)&x1,
9234             datasize, &large_args_free) < 0)
9235       return NULL;
9236   }
9237 
9238   datasize = _cffi_prepare_pointer_call_argument(
9239       _cffi_type(40), arg2, (char **)&x2);
9240   if (datasize != 0) {
9241     x2 = ((size_t)datasize) <= 640 ? (_Bool *)alloca((size_t)datasize) : NULL;
9242     if (_cffi_convert_array_argument(_cffi_type(40), arg2, (char **)&x2,
9243             datasize, &large_args_free) < 0)
9244       return NULL;
9245   }
9246 
9247   Py_BEGIN_ALLOW_THREADS
9248   _cffi_restore_errno();
9249   { result = clingo_control_has_const(x0, x1, x2); }
9250   _cffi_save_errno();
9251   Py_END_ALLOW_THREADS
9252 
9253   (void)self; /* unused */
9254   pyresult = _cffi_from_c__Bool(result);
9255   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
9256   return pyresult;
9257 }
9258 #else
9259 #  define _cffi_f_clingo_control_has_const _cffi_d_clingo_control_has_const
9260 #endif
9261 
_cffi_d_clingo_control_interrupt(clingo_control_t * x0)9262 static void _cffi_d_clingo_control_interrupt(clingo_control_t * x0)
9263 {
9264   clingo_control_interrupt(x0);
9265 }
9266 #ifndef PYPY_VERSION
9267 static PyObject *
_cffi_f_clingo_control_interrupt(PyObject * self,PyObject * arg0)9268 _cffi_f_clingo_control_interrupt(PyObject *self, PyObject *arg0)
9269 {
9270   clingo_control_t * x0;
9271   Py_ssize_t datasize;
9272   struct _cffi_freeme_s *large_args_free = NULL;
9273 
9274   datasize = _cffi_prepare_pointer_call_argument(
9275       _cffi_type(380), arg0, (char **)&x0);
9276   if (datasize != 0) {
9277     x0 = ((size_t)datasize) <= 640 ? (clingo_control_t *)alloca((size_t)datasize) : NULL;
9278     if (_cffi_convert_array_argument(_cffi_type(380), arg0, (char **)&x0,
9279             datasize, &large_args_free) < 0)
9280       return NULL;
9281   }
9282 
9283   Py_BEGIN_ALLOW_THREADS
9284   _cffi_restore_errno();
9285   { clingo_control_interrupt(x0); }
9286   _cffi_save_errno();
9287   Py_END_ALLOW_THREADS
9288 
9289   (void)self; /* unused */
9290   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
9291   Py_INCREF(Py_None);
9292   return Py_None;
9293 }
9294 #else
9295 #  define _cffi_f_clingo_control_interrupt _cffi_d_clingo_control_interrupt
9296 #endif
9297 
_cffi_d_clingo_control_is_conflicting(clingo_control_t const * x0)9298 static _Bool _cffi_d_clingo_control_is_conflicting(clingo_control_t const * x0)
9299 {
9300   return clingo_control_is_conflicting(x0);
9301 }
9302 #ifndef PYPY_VERSION
9303 static PyObject *
_cffi_f_clingo_control_is_conflicting(PyObject * self,PyObject * arg0)9304 _cffi_f_clingo_control_is_conflicting(PyObject *self, PyObject *arg0)
9305 {
9306   clingo_control_t const * x0;
9307   Py_ssize_t datasize;
9308   struct _cffi_freeme_s *large_args_free = NULL;
9309   _Bool result;
9310   PyObject *pyresult;
9311 
9312   datasize = _cffi_prepare_pointer_call_argument(
9313       _cffi_type(461), arg0, (char **)&x0);
9314   if (datasize != 0) {
9315     x0 = ((size_t)datasize) <= 640 ? (clingo_control_t const *)alloca((size_t)datasize) : NULL;
9316     if (_cffi_convert_array_argument(_cffi_type(461), arg0, (char **)&x0,
9317             datasize, &large_args_free) < 0)
9318       return NULL;
9319   }
9320 
9321   Py_BEGIN_ALLOW_THREADS
9322   _cffi_restore_errno();
9323   { result = clingo_control_is_conflicting(x0); }
9324   _cffi_save_errno();
9325   Py_END_ALLOW_THREADS
9326 
9327   (void)self; /* unused */
9328   pyresult = _cffi_from_c__Bool(result);
9329   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
9330   return pyresult;
9331 }
9332 #else
9333 #  define _cffi_f_clingo_control_is_conflicting _cffi_d_clingo_control_is_conflicting
9334 #endif
9335 
_cffi_d_clingo_control_load(clingo_control_t * x0,char const * x1)9336 static _Bool _cffi_d_clingo_control_load(clingo_control_t * x0, char const * x1)
9337 {
9338   return clingo_control_load(x0, x1);
9339 }
9340 #ifndef PYPY_VERSION
9341 static PyObject *
_cffi_f_clingo_control_load(PyObject * self,PyObject * args)9342 _cffi_f_clingo_control_load(PyObject *self, PyObject *args)
9343 {
9344   clingo_control_t * x0;
9345   char const * x1;
9346   Py_ssize_t datasize;
9347   struct _cffi_freeme_s *large_args_free = NULL;
9348   _Bool result;
9349   PyObject *pyresult;
9350   PyObject *arg0;
9351   PyObject *arg1;
9352 
9353   if (!PyArg_UnpackTuple(args, "clingo_control_load", 2, 2, &arg0, &arg1))
9354     return NULL;
9355 
9356   datasize = _cffi_prepare_pointer_call_argument(
9357       _cffi_type(380), arg0, (char **)&x0);
9358   if (datasize != 0) {
9359     x0 = ((size_t)datasize) <= 640 ? (clingo_control_t *)alloca((size_t)datasize) : NULL;
9360     if (_cffi_convert_array_argument(_cffi_type(380), arg0, (char **)&x0,
9361             datasize, &large_args_free) < 0)
9362       return NULL;
9363   }
9364 
9365   datasize = _cffi_prepare_pointer_call_argument(
9366       _cffi_type(39), arg1, (char **)&x1);
9367   if (datasize != 0) {
9368     x1 = ((size_t)datasize) <= 640 ? (char const *)alloca((size_t)datasize) : NULL;
9369     if (_cffi_convert_array_argument(_cffi_type(39), arg1, (char **)&x1,
9370             datasize, &large_args_free) < 0)
9371       return NULL;
9372   }
9373 
9374   Py_BEGIN_ALLOW_THREADS
9375   _cffi_restore_errno();
9376   { result = clingo_control_load(x0, x1); }
9377   _cffi_save_errno();
9378   Py_END_ALLOW_THREADS
9379 
9380   (void)self; /* unused */
9381   pyresult = _cffi_from_c__Bool(result);
9382   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
9383   return pyresult;
9384 }
9385 #else
9386 #  define _cffi_f_clingo_control_load _cffi_d_clingo_control_load
9387 #endif
9388 
_cffi_d_clingo_control_new(char const * const * x0,size_t x1,void (* x2)(int,char const *,void *),void * x3,unsigned int x4,clingo_control_t ** x5)9389 static _Bool _cffi_d_clingo_control_new(char const * const * x0, size_t x1, void(* x2)(int, char const *, void *), void * x3, unsigned int x4, clingo_control_t * * x5)
9390 {
9391   return clingo_control_new(x0, x1, x2, x3, x4, x5);
9392 }
9393 #ifndef PYPY_VERSION
9394 static PyObject *
_cffi_f_clingo_control_new(PyObject * self,PyObject * args)9395 _cffi_f_clingo_control_new(PyObject *self, PyObject *args)
9396 {
9397   char const * const * x0;
9398   size_t x1;
9399   void(* x2)(int, char const *, void *);
9400   void * x3;
9401   unsigned int x4;
9402   clingo_control_t * * x5;
9403   Py_ssize_t datasize;
9404   struct _cffi_freeme_s *large_args_free = NULL;
9405   _Bool result;
9406   PyObject *pyresult;
9407   PyObject *arg0;
9408   PyObject *arg1;
9409   PyObject *arg2;
9410   PyObject *arg3;
9411   PyObject *arg4;
9412   PyObject *arg5;
9413 
9414   if (!PyArg_UnpackTuple(args, "clingo_control_new", 6, 6, &arg0, &arg1, &arg2, &arg3, &arg4, &arg5))
9415     return NULL;
9416 
9417   datasize = _cffi_prepare_pointer_call_argument(
9418       _cffi_type(22), arg0, (char **)&x0);
9419   if (datasize != 0) {
9420     x0 = ((size_t)datasize) <= 640 ? (char const * const *)alloca((size_t)datasize) : NULL;
9421     if (_cffi_convert_array_argument(_cffi_type(22), arg0, (char **)&x0,
9422             datasize, &large_args_free) < 0)
9423       return NULL;
9424   }
9425 
9426   x1 = _cffi_to_c_int(arg1, size_t);
9427   if (x1 == (size_t)-1 && PyErr_Occurred())
9428     return NULL;
9429 
9430   x2 = (void(*)(int, char const *, void *))_cffi_to_c_pointer(arg2, _cffi_type(26));
9431   if (x2 == (void(*)(int, char const *, void *))NULL && PyErr_Occurred())
9432     return NULL;
9433 
9434   datasize = _cffi_prepare_pointer_call_argument(
9435       _cffi_type(6), arg3, (char **)&x3);
9436   if (datasize != 0) {
9437     x3 = ((size_t)datasize) <= 640 ? (void *)alloca((size_t)datasize) : NULL;
9438     if (_cffi_convert_array_argument(_cffi_type(6), arg3, (char **)&x3,
9439             datasize, &large_args_free) < 0)
9440       return NULL;
9441   }
9442 
9443   x4 = _cffi_to_c_int(arg4, unsigned int);
9444   if (x4 == (unsigned int)-1 && PyErr_Occurred())
9445     return NULL;
9446 
9447   datasize = _cffi_prepare_pointer_call_argument(
9448       _cffi_type(36), arg5, (char **)&x5);
9449   if (datasize != 0) {
9450     x5 = ((size_t)datasize) <= 640 ? (clingo_control_t * *)alloca((size_t)datasize) : NULL;
9451     if (_cffi_convert_array_argument(_cffi_type(36), arg5, (char **)&x5,
9452             datasize, &large_args_free) < 0)
9453       return NULL;
9454   }
9455 
9456   Py_BEGIN_ALLOW_THREADS
9457   _cffi_restore_errno();
9458   { result = clingo_control_new(x0, x1, x2, x3, x4, x5); }
9459   _cffi_save_errno();
9460   Py_END_ALLOW_THREADS
9461 
9462   (void)self; /* unused */
9463   pyresult = _cffi_from_c__Bool(result);
9464   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
9465   return pyresult;
9466 }
9467 #else
9468 #  define _cffi_f_clingo_control_new _cffi_d_clingo_control_new
9469 #endif
9470 
_cffi_d_clingo_control_program_builder(clingo_control_t * x0,clingo_program_builder_t ** x1)9471 static _Bool _cffi_d_clingo_control_program_builder(clingo_control_t * x0, clingo_program_builder_t * * x1)
9472 {
9473   return clingo_control_program_builder(x0, x1);
9474 }
9475 #ifndef PYPY_VERSION
9476 static PyObject *
_cffi_f_clingo_control_program_builder(PyObject * self,PyObject * args)9477 _cffi_f_clingo_control_program_builder(PyObject *self, PyObject *args)
9478 {
9479   clingo_control_t * x0;
9480   clingo_program_builder_t * * x1;
9481   Py_ssize_t datasize;
9482   struct _cffi_freeme_s *large_args_free = NULL;
9483   _Bool result;
9484   PyObject *pyresult;
9485   PyObject *arg0;
9486   PyObject *arg1;
9487 
9488   if (!PyArg_UnpackTuple(args, "clingo_control_program_builder", 2, 2, &arg0, &arg1))
9489     return NULL;
9490 
9491   datasize = _cffi_prepare_pointer_call_argument(
9492       _cffi_type(380), arg0, (char **)&x0);
9493   if (datasize != 0) {
9494     x0 = ((size_t)datasize) <= 640 ? (clingo_control_t *)alloca((size_t)datasize) : NULL;
9495     if (_cffi_convert_array_argument(_cffi_type(380), arg0, (char **)&x0,
9496             datasize, &large_args_free) < 0)
9497       return NULL;
9498   }
9499 
9500   datasize = _cffi_prepare_pointer_call_argument(
9501       _cffi_type(426), arg1, (char **)&x1);
9502   if (datasize != 0) {
9503     x1 = ((size_t)datasize) <= 640 ? (clingo_program_builder_t * *)alloca((size_t)datasize) : NULL;
9504     if (_cffi_convert_array_argument(_cffi_type(426), arg1, (char **)&x1,
9505             datasize, &large_args_free) < 0)
9506       return NULL;
9507   }
9508 
9509   Py_BEGIN_ALLOW_THREADS
9510   _cffi_restore_errno();
9511   { result = clingo_control_program_builder(x0, x1); }
9512   _cffi_save_errno();
9513   Py_END_ALLOW_THREADS
9514 
9515   (void)self; /* unused */
9516   pyresult = _cffi_from_c__Bool(result);
9517   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
9518   return pyresult;
9519 }
9520 #else
9521 #  define _cffi_f_clingo_control_program_builder _cffi_d_clingo_control_program_builder
9522 #endif
9523 
_cffi_d_clingo_control_register_observer(clingo_control_t * x0,clingo_ground_program_observer_t const * x1,_Bool x2,void * x3)9524 static _Bool _cffi_d_clingo_control_register_observer(clingo_control_t * x0, clingo_ground_program_observer_t const * x1, _Bool x2, void * x3)
9525 {
9526   return clingo_control_register_observer(x0, x1, x2, x3);
9527 }
9528 #ifndef PYPY_VERSION
9529 static PyObject *
_cffi_f_clingo_control_register_observer(PyObject * self,PyObject * args)9530 _cffi_f_clingo_control_register_observer(PyObject *self, PyObject *args)
9531 {
9532   clingo_control_t * x0;
9533   clingo_ground_program_observer_t const * x1;
9534   _Bool x2;
9535   void * x3;
9536   Py_ssize_t datasize;
9537   struct _cffi_freeme_s *large_args_free = NULL;
9538   _Bool result;
9539   PyObject *pyresult;
9540   PyObject *arg0;
9541   PyObject *arg1;
9542   PyObject *arg2;
9543   PyObject *arg3;
9544 
9545   if (!PyArg_UnpackTuple(args, "clingo_control_register_observer", 4, 4, &arg0, &arg1, &arg2, &arg3))
9546     return NULL;
9547 
9548   datasize = _cffi_prepare_pointer_call_argument(
9549       _cffi_type(380), arg0, (char **)&x0);
9550   if (datasize != 0) {
9551     x0 = ((size_t)datasize) <= 640 ? (clingo_control_t *)alloca((size_t)datasize) : NULL;
9552     if (_cffi_convert_array_argument(_cffi_type(380), arg0, (char **)&x0,
9553             datasize, &large_args_free) < 0)
9554       return NULL;
9555   }
9556 
9557   datasize = _cffi_prepare_pointer_call_argument(
9558       _cffi_type(413), arg1, (char **)&x1);
9559   if (datasize != 0) {
9560     x1 = ((size_t)datasize) <= 640 ? (clingo_ground_program_observer_t const *)alloca((size_t)datasize) : NULL;
9561     if (_cffi_convert_array_argument(_cffi_type(413), arg1, (char **)&x1,
9562             datasize, &large_args_free) < 0)
9563       return NULL;
9564   }
9565 
9566   x2 = (_Bool)_cffi_to_c__Bool(arg2);
9567   if (x2 == (_Bool)-1 && PyErr_Occurred())
9568     return NULL;
9569 
9570   datasize = _cffi_prepare_pointer_call_argument(
9571       _cffi_type(6), arg3, (char **)&x3);
9572   if (datasize != 0) {
9573     x3 = ((size_t)datasize) <= 640 ? (void *)alloca((size_t)datasize) : NULL;
9574     if (_cffi_convert_array_argument(_cffi_type(6), arg3, (char **)&x3,
9575             datasize, &large_args_free) < 0)
9576       return NULL;
9577   }
9578 
9579   Py_BEGIN_ALLOW_THREADS
9580   _cffi_restore_errno();
9581   { result = clingo_control_register_observer(x0, x1, x2, x3); }
9582   _cffi_save_errno();
9583   Py_END_ALLOW_THREADS
9584 
9585   (void)self; /* unused */
9586   pyresult = _cffi_from_c__Bool(result);
9587   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
9588   return pyresult;
9589 }
9590 #else
9591 #  define _cffi_f_clingo_control_register_observer _cffi_d_clingo_control_register_observer
9592 #endif
9593 
_cffi_d_clingo_control_register_propagator(clingo_control_t * x0,clingo_propagator_t const * x1,void * x2,_Bool x3)9594 static _Bool _cffi_d_clingo_control_register_propagator(clingo_control_t * x0, clingo_propagator_t const * x1, void * x2, _Bool x3)
9595 {
9596   return clingo_control_register_propagator(x0, x1, x2, x3);
9597 }
9598 #ifndef PYPY_VERSION
9599 static PyObject *
_cffi_f_clingo_control_register_propagator(PyObject * self,PyObject * args)9600 _cffi_f_clingo_control_register_propagator(PyObject *self, PyObject *args)
9601 {
9602   clingo_control_t * x0;
9603   clingo_propagator_t const * x1;
9604   void * x2;
9605   _Bool x3;
9606   Py_ssize_t datasize;
9607   struct _cffi_freeme_s *large_args_free = NULL;
9608   _Bool result;
9609   PyObject *pyresult;
9610   PyObject *arg0;
9611   PyObject *arg1;
9612   PyObject *arg2;
9613   PyObject *arg3;
9614 
9615   if (!PyArg_UnpackTuple(args, "clingo_control_register_propagator", 4, 4, &arg0, &arg1, &arg2, &arg3))
9616     return NULL;
9617 
9618   datasize = _cffi_prepare_pointer_call_argument(
9619       _cffi_type(380), arg0, (char **)&x0);
9620   if (datasize != 0) {
9621     x0 = ((size_t)datasize) <= 640 ? (clingo_control_t *)alloca((size_t)datasize) : NULL;
9622     if (_cffi_convert_array_argument(_cffi_type(380), arg0, (char **)&x0,
9623             datasize, &large_args_free) < 0)
9624       return NULL;
9625   }
9626 
9627   datasize = _cffi_prepare_pointer_call_argument(
9628       _cffi_type(430), arg1, (char **)&x1);
9629   if (datasize != 0) {
9630     x1 = ((size_t)datasize) <= 640 ? (clingo_propagator_t const *)alloca((size_t)datasize) : NULL;
9631     if (_cffi_convert_array_argument(_cffi_type(430), arg1, (char **)&x1,
9632             datasize, &large_args_free) < 0)
9633       return NULL;
9634   }
9635 
9636   datasize = _cffi_prepare_pointer_call_argument(
9637       _cffi_type(6), arg2, (char **)&x2);
9638   if (datasize != 0) {
9639     x2 = ((size_t)datasize) <= 640 ? (void *)alloca((size_t)datasize) : NULL;
9640     if (_cffi_convert_array_argument(_cffi_type(6), arg2, (char **)&x2,
9641             datasize, &large_args_free) < 0)
9642       return NULL;
9643   }
9644 
9645   x3 = (_Bool)_cffi_to_c__Bool(arg3);
9646   if (x3 == (_Bool)-1 && PyErr_Occurred())
9647     return NULL;
9648 
9649   Py_BEGIN_ALLOW_THREADS
9650   _cffi_restore_errno();
9651   { result = clingo_control_register_propagator(x0, x1, x2, x3); }
9652   _cffi_save_errno();
9653   Py_END_ALLOW_THREADS
9654 
9655   (void)self; /* unused */
9656   pyresult = _cffi_from_c__Bool(result);
9657   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
9658   return pyresult;
9659 }
9660 #else
9661 #  define _cffi_f_clingo_control_register_propagator _cffi_d_clingo_control_register_propagator
9662 #endif
9663 
_cffi_d_clingo_control_release_external(clingo_control_t * x0,int32_t x1)9664 static _Bool _cffi_d_clingo_control_release_external(clingo_control_t * x0, int32_t x1)
9665 {
9666   return clingo_control_release_external(x0, x1);
9667 }
9668 #ifndef PYPY_VERSION
9669 static PyObject *
_cffi_f_clingo_control_release_external(PyObject * self,PyObject * args)9670 _cffi_f_clingo_control_release_external(PyObject *self, PyObject *args)
9671 {
9672   clingo_control_t * x0;
9673   int32_t x1;
9674   Py_ssize_t datasize;
9675   struct _cffi_freeme_s *large_args_free = NULL;
9676   _Bool result;
9677   PyObject *pyresult;
9678   PyObject *arg0;
9679   PyObject *arg1;
9680 
9681   if (!PyArg_UnpackTuple(args, "clingo_control_release_external", 2, 2, &arg0, &arg1))
9682     return NULL;
9683 
9684   datasize = _cffi_prepare_pointer_call_argument(
9685       _cffi_type(380), arg0, (char **)&x0);
9686   if (datasize != 0) {
9687     x0 = ((size_t)datasize) <= 640 ? (clingo_control_t *)alloca((size_t)datasize) : NULL;
9688     if (_cffi_convert_array_argument(_cffi_type(380), arg0, (char **)&x0,
9689             datasize, &large_args_free) < 0)
9690       return NULL;
9691   }
9692 
9693   x1 = _cffi_to_c_int(arg1, int32_t);
9694   if (x1 == (int32_t)-1 && PyErr_Occurred())
9695     return NULL;
9696 
9697   Py_BEGIN_ALLOW_THREADS
9698   _cffi_restore_errno();
9699   { result = clingo_control_release_external(x0, x1); }
9700   _cffi_save_errno();
9701   Py_END_ALLOW_THREADS
9702 
9703   (void)self; /* unused */
9704   pyresult = _cffi_from_c__Bool(result);
9705   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
9706   return pyresult;
9707 }
9708 #else
9709 #  define _cffi_f_clingo_control_release_external _cffi_d_clingo_control_release_external
9710 #endif
9711 
_cffi_d_clingo_control_set_enable_cleanup(clingo_control_t * x0,_Bool x1)9712 static _Bool _cffi_d_clingo_control_set_enable_cleanup(clingo_control_t * x0, _Bool x1)
9713 {
9714   return clingo_control_set_enable_cleanup(x0, x1);
9715 }
9716 #ifndef PYPY_VERSION
9717 static PyObject *
_cffi_f_clingo_control_set_enable_cleanup(PyObject * self,PyObject * args)9718 _cffi_f_clingo_control_set_enable_cleanup(PyObject *self, PyObject *args)
9719 {
9720   clingo_control_t * x0;
9721   _Bool x1;
9722   Py_ssize_t datasize;
9723   struct _cffi_freeme_s *large_args_free = NULL;
9724   _Bool result;
9725   PyObject *pyresult;
9726   PyObject *arg0;
9727   PyObject *arg1;
9728 
9729   if (!PyArg_UnpackTuple(args, "clingo_control_set_enable_cleanup", 2, 2, &arg0, &arg1))
9730     return NULL;
9731 
9732   datasize = _cffi_prepare_pointer_call_argument(
9733       _cffi_type(380), arg0, (char **)&x0);
9734   if (datasize != 0) {
9735     x0 = ((size_t)datasize) <= 640 ? (clingo_control_t *)alloca((size_t)datasize) : NULL;
9736     if (_cffi_convert_array_argument(_cffi_type(380), arg0, (char **)&x0,
9737             datasize, &large_args_free) < 0)
9738       return NULL;
9739   }
9740 
9741   x1 = (_Bool)_cffi_to_c__Bool(arg1);
9742   if (x1 == (_Bool)-1 && PyErr_Occurred())
9743     return NULL;
9744 
9745   Py_BEGIN_ALLOW_THREADS
9746   _cffi_restore_errno();
9747   { result = clingo_control_set_enable_cleanup(x0, x1); }
9748   _cffi_save_errno();
9749   Py_END_ALLOW_THREADS
9750 
9751   (void)self; /* unused */
9752   pyresult = _cffi_from_c__Bool(result);
9753   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
9754   return pyresult;
9755 }
9756 #else
9757 #  define _cffi_f_clingo_control_set_enable_cleanup _cffi_d_clingo_control_set_enable_cleanup
9758 #endif
9759 
_cffi_d_clingo_control_set_enable_enumeration_assumption(clingo_control_t * x0,_Bool x1)9760 static _Bool _cffi_d_clingo_control_set_enable_enumeration_assumption(clingo_control_t * x0, _Bool x1)
9761 {
9762   return clingo_control_set_enable_enumeration_assumption(x0, x1);
9763 }
9764 #ifndef PYPY_VERSION
9765 static PyObject *
_cffi_f_clingo_control_set_enable_enumeration_assumption(PyObject * self,PyObject * args)9766 _cffi_f_clingo_control_set_enable_enumeration_assumption(PyObject *self, PyObject *args)
9767 {
9768   clingo_control_t * x0;
9769   _Bool x1;
9770   Py_ssize_t datasize;
9771   struct _cffi_freeme_s *large_args_free = NULL;
9772   _Bool result;
9773   PyObject *pyresult;
9774   PyObject *arg0;
9775   PyObject *arg1;
9776 
9777   if (!PyArg_UnpackTuple(args, "clingo_control_set_enable_enumeration_assumption", 2, 2, &arg0, &arg1))
9778     return NULL;
9779 
9780   datasize = _cffi_prepare_pointer_call_argument(
9781       _cffi_type(380), arg0, (char **)&x0);
9782   if (datasize != 0) {
9783     x0 = ((size_t)datasize) <= 640 ? (clingo_control_t *)alloca((size_t)datasize) : NULL;
9784     if (_cffi_convert_array_argument(_cffi_type(380), arg0, (char **)&x0,
9785             datasize, &large_args_free) < 0)
9786       return NULL;
9787   }
9788 
9789   x1 = (_Bool)_cffi_to_c__Bool(arg1);
9790   if (x1 == (_Bool)-1 && PyErr_Occurred())
9791     return NULL;
9792 
9793   Py_BEGIN_ALLOW_THREADS
9794   _cffi_restore_errno();
9795   { result = clingo_control_set_enable_enumeration_assumption(x0, x1); }
9796   _cffi_save_errno();
9797   Py_END_ALLOW_THREADS
9798 
9799   (void)self; /* unused */
9800   pyresult = _cffi_from_c__Bool(result);
9801   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
9802   return pyresult;
9803 }
9804 #else
9805 #  define _cffi_f_clingo_control_set_enable_enumeration_assumption _cffi_d_clingo_control_set_enable_enumeration_assumption
9806 #endif
9807 
_cffi_d_clingo_control_solve(clingo_control_t * x0,unsigned int x1,int32_t const * x2,size_t x3,_Bool (* x4)(unsigned int,void *,void *,_Bool *),void * x5,clingo_solve_handle_t ** x6)9808 static _Bool _cffi_d_clingo_control_solve(clingo_control_t * x0, unsigned int x1, int32_t const * x2, size_t x3, _Bool(* x4)(unsigned int, void *, void *, _Bool *), void * x5, clingo_solve_handle_t * * x6)
9809 {
9810   return clingo_control_solve(x0, x1, x2, x3, x4, x5, x6);
9811 }
9812 #ifndef PYPY_VERSION
9813 static PyObject *
_cffi_f_clingo_control_solve(PyObject * self,PyObject * args)9814 _cffi_f_clingo_control_solve(PyObject *self, PyObject *args)
9815 {
9816   clingo_control_t * x0;
9817   unsigned int x1;
9818   int32_t const * x2;
9819   size_t x3;
9820   _Bool(* x4)(unsigned int, void *, void *, _Bool *);
9821   void * x5;
9822   clingo_solve_handle_t * * x6;
9823   Py_ssize_t datasize;
9824   struct _cffi_freeme_s *large_args_free = NULL;
9825   _Bool result;
9826   PyObject *pyresult;
9827   PyObject *arg0;
9828   PyObject *arg1;
9829   PyObject *arg2;
9830   PyObject *arg3;
9831   PyObject *arg4;
9832   PyObject *arg5;
9833   PyObject *arg6;
9834 
9835   if (!PyArg_UnpackTuple(args, "clingo_control_solve", 7, 7, &arg0, &arg1, &arg2, &arg3, &arg4, &arg5, &arg6))
9836     return NULL;
9837 
9838   datasize = _cffi_prepare_pointer_call_argument(
9839       _cffi_type(380), arg0, (char **)&x0);
9840   if (datasize != 0) {
9841     x0 = ((size_t)datasize) <= 640 ? (clingo_control_t *)alloca((size_t)datasize) : NULL;
9842     if (_cffi_convert_array_argument(_cffi_type(380), arg0, (char **)&x0,
9843             datasize, &large_args_free) < 0)
9844       return NULL;
9845   }
9846 
9847   x1 = _cffi_to_c_int(arg1, unsigned int);
9848   if (x1 == (unsigned int)-1 && PyErr_Occurred())
9849     return NULL;
9850 
9851   datasize = _cffi_prepare_pointer_call_argument(
9852       _cffi_type(4), arg2, (char **)&x2);
9853   if (datasize != 0) {
9854     x2 = ((size_t)datasize) <= 640 ? (int32_t const *)alloca((size_t)datasize) : NULL;
9855     if (_cffi_convert_array_argument(_cffi_type(4), arg2, (char **)&x2,
9856             datasize, &large_args_free) < 0)
9857       return NULL;
9858   }
9859 
9860   x3 = _cffi_to_c_int(arg3, size_t);
9861   if (x3 == (size_t)-1 && PyErr_Occurred())
9862     return NULL;
9863 
9864   x4 = (_Bool(*)(unsigned int, void *, void *, _Bool *))_cffi_to_c_pointer(arg4, _cffi_type(448));
9865   if (x4 == (_Bool(*)(unsigned int, void *, void *, _Bool *))NULL && PyErr_Occurred())
9866     return NULL;
9867 
9868   datasize = _cffi_prepare_pointer_call_argument(
9869       _cffi_type(6), arg5, (char **)&x5);
9870   if (datasize != 0) {
9871     x5 = ((size_t)datasize) <= 640 ? (void *)alloca((size_t)datasize) : NULL;
9872     if (_cffi_convert_array_argument(_cffi_type(6), arg5, (char **)&x5,
9873             datasize, &large_args_free) < 0)
9874       return NULL;
9875   }
9876 
9877   datasize = _cffi_prepare_pointer_call_argument(
9878       _cffi_type(450), arg6, (char **)&x6);
9879   if (datasize != 0) {
9880     x6 = ((size_t)datasize) <= 640 ? (clingo_solve_handle_t * *)alloca((size_t)datasize) : NULL;
9881     if (_cffi_convert_array_argument(_cffi_type(450), arg6, (char **)&x6,
9882             datasize, &large_args_free) < 0)
9883       return NULL;
9884   }
9885 
9886   Py_BEGIN_ALLOW_THREADS
9887   _cffi_restore_errno();
9888   { result = clingo_control_solve(x0, x1, x2, x3, x4, x5, x6); }
9889   _cffi_save_errno();
9890   Py_END_ALLOW_THREADS
9891 
9892   (void)self; /* unused */
9893   pyresult = _cffi_from_c__Bool(result);
9894   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
9895   return pyresult;
9896 }
9897 #else
9898 #  define _cffi_f_clingo_control_solve _cffi_d_clingo_control_solve
9899 #endif
9900 
_cffi_d_clingo_control_statistics(clingo_control_t const * x0,clingo_statistics_t const ** x1)9901 static _Bool _cffi_d_clingo_control_statistics(clingo_control_t const * x0, clingo_statistics_t const * * x1)
9902 {
9903   return clingo_control_statistics(x0, x1);
9904 }
9905 #ifndef PYPY_VERSION
9906 static PyObject *
_cffi_f_clingo_control_statistics(PyObject * self,PyObject * args)9907 _cffi_f_clingo_control_statistics(PyObject *self, PyObject *args)
9908 {
9909   clingo_control_t const * x0;
9910   clingo_statistics_t const * * x1;
9911   Py_ssize_t datasize;
9912   struct _cffi_freeme_s *large_args_free = NULL;
9913   _Bool result;
9914   PyObject *pyresult;
9915   PyObject *arg0;
9916   PyObject *arg1;
9917 
9918   if (!PyArg_UnpackTuple(args, "clingo_control_statistics", 2, 2, &arg0, &arg1))
9919     return NULL;
9920 
9921   datasize = _cffi_prepare_pointer_call_argument(
9922       _cffi_type(461), arg0, (char **)&x0);
9923   if (datasize != 0) {
9924     x0 = ((size_t)datasize) <= 640 ? (clingo_control_t const *)alloca((size_t)datasize) : NULL;
9925     if (_cffi_convert_array_argument(_cffi_type(461), arg0, (char **)&x0,
9926             datasize, &large_args_free) < 0)
9927       return NULL;
9928   }
9929 
9930   datasize = _cffi_prepare_pointer_call_argument(
9931       _cffi_type(475), arg1, (char **)&x1);
9932   if (datasize != 0) {
9933     x1 = ((size_t)datasize) <= 640 ? (clingo_statistics_t const * *)alloca((size_t)datasize) : NULL;
9934     if (_cffi_convert_array_argument(_cffi_type(475), arg1, (char **)&x1,
9935             datasize, &large_args_free) < 0)
9936       return NULL;
9937   }
9938 
9939   Py_BEGIN_ALLOW_THREADS
9940   _cffi_restore_errno();
9941   { result = clingo_control_statistics(x0, x1); }
9942   _cffi_save_errno();
9943   Py_END_ALLOW_THREADS
9944 
9945   (void)self; /* unused */
9946   pyresult = _cffi_from_c__Bool(result);
9947   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
9948   return pyresult;
9949 }
9950 #else
9951 #  define _cffi_f_clingo_control_statistics _cffi_d_clingo_control_statistics
9952 #endif
9953 
_cffi_d_clingo_control_symbolic_atoms(clingo_control_t const * x0,clingo_symbolic_atoms_t const ** x1)9954 static _Bool _cffi_d_clingo_control_symbolic_atoms(clingo_control_t const * x0, clingo_symbolic_atoms_t const * * x1)
9955 {
9956   return clingo_control_symbolic_atoms(x0, x1);
9957 }
9958 #ifndef PYPY_VERSION
9959 static PyObject *
_cffi_f_clingo_control_symbolic_atoms(PyObject * self,PyObject * args)9960 _cffi_f_clingo_control_symbolic_atoms(PyObject *self, PyObject *args)
9961 {
9962   clingo_control_t const * x0;
9963   clingo_symbolic_atoms_t const * * x1;
9964   Py_ssize_t datasize;
9965   struct _cffi_freeme_s *large_args_free = NULL;
9966   _Bool result;
9967   PyObject *pyresult;
9968   PyObject *arg0;
9969   PyObject *arg1;
9970 
9971   if (!PyArg_UnpackTuple(args, "clingo_control_symbolic_atoms", 2, 2, &arg0, &arg1))
9972     return NULL;
9973 
9974   datasize = _cffi_prepare_pointer_call_argument(
9975       _cffi_type(461), arg0, (char **)&x0);
9976   if (datasize != 0) {
9977     x0 = ((size_t)datasize) <= 640 ? (clingo_control_t const *)alloca((size_t)datasize) : NULL;
9978     if (_cffi_convert_array_argument(_cffi_type(461), arg0, (char **)&x0,
9979             datasize, &large_args_free) < 0)
9980       return NULL;
9981   }
9982 
9983   datasize = _cffi_prepare_pointer_call_argument(
9984       _cffi_type(479), arg1, (char **)&x1);
9985   if (datasize != 0) {
9986     x1 = ((size_t)datasize) <= 640 ? (clingo_symbolic_atoms_t const * *)alloca((size_t)datasize) : NULL;
9987     if (_cffi_convert_array_argument(_cffi_type(479), arg1, (char **)&x1,
9988             datasize, &large_args_free) < 0)
9989       return NULL;
9990   }
9991 
9992   Py_BEGIN_ALLOW_THREADS
9993   _cffi_restore_errno();
9994   { result = clingo_control_symbolic_atoms(x0, x1); }
9995   _cffi_save_errno();
9996   Py_END_ALLOW_THREADS
9997 
9998   (void)self; /* unused */
9999   pyresult = _cffi_from_c__Bool(result);
10000   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
10001   return pyresult;
10002 }
10003 #else
10004 #  define _cffi_f_clingo_control_symbolic_atoms _cffi_d_clingo_control_symbolic_atoms
10005 #endif
10006 
_cffi_d_clingo_control_theory_atoms(clingo_control_t const * x0,clingo_theory_atoms_t const ** x1)10007 static _Bool _cffi_d_clingo_control_theory_atoms(clingo_control_t const * x0, clingo_theory_atoms_t const * * x1)
10008 {
10009   return clingo_control_theory_atoms(x0, x1);
10010 }
10011 #ifndef PYPY_VERSION
10012 static PyObject *
_cffi_f_clingo_control_theory_atoms(PyObject * self,PyObject * args)10013 _cffi_f_clingo_control_theory_atoms(PyObject *self, PyObject *args)
10014 {
10015   clingo_control_t const * x0;
10016   clingo_theory_atoms_t const * * x1;
10017   Py_ssize_t datasize;
10018   struct _cffi_freeme_s *large_args_free = NULL;
10019   _Bool result;
10020   PyObject *pyresult;
10021   PyObject *arg0;
10022   PyObject *arg1;
10023 
10024   if (!PyArg_UnpackTuple(args, "clingo_control_theory_atoms", 2, 2, &arg0, &arg1))
10025     return NULL;
10026 
10027   datasize = _cffi_prepare_pointer_call_argument(
10028       _cffi_type(461), arg0, (char **)&x0);
10029   if (datasize != 0) {
10030     x0 = ((size_t)datasize) <= 640 ? (clingo_control_t const *)alloca((size_t)datasize) : NULL;
10031     if (_cffi_convert_array_argument(_cffi_type(461), arg0, (char **)&x0,
10032             datasize, &large_args_free) < 0)
10033       return NULL;
10034   }
10035 
10036   datasize = _cffi_prepare_pointer_call_argument(
10037       _cffi_type(483), arg1, (char **)&x1);
10038   if (datasize != 0) {
10039     x1 = ((size_t)datasize) <= 640 ? (clingo_theory_atoms_t const * *)alloca((size_t)datasize) : NULL;
10040     if (_cffi_convert_array_argument(_cffi_type(483), arg1, (char **)&x1,
10041             datasize, &large_args_free) < 0)
10042       return NULL;
10043   }
10044 
10045   Py_BEGIN_ALLOW_THREADS
10046   _cffi_restore_errno();
10047   { result = clingo_control_theory_atoms(x0, x1); }
10048   _cffi_save_errno();
10049   Py_END_ALLOW_THREADS
10050 
10051   (void)self; /* unused */
10052   pyresult = _cffi_from_c__Bool(result);
10053   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
10054   return pyresult;
10055 }
10056 #else
10057 #  define _cffi_f_clingo_control_theory_atoms _cffi_d_clingo_control_theory_atoms
10058 #endif
10059 
_cffi_d_clingo_error_code(void)10060 static int _cffi_d_clingo_error_code(void)
10061 {
10062   return clingo_error_code();
10063 }
10064 #ifndef PYPY_VERSION
10065 static PyObject *
_cffi_f_clingo_error_code(PyObject * self,PyObject * noarg)10066 _cffi_f_clingo_error_code(PyObject *self, PyObject *noarg)
10067 {
10068   int result;
10069   PyObject *pyresult;
10070 
10071   Py_BEGIN_ALLOW_THREADS
10072   _cffi_restore_errno();
10073   { result = clingo_error_code(); }
10074   _cffi_save_errno();
10075   Py_END_ALLOW_THREADS
10076 
10077   (void)self; /* unused */
10078   (void)noarg; /* unused */
10079   pyresult = _cffi_from_c_int(result, int);
10080   return pyresult;
10081 }
10082 #else
10083 #  define _cffi_f_clingo_error_code _cffi_d_clingo_error_code
10084 #endif
10085 
_cffi_d_clingo_error_message(void)10086 static char const * _cffi_d_clingo_error_message(void)
10087 {
10088   return clingo_error_message();
10089 }
10090 #ifndef PYPY_VERSION
10091 static PyObject *
_cffi_f_clingo_error_message(PyObject * self,PyObject * noarg)10092 _cffi_f_clingo_error_message(PyObject *self, PyObject *noarg)
10093 {
10094   char const * result;
10095   PyObject *pyresult;
10096 
10097   Py_BEGIN_ALLOW_THREADS
10098   _cffi_restore_errno();
10099   { result = clingo_error_message(); }
10100   _cffi_save_errno();
10101   Py_END_ALLOW_THREADS
10102 
10103   (void)self; /* unused */
10104   (void)noarg; /* unused */
10105   pyresult = _cffi_from_c_pointer((char *)result, _cffi_type(39));
10106   return pyresult;
10107 }
10108 #else
10109 #  define _cffi_f_clingo_error_message _cffi_d_clingo_error_message
10110 #endif
10111 
_cffi_d_clingo_error_string(int x0)10112 static char const * _cffi_d_clingo_error_string(int x0)
10113 {
10114   return clingo_error_string(x0);
10115 }
10116 #ifndef PYPY_VERSION
10117 static PyObject *
_cffi_f_clingo_error_string(PyObject * self,PyObject * arg0)10118 _cffi_f_clingo_error_string(PyObject *self, PyObject *arg0)
10119 {
10120   int x0;
10121   char const * result;
10122   PyObject *pyresult;
10123 
10124   x0 = _cffi_to_c_int(arg0, int);
10125   if (x0 == (int)-1 && PyErr_Occurred())
10126     return NULL;
10127 
10128   Py_BEGIN_ALLOW_THREADS
10129   _cffi_restore_errno();
10130   { result = clingo_error_string(x0); }
10131   _cffi_save_errno();
10132   Py_END_ALLOW_THREADS
10133 
10134   (void)self; /* unused */
10135   pyresult = _cffi_from_c_pointer((char *)result, _cffi_type(39));
10136   return pyresult;
10137 }
10138 #else
10139 #  define _cffi_f_clingo_error_string _cffi_d_clingo_error_string
10140 #endif
10141 
_cffi_d_clingo_main(clingo_application_t * x0,char const * const * x1,size_t x2,void * x3)10142 static int _cffi_d_clingo_main(clingo_application_t * x0, char const * const * x1, size_t x2, void * x3)
10143 {
10144   return clingo_main(x0, x1, x2, x3);
10145 }
10146 #ifndef PYPY_VERSION
10147 static PyObject *
_cffi_f_clingo_main(PyObject * self,PyObject * args)10148 _cffi_f_clingo_main(PyObject *self, PyObject *args)
10149 {
10150   clingo_application_t * x0;
10151   char const * const * x1;
10152   size_t x2;
10153   void * x3;
10154   Py_ssize_t datasize;
10155   struct _cffi_freeme_s *large_args_free = NULL;
10156   int result;
10157   PyObject *pyresult;
10158   PyObject *arg0;
10159   PyObject *arg1;
10160   PyObject *arg2;
10161   PyObject *arg3;
10162 
10163   if (!PyArg_UnpackTuple(args, "clingo_main", 4, 4, &arg0, &arg1, &arg2, &arg3))
10164     return NULL;
10165 
10166   datasize = _cffi_prepare_pointer_call_argument(
10167       _cffi_type(1072), arg0, (char **)&x0);
10168   if (datasize != 0) {
10169     x0 = ((size_t)datasize) <= 640 ? (clingo_application_t *)alloca((size_t)datasize) : NULL;
10170     if (_cffi_convert_array_argument(_cffi_type(1072), arg0, (char **)&x0,
10171             datasize, &large_args_free) < 0)
10172       return NULL;
10173   }
10174 
10175   datasize = _cffi_prepare_pointer_call_argument(
10176       _cffi_type(22), arg1, (char **)&x1);
10177   if (datasize != 0) {
10178     x1 = ((size_t)datasize) <= 640 ? (char const * const *)alloca((size_t)datasize) : NULL;
10179     if (_cffi_convert_array_argument(_cffi_type(22), arg1, (char **)&x1,
10180             datasize, &large_args_free) < 0)
10181       return NULL;
10182   }
10183 
10184   x2 = _cffi_to_c_int(arg2, size_t);
10185   if (x2 == (size_t)-1 && PyErr_Occurred())
10186     return NULL;
10187 
10188   datasize = _cffi_prepare_pointer_call_argument(
10189       _cffi_type(6), arg3, (char **)&x3);
10190   if (datasize != 0) {
10191     x3 = ((size_t)datasize) <= 640 ? (void *)alloca((size_t)datasize) : NULL;
10192     if (_cffi_convert_array_argument(_cffi_type(6), arg3, (char **)&x3,
10193             datasize, &large_args_free) < 0)
10194       return NULL;
10195   }
10196 
10197   Py_BEGIN_ALLOW_THREADS
10198   _cffi_restore_errno();
10199   { result = clingo_main(x0, x1, x2, x3); }
10200   _cffi_save_errno();
10201   Py_END_ALLOW_THREADS
10202 
10203   (void)self; /* unused */
10204   pyresult = _cffi_from_c_int(result, int);
10205   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
10206   return pyresult;
10207 }
10208 #else
10209 #  define _cffi_f_clingo_main _cffi_d_clingo_main
10210 #endif
10211 
_cffi_d_clingo_model_contains(clingo_model_t const * x0,uint64_t x1,_Bool * x2)10212 static _Bool _cffi_d_clingo_model_contains(clingo_model_t const * x0, uint64_t x1, _Bool * x2)
10213 {
10214   return clingo_model_contains(x0, x1, x2);
10215 }
10216 #ifndef PYPY_VERSION
10217 static PyObject *
_cffi_f_clingo_model_contains(PyObject * self,PyObject * args)10218 _cffi_f_clingo_model_contains(PyObject *self, PyObject *args)
10219 {
10220   clingo_model_t const * x0;
10221   uint64_t x1;
10222   _Bool * x2;
10223   Py_ssize_t datasize;
10224   struct _cffi_freeme_s *large_args_free = NULL;
10225   _Bool result;
10226   PyObject *pyresult;
10227   PyObject *arg0;
10228   PyObject *arg1;
10229   PyObject *arg2;
10230 
10231   if (!PyArg_UnpackTuple(args, "clingo_model_contains", 3, 3, &arg0, &arg1, &arg2))
10232     return NULL;
10233 
10234   datasize = _cffi_prepare_pointer_call_argument(
10235       _cffi_type(528), arg0, (char **)&x0);
10236   if (datasize != 0) {
10237     x0 = ((size_t)datasize) <= 640 ? (clingo_model_t const *)alloca((size_t)datasize) : NULL;
10238     if (_cffi_convert_array_argument(_cffi_type(528), arg0, (char **)&x0,
10239             datasize, &large_args_free) < 0)
10240       return NULL;
10241   }
10242 
10243   x1 = _cffi_to_c_int(arg1, uint64_t);
10244   if (x1 == (uint64_t)-1 && PyErr_Occurred())
10245     return NULL;
10246 
10247   datasize = _cffi_prepare_pointer_call_argument(
10248       _cffi_type(40), arg2, (char **)&x2);
10249   if (datasize != 0) {
10250     x2 = ((size_t)datasize) <= 640 ? (_Bool *)alloca((size_t)datasize) : NULL;
10251     if (_cffi_convert_array_argument(_cffi_type(40), arg2, (char **)&x2,
10252             datasize, &large_args_free) < 0)
10253       return NULL;
10254   }
10255 
10256   Py_BEGIN_ALLOW_THREADS
10257   _cffi_restore_errno();
10258   { result = clingo_model_contains(x0, x1, x2); }
10259   _cffi_save_errno();
10260   Py_END_ALLOW_THREADS
10261 
10262   (void)self; /* unused */
10263   pyresult = _cffi_from_c__Bool(result);
10264   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
10265   return pyresult;
10266 }
10267 #else
10268 #  define _cffi_f_clingo_model_contains _cffi_d_clingo_model_contains
10269 #endif
10270 
_cffi_d_clingo_model_context(clingo_model_t const * x0,clingo_solve_control_t ** x1)10271 static _Bool _cffi_d_clingo_model_context(clingo_model_t const * x0, clingo_solve_control_t * * x1)
10272 {
10273   return clingo_model_context(x0, x1);
10274 }
10275 #ifndef PYPY_VERSION
10276 static PyObject *
_cffi_f_clingo_model_context(PyObject * self,PyObject * args)10277 _cffi_f_clingo_model_context(PyObject *self, PyObject *args)
10278 {
10279   clingo_model_t const * x0;
10280   clingo_solve_control_t * * x1;
10281   Py_ssize_t datasize;
10282   struct _cffi_freeme_s *large_args_free = NULL;
10283   _Bool result;
10284   PyObject *pyresult;
10285   PyObject *arg0;
10286   PyObject *arg1;
10287 
10288   if (!PyArg_UnpackTuple(args, "clingo_model_context", 2, 2, &arg0, &arg1))
10289     return NULL;
10290 
10291   datasize = _cffi_prepare_pointer_call_argument(
10292       _cffi_type(528), arg0, (char **)&x0);
10293   if (datasize != 0) {
10294     x0 = ((size_t)datasize) <= 640 ? (clingo_model_t const *)alloca((size_t)datasize) : NULL;
10295     if (_cffi_convert_array_argument(_cffi_type(528), arg0, (char **)&x0,
10296             datasize, &large_args_free) < 0)
10297       return NULL;
10298   }
10299 
10300   datasize = _cffi_prepare_pointer_call_argument(
10301       _cffi_type(539), arg1, (char **)&x1);
10302   if (datasize != 0) {
10303     x1 = ((size_t)datasize) <= 640 ? (clingo_solve_control_t * *)alloca((size_t)datasize) : NULL;
10304     if (_cffi_convert_array_argument(_cffi_type(539), arg1, (char **)&x1,
10305             datasize, &large_args_free) < 0)
10306       return NULL;
10307   }
10308 
10309   Py_BEGIN_ALLOW_THREADS
10310   _cffi_restore_errno();
10311   { result = clingo_model_context(x0, x1); }
10312   _cffi_save_errno();
10313   Py_END_ALLOW_THREADS
10314 
10315   (void)self; /* unused */
10316   pyresult = _cffi_from_c__Bool(result);
10317   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
10318   return pyresult;
10319 }
10320 #else
10321 #  define _cffi_f_clingo_model_context _cffi_d_clingo_model_context
10322 #endif
10323 
_cffi_d_clingo_model_cost(clingo_model_t const * x0,int64_t * x1,size_t x2)10324 static _Bool _cffi_d_clingo_model_cost(clingo_model_t const * x0, int64_t * x1, size_t x2)
10325 {
10326   return clingo_model_cost(x0, x1, x2);
10327 }
10328 #ifndef PYPY_VERSION
10329 static PyObject *
_cffi_f_clingo_model_cost(PyObject * self,PyObject * args)10330 _cffi_f_clingo_model_cost(PyObject *self, PyObject *args)
10331 {
10332   clingo_model_t const * x0;
10333   int64_t * x1;
10334   size_t x2;
10335   Py_ssize_t datasize;
10336   struct _cffi_freeme_s *large_args_free = NULL;
10337   _Bool result;
10338   PyObject *pyresult;
10339   PyObject *arg0;
10340   PyObject *arg1;
10341   PyObject *arg2;
10342 
10343   if (!PyArg_UnpackTuple(args, "clingo_model_cost", 3, 3, &arg0, &arg1, &arg2))
10344     return NULL;
10345 
10346   datasize = _cffi_prepare_pointer_call_argument(
10347       _cffi_type(528), arg0, (char **)&x0);
10348   if (datasize != 0) {
10349     x0 = ((size_t)datasize) <= 640 ? (clingo_model_t const *)alloca((size_t)datasize) : NULL;
10350     if (_cffi_convert_array_argument(_cffi_type(528), arg0, (char **)&x0,
10351             datasize, &large_args_free) < 0)
10352       return NULL;
10353   }
10354 
10355   datasize = _cffi_prepare_pointer_call_argument(
10356       _cffi_type(552), arg1, (char **)&x1);
10357   if (datasize != 0) {
10358     x1 = ((size_t)datasize) <= 640 ? (int64_t *)alloca((size_t)datasize) : NULL;
10359     if (_cffi_convert_array_argument(_cffi_type(552), arg1, (char **)&x1,
10360             datasize, &large_args_free) < 0)
10361       return NULL;
10362   }
10363 
10364   x2 = _cffi_to_c_int(arg2, size_t);
10365   if (x2 == (size_t)-1 && PyErr_Occurred())
10366     return NULL;
10367 
10368   Py_BEGIN_ALLOW_THREADS
10369   _cffi_restore_errno();
10370   { result = clingo_model_cost(x0, x1, x2); }
10371   _cffi_save_errno();
10372   Py_END_ALLOW_THREADS
10373 
10374   (void)self; /* unused */
10375   pyresult = _cffi_from_c__Bool(result);
10376   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
10377   return pyresult;
10378 }
10379 #else
10380 #  define _cffi_f_clingo_model_cost _cffi_d_clingo_model_cost
10381 #endif
10382 
_cffi_d_clingo_model_cost_size(clingo_model_t const * x0,size_t * x1)10383 static _Bool _cffi_d_clingo_model_cost_size(clingo_model_t const * x0, size_t * x1)
10384 {
10385   return clingo_model_cost_size(x0, x1);
10386 }
10387 #ifndef PYPY_VERSION
10388 static PyObject *
_cffi_f_clingo_model_cost_size(PyObject * self,PyObject * args)10389 _cffi_f_clingo_model_cost_size(PyObject *self, PyObject *args)
10390 {
10391   clingo_model_t const * x0;
10392   size_t * x1;
10393   Py_ssize_t datasize;
10394   struct _cffi_freeme_s *large_args_free = NULL;
10395   _Bool result;
10396   PyObject *pyresult;
10397   PyObject *arg0;
10398   PyObject *arg1;
10399 
10400   if (!PyArg_UnpackTuple(args, "clingo_model_cost_size", 2, 2, &arg0, &arg1))
10401     return NULL;
10402 
10403   datasize = _cffi_prepare_pointer_call_argument(
10404       _cffi_type(528), arg0, (char **)&x0);
10405   if (datasize != 0) {
10406     x0 = ((size_t)datasize) <= 640 ? (clingo_model_t const *)alloca((size_t)datasize) : NULL;
10407     if (_cffi_convert_array_argument(_cffi_type(528), arg0, (char **)&x0,
10408             datasize, &large_args_free) < 0)
10409       return NULL;
10410   }
10411 
10412   datasize = _cffi_prepare_pointer_call_argument(
10413       _cffi_type(205), arg1, (char **)&x1);
10414   if (datasize != 0) {
10415     x1 = ((size_t)datasize) <= 640 ? (size_t *)alloca((size_t)datasize) : NULL;
10416     if (_cffi_convert_array_argument(_cffi_type(205), arg1, (char **)&x1,
10417             datasize, &large_args_free) < 0)
10418       return NULL;
10419   }
10420 
10421   Py_BEGIN_ALLOW_THREADS
10422   _cffi_restore_errno();
10423   { result = clingo_model_cost_size(x0, x1); }
10424   _cffi_save_errno();
10425   Py_END_ALLOW_THREADS
10426 
10427   (void)self; /* unused */
10428   pyresult = _cffi_from_c__Bool(result);
10429   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
10430   return pyresult;
10431 }
10432 #else
10433 #  define _cffi_f_clingo_model_cost_size _cffi_d_clingo_model_cost_size
10434 #endif
10435 
_cffi_d_clingo_model_extend(clingo_model_t * x0,uint64_t const * x1,size_t x2)10436 static _Bool _cffi_d_clingo_model_extend(clingo_model_t * x0, uint64_t const * x1, size_t x2)
10437 {
10438   return clingo_model_extend(x0, x1, x2);
10439 }
10440 #ifndef PYPY_VERSION
10441 static PyObject *
_cffi_f_clingo_model_extend(PyObject * self,PyObject * args)10442 _cffi_f_clingo_model_extend(PyObject *self, PyObject *args)
10443 {
10444   clingo_model_t * x0;
10445   uint64_t const * x1;
10446   size_t x2;
10447   Py_ssize_t datasize;
10448   struct _cffi_freeme_s *large_args_free = NULL;
10449   _Bool result;
10450   PyObject *pyresult;
10451   PyObject *arg0;
10452   PyObject *arg1;
10453   PyObject *arg2;
10454 
10455   if (!PyArg_UnpackTuple(args, "clingo_model_extend", 3, 3, &arg0, &arg1, &arg2))
10456     return NULL;
10457 
10458   datasize = _cffi_prepare_pointer_call_argument(
10459       _cffi_type(523), arg0, (char **)&x0);
10460   if (datasize != 0) {
10461     x0 = ((size_t)datasize) <= 640 ? (clingo_model_t *)alloca((size_t)datasize) : NULL;
10462     if (_cffi_convert_array_argument(_cffi_type(523), arg0, (char **)&x0,
10463             datasize, &large_args_free) < 0)
10464       return NULL;
10465   }
10466 
10467   datasize = _cffi_prepare_pointer_call_argument(
10468       _cffi_type(77), arg1, (char **)&x1);
10469   if (datasize != 0) {
10470     x1 = ((size_t)datasize) <= 640 ? (uint64_t const *)alloca((size_t)datasize) : NULL;
10471     if (_cffi_convert_array_argument(_cffi_type(77), arg1, (char **)&x1,
10472             datasize, &large_args_free) < 0)
10473       return NULL;
10474   }
10475 
10476   x2 = _cffi_to_c_int(arg2, size_t);
10477   if (x2 == (size_t)-1 && PyErr_Occurred())
10478     return NULL;
10479 
10480   Py_BEGIN_ALLOW_THREADS
10481   _cffi_restore_errno();
10482   { result = clingo_model_extend(x0, x1, x2); }
10483   _cffi_save_errno();
10484   Py_END_ALLOW_THREADS
10485 
10486   (void)self; /* unused */
10487   pyresult = _cffi_from_c__Bool(result);
10488   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
10489   return pyresult;
10490 }
10491 #else
10492 #  define _cffi_f_clingo_model_extend _cffi_d_clingo_model_extend
10493 #endif
10494 
_cffi_d_clingo_model_is_true(clingo_model_t const * x0,int32_t x1,_Bool * x2)10495 static _Bool _cffi_d_clingo_model_is_true(clingo_model_t const * x0, int32_t x1, _Bool * x2)
10496 {
10497   return clingo_model_is_true(x0, x1, x2);
10498 }
10499 #ifndef PYPY_VERSION
10500 static PyObject *
_cffi_f_clingo_model_is_true(PyObject * self,PyObject * args)10501 _cffi_f_clingo_model_is_true(PyObject *self, PyObject *args)
10502 {
10503   clingo_model_t const * x0;
10504   int32_t x1;
10505   _Bool * x2;
10506   Py_ssize_t datasize;
10507   struct _cffi_freeme_s *large_args_free = NULL;
10508   _Bool result;
10509   PyObject *pyresult;
10510   PyObject *arg0;
10511   PyObject *arg1;
10512   PyObject *arg2;
10513 
10514   if (!PyArg_UnpackTuple(args, "clingo_model_is_true", 3, 3, &arg0, &arg1, &arg2))
10515     return NULL;
10516 
10517   datasize = _cffi_prepare_pointer_call_argument(
10518       _cffi_type(528), arg0, (char **)&x0);
10519   if (datasize != 0) {
10520     x0 = ((size_t)datasize) <= 640 ? (clingo_model_t const *)alloca((size_t)datasize) : NULL;
10521     if (_cffi_convert_array_argument(_cffi_type(528), arg0, (char **)&x0,
10522             datasize, &large_args_free) < 0)
10523       return NULL;
10524   }
10525 
10526   x1 = _cffi_to_c_int(arg1, int32_t);
10527   if (x1 == (int32_t)-1 && PyErr_Occurred())
10528     return NULL;
10529 
10530   datasize = _cffi_prepare_pointer_call_argument(
10531       _cffi_type(40), arg2, (char **)&x2);
10532   if (datasize != 0) {
10533     x2 = ((size_t)datasize) <= 640 ? (_Bool *)alloca((size_t)datasize) : NULL;
10534     if (_cffi_convert_array_argument(_cffi_type(40), arg2, (char **)&x2,
10535             datasize, &large_args_free) < 0)
10536       return NULL;
10537   }
10538 
10539   Py_BEGIN_ALLOW_THREADS
10540   _cffi_restore_errno();
10541   { result = clingo_model_is_true(x0, x1, x2); }
10542   _cffi_save_errno();
10543   Py_END_ALLOW_THREADS
10544 
10545   (void)self; /* unused */
10546   pyresult = _cffi_from_c__Bool(result);
10547   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
10548   return pyresult;
10549 }
10550 #else
10551 #  define _cffi_f_clingo_model_is_true _cffi_d_clingo_model_is_true
10552 #endif
10553 
_cffi_d_clingo_model_number(clingo_model_t const * x0,uint64_t * x1)10554 static _Bool _cffi_d_clingo_model_number(clingo_model_t const * x0, uint64_t * x1)
10555 {
10556   return clingo_model_number(x0, x1);
10557 }
10558 #ifndef PYPY_VERSION
10559 static PyObject *
_cffi_f_clingo_model_number(PyObject * self,PyObject * args)10560 _cffi_f_clingo_model_number(PyObject *self, PyObject *args)
10561 {
10562   clingo_model_t const * x0;
10563   uint64_t * x1;
10564   Py_ssize_t datasize;
10565   struct _cffi_freeme_s *large_args_free = NULL;
10566   _Bool result;
10567   PyObject *pyresult;
10568   PyObject *arg0;
10569   PyObject *arg1;
10570 
10571   if (!PyArg_UnpackTuple(args, "clingo_model_number", 2, 2, &arg0, &arg1))
10572     return NULL;
10573 
10574   datasize = _cffi_prepare_pointer_call_argument(
10575       _cffi_type(528), arg0, (char **)&x0);
10576   if (datasize != 0) {
10577     x0 = ((size_t)datasize) <= 640 ? (clingo_model_t const *)alloca((size_t)datasize) : NULL;
10578     if (_cffi_convert_array_argument(_cffi_type(528), arg0, (char **)&x0,
10579             datasize, &large_args_free) < 0)
10580       return NULL;
10581   }
10582 
10583   datasize = _cffi_prepare_pointer_call_argument(
10584       _cffi_type(54), arg1, (char **)&x1);
10585   if (datasize != 0) {
10586     x1 = ((size_t)datasize) <= 640 ? (uint64_t *)alloca((size_t)datasize) : NULL;
10587     if (_cffi_convert_array_argument(_cffi_type(54), arg1, (char **)&x1,
10588             datasize, &large_args_free) < 0)
10589       return NULL;
10590   }
10591 
10592   Py_BEGIN_ALLOW_THREADS
10593   _cffi_restore_errno();
10594   { result = clingo_model_number(x0, x1); }
10595   _cffi_save_errno();
10596   Py_END_ALLOW_THREADS
10597 
10598   (void)self; /* unused */
10599   pyresult = _cffi_from_c__Bool(result);
10600   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
10601   return pyresult;
10602 }
10603 #else
10604 #  define _cffi_f_clingo_model_number _cffi_d_clingo_model_number
10605 #endif
10606 
_cffi_d_clingo_model_optimality_proven(clingo_model_t const * x0,_Bool * x1)10607 static _Bool _cffi_d_clingo_model_optimality_proven(clingo_model_t const * x0, _Bool * x1)
10608 {
10609   return clingo_model_optimality_proven(x0, x1);
10610 }
10611 #ifndef PYPY_VERSION
10612 static PyObject *
_cffi_f_clingo_model_optimality_proven(PyObject * self,PyObject * args)10613 _cffi_f_clingo_model_optimality_proven(PyObject *self, PyObject *args)
10614 {
10615   clingo_model_t const * x0;
10616   _Bool * x1;
10617   Py_ssize_t datasize;
10618   struct _cffi_freeme_s *large_args_free = NULL;
10619   _Bool result;
10620   PyObject *pyresult;
10621   PyObject *arg0;
10622   PyObject *arg1;
10623 
10624   if (!PyArg_UnpackTuple(args, "clingo_model_optimality_proven", 2, 2, &arg0, &arg1))
10625     return NULL;
10626 
10627   datasize = _cffi_prepare_pointer_call_argument(
10628       _cffi_type(528), arg0, (char **)&x0);
10629   if (datasize != 0) {
10630     x0 = ((size_t)datasize) <= 640 ? (clingo_model_t const *)alloca((size_t)datasize) : NULL;
10631     if (_cffi_convert_array_argument(_cffi_type(528), arg0, (char **)&x0,
10632             datasize, &large_args_free) < 0)
10633       return NULL;
10634   }
10635 
10636   datasize = _cffi_prepare_pointer_call_argument(
10637       _cffi_type(40), arg1, (char **)&x1);
10638   if (datasize != 0) {
10639     x1 = ((size_t)datasize) <= 640 ? (_Bool *)alloca((size_t)datasize) : NULL;
10640     if (_cffi_convert_array_argument(_cffi_type(40), arg1, (char **)&x1,
10641             datasize, &large_args_free) < 0)
10642       return NULL;
10643   }
10644 
10645   Py_BEGIN_ALLOW_THREADS
10646   _cffi_restore_errno();
10647   { result = clingo_model_optimality_proven(x0, x1); }
10648   _cffi_save_errno();
10649   Py_END_ALLOW_THREADS
10650 
10651   (void)self; /* unused */
10652   pyresult = _cffi_from_c__Bool(result);
10653   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
10654   return pyresult;
10655 }
10656 #else
10657 #  define _cffi_f_clingo_model_optimality_proven _cffi_d_clingo_model_optimality_proven
10658 #endif
10659 
_cffi_d_clingo_model_symbols(clingo_model_t const * x0,unsigned int x1,uint64_t * x2,size_t x3)10660 static _Bool _cffi_d_clingo_model_symbols(clingo_model_t const * x0, unsigned int x1, uint64_t * x2, size_t x3)
10661 {
10662   return clingo_model_symbols(x0, x1, x2, x3);
10663 }
10664 #ifndef PYPY_VERSION
10665 static PyObject *
_cffi_f_clingo_model_symbols(PyObject * self,PyObject * args)10666 _cffi_f_clingo_model_symbols(PyObject *self, PyObject *args)
10667 {
10668   clingo_model_t const * x0;
10669   unsigned int x1;
10670   uint64_t * x2;
10671   size_t x3;
10672   Py_ssize_t datasize;
10673   struct _cffi_freeme_s *large_args_free = NULL;
10674   _Bool result;
10675   PyObject *pyresult;
10676   PyObject *arg0;
10677   PyObject *arg1;
10678   PyObject *arg2;
10679   PyObject *arg3;
10680 
10681   if (!PyArg_UnpackTuple(args, "clingo_model_symbols", 4, 4, &arg0, &arg1, &arg2, &arg3))
10682     return NULL;
10683 
10684   datasize = _cffi_prepare_pointer_call_argument(
10685       _cffi_type(528), arg0, (char **)&x0);
10686   if (datasize != 0) {
10687     x0 = ((size_t)datasize) <= 640 ? (clingo_model_t const *)alloca((size_t)datasize) : NULL;
10688     if (_cffi_convert_array_argument(_cffi_type(528), arg0, (char **)&x0,
10689             datasize, &large_args_free) < 0)
10690       return NULL;
10691   }
10692 
10693   x1 = _cffi_to_c_int(arg1, unsigned int);
10694   if (x1 == (unsigned int)-1 && PyErr_Occurred())
10695     return NULL;
10696 
10697   datasize = _cffi_prepare_pointer_call_argument(
10698       _cffi_type(54), arg2, (char **)&x2);
10699   if (datasize != 0) {
10700     x2 = ((size_t)datasize) <= 640 ? (uint64_t *)alloca((size_t)datasize) : NULL;
10701     if (_cffi_convert_array_argument(_cffi_type(54), arg2, (char **)&x2,
10702             datasize, &large_args_free) < 0)
10703       return NULL;
10704   }
10705 
10706   x3 = _cffi_to_c_int(arg3, size_t);
10707   if (x3 == (size_t)-1 && PyErr_Occurred())
10708     return NULL;
10709 
10710   Py_BEGIN_ALLOW_THREADS
10711   _cffi_restore_errno();
10712   { result = clingo_model_symbols(x0, x1, x2, x3); }
10713   _cffi_save_errno();
10714   Py_END_ALLOW_THREADS
10715 
10716   (void)self; /* unused */
10717   pyresult = _cffi_from_c__Bool(result);
10718   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
10719   return pyresult;
10720 }
10721 #else
10722 #  define _cffi_f_clingo_model_symbols _cffi_d_clingo_model_symbols
10723 #endif
10724 
_cffi_d_clingo_model_symbols_size(clingo_model_t const * x0,unsigned int x1,size_t * x2)10725 static _Bool _cffi_d_clingo_model_symbols_size(clingo_model_t const * x0, unsigned int x1, size_t * x2)
10726 {
10727   return clingo_model_symbols_size(x0, x1, x2);
10728 }
10729 #ifndef PYPY_VERSION
10730 static PyObject *
_cffi_f_clingo_model_symbols_size(PyObject * self,PyObject * args)10731 _cffi_f_clingo_model_symbols_size(PyObject *self, PyObject *args)
10732 {
10733   clingo_model_t const * x0;
10734   unsigned int x1;
10735   size_t * x2;
10736   Py_ssize_t datasize;
10737   struct _cffi_freeme_s *large_args_free = NULL;
10738   _Bool result;
10739   PyObject *pyresult;
10740   PyObject *arg0;
10741   PyObject *arg1;
10742   PyObject *arg2;
10743 
10744   if (!PyArg_UnpackTuple(args, "clingo_model_symbols_size", 3, 3, &arg0, &arg1, &arg2))
10745     return NULL;
10746 
10747   datasize = _cffi_prepare_pointer_call_argument(
10748       _cffi_type(528), arg0, (char **)&x0);
10749   if (datasize != 0) {
10750     x0 = ((size_t)datasize) <= 640 ? (clingo_model_t const *)alloca((size_t)datasize) : NULL;
10751     if (_cffi_convert_array_argument(_cffi_type(528), arg0, (char **)&x0,
10752             datasize, &large_args_free) < 0)
10753       return NULL;
10754   }
10755 
10756   x1 = _cffi_to_c_int(arg1, unsigned int);
10757   if (x1 == (unsigned int)-1 && PyErr_Occurred())
10758     return NULL;
10759 
10760   datasize = _cffi_prepare_pointer_call_argument(
10761       _cffi_type(205), arg2, (char **)&x2);
10762   if (datasize != 0) {
10763     x2 = ((size_t)datasize) <= 640 ? (size_t *)alloca((size_t)datasize) : NULL;
10764     if (_cffi_convert_array_argument(_cffi_type(205), arg2, (char **)&x2,
10765             datasize, &large_args_free) < 0)
10766       return NULL;
10767   }
10768 
10769   Py_BEGIN_ALLOW_THREADS
10770   _cffi_restore_errno();
10771   { result = clingo_model_symbols_size(x0, x1, x2); }
10772   _cffi_save_errno();
10773   Py_END_ALLOW_THREADS
10774 
10775   (void)self; /* unused */
10776   pyresult = _cffi_from_c__Bool(result);
10777   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
10778   return pyresult;
10779 }
10780 #else
10781 #  define _cffi_f_clingo_model_symbols_size _cffi_d_clingo_model_symbols_size
10782 #endif
10783 
_cffi_d_clingo_model_thread_id(clingo_model_t const * x0,uint32_t * x1)10784 static _Bool _cffi_d_clingo_model_thread_id(clingo_model_t const * x0, uint32_t * x1)
10785 {
10786   return clingo_model_thread_id(x0, x1);
10787 }
10788 #ifndef PYPY_VERSION
10789 static PyObject *
_cffi_f_clingo_model_thread_id(PyObject * self,PyObject * args)10790 _cffi_f_clingo_model_thread_id(PyObject *self, PyObject *args)
10791 {
10792   clingo_model_t const * x0;
10793   uint32_t * x1;
10794   Py_ssize_t datasize;
10795   struct _cffi_freeme_s *large_args_free = NULL;
10796   _Bool result;
10797   PyObject *pyresult;
10798   PyObject *arg0;
10799   PyObject *arg1;
10800 
10801   if (!PyArg_UnpackTuple(args, "clingo_model_thread_id", 2, 2, &arg0, &arg1))
10802     return NULL;
10803 
10804   datasize = _cffi_prepare_pointer_call_argument(
10805       _cffi_type(528), arg0, (char **)&x0);
10806   if (datasize != 0) {
10807     x0 = ((size_t)datasize) <= 640 ? (clingo_model_t const *)alloca((size_t)datasize) : NULL;
10808     if (_cffi_convert_array_argument(_cffi_type(528), arg0, (char **)&x0,
10809             datasize, &large_args_free) < 0)
10810       return NULL;
10811   }
10812 
10813   datasize = _cffi_prepare_pointer_call_argument(
10814       _cffi_type(113), arg1, (char **)&x1);
10815   if (datasize != 0) {
10816     x1 = ((size_t)datasize) <= 640 ? (uint32_t *)alloca((size_t)datasize) : NULL;
10817     if (_cffi_convert_array_argument(_cffi_type(113), arg1, (char **)&x1,
10818             datasize, &large_args_free) < 0)
10819       return NULL;
10820   }
10821 
10822   Py_BEGIN_ALLOW_THREADS
10823   _cffi_restore_errno();
10824   { result = clingo_model_thread_id(x0, x1); }
10825   _cffi_save_errno();
10826   Py_END_ALLOW_THREADS
10827 
10828   (void)self; /* unused */
10829   pyresult = _cffi_from_c__Bool(result);
10830   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
10831   return pyresult;
10832 }
10833 #else
10834 #  define _cffi_f_clingo_model_thread_id _cffi_d_clingo_model_thread_id
10835 #endif
10836 
_cffi_d_clingo_model_type(clingo_model_t const * x0,int * x1)10837 static _Bool _cffi_d_clingo_model_type(clingo_model_t const * x0, int * x1)
10838 {
10839   return clingo_model_type(x0, x1);
10840 }
10841 #ifndef PYPY_VERSION
10842 static PyObject *
_cffi_f_clingo_model_type(PyObject * self,PyObject * args)10843 _cffi_f_clingo_model_type(PyObject *self, PyObject *args)
10844 {
10845   clingo_model_t const * x0;
10846   int * x1;
10847   Py_ssize_t datasize;
10848   struct _cffi_freeme_s *large_args_free = NULL;
10849   _Bool result;
10850   PyObject *pyresult;
10851   PyObject *arg0;
10852   PyObject *arg1;
10853 
10854   if (!PyArg_UnpackTuple(args, "clingo_model_type", 2, 2, &arg0, &arg1))
10855     return NULL;
10856 
10857   datasize = _cffi_prepare_pointer_call_argument(
10858       _cffi_type(528), arg0, (char **)&x0);
10859   if (datasize != 0) {
10860     x0 = ((size_t)datasize) <= 640 ? (clingo_model_t const *)alloca((size_t)datasize) : NULL;
10861     if (_cffi_convert_array_argument(_cffi_type(528), arg0, (char **)&x0,
10862             datasize, &large_args_free) < 0)
10863       return NULL;
10864   }
10865 
10866   datasize = _cffi_prepare_pointer_call_argument(
10867       _cffi_type(108), arg1, (char **)&x1);
10868   if (datasize != 0) {
10869     x1 = ((size_t)datasize) <= 640 ? (int *)alloca((size_t)datasize) : NULL;
10870     if (_cffi_convert_array_argument(_cffi_type(108), arg1, (char **)&x1,
10871             datasize, &large_args_free) < 0)
10872       return NULL;
10873   }
10874 
10875   Py_BEGIN_ALLOW_THREADS
10876   _cffi_restore_errno();
10877   { result = clingo_model_type(x0, x1); }
10878   _cffi_save_errno();
10879   Py_END_ALLOW_THREADS
10880 
10881   (void)self; /* unused */
10882   pyresult = _cffi_from_c__Bool(result);
10883   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
10884   return pyresult;
10885 }
10886 #else
10887 #  define _cffi_f_clingo_model_type _cffi_d_clingo_model_type
10888 #endif
10889 
_cffi_d_clingo_options_add(clingo_options_t * x0,char const * x1,char const * x2,char const * x3,_Bool (* x4)(char const *,void *),void * x5,_Bool x6,char const * x7)10890 static _Bool _cffi_d_clingo_options_add(clingo_options_t * x0, char const * x1, char const * x2, char const * x3, _Bool(* x4)(char const *, void *), void * x5, _Bool x6, char const * x7)
10891 {
10892   return clingo_options_add(x0, x1, x2, x3, x4, x5, x6, x7);
10893 }
10894 #ifndef PYPY_VERSION
10895 static PyObject *
_cffi_f_clingo_options_add(PyObject * self,PyObject * args)10896 _cffi_f_clingo_options_add(PyObject *self, PyObject *args)
10897 {
10898   clingo_options_t * x0;
10899   char const * x1;
10900   char const * x2;
10901   char const * x3;
10902   _Bool(* x4)(char const *, void *);
10903   void * x5;
10904   _Bool x6;
10905   char const * x7;
10906   Py_ssize_t datasize;
10907   struct _cffi_freeme_s *large_args_free = NULL;
10908   _Bool result;
10909   PyObject *pyresult;
10910   PyObject *arg0;
10911   PyObject *arg1;
10912   PyObject *arg2;
10913   PyObject *arg3;
10914   PyObject *arg4;
10915   PyObject *arg5;
10916   PyObject *arg6;
10917   PyObject *arg7;
10918 
10919   if (!PyArg_UnpackTuple(args, "clingo_options_add", 8, 8, &arg0, &arg1, &arg2, &arg3, &arg4, &arg5, &arg6, &arg7))
10920     return NULL;
10921 
10922   datasize = _cffi_prepare_pointer_call_argument(
10923       _cffi_type(584), arg0, (char **)&x0);
10924   if (datasize != 0) {
10925     x0 = ((size_t)datasize) <= 640 ? (clingo_options_t *)alloca((size_t)datasize) : NULL;
10926     if (_cffi_convert_array_argument(_cffi_type(584), arg0, (char **)&x0,
10927             datasize, &large_args_free) < 0)
10928       return NULL;
10929   }
10930 
10931   datasize = _cffi_prepare_pointer_call_argument(
10932       _cffi_type(39), arg1, (char **)&x1);
10933   if (datasize != 0) {
10934     x1 = ((size_t)datasize) <= 640 ? (char const *)alloca((size_t)datasize) : NULL;
10935     if (_cffi_convert_array_argument(_cffi_type(39), arg1, (char **)&x1,
10936             datasize, &large_args_free) < 0)
10937       return NULL;
10938   }
10939 
10940   datasize = _cffi_prepare_pointer_call_argument(
10941       _cffi_type(39), arg2, (char **)&x2);
10942   if (datasize != 0) {
10943     x2 = ((size_t)datasize) <= 640 ? (char const *)alloca((size_t)datasize) : NULL;
10944     if (_cffi_convert_array_argument(_cffi_type(39), arg2, (char **)&x2,
10945             datasize, &large_args_free) < 0)
10946       return NULL;
10947   }
10948 
10949   datasize = _cffi_prepare_pointer_call_argument(
10950       _cffi_type(39), arg3, (char **)&x3);
10951   if (datasize != 0) {
10952     x3 = ((size_t)datasize) <= 640 ? (char const *)alloca((size_t)datasize) : NULL;
10953     if (_cffi_convert_array_argument(_cffi_type(39), arg3, (char **)&x3,
10954             datasize, &large_args_free) < 0)
10955       return NULL;
10956   }
10957 
10958   x4 = (_Bool(*)(char const *, void *))_cffi_to_c_pointer(arg4, _cffi_type(595));
10959   if (x4 == (_Bool(*)(char const *, void *))NULL && PyErr_Occurred())
10960     return NULL;
10961 
10962   datasize = _cffi_prepare_pointer_call_argument(
10963       _cffi_type(6), arg5, (char **)&x5);
10964   if (datasize != 0) {
10965     x5 = ((size_t)datasize) <= 640 ? (void *)alloca((size_t)datasize) : NULL;
10966     if (_cffi_convert_array_argument(_cffi_type(6), arg5, (char **)&x5,
10967             datasize, &large_args_free) < 0)
10968       return NULL;
10969   }
10970 
10971   x6 = (_Bool)_cffi_to_c__Bool(arg6);
10972   if (x6 == (_Bool)-1 && PyErr_Occurred())
10973     return NULL;
10974 
10975   datasize = _cffi_prepare_pointer_call_argument(
10976       _cffi_type(39), arg7, (char **)&x7);
10977   if (datasize != 0) {
10978     x7 = ((size_t)datasize) <= 640 ? (char const *)alloca((size_t)datasize) : NULL;
10979     if (_cffi_convert_array_argument(_cffi_type(39), arg7, (char **)&x7,
10980             datasize, &large_args_free) < 0)
10981       return NULL;
10982   }
10983 
10984   Py_BEGIN_ALLOW_THREADS
10985   _cffi_restore_errno();
10986   { result = clingo_options_add(x0, x1, x2, x3, x4, x5, x6, x7); }
10987   _cffi_save_errno();
10988   Py_END_ALLOW_THREADS
10989 
10990   (void)self; /* unused */
10991   pyresult = _cffi_from_c__Bool(result);
10992   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
10993   return pyresult;
10994 }
10995 #else
10996 #  define _cffi_f_clingo_options_add _cffi_d_clingo_options_add
10997 #endif
10998 
_cffi_d_clingo_options_add_flag(clingo_options_t * x0,char const * x1,char const * x2,char const * x3,_Bool * x4)10999 static _Bool _cffi_d_clingo_options_add_flag(clingo_options_t * x0, char const * x1, char const * x2, char const * x3, _Bool * x4)
11000 {
11001   return clingo_options_add_flag(x0, x1, x2, x3, x4);
11002 }
11003 #ifndef PYPY_VERSION
11004 static PyObject *
_cffi_f_clingo_options_add_flag(PyObject * self,PyObject * args)11005 _cffi_f_clingo_options_add_flag(PyObject *self, PyObject *args)
11006 {
11007   clingo_options_t * x0;
11008   char const * x1;
11009   char const * x2;
11010   char const * x3;
11011   _Bool * x4;
11012   Py_ssize_t datasize;
11013   struct _cffi_freeme_s *large_args_free = NULL;
11014   _Bool result;
11015   PyObject *pyresult;
11016   PyObject *arg0;
11017   PyObject *arg1;
11018   PyObject *arg2;
11019   PyObject *arg3;
11020   PyObject *arg4;
11021 
11022   if (!PyArg_UnpackTuple(args, "clingo_options_add_flag", 5, 5, &arg0, &arg1, &arg2, &arg3, &arg4))
11023     return NULL;
11024 
11025   datasize = _cffi_prepare_pointer_call_argument(
11026       _cffi_type(584), arg0, (char **)&x0);
11027   if (datasize != 0) {
11028     x0 = ((size_t)datasize) <= 640 ? (clingo_options_t *)alloca((size_t)datasize) : NULL;
11029     if (_cffi_convert_array_argument(_cffi_type(584), arg0, (char **)&x0,
11030             datasize, &large_args_free) < 0)
11031       return NULL;
11032   }
11033 
11034   datasize = _cffi_prepare_pointer_call_argument(
11035       _cffi_type(39), arg1, (char **)&x1);
11036   if (datasize != 0) {
11037     x1 = ((size_t)datasize) <= 640 ? (char const *)alloca((size_t)datasize) : NULL;
11038     if (_cffi_convert_array_argument(_cffi_type(39), arg1, (char **)&x1,
11039             datasize, &large_args_free) < 0)
11040       return NULL;
11041   }
11042 
11043   datasize = _cffi_prepare_pointer_call_argument(
11044       _cffi_type(39), arg2, (char **)&x2);
11045   if (datasize != 0) {
11046     x2 = ((size_t)datasize) <= 640 ? (char const *)alloca((size_t)datasize) : NULL;
11047     if (_cffi_convert_array_argument(_cffi_type(39), arg2, (char **)&x2,
11048             datasize, &large_args_free) < 0)
11049       return NULL;
11050   }
11051 
11052   datasize = _cffi_prepare_pointer_call_argument(
11053       _cffi_type(39), arg3, (char **)&x3);
11054   if (datasize != 0) {
11055     x3 = ((size_t)datasize) <= 640 ? (char const *)alloca((size_t)datasize) : NULL;
11056     if (_cffi_convert_array_argument(_cffi_type(39), arg3, (char **)&x3,
11057             datasize, &large_args_free) < 0)
11058       return NULL;
11059   }
11060 
11061   datasize = _cffi_prepare_pointer_call_argument(
11062       _cffi_type(40), arg4, (char **)&x4);
11063   if (datasize != 0) {
11064     x4 = ((size_t)datasize) <= 640 ? (_Bool *)alloca((size_t)datasize) : NULL;
11065     if (_cffi_convert_array_argument(_cffi_type(40), arg4, (char **)&x4,
11066             datasize, &large_args_free) < 0)
11067       return NULL;
11068   }
11069 
11070   Py_BEGIN_ALLOW_THREADS
11071   _cffi_restore_errno();
11072   { result = clingo_options_add_flag(x0, x1, x2, x3, x4); }
11073   _cffi_save_errno();
11074   Py_END_ALLOW_THREADS
11075 
11076   (void)self; /* unused */
11077   pyresult = _cffi_from_c__Bool(result);
11078   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
11079   return pyresult;
11080 }
11081 #else
11082 #  define _cffi_f_clingo_options_add_flag _cffi_d_clingo_options_add_flag
11083 #endif
11084 
_cffi_d_clingo_parse_term(char const * x0,void (* x1)(int,char const *,void *),void * x2,unsigned int x3,uint64_t * x4)11085 static _Bool _cffi_d_clingo_parse_term(char const * x0, void(* x1)(int, char const *, void *), void * x2, unsigned int x3, uint64_t * x4)
11086 {
11087   return clingo_parse_term(x0, x1, x2, x3, x4);
11088 }
11089 #ifndef PYPY_VERSION
11090 static PyObject *
_cffi_f_clingo_parse_term(PyObject * self,PyObject * args)11091 _cffi_f_clingo_parse_term(PyObject *self, PyObject *args)
11092 {
11093   char const * x0;
11094   void(* x1)(int, char const *, void *);
11095   void * x2;
11096   unsigned int x3;
11097   uint64_t * x4;
11098   Py_ssize_t datasize;
11099   struct _cffi_freeme_s *large_args_free = NULL;
11100   _Bool result;
11101   PyObject *pyresult;
11102   PyObject *arg0;
11103   PyObject *arg1;
11104   PyObject *arg2;
11105   PyObject *arg3;
11106   PyObject *arg4;
11107 
11108   if (!PyArg_UnpackTuple(args, "clingo_parse_term", 5, 5, &arg0, &arg1, &arg2, &arg3, &arg4))
11109     return NULL;
11110 
11111   datasize = _cffi_prepare_pointer_call_argument(
11112       _cffi_type(39), arg0, (char **)&x0);
11113   if (datasize != 0) {
11114     x0 = ((size_t)datasize) <= 640 ? (char const *)alloca((size_t)datasize) : NULL;
11115     if (_cffi_convert_array_argument(_cffi_type(39), arg0, (char **)&x0,
11116             datasize, &large_args_free) < 0)
11117       return NULL;
11118   }
11119 
11120   x1 = (void(*)(int, char const *, void *))_cffi_to_c_pointer(arg1, _cffi_type(26));
11121   if (x1 == (void(*)(int, char const *, void *))NULL && PyErr_Occurred())
11122     return NULL;
11123 
11124   datasize = _cffi_prepare_pointer_call_argument(
11125       _cffi_type(6), arg2, (char **)&x2);
11126   if (datasize != 0) {
11127     x2 = ((size_t)datasize) <= 640 ? (void *)alloca((size_t)datasize) : NULL;
11128     if (_cffi_convert_array_argument(_cffi_type(6), arg2, (char **)&x2,
11129             datasize, &large_args_free) < 0)
11130       return NULL;
11131   }
11132 
11133   x3 = _cffi_to_c_int(arg3, unsigned int);
11134   if (x3 == (unsigned int)-1 && PyErr_Occurred())
11135     return NULL;
11136 
11137   datasize = _cffi_prepare_pointer_call_argument(
11138       _cffi_type(54), arg4, (char **)&x4);
11139   if (datasize != 0) {
11140     x4 = ((size_t)datasize) <= 640 ? (uint64_t *)alloca((size_t)datasize) : NULL;
11141     if (_cffi_convert_array_argument(_cffi_type(54), arg4, (char **)&x4,
11142             datasize, &large_args_free) < 0)
11143       return NULL;
11144   }
11145 
11146   Py_BEGIN_ALLOW_THREADS
11147   _cffi_restore_errno();
11148   { result = clingo_parse_term(x0, x1, x2, x3, x4); }
11149   _cffi_save_errno();
11150   Py_END_ALLOW_THREADS
11151 
11152   (void)self; /* unused */
11153   pyresult = _cffi_from_c__Bool(result);
11154   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
11155   return pyresult;
11156 }
11157 #else
11158 #  define _cffi_f_clingo_parse_term _cffi_d_clingo_parse_term
11159 #endif
11160 
_cffi_d_clingo_program_builder_add(clingo_program_builder_t * x0,clingo_ast_t * x1)11161 static _Bool _cffi_d_clingo_program_builder_add(clingo_program_builder_t * x0, clingo_ast_t * x1)
11162 {
11163   return clingo_program_builder_add(x0, x1);
11164 }
11165 #ifndef PYPY_VERSION
11166 static PyObject *
_cffi_f_clingo_program_builder_add(PyObject * self,PyObject * args)11167 _cffi_f_clingo_program_builder_add(PyObject *self, PyObject *args)
11168 {
11169   clingo_program_builder_t * x0;
11170   clingo_ast_t * x1;
11171   Py_ssize_t datasize;
11172   struct _cffi_freeme_s *large_args_free = NULL;
11173   _Bool result;
11174   PyObject *pyresult;
11175   PyObject *arg0;
11176   PyObject *arg1;
11177 
11178   if (!PyArg_UnpackTuple(args, "clingo_program_builder_add", 2, 2, &arg0, &arg1))
11179     return NULL;
11180 
11181   datasize = _cffi_prepare_pointer_call_argument(
11182       _cffi_type(605), arg0, (char **)&x0);
11183   if (datasize != 0) {
11184     x0 = ((size_t)datasize) <= 640 ? (clingo_program_builder_t *)alloca((size_t)datasize) : NULL;
11185     if (_cffi_convert_array_argument(_cffi_type(605), arg0, (char **)&x0,
11186             datasize, &large_args_free) < 0)
11187       return NULL;
11188   }
11189 
11190   datasize = _cffi_prepare_pointer_call_argument(
11191       _cffi_type(135), arg1, (char **)&x1);
11192   if (datasize != 0) {
11193     x1 = ((size_t)datasize) <= 640 ? (clingo_ast_t *)alloca((size_t)datasize) : NULL;
11194     if (_cffi_convert_array_argument(_cffi_type(135), arg1, (char **)&x1,
11195             datasize, &large_args_free) < 0)
11196       return NULL;
11197   }
11198 
11199   Py_BEGIN_ALLOW_THREADS
11200   _cffi_restore_errno();
11201   { result = clingo_program_builder_add(x0, x1); }
11202   _cffi_save_errno();
11203   Py_END_ALLOW_THREADS
11204 
11205   (void)self; /* unused */
11206   pyresult = _cffi_from_c__Bool(result);
11207   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
11208   return pyresult;
11209 }
11210 #else
11211 #  define _cffi_f_clingo_program_builder_add _cffi_d_clingo_program_builder_add
11212 #endif
11213 
_cffi_d_clingo_program_builder_begin(clingo_program_builder_t * x0)11214 static _Bool _cffi_d_clingo_program_builder_begin(clingo_program_builder_t * x0)
11215 {
11216   return clingo_program_builder_begin(x0);
11217 }
11218 #ifndef PYPY_VERSION
11219 static PyObject *
_cffi_f_clingo_program_builder_begin(PyObject * self,PyObject * arg0)11220 _cffi_f_clingo_program_builder_begin(PyObject *self, PyObject *arg0)
11221 {
11222   clingo_program_builder_t * x0;
11223   Py_ssize_t datasize;
11224   struct _cffi_freeme_s *large_args_free = NULL;
11225   _Bool result;
11226   PyObject *pyresult;
11227 
11228   datasize = _cffi_prepare_pointer_call_argument(
11229       _cffi_type(605), arg0, (char **)&x0);
11230   if (datasize != 0) {
11231     x0 = ((size_t)datasize) <= 640 ? (clingo_program_builder_t *)alloca((size_t)datasize) : NULL;
11232     if (_cffi_convert_array_argument(_cffi_type(605), arg0, (char **)&x0,
11233             datasize, &large_args_free) < 0)
11234       return NULL;
11235   }
11236 
11237   Py_BEGIN_ALLOW_THREADS
11238   _cffi_restore_errno();
11239   { result = clingo_program_builder_begin(x0); }
11240   _cffi_save_errno();
11241   Py_END_ALLOW_THREADS
11242 
11243   (void)self; /* unused */
11244   pyresult = _cffi_from_c__Bool(result);
11245   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
11246   return pyresult;
11247 }
11248 #else
11249 #  define _cffi_f_clingo_program_builder_begin _cffi_d_clingo_program_builder_begin
11250 #endif
11251 
_cffi_d_clingo_program_builder_end(clingo_program_builder_t * x0)11252 static _Bool _cffi_d_clingo_program_builder_end(clingo_program_builder_t * x0)
11253 {
11254   return clingo_program_builder_end(x0);
11255 }
11256 #ifndef PYPY_VERSION
11257 static PyObject *
_cffi_f_clingo_program_builder_end(PyObject * self,PyObject * arg0)11258 _cffi_f_clingo_program_builder_end(PyObject *self, PyObject *arg0)
11259 {
11260   clingo_program_builder_t * x0;
11261   Py_ssize_t datasize;
11262   struct _cffi_freeme_s *large_args_free = NULL;
11263   _Bool result;
11264   PyObject *pyresult;
11265 
11266   datasize = _cffi_prepare_pointer_call_argument(
11267       _cffi_type(605), arg0, (char **)&x0);
11268   if (datasize != 0) {
11269     x0 = ((size_t)datasize) <= 640 ? (clingo_program_builder_t *)alloca((size_t)datasize) : NULL;
11270     if (_cffi_convert_array_argument(_cffi_type(605), arg0, (char **)&x0,
11271             datasize, &large_args_free) < 0)
11272       return NULL;
11273   }
11274 
11275   Py_BEGIN_ALLOW_THREADS
11276   _cffi_restore_errno();
11277   { result = clingo_program_builder_end(x0); }
11278   _cffi_save_errno();
11279   Py_END_ALLOW_THREADS
11280 
11281   (void)self; /* unused */
11282   pyresult = _cffi_from_c__Bool(result);
11283   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
11284   return pyresult;
11285 }
11286 #else
11287 #  define _cffi_f_clingo_program_builder_end _cffi_d_clingo_program_builder_end
11288 #endif
11289 
_cffi_d_clingo_propagate_control_add_clause(clingo_propagate_control_t * x0,int32_t const * x1,size_t x2,int x3,_Bool * x4)11290 static _Bool _cffi_d_clingo_propagate_control_add_clause(clingo_propagate_control_t * x0, int32_t const * x1, size_t x2, int x3, _Bool * x4)
11291 {
11292   return clingo_propagate_control_add_clause(x0, x1, x2, x3, x4);
11293 }
11294 #ifndef PYPY_VERSION
11295 static PyObject *
_cffi_f_clingo_propagate_control_add_clause(PyObject * self,PyObject * args)11296 _cffi_f_clingo_propagate_control_add_clause(PyObject *self, PyObject *args)
11297 {
11298   clingo_propagate_control_t * x0;
11299   int32_t const * x1;
11300   size_t x2;
11301   int x3;
11302   _Bool * x4;
11303   Py_ssize_t datasize;
11304   struct _cffi_freeme_s *large_args_free = NULL;
11305   _Bool result;
11306   PyObject *pyresult;
11307   PyObject *arg0;
11308   PyObject *arg1;
11309   PyObject *arg2;
11310   PyObject *arg3;
11311   PyObject *arg4;
11312 
11313   if (!PyArg_UnpackTuple(args, "clingo_propagate_control_add_clause", 5, 5, &arg0, &arg1, &arg2, &arg3, &arg4))
11314     return NULL;
11315 
11316   datasize = _cffi_prepare_pointer_call_argument(
11317       _cffi_type(612), arg0, (char **)&x0);
11318   if (datasize != 0) {
11319     x0 = ((size_t)datasize) <= 640 ? (clingo_propagate_control_t *)alloca((size_t)datasize) : NULL;
11320     if (_cffi_convert_array_argument(_cffi_type(612), arg0, (char **)&x0,
11321             datasize, &large_args_free) < 0)
11322       return NULL;
11323   }
11324 
11325   datasize = _cffi_prepare_pointer_call_argument(
11326       _cffi_type(4), arg1, (char **)&x1);
11327   if (datasize != 0) {
11328     x1 = ((size_t)datasize) <= 640 ? (int32_t const *)alloca((size_t)datasize) : NULL;
11329     if (_cffi_convert_array_argument(_cffi_type(4), arg1, (char **)&x1,
11330             datasize, &large_args_free) < 0)
11331       return NULL;
11332   }
11333 
11334   x2 = _cffi_to_c_int(arg2, size_t);
11335   if (x2 == (size_t)-1 && PyErr_Occurred())
11336     return NULL;
11337 
11338   x3 = _cffi_to_c_int(arg3, int);
11339   if (x3 == (int)-1 && PyErr_Occurred())
11340     return NULL;
11341 
11342   datasize = _cffi_prepare_pointer_call_argument(
11343       _cffi_type(40), arg4, (char **)&x4);
11344   if (datasize != 0) {
11345     x4 = ((size_t)datasize) <= 640 ? (_Bool *)alloca((size_t)datasize) : NULL;
11346     if (_cffi_convert_array_argument(_cffi_type(40), arg4, (char **)&x4,
11347             datasize, &large_args_free) < 0)
11348       return NULL;
11349   }
11350 
11351   Py_BEGIN_ALLOW_THREADS
11352   _cffi_restore_errno();
11353   { result = clingo_propagate_control_add_clause(x0, x1, x2, x3, x4); }
11354   _cffi_save_errno();
11355   Py_END_ALLOW_THREADS
11356 
11357   (void)self; /* unused */
11358   pyresult = _cffi_from_c__Bool(result);
11359   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
11360   return pyresult;
11361 }
11362 #else
11363 #  define _cffi_f_clingo_propagate_control_add_clause _cffi_d_clingo_propagate_control_add_clause
11364 #endif
11365 
_cffi_d_clingo_propagate_control_add_literal(clingo_propagate_control_t * x0,int32_t * x1)11366 static _Bool _cffi_d_clingo_propagate_control_add_literal(clingo_propagate_control_t * x0, int32_t * x1)
11367 {
11368   return clingo_propagate_control_add_literal(x0, x1);
11369 }
11370 #ifndef PYPY_VERSION
11371 static PyObject *
_cffi_f_clingo_propagate_control_add_literal(PyObject * self,PyObject * args)11372 _cffi_f_clingo_propagate_control_add_literal(PyObject *self, PyObject *args)
11373 {
11374   clingo_propagate_control_t * x0;
11375   int32_t * x1;
11376   Py_ssize_t datasize;
11377   struct _cffi_freeme_s *large_args_free = NULL;
11378   _Bool result;
11379   PyObject *pyresult;
11380   PyObject *arg0;
11381   PyObject *arg1;
11382 
11383   if (!PyArg_UnpackTuple(args, "clingo_propagate_control_add_literal", 2, 2, &arg0, &arg1))
11384     return NULL;
11385 
11386   datasize = _cffi_prepare_pointer_call_argument(
11387       _cffi_type(612), arg0, (char **)&x0);
11388   if (datasize != 0) {
11389     x0 = ((size_t)datasize) <= 640 ? (clingo_propagate_control_t *)alloca((size_t)datasize) : NULL;
11390     if (_cffi_convert_array_argument(_cffi_type(612), arg0, (char **)&x0,
11391             datasize, &large_args_free) < 0)
11392       return NULL;
11393   }
11394 
11395   datasize = _cffi_prepare_pointer_call_argument(
11396       _cffi_type(118), arg1, (char **)&x1);
11397   if (datasize != 0) {
11398     x1 = ((size_t)datasize) <= 640 ? (int32_t *)alloca((size_t)datasize) : NULL;
11399     if (_cffi_convert_array_argument(_cffi_type(118), arg1, (char **)&x1,
11400             datasize, &large_args_free) < 0)
11401       return NULL;
11402   }
11403 
11404   Py_BEGIN_ALLOW_THREADS
11405   _cffi_restore_errno();
11406   { result = clingo_propagate_control_add_literal(x0, x1); }
11407   _cffi_save_errno();
11408   Py_END_ALLOW_THREADS
11409 
11410   (void)self; /* unused */
11411   pyresult = _cffi_from_c__Bool(result);
11412   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
11413   return pyresult;
11414 }
11415 #else
11416 #  define _cffi_f_clingo_propagate_control_add_literal _cffi_d_clingo_propagate_control_add_literal
11417 #endif
11418 
_cffi_d_clingo_propagate_control_add_watch(clingo_propagate_control_t * x0,int32_t x1)11419 static _Bool _cffi_d_clingo_propagate_control_add_watch(clingo_propagate_control_t * x0, int32_t x1)
11420 {
11421   return clingo_propagate_control_add_watch(x0, x1);
11422 }
11423 #ifndef PYPY_VERSION
11424 static PyObject *
_cffi_f_clingo_propagate_control_add_watch(PyObject * self,PyObject * args)11425 _cffi_f_clingo_propagate_control_add_watch(PyObject *self, PyObject *args)
11426 {
11427   clingo_propagate_control_t * x0;
11428   int32_t x1;
11429   Py_ssize_t datasize;
11430   struct _cffi_freeme_s *large_args_free = NULL;
11431   _Bool result;
11432   PyObject *pyresult;
11433   PyObject *arg0;
11434   PyObject *arg1;
11435 
11436   if (!PyArg_UnpackTuple(args, "clingo_propagate_control_add_watch", 2, 2, &arg0, &arg1))
11437     return NULL;
11438 
11439   datasize = _cffi_prepare_pointer_call_argument(
11440       _cffi_type(612), arg0, (char **)&x0);
11441   if (datasize != 0) {
11442     x0 = ((size_t)datasize) <= 640 ? (clingo_propagate_control_t *)alloca((size_t)datasize) : NULL;
11443     if (_cffi_convert_array_argument(_cffi_type(612), arg0, (char **)&x0,
11444             datasize, &large_args_free) < 0)
11445       return NULL;
11446   }
11447 
11448   x1 = _cffi_to_c_int(arg1, int32_t);
11449   if (x1 == (int32_t)-1 && PyErr_Occurred())
11450     return NULL;
11451 
11452   Py_BEGIN_ALLOW_THREADS
11453   _cffi_restore_errno();
11454   { result = clingo_propagate_control_add_watch(x0, x1); }
11455   _cffi_save_errno();
11456   Py_END_ALLOW_THREADS
11457 
11458   (void)self; /* unused */
11459   pyresult = _cffi_from_c__Bool(result);
11460   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
11461   return pyresult;
11462 }
11463 #else
11464 #  define _cffi_f_clingo_propagate_control_add_watch _cffi_d_clingo_propagate_control_add_watch
11465 #endif
11466 
_cffi_d_clingo_propagate_control_assignment(clingo_propagate_control_t const * x0)11467 static clingo_assignment_t const * _cffi_d_clingo_propagate_control_assignment(clingo_propagate_control_t const * x0)
11468 {
11469   return clingo_propagate_control_assignment(x0);
11470 }
11471 #ifndef PYPY_VERSION
11472 static PyObject *
_cffi_f_clingo_propagate_control_assignment(PyObject * self,PyObject * arg0)11473 _cffi_f_clingo_propagate_control_assignment(PyObject *self, PyObject *arg0)
11474 {
11475   clingo_propagate_control_t const * x0;
11476   Py_ssize_t datasize;
11477   struct _cffi_freeme_s *large_args_free = NULL;
11478   clingo_assignment_t const * result;
11479   PyObject *pyresult;
11480 
11481   datasize = _cffi_prepare_pointer_call_argument(
11482       _cffi_type(641), arg0, (char **)&x0);
11483   if (datasize != 0) {
11484     x0 = ((size_t)datasize) <= 640 ? (clingo_propagate_control_t const *)alloca((size_t)datasize) : NULL;
11485     if (_cffi_convert_array_argument(_cffi_type(641), arg0, (char **)&x0,
11486             datasize, &large_args_free) < 0)
11487       return NULL;
11488   }
11489 
11490   Py_BEGIN_ALLOW_THREADS
11491   _cffi_restore_errno();
11492   { result = clingo_propagate_control_assignment(x0); }
11493   _cffi_save_errno();
11494   Py_END_ALLOW_THREADS
11495 
11496   (void)self; /* unused */
11497   pyresult = _cffi_from_c_pointer((char *)result, _cffi_type(94));
11498   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
11499   return pyresult;
11500 }
11501 #else
11502 #  define _cffi_f_clingo_propagate_control_assignment _cffi_d_clingo_propagate_control_assignment
11503 #endif
11504 
_cffi_d_clingo_propagate_control_has_watch(clingo_propagate_control_t const * x0,int32_t x1)11505 static _Bool _cffi_d_clingo_propagate_control_has_watch(clingo_propagate_control_t const * x0, int32_t x1)
11506 {
11507   return clingo_propagate_control_has_watch(x0, x1);
11508 }
11509 #ifndef PYPY_VERSION
11510 static PyObject *
_cffi_f_clingo_propagate_control_has_watch(PyObject * self,PyObject * args)11511 _cffi_f_clingo_propagate_control_has_watch(PyObject *self, PyObject *args)
11512 {
11513   clingo_propagate_control_t const * x0;
11514   int32_t x1;
11515   Py_ssize_t datasize;
11516   struct _cffi_freeme_s *large_args_free = NULL;
11517   _Bool result;
11518   PyObject *pyresult;
11519   PyObject *arg0;
11520   PyObject *arg1;
11521 
11522   if (!PyArg_UnpackTuple(args, "clingo_propagate_control_has_watch", 2, 2, &arg0, &arg1))
11523     return NULL;
11524 
11525   datasize = _cffi_prepare_pointer_call_argument(
11526       _cffi_type(641), arg0, (char **)&x0);
11527   if (datasize != 0) {
11528     x0 = ((size_t)datasize) <= 640 ? (clingo_propagate_control_t const *)alloca((size_t)datasize) : NULL;
11529     if (_cffi_convert_array_argument(_cffi_type(641), arg0, (char **)&x0,
11530             datasize, &large_args_free) < 0)
11531       return NULL;
11532   }
11533 
11534   x1 = _cffi_to_c_int(arg1, int32_t);
11535   if (x1 == (int32_t)-1 && PyErr_Occurred())
11536     return NULL;
11537 
11538   Py_BEGIN_ALLOW_THREADS
11539   _cffi_restore_errno();
11540   { result = clingo_propagate_control_has_watch(x0, x1); }
11541   _cffi_save_errno();
11542   Py_END_ALLOW_THREADS
11543 
11544   (void)self; /* unused */
11545   pyresult = _cffi_from_c__Bool(result);
11546   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
11547   return pyresult;
11548 }
11549 #else
11550 #  define _cffi_f_clingo_propagate_control_has_watch _cffi_d_clingo_propagate_control_has_watch
11551 #endif
11552 
_cffi_d_clingo_propagate_control_propagate(clingo_propagate_control_t * x0,_Bool * x1)11553 static _Bool _cffi_d_clingo_propagate_control_propagate(clingo_propagate_control_t * x0, _Bool * x1)
11554 {
11555   return clingo_propagate_control_propagate(x0, x1);
11556 }
11557 #ifndef PYPY_VERSION
11558 static PyObject *
_cffi_f_clingo_propagate_control_propagate(PyObject * self,PyObject * args)11559 _cffi_f_clingo_propagate_control_propagate(PyObject *self, PyObject *args)
11560 {
11561   clingo_propagate_control_t * x0;
11562   _Bool * x1;
11563   Py_ssize_t datasize;
11564   struct _cffi_freeme_s *large_args_free = NULL;
11565   _Bool result;
11566   PyObject *pyresult;
11567   PyObject *arg0;
11568   PyObject *arg1;
11569 
11570   if (!PyArg_UnpackTuple(args, "clingo_propagate_control_propagate", 2, 2, &arg0, &arg1))
11571     return NULL;
11572 
11573   datasize = _cffi_prepare_pointer_call_argument(
11574       _cffi_type(612), arg0, (char **)&x0);
11575   if (datasize != 0) {
11576     x0 = ((size_t)datasize) <= 640 ? (clingo_propagate_control_t *)alloca((size_t)datasize) : NULL;
11577     if (_cffi_convert_array_argument(_cffi_type(612), arg0, (char **)&x0,
11578             datasize, &large_args_free) < 0)
11579       return NULL;
11580   }
11581 
11582   datasize = _cffi_prepare_pointer_call_argument(
11583       _cffi_type(40), arg1, (char **)&x1);
11584   if (datasize != 0) {
11585     x1 = ((size_t)datasize) <= 640 ? (_Bool *)alloca((size_t)datasize) : NULL;
11586     if (_cffi_convert_array_argument(_cffi_type(40), arg1, (char **)&x1,
11587             datasize, &large_args_free) < 0)
11588       return NULL;
11589   }
11590 
11591   Py_BEGIN_ALLOW_THREADS
11592   _cffi_restore_errno();
11593   { result = clingo_propagate_control_propagate(x0, x1); }
11594   _cffi_save_errno();
11595   Py_END_ALLOW_THREADS
11596 
11597   (void)self; /* unused */
11598   pyresult = _cffi_from_c__Bool(result);
11599   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
11600   return pyresult;
11601 }
11602 #else
11603 #  define _cffi_f_clingo_propagate_control_propagate _cffi_d_clingo_propagate_control_propagate
11604 #endif
11605 
_cffi_d_clingo_propagate_control_remove_watch(clingo_propagate_control_t * x0,int32_t x1)11606 static void _cffi_d_clingo_propagate_control_remove_watch(clingo_propagate_control_t * x0, int32_t x1)
11607 {
11608   clingo_propagate_control_remove_watch(x0, x1);
11609 }
11610 #ifndef PYPY_VERSION
11611 static PyObject *
_cffi_f_clingo_propagate_control_remove_watch(PyObject * self,PyObject * args)11612 _cffi_f_clingo_propagate_control_remove_watch(PyObject *self, PyObject *args)
11613 {
11614   clingo_propagate_control_t * x0;
11615   int32_t x1;
11616   Py_ssize_t datasize;
11617   struct _cffi_freeme_s *large_args_free = NULL;
11618   PyObject *arg0;
11619   PyObject *arg1;
11620 
11621   if (!PyArg_UnpackTuple(args, "clingo_propagate_control_remove_watch", 2, 2, &arg0, &arg1))
11622     return NULL;
11623 
11624   datasize = _cffi_prepare_pointer_call_argument(
11625       _cffi_type(612), arg0, (char **)&x0);
11626   if (datasize != 0) {
11627     x0 = ((size_t)datasize) <= 640 ? (clingo_propagate_control_t *)alloca((size_t)datasize) : NULL;
11628     if (_cffi_convert_array_argument(_cffi_type(612), arg0, (char **)&x0,
11629             datasize, &large_args_free) < 0)
11630       return NULL;
11631   }
11632 
11633   x1 = _cffi_to_c_int(arg1, int32_t);
11634   if (x1 == (int32_t)-1 && PyErr_Occurred())
11635     return NULL;
11636 
11637   Py_BEGIN_ALLOW_THREADS
11638   _cffi_restore_errno();
11639   { clingo_propagate_control_remove_watch(x0, x1); }
11640   _cffi_save_errno();
11641   Py_END_ALLOW_THREADS
11642 
11643   (void)self; /* unused */
11644   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
11645   Py_INCREF(Py_None);
11646   return Py_None;
11647 }
11648 #else
11649 #  define _cffi_f_clingo_propagate_control_remove_watch _cffi_d_clingo_propagate_control_remove_watch
11650 #endif
11651 
_cffi_d_clingo_propagate_control_thread_id(clingo_propagate_control_t const * x0)11652 static uint32_t _cffi_d_clingo_propagate_control_thread_id(clingo_propagate_control_t const * x0)
11653 {
11654   return clingo_propagate_control_thread_id(x0);
11655 }
11656 #ifndef PYPY_VERSION
11657 static PyObject *
_cffi_f_clingo_propagate_control_thread_id(PyObject * self,PyObject * arg0)11658 _cffi_f_clingo_propagate_control_thread_id(PyObject *self, PyObject *arg0)
11659 {
11660   clingo_propagate_control_t const * x0;
11661   Py_ssize_t datasize;
11662   struct _cffi_freeme_s *large_args_free = NULL;
11663   uint32_t result;
11664   PyObject *pyresult;
11665 
11666   datasize = _cffi_prepare_pointer_call_argument(
11667       _cffi_type(641), arg0, (char **)&x0);
11668   if (datasize != 0) {
11669     x0 = ((size_t)datasize) <= 640 ? (clingo_propagate_control_t const *)alloca((size_t)datasize) : NULL;
11670     if (_cffi_convert_array_argument(_cffi_type(641), arg0, (char **)&x0,
11671             datasize, &large_args_free) < 0)
11672       return NULL;
11673   }
11674 
11675   Py_BEGIN_ALLOW_THREADS
11676   _cffi_restore_errno();
11677   { result = clingo_propagate_control_thread_id(x0); }
11678   _cffi_save_errno();
11679   Py_END_ALLOW_THREADS
11680 
11681   (void)self; /* unused */
11682   pyresult = _cffi_from_c_int(result, uint32_t);
11683   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
11684   return pyresult;
11685 }
11686 #else
11687 #  define _cffi_f_clingo_propagate_control_thread_id _cffi_d_clingo_propagate_control_thread_id
11688 #endif
11689 
_cffi_d_clingo_propagate_init_add_clause(clingo_propagate_init_t * x0,int32_t const * x1,size_t x2,_Bool * x3)11690 static _Bool _cffi_d_clingo_propagate_init_add_clause(clingo_propagate_init_t * x0, int32_t const * x1, size_t x2, _Bool * x3)
11691 {
11692   return clingo_propagate_init_add_clause(x0, x1, x2, x3);
11693 }
11694 #ifndef PYPY_VERSION
11695 static PyObject *
_cffi_f_clingo_propagate_init_add_clause(PyObject * self,PyObject * args)11696 _cffi_f_clingo_propagate_init_add_clause(PyObject *self, PyObject *args)
11697 {
11698   clingo_propagate_init_t * x0;
11699   int32_t const * x1;
11700   size_t x2;
11701   _Bool * x3;
11702   Py_ssize_t datasize;
11703   struct _cffi_freeme_s *large_args_free = NULL;
11704   _Bool result;
11705   PyObject *pyresult;
11706   PyObject *arg0;
11707   PyObject *arg1;
11708   PyObject *arg2;
11709   PyObject *arg3;
11710 
11711   if (!PyArg_UnpackTuple(args, "clingo_propagate_init_add_clause", 4, 4, &arg0, &arg1, &arg2, &arg3))
11712     return NULL;
11713 
11714   datasize = _cffi_prepare_pointer_call_argument(
11715       _cffi_type(645), arg0, (char **)&x0);
11716   if (datasize != 0) {
11717     x0 = ((size_t)datasize) <= 640 ? (clingo_propagate_init_t *)alloca((size_t)datasize) : NULL;
11718     if (_cffi_convert_array_argument(_cffi_type(645), arg0, (char **)&x0,
11719             datasize, &large_args_free) < 0)
11720       return NULL;
11721   }
11722 
11723   datasize = _cffi_prepare_pointer_call_argument(
11724       _cffi_type(4), arg1, (char **)&x1);
11725   if (datasize != 0) {
11726     x1 = ((size_t)datasize) <= 640 ? (int32_t const *)alloca((size_t)datasize) : NULL;
11727     if (_cffi_convert_array_argument(_cffi_type(4), arg1, (char **)&x1,
11728             datasize, &large_args_free) < 0)
11729       return NULL;
11730   }
11731 
11732   x2 = _cffi_to_c_int(arg2, size_t);
11733   if (x2 == (size_t)-1 && PyErr_Occurred())
11734     return NULL;
11735 
11736   datasize = _cffi_prepare_pointer_call_argument(
11737       _cffi_type(40), arg3, (char **)&x3);
11738   if (datasize != 0) {
11739     x3 = ((size_t)datasize) <= 640 ? (_Bool *)alloca((size_t)datasize) : NULL;
11740     if (_cffi_convert_array_argument(_cffi_type(40), arg3, (char **)&x3,
11741             datasize, &large_args_free) < 0)
11742       return NULL;
11743   }
11744 
11745   Py_BEGIN_ALLOW_THREADS
11746   _cffi_restore_errno();
11747   { result = clingo_propagate_init_add_clause(x0, x1, x2, x3); }
11748   _cffi_save_errno();
11749   Py_END_ALLOW_THREADS
11750 
11751   (void)self; /* unused */
11752   pyresult = _cffi_from_c__Bool(result);
11753   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
11754   return pyresult;
11755 }
11756 #else
11757 #  define _cffi_f_clingo_propagate_init_add_clause _cffi_d_clingo_propagate_init_add_clause
11758 #endif
11759 
_cffi_d_clingo_propagate_init_add_literal(clingo_propagate_init_t * x0,_Bool x1,int32_t * x2)11760 static _Bool _cffi_d_clingo_propagate_init_add_literal(clingo_propagate_init_t * x0, _Bool x1, int32_t * x2)
11761 {
11762   return clingo_propagate_init_add_literal(x0, x1, x2);
11763 }
11764 #ifndef PYPY_VERSION
11765 static PyObject *
_cffi_f_clingo_propagate_init_add_literal(PyObject * self,PyObject * args)11766 _cffi_f_clingo_propagate_init_add_literal(PyObject *self, PyObject *args)
11767 {
11768   clingo_propagate_init_t * x0;
11769   _Bool x1;
11770   int32_t * x2;
11771   Py_ssize_t datasize;
11772   struct _cffi_freeme_s *large_args_free = NULL;
11773   _Bool result;
11774   PyObject *pyresult;
11775   PyObject *arg0;
11776   PyObject *arg1;
11777   PyObject *arg2;
11778 
11779   if (!PyArg_UnpackTuple(args, "clingo_propagate_init_add_literal", 3, 3, &arg0, &arg1, &arg2))
11780     return NULL;
11781 
11782   datasize = _cffi_prepare_pointer_call_argument(
11783       _cffi_type(645), arg0, (char **)&x0);
11784   if (datasize != 0) {
11785     x0 = ((size_t)datasize) <= 640 ? (clingo_propagate_init_t *)alloca((size_t)datasize) : NULL;
11786     if (_cffi_convert_array_argument(_cffi_type(645), arg0, (char **)&x0,
11787             datasize, &large_args_free) < 0)
11788       return NULL;
11789   }
11790 
11791   x1 = (_Bool)_cffi_to_c__Bool(arg1);
11792   if (x1 == (_Bool)-1 && PyErr_Occurred())
11793     return NULL;
11794 
11795   datasize = _cffi_prepare_pointer_call_argument(
11796       _cffi_type(118), arg2, (char **)&x2);
11797   if (datasize != 0) {
11798     x2 = ((size_t)datasize) <= 640 ? (int32_t *)alloca((size_t)datasize) : NULL;
11799     if (_cffi_convert_array_argument(_cffi_type(118), arg2, (char **)&x2,
11800             datasize, &large_args_free) < 0)
11801       return NULL;
11802   }
11803 
11804   Py_BEGIN_ALLOW_THREADS
11805   _cffi_restore_errno();
11806   { result = clingo_propagate_init_add_literal(x0, x1, x2); }
11807   _cffi_save_errno();
11808   Py_END_ALLOW_THREADS
11809 
11810   (void)self; /* unused */
11811   pyresult = _cffi_from_c__Bool(result);
11812   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
11813   return pyresult;
11814 }
11815 #else
11816 #  define _cffi_f_clingo_propagate_init_add_literal _cffi_d_clingo_propagate_init_add_literal
11817 #endif
11818 
_cffi_d_clingo_propagate_init_add_minimize(clingo_propagate_init_t * x0,int32_t x1,int32_t x2,int32_t x3)11819 static _Bool _cffi_d_clingo_propagate_init_add_minimize(clingo_propagate_init_t * x0, int32_t x1, int32_t x2, int32_t x3)
11820 {
11821   return clingo_propagate_init_add_minimize(x0, x1, x2, x3);
11822 }
11823 #ifndef PYPY_VERSION
11824 static PyObject *
_cffi_f_clingo_propagate_init_add_minimize(PyObject * self,PyObject * args)11825 _cffi_f_clingo_propagate_init_add_minimize(PyObject *self, PyObject *args)
11826 {
11827   clingo_propagate_init_t * x0;
11828   int32_t x1;
11829   int32_t x2;
11830   int32_t x3;
11831   Py_ssize_t datasize;
11832   struct _cffi_freeme_s *large_args_free = NULL;
11833   _Bool result;
11834   PyObject *pyresult;
11835   PyObject *arg0;
11836   PyObject *arg1;
11837   PyObject *arg2;
11838   PyObject *arg3;
11839 
11840   if (!PyArg_UnpackTuple(args, "clingo_propagate_init_add_minimize", 4, 4, &arg0, &arg1, &arg2, &arg3))
11841     return NULL;
11842 
11843   datasize = _cffi_prepare_pointer_call_argument(
11844       _cffi_type(645), arg0, (char **)&x0);
11845   if (datasize != 0) {
11846     x0 = ((size_t)datasize) <= 640 ? (clingo_propagate_init_t *)alloca((size_t)datasize) : NULL;
11847     if (_cffi_convert_array_argument(_cffi_type(645), arg0, (char **)&x0,
11848             datasize, &large_args_free) < 0)
11849       return NULL;
11850   }
11851 
11852   x1 = _cffi_to_c_int(arg1, int32_t);
11853   if (x1 == (int32_t)-1 && PyErr_Occurred())
11854     return NULL;
11855 
11856   x2 = _cffi_to_c_int(arg2, int32_t);
11857   if (x2 == (int32_t)-1 && PyErr_Occurred())
11858     return NULL;
11859 
11860   x3 = _cffi_to_c_int(arg3, int32_t);
11861   if (x3 == (int32_t)-1 && PyErr_Occurred())
11862     return NULL;
11863 
11864   Py_BEGIN_ALLOW_THREADS
11865   _cffi_restore_errno();
11866   { result = clingo_propagate_init_add_minimize(x0, x1, x2, x3); }
11867   _cffi_save_errno();
11868   Py_END_ALLOW_THREADS
11869 
11870   (void)self; /* unused */
11871   pyresult = _cffi_from_c__Bool(result);
11872   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
11873   return pyresult;
11874 }
11875 #else
11876 #  define _cffi_f_clingo_propagate_init_add_minimize _cffi_d_clingo_propagate_init_add_minimize
11877 #endif
11878 
_cffi_d_clingo_propagate_init_add_watch(clingo_propagate_init_t * x0,int32_t x1)11879 static _Bool _cffi_d_clingo_propagate_init_add_watch(clingo_propagate_init_t * x0, int32_t x1)
11880 {
11881   return clingo_propagate_init_add_watch(x0, x1);
11882 }
11883 #ifndef PYPY_VERSION
11884 static PyObject *
_cffi_f_clingo_propagate_init_add_watch(PyObject * self,PyObject * args)11885 _cffi_f_clingo_propagate_init_add_watch(PyObject *self, PyObject *args)
11886 {
11887   clingo_propagate_init_t * x0;
11888   int32_t x1;
11889   Py_ssize_t datasize;
11890   struct _cffi_freeme_s *large_args_free = NULL;
11891   _Bool result;
11892   PyObject *pyresult;
11893   PyObject *arg0;
11894   PyObject *arg1;
11895 
11896   if (!PyArg_UnpackTuple(args, "clingo_propagate_init_add_watch", 2, 2, &arg0, &arg1))
11897     return NULL;
11898 
11899   datasize = _cffi_prepare_pointer_call_argument(
11900       _cffi_type(645), arg0, (char **)&x0);
11901   if (datasize != 0) {
11902     x0 = ((size_t)datasize) <= 640 ? (clingo_propagate_init_t *)alloca((size_t)datasize) : NULL;
11903     if (_cffi_convert_array_argument(_cffi_type(645), arg0, (char **)&x0,
11904             datasize, &large_args_free) < 0)
11905       return NULL;
11906   }
11907 
11908   x1 = _cffi_to_c_int(arg1, int32_t);
11909   if (x1 == (int32_t)-1 && PyErr_Occurred())
11910     return NULL;
11911 
11912   Py_BEGIN_ALLOW_THREADS
11913   _cffi_restore_errno();
11914   { result = clingo_propagate_init_add_watch(x0, x1); }
11915   _cffi_save_errno();
11916   Py_END_ALLOW_THREADS
11917 
11918   (void)self; /* unused */
11919   pyresult = _cffi_from_c__Bool(result);
11920   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
11921   return pyresult;
11922 }
11923 #else
11924 #  define _cffi_f_clingo_propagate_init_add_watch _cffi_d_clingo_propagate_init_add_watch
11925 #endif
11926 
_cffi_d_clingo_propagate_init_add_watch_to_thread(clingo_propagate_init_t * x0,int32_t x1,uint32_t x2)11927 static _Bool _cffi_d_clingo_propagate_init_add_watch_to_thread(clingo_propagate_init_t * x0, int32_t x1, uint32_t x2)
11928 {
11929   return clingo_propagate_init_add_watch_to_thread(x0, x1, x2);
11930 }
11931 #ifndef PYPY_VERSION
11932 static PyObject *
_cffi_f_clingo_propagate_init_add_watch_to_thread(PyObject * self,PyObject * args)11933 _cffi_f_clingo_propagate_init_add_watch_to_thread(PyObject *self, PyObject *args)
11934 {
11935   clingo_propagate_init_t * x0;
11936   int32_t x1;
11937   uint32_t x2;
11938   Py_ssize_t datasize;
11939   struct _cffi_freeme_s *large_args_free = NULL;
11940   _Bool result;
11941   PyObject *pyresult;
11942   PyObject *arg0;
11943   PyObject *arg1;
11944   PyObject *arg2;
11945 
11946   if (!PyArg_UnpackTuple(args, "clingo_propagate_init_add_watch_to_thread", 3, 3, &arg0, &arg1, &arg2))
11947     return NULL;
11948 
11949   datasize = _cffi_prepare_pointer_call_argument(
11950       _cffi_type(645), arg0, (char **)&x0);
11951   if (datasize != 0) {
11952     x0 = ((size_t)datasize) <= 640 ? (clingo_propagate_init_t *)alloca((size_t)datasize) : NULL;
11953     if (_cffi_convert_array_argument(_cffi_type(645), arg0, (char **)&x0,
11954             datasize, &large_args_free) < 0)
11955       return NULL;
11956   }
11957 
11958   x1 = _cffi_to_c_int(arg1, int32_t);
11959   if (x1 == (int32_t)-1 && PyErr_Occurred())
11960     return NULL;
11961 
11962   x2 = _cffi_to_c_int(arg2, uint32_t);
11963   if (x2 == (uint32_t)-1 && PyErr_Occurred())
11964     return NULL;
11965 
11966   Py_BEGIN_ALLOW_THREADS
11967   _cffi_restore_errno();
11968   { result = clingo_propagate_init_add_watch_to_thread(x0, x1, x2); }
11969   _cffi_save_errno();
11970   Py_END_ALLOW_THREADS
11971 
11972   (void)self; /* unused */
11973   pyresult = _cffi_from_c__Bool(result);
11974   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
11975   return pyresult;
11976 }
11977 #else
11978 #  define _cffi_f_clingo_propagate_init_add_watch_to_thread _cffi_d_clingo_propagate_init_add_watch_to_thread
11979 #endif
11980 
_cffi_d_clingo_propagate_init_add_weight_constraint(clingo_propagate_init_t * x0,int32_t x1,clingo_weighted_literal_t const * x2,size_t x3,int32_t x4,int x5,_Bool x6,_Bool * x7)11981 static _Bool _cffi_d_clingo_propagate_init_add_weight_constraint(clingo_propagate_init_t * x0, int32_t x1, clingo_weighted_literal_t const * x2, size_t x3, int32_t x4, int x5, _Bool x6, _Bool * x7)
11982 {
11983   return clingo_propagate_init_add_weight_constraint(x0, x1, x2, x3, x4, x5, x6, x7);
11984 }
11985 #ifndef PYPY_VERSION
11986 static PyObject *
_cffi_f_clingo_propagate_init_add_weight_constraint(PyObject * self,PyObject * args)11987 _cffi_f_clingo_propagate_init_add_weight_constraint(PyObject *self, PyObject *args)
11988 {
11989   clingo_propagate_init_t * x0;
11990   int32_t x1;
11991   clingo_weighted_literal_t const * x2;
11992   size_t x3;
11993   int32_t x4;
11994   int x5;
11995   _Bool x6;
11996   _Bool * x7;
11997   Py_ssize_t datasize;
11998   struct _cffi_freeme_s *large_args_free = NULL;
11999   _Bool result;
12000   PyObject *pyresult;
12001   PyObject *arg0;
12002   PyObject *arg1;
12003   PyObject *arg2;
12004   PyObject *arg3;
12005   PyObject *arg4;
12006   PyObject *arg5;
12007   PyObject *arg6;
12008   PyObject *arg7;
12009 
12010   if (!PyArg_UnpackTuple(args, "clingo_propagate_init_add_weight_constraint", 8, 8, &arg0, &arg1, &arg2, &arg3, &arg4, &arg5, &arg6, &arg7))
12011     return NULL;
12012 
12013   datasize = _cffi_prepare_pointer_call_argument(
12014       _cffi_type(645), arg0, (char **)&x0);
12015   if (datasize != 0) {
12016     x0 = ((size_t)datasize) <= 640 ? (clingo_propagate_init_t *)alloca((size_t)datasize) : NULL;
12017     if (_cffi_convert_array_argument(_cffi_type(645), arg0, (char **)&x0,
12018             datasize, &large_args_free) < 0)
12019       return NULL;
12020   }
12021 
12022   x1 = _cffi_to_c_int(arg1, int32_t);
12023   if (x1 == (int32_t)-1 && PyErr_Occurred())
12024     return NULL;
12025 
12026   datasize = _cffi_prepare_pointer_call_argument(
12027       _cffi_type(13), arg2, (char **)&x2);
12028   if (datasize != 0) {
12029     x2 = ((size_t)datasize) <= 640 ? (clingo_weighted_literal_t const *)alloca((size_t)datasize) : NULL;
12030     if (_cffi_convert_array_argument(_cffi_type(13), arg2, (char **)&x2,
12031             datasize, &large_args_free) < 0)
12032       return NULL;
12033   }
12034 
12035   x3 = _cffi_to_c_int(arg3, size_t);
12036   if (x3 == (size_t)-1 && PyErr_Occurred())
12037     return NULL;
12038 
12039   x4 = _cffi_to_c_int(arg4, int32_t);
12040   if (x4 == (int32_t)-1 && PyErr_Occurred())
12041     return NULL;
12042 
12043   x5 = _cffi_to_c_int(arg5, int);
12044   if (x5 == (int)-1 && PyErr_Occurred())
12045     return NULL;
12046 
12047   x6 = (_Bool)_cffi_to_c__Bool(arg6);
12048   if (x6 == (_Bool)-1 && PyErr_Occurred())
12049     return NULL;
12050 
12051   datasize = _cffi_prepare_pointer_call_argument(
12052       _cffi_type(40), arg7, (char **)&x7);
12053   if (datasize != 0) {
12054     x7 = ((size_t)datasize) <= 640 ? (_Bool *)alloca((size_t)datasize) : NULL;
12055     if (_cffi_convert_array_argument(_cffi_type(40), arg7, (char **)&x7,
12056             datasize, &large_args_free) < 0)
12057       return NULL;
12058   }
12059 
12060   Py_BEGIN_ALLOW_THREADS
12061   _cffi_restore_errno();
12062   { result = clingo_propagate_init_add_weight_constraint(x0, x1, x2, x3, x4, x5, x6, x7); }
12063   _cffi_save_errno();
12064   Py_END_ALLOW_THREADS
12065 
12066   (void)self; /* unused */
12067   pyresult = _cffi_from_c__Bool(result);
12068   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
12069   return pyresult;
12070 }
12071 #else
12072 #  define _cffi_f_clingo_propagate_init_add_weight_constraint _cffi_d_clingo_propagate_init_add_weight_constraint
12073 #endif
12074 
_cffi_d_clingo_propagate_init_assignment(clingo_propagate_init_t const * x0)12075 static clingo_assignment_t const * _cffi_d_clingo_propagate_init_assignment(clingo_propagate_init_t const * x0)
12076 {
12077   return clingo_propagate_init_assignment(x0);
12078 }
12079 #ifndef PYPY_VERSION
12080 static PyObject *
_cffi_f_clingo_propagate_init_assignment(PyObject * self,PyObject * arg0)12081 _cffi_f_clingo_propagate_init_assignment(PyObject *self, PyObject *arg0)
12082 {
12083   clingo_propagate_init_t const * x0;
12084   Py_ssize_t datasize;
12085   struct _cffi_freeme_s *large_args_free = NULL;
12086   clingo_assignment_t const * result;
12087   PyObject *pyresult;
12088 
12089   datasize = _cffi_prepare_pointer_call_argument(
12090       _cffi_type(689), arg0, (char **)&x0);
12091   if (datasize != 0) {
12092     x0 = ((size_t)datasize) <= 640 ? (clingo_propagate_init_t const *)alloca((size_t)datasize) : NULL;
12093     if (_cffi_convert_array_argument(_cffi_type(689), arg0, (char **)&x0,
12094             datasize, &large_args_free) < 0)
12095       return NULL;
12096   }
12097 
12098   Py_BEGIN_ALLOW_THREADS
12099   _cffi_restore_errno();
12100   { result = clingo_propagate_init_assignment(x0); }
12101   _cffi_save_errno();
12102   Py_END_ALLOW_THREADS
12103 
12104   (void)self; /* unused */
12105   pyresult = _cffi_from_c_pointer((char *)result, _cffi_type(94));
12106   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
12107   return pyresult;
12108 }
12109 #else
12110 #  define _cffi_f_clingo_propagate_init_assignment _cffi_d_clingo_propagate_init_assignment
12111 #endif
12112 
_cffi_d_clingo_propagate_init_freeze_literal(clingo_propagate_init_t * x0,int32_t x1)12113 static _Bool _cffi_d_clingo_propagate_init_freeze_literal(clingo_propagate_init_t * x0, int32_t x1)
12114 {
12115   return clingo_propagate_init_freeze_literal(x0, x1);
12116 }
12117 #ifndef PYPY_VERSION
12118 static PyObject *
_cffi_f_clingo_propagate_init_freeze_literal(PyObject * self,PyObject * args)12119 _cffi_f_clingo_propagate_init_freeze_literal(PyObject *self, PyObject *args)
12120 {
12121   clingo_propagate_init_t * x0;
12122   int32_t x1;
12123   Py_ssize_t datasize;
12124   struct _cffi_freeme_s *large_args_free = NULL;
12125   _Bool result;
12126   PyObject *pyresult;
12127   PyObject *arg0;
12128   PyObject *arg1;
12129 
12130   if (!PyArg_UnpackTuple(args, "clingo_propagate_init_freeze_literal", 2, 2, &arg0, &arg1))
12131     return NULL;
12132 
12133   datasize = _cffi_prepare_pointer_call_argument(
12134       _cffi_type(645), arg0, (char **)&x0);
12135   if (datasize != 0) {
12136     x0 = ((size_t)datasize) <= 640 ? (clingo_propagate_init_t *)alloca((size_t)datasize) : NULL;
12137     if (_cffi_convert_array_argument(_cffi_type(645), arg0, (char **)&x0,
12138             datasize, &large_args_free) < 0)
12139       return NULL;
12140   }
12141 
12142   x1 = _cffi_to_c_int(arg1, int32_t);
12143   if (x1 == (int32_t)-1 && PyErr_Occurred())
12144     return NULL;
12145 
12146   Py_BEGIN_ALLOW_THREADS
12147   _cffi_restore_errno();
12148   { result = clingo_propagate_init_freeze_literal(x0, x1); }
12149   _cffi_save_errno();
12150   Py_END_ALLOW_THREADS
12151 
12152   (void)self; /* unused */
12153   pyresult = _cffi_from_c__Bool(result);
12154   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
12155   return pyresult;
12156 }
12157 #else
12158 #  define _cffi_f_clingo_propagate_init_freeze_literal _cffi_d_clingo_propagate_init_freeze_literal
12159 #endif
12160 
_cffi_d_clingo_propagate_init_get_check_mode(clingo_propagate_init_t const * x0)12161 static int _cffi_d_clingo_propagate_init_get_check_mode(clingo_propagate_init_t const * x0)
12162 {
12163   return clingo_propagate_init_get_check_mode(x0);
12164 }
12165 #ifndef PYPY_VERSION
12166 static PyObject *
_cffi_f_clingo_propagate_init_get_check_mode(PyObject * self,PyObject * arg0)12167 _cffi_f_clingo_propagate_init_get_check_mode(PyObject *self, PyObject *arg0)
12168 {
12169   clingo_propagate_init_t const * x0;
12170   Py_ssize_t datasize;
12171   struct _cffi_freeme_s *large_args_free = NULL;
12172   int result;
12173   PyObject *pyresult;
12174 
12175   datasize = _cffi_prepare_pointer_call_argument(
12176       _cffi_type(689), arg0, (char **)&x0);
12177   if (datasize != 0) {
12178     x0 = ((size_t)datasize) <= 640 ? (clingo_propagate_init_t const *)alloca((size_t)datasize) : NULL;
12179     if (_cffi_convert_array_argument(_cffi_type(689), arg0, (char **)&x0,
12180             datasize, &large_args_free) < 0)
12181       return NULL;
12182   }
12183 
12184   Py_BEGIN_ALLOW_THREADS
12185   _cffi_restore_errno();
12186   { result = clingo_propagate_init_get_check_mode(x0); }
12187   _cffi_save_errno();
12188   Py_END_ALLOW_THREADS
12189 
12190   (void)self; /* unused */
12191   pyresult = _cffi_from_c_int(result, int);
12192   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
12193   return pyresult;
12194 }
12195 #else
12196 #  define _cffi_f_clingo_propagate_init_get_check_mode _cffi_d_clingo_propagate_init_get_check_mode
12197 #endif
12198 
_cffi_d_clingo_propagate_init_number_of_threads(clingo_propagate_init_t const * x0)12199 static int _cffi_d_clingo_propagate_init_number_of_threads(clingo_propagate_init_t const * x0)
12200 {
12201   return clingo_propagate_init_number_of_threads(x0);
12202 }
12203 #ifndef PYPY_VERSION
12204 static PyObject *
_cffi_f_clingo_propagate_init_number_of_threads(PyObject * self,PyObject * arg0)12205 _cffi_f_clingo_propagate_init_number_of_threads(PyObject *self, PyObject *arg0)
12206 {
12207   clingo_propagate_init_t const * x0;
12208   Py_ssize_t datasize;
12209   struct _cffi_freeme_s *large_args_free = NULL;
12210   int result;
12211   PyObject *pyresult;
12212 
12213   datasize = _cffi_prepare_pointer_call_argument(
12214       _cffi_type(689), arg0, (char **)&x0);
12215   if (datasize != 0) {
12216     x0 = ((size_t)datasize) <= 640 ? (clingo_propagate_init_t const *)alloca((size_t)datasize) : NULL;
12217     if (_cffi_convert_array_argument(_cffi_type(689), arg0, (char **)&x0,
12218             datasize, &large_args_free) < 0)
12219       return NULL;
12220   }
12221 
12222   Py_BEGIN_ALLOW_THREADS
12223   _cffi_restore_errno();
12224   { result = clingo_propagate_init_number_of_threads(x0); }
12225   _cffi_save_errno();
12226   Py_END_ALLOW_THREADS
12227 
12228   (void)self; /* unused */
12229   pyresult = _cffi_from_c_int(result, int);
12230   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
12231   return pyresult;
12232 }
12233 #else
12234 #  define _cffi_f_clingo_propagate_init_number_of_threads _cffi_d_clingo_propagate_init_number_of_threads
12235 #endif
12236 
_cffi_d_clingo_propagate_init_propagate(clingo_propagate_init_t * x0,_Bool * x1)12237 static _Bool _cffi_d_clingo_propagate_init_propagate(clingo_propagate_init_t * x0, _Bool * x1)
12238 {
12239   return clingo_propagate_init_propagate(x0, x1);
12240 }
12241 #ifndef PYPY_VERSION
12242 static PyObject *
_cffi_f_clingo_propagate_init_propagate(PyObject * self,PyObject * args)12243 _cffi_f_clingo_propagate_init_propagate(PyObject *self, PyObject *args)
12244 {
12245   clingo_propagate_init_t * x0;
12246   _Bool * x1;
12247   Py_ssize_t datasize;
12248   struct _cffi_freeme_s *large_args_free = NULL;
12249   _Bool result;
12250   PyObject *pyresult;
12251   PyObject *arg0;
12252   PyObject *arg1;
12253 
12254   if (!PyArg_UnpackTuple(args, "clingo_propagate_init_propagate", 2, 2, &arg0, &arg1))
12255     return NULL;
12256 
12257   datasize = _cffi_prepare_pointer_call_argument(
12258       _cffi_type(645), arg0, (char **)&x0);
12259   if (datasize != 0) {
12260     x0 = ((size_t)datasize) <= 640 ? (clingo_propagate_init_t *)alloca((size_t)datasize) : NULL;
12261     if (_cffi_convert_array_argument(_cffi_type(645), arg0, (char **)&x0,
12262             datasize, &large_args_free) < 0)
12263       return NULL;
12264   }
12265 
12266   datasize = _cffi_prepare_pointer_call_argument(
12267       _cffi_type(40), arg1, (char **)&x1);
12268   if (datasize != 0) {
12269     x1 = ((size_t)datasize) <= 640 ? (_Bool *)alloca((size_t)datasize) : NULL;
12270     if (_cffi_convert_array_argument(_cffi_type(40), arg1, (char **)&x1,
12271             datasize, &large_args_free) < 0)
12272       return NULL;
12273   }
12274 
12275   Py_BEGIN_ALLOW_THREADS
12276   _cffi_restore_errno();
12277   { result = clingo_propagate_init_propagate(x0, x1); }
12278   _cffi_save_errno();
12279   Py_END_ALLOW_THREADS
12280 
12281   (void)self; /* unused */
12282   pyresult = _cffi_from_c__Bool(result);
12283   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
12284   return pyresult;
12285 }
12286 #else
12287 #  define _cffi_f_clingo_propagate_init_propagate _cffi_d_clingo_propagate_init_propagate
12288 #endif
12289 
_cffi_d_clingo_propagate_init_remove_watch(clingo_propagate_init_t * x0,int32_t x1)12290 static _Bool _cffi_d_clingo_propagate_init_remove_watch(clingo_propagate_init_t * x0, int32_t x1)
12291 {
12292   return clingo_propagate_init_remove_watch(x0, x1);
12293 }
12294 #ifndef PYPY_VERSION
12295 static PyObject *
_cffi_f_clingo_propagate_init_remove_watch(PyObject * self,PyObject * args)12296 _cffi_f_clingo_propagate_init_remove_watch(PyObject *self, PyObject *args)
12297 {
12298   clingo_propagate_init_t * x0;
12299   int32_t x1;
12300   Py_ssize_t datasize;
12301   struct _cffi_freeme_s *large_args_free = NULL;
12302   _Bool result;
12303   PyObject *pyresult;
12304   PyObject *arg0;
12305   PyObject *arg1;
12306 
12307   if (!PyArg_UnpackTuple(args, "clingo_propagate_init_remove_watch", 2, 2, &arg0, &arg1))
12308     return NULL;
12309 
12310   datasize = _cffi_prepare_pointer_call_argument(
12311       _cffi_type(645), arg0, (char **)&x0);
12312   if (datasize != 0) {
12313     x0 = ((size_t)datasize) <= 640 ? (clingo_propagate_init_t *)alloca((size_t)datasize) : NULL;
12314     if (_cffi_convert_array_argument(_cffi_type(645), arg0, (char **)&x0,
12315             datasize, &large_args_free) < 0)
12316       return NULL;
12317   }
12318 
12319   x1 = _cffi_to_c_int(arg1, int32_t);
12320   if (x1 == (int32_t)-1 && PyErr_Occurred())
12321     return NULL;
12322 
12323   Py_BEGIN_ALLOW_THREADS
12324   _cffi_restore_errno();
12325   { result = clingo_propagate_init_remove_watch(x0, x1); }
12326   _cffi_save_errno();
12327   Py_END_ALLOW_THREADS
12328 
12329   (void)self; /* unused */
12330   pyresult = _cffi_from_c__Bool(result);
12331   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
12332   return pyresult;
12333 }
12334 #else
12335 #  define _cffi_f_clingo_propagate_init_remove_watch _cffi_d_clingo_propagate_init_remove_watch
12336 #endif
12337 
_cffi_d_clingo_propagate_init_remove_watch_from_thread(clingo_propagate_init_t * x0,int32_t x1,uint32_t x2)12338 static _Bool _cffi_d_clingo_propagate_init_remove_watch_from_thread(clingo_propagate_init_t * x0, int32_t x1, uint32_t x2)
12339 {
12340   return clingo_propagate_init_remove_watch_from_thread(x0, x1, x2);
12341 }
12342 #ifndef PYPY_VERSION
12343 static PyObject *
_cffi_f_clingo_propagate_init_remove_watch_from_thread(PyObject * self,PyObject * args)12344 _cffi_f_clingo_propagate_init_remove_watch_from_thread(PyObject *self, PyObject *args)
12345 {
12346   clingo_propagate_init_t * x0;
12347   int32_t x1;
12348   uint32_t x2;
12349   Py_ssize_t datasize;
12350   struct _cffi_freeme_s *large_args_free = NULL;
12351   _Bool result;
12352   PyObject *pyresult;
12353   PyObject *arg0;
12354   PyObject *arg1;
12355   PyObject *arg2;
12356 
12357   if (!PyArg_UnpackTuple(args, "clingo_propagate_init_remove_watch_from_thread", 3, 3, &arg0, &arg1, &arg2))
12358     return NULL;
12359 
12360   datasize = _cffi_prepare_pointer_call_argument(
12361       _cffi_type(645), arg0, (char **)&x0);
12362   if (datasize != 0) {
12363     x0 = ((size_t)datasize) <= 640 ? (clingo_propagate_init_t *)alloca((size_t)datasize) : NULL;
12364     if (_cffi_convert_array_argument(_cffi_type(645), arg0, (char **)&x0,
12365             datasize, &large_args_free) < 0)
12366       return NULL;
12367   }
12368 
12369   x1 = _cffi_to_c_int(arg1, int32_t);
12370   if (x1 == (int32_t)-1 && PyErr_Occurred())
12371     return NULL;
12372 
12373   x2 = _cffi_to_c_int(arg2, uint32_t);
12374   if (x2 == (uint32_t)-1 && PyErr_Occurred())
12375     return NULL;
12376 
12377   Py_BEGIN_ALLOW_THREADS
12378   _cffi_restore_errno();
12379   { result = clingo_propagate_init_remove_watch_from_thread(x0, x1, x2); }
12380   _cffi_save_errno();
12381   Py_END_ALLOW_THREADS
12382 
12383   (void)self; /* unused */
12384   pyresult = _cffi_from_c__Bool(result);
12385   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
12386   return pyresult;
12387 }
12388 #else
12389 #  define _cffi_f_clingo_propagate_init_remove_watch_from_thread _cffi_d_clingo_propagate_init_remove_watch_from_thread
12390 #endif
12391 
_cffi_d_clingo_propagate_init_set_check_mode(clingo_propagate_init_t * x0,int x1)12392 static void _cffi_d_clingo_propagate_init_set_check_mode(clingo_propagate_init_t * x0, int x1)
12393 {
12394   clingo_propagate_init_set_check_mode(x0, x1);
12395 }
12396 #ifndef PYPY_VERSION
12397 static PyObject *
_cffi_f_clingo_propagate_init_set_check_mode(PyObject * self,PyObject * args)12398 _cffi_f_clingo_propagate_init_set_check_mode(PyObject *self, PyObject *args)
12399 {
12400   clingo_propagate_init_t * x0;
12401   int x1;
12402   Py_ssize_t datasize;
12403   struct _cffi_freeme_s *large_args_free = NULL;
12404   PyObject *arg0;
12405   PyObject *arg1;
12406 
12407   if (!PyArg_UnpackTuple(args, "clingo_propagate_init_set_check_mode", 2, 2, &arg0, &arg1))
12408     return NULL;
12409 
12410   datasize = _cffi_prepare_pointer_call_argument(
12411       _cffi_type(645), arg0, (char **)&x0);
12412   if (datasize != 0) {
12413     x0 = ((size_t)datasize) <= 640 ? (clingo_propagate_init_t *)alloca((size_t)datasize) : NULL;
12414     if (_cffi_convert_array_argument(_cffi_type(645), arg0, (char **)&x0,
12415             datasize, &large_args_free) < 0)
12416       return NULL;
12417   }
12418 
12419   x1 = _cffi_to_c_int(arg1, int);
12420   if (x1 == (int)-1 && PyErr_Occurred())
12421     return NULL;
12422 
12423   Py_BEGIN_ALLOW_THREADS
12424   _cffi_restore_errno();
12425   { clingo_propagate_init_set_check_mode(x0, x1); }
12426   _cffi_save_errno();
12427   Py_END_ALLOW_THREADS
12428 
12429   (void)self; /* unused */
12430   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
12431   Py_INCREF(Py_None);
12432   return Py_None;
12433 }
12434 #else
12435 #  define _cffi_f_clingo_propagate_init_set_check_mode _cffi_d_clingo_propagate_init_set_check_mode
12436 #endif
12437 
_cffi_d_clingo_propagate_init_solver_literal(clingo_propagate_init_t const * x0,int32_t x1,int32_t * x2)12438 static _Bool _cffi_d_clingo_propagate_init_solver_literal(clingo_propagate_init_t const * x0, int32_t x1, int32_t * x2)
12439 {
12440   return clingo_propagate_init_solver_literal(x0, x1, x2);
12441 }
12442 #ifndef PYPY_VERSION
12443 static PyObject *
_cffi_f_clingo_propagate_init_solver_literal(PyObject * self,PyObject * args)12444 _cffi_f_clingo_propagate_init_solver_literal(PyObject *self, PyObject *args)
12445 {
12446   clingo_propagate_init_t const * x0;
12447   int32_t x1;
12448   int32_t * x2;
12449   Py_ssize_t datasize;
12450   struct _cffi_freeme_s *large_args_free = NULL;
12451   _Bool result;
12452   PyObject *pyresult;
12453   PyObject *arg0;
12454   PyObject *arg1;
12455   PyObject *arg2;
12456 
12457   if (!PyArg_UnpackTuple(args, "clingo_propagate_init_solver_literal", 3, 3, &arg0, &arg1, &arg2))
12458     return NULL;
12459 
12460   datasize = _cffi_prepare_pointer_call_argument(
12461       _cffi_type(689), arg0, (char **)&x0);
12462   if (datasize != 0) {
12463     x0 = ((size_t)datasize) <= 640 ? (clingo_propagate_init_t const *)alloca((size_t)datasize) : NULL;
12464     if (_cffi_convert_array_argument(_cffi_type(689), arg0, (char **)&x0,
12465             datasize, &large_args_free) < 0)
12466       return NULL;
12467   }
12468 
12469   x1 = _cffi_to_c_int(arg1, int32_t);
12470   if (x1 == (int32_t)-1 && PyErr_Occurred())
12471     return NULL;
12472 
12473   datasize = _cffi_prepare_pointer_call_argument(
12474       _cffi_type(118), arg2, (char **)&x2);
12475   if (datasize != 0) {
12476     x2 = ((size_t)datasize) <= 640 ? (int32_t *)alloca((size_t)datasize) : NULL;
12477     if (_cffi_convert_array_argument(_cffi_type(118), arg2, (char **)&x2,
12478             datasize, &large_args_free) < 0)
12479       return NULL;
12480   }
12481 
12482   Py_BEGIN_ALLOW_THREADS
12483   _cffi_restore_errno();
12484   { result = clingo_propagate_init_solver_literal(x0, x1, x2); }
12485   _cffi_save_errno();
12486   Py_END_ALLOW_THREADS
12487 
12488   (void)self; /* unused */
12489   pyresult = _cffi_from_c__Bool(result);
12490   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
12491   return pyresult;
12492 }
12493 #else
12494 #  define _cffi_f_clingo_propagate_init_solver_literal _cffi_d_clingo_propagate_init_solver_literal
12495 #endif
12496 
_cffi_d_clingo_propagate_init_symbolic_atoms(clingo_propagate_init_t const * x0,clingo_symbolic_atoms_t const ** x1)12497 static _Bool _cffi_d_clingo_propagate_init_symbolic_atoms(clingo_propagate_init_t const * x0, clingo_symbolic_atoms_t const * * x1)
12498 {
12499   return clingo_propagate_init_symbolic_atoms(x0, x1);
12500 }
12501 #ifndef PYPY_VERSION
12502 static PyObject *
_cffi_f_clingo_propagate_init_symbolic_atoms(PyObject * self,PyObject * args)12503 _cffi_f_clingo_propagate_init_symbolic_atoms(PyObject *self, PyObject *args)
12504 {
12505   clingo_propagate_init_t const * x0;
12506   clingo_symbolic_atoms_t const * * x1;
12507   Py_ssize_t datasize;
12508   struct _cffi_freeme_s *large_args_free = NULL;
12509   _Bool result;
12510   PyObject *pyresult;
12511   PyObject *arg0;
12512   PyObject *arg1;
12513 
12514   if (!PyArg_UnpackTuple(args, "clingo_propagate_init_symbolic_atoms", 2, 2, &arg0, &arg1))
12515     return NULL;
12516 
12517   datasize = _cffi_prepare_pointer_call_argument(
12518       _cffi_type(689), arg0, (char **)&x0);
12519   if (datasize != 0) {
12520     x0 = ((size_t)datasize) <= 640 ? (clingo_propagate_init_t const *)alloca((size_t)datasize) : NULL;
12521     if (_cffi_convert_array_argument(_cffi_type(689), arg0, (char **)&x0,
12522             datasize, &large_args_free) < 0)
12523       return NULL;
12524   }
12525 
12526   datasize = _cffi_prepare_pointer_call_argument(
12527       _cffi_type(479), arg1, (char **)&x1);
12528   if (datasize != 0) {
12529     x1 = ((size_t)datasize) <= 640 ? (clingo_symbolic_atoms_t const * *)alloca((size_t)datasize) : NULL;
12530     if (_cffi_convert_array_argument(_cffi_type(479), arg1, (char **)&x1,
12531             datasize, &large_args_free) < 0)
12532       return NULL;
12533   }
12534 
12535   Py_BEGIN_ALLOW_THREADS
12536   _cffi_restore_errno();
12537   { result = clingo_propagate_init_symbolic_atoms(x0, x1); }
12538   _cffi_save_errno();
12539   Py_END_ALLOW_THREADS
12540 
12541   (void)self; /* unused */
12542   pyresult = _cffi_from_c__Bool(result);
12543   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
12544   return pyresult;
12545 }
12546 #else
12547 #  define _cffi_f_clingo_propagate_init_symbolic_atoms _cffi_d_clingo_propagate_init_symbolic_atoms
12548 #endif
12549 
_cffi_d_clingo_propagate_init_theory_atoms(clingo_propagate_init_t const * x0,clingo_theory_atoms_t const ** x1)12550 static _Bool _cffi_d_clingo_propagate_init_theory_atoms(clingo_propagate_init_t const * x0, clingo_theory_atoms_t const * * x1)
12551 {
12552   return clingo_propagate_init_theory_atoms(x0, x1);
12553 }
12554 #ifndef PYPY_VERSION
12555 static PyObject *
_cffi_f_clingo_propagate_init_theory_atoms(PyObject * self,PyObject * args)12556 _cffi_f_clingo_propagate_init_theory_atoms(PyObject *self, PyObject *args)
12557 {
12558   clingo_propagate_init_t const * x0;
12559   clingo_theory_atoms_t const * * x1;
12560   Py_ssize_t datasize;
12561   struct _cffi_freeme_s *large_args_free = NULL;
12562   _Bool result;
12563   PyObject *pyresult;
12564   PyObject *arg0;
12565   PyObject *arg1;
12566 
12567   if (!PyArg_UnpackTuple(args, "clingo_propagate_init_theory_atoms", 2, 2, &arg0, &arg1))
12568     return NULL;
12569 
12570   datasize = _cffi_prepare_pointer_call_argument(
12571       _cffi_type(689), arg0, (char **)&x0);
12572   if (datasize != 0) {
12573     x0 = ((size_t)datasize) <= 640 ? (clingo_propagate_init_t const *)alloca((size_t)datasize) : NULL;
12574     if (_cffi_convert_array_argument(_cffi_type(689), arg0, (char **)&x0,
12575             datasize, &large_args_free) < 0)
12576       return NULL;
12577   }
12578 
12579   datasize = _cffi_prepare_pointer_call_argument(
12580       _cffi_type(483), arg1, (char **)&x1);
12581   if (datasize != 0) {
12582     x1 = ((size_t)datasize) <= 640 ? (clingo_theory_atoms_t const * *)alloca((size_t)datasize) : NULL;
12583     if (_cffi_convert_array_argument(_cffi_type(483), arg1, (char **)&x1,
12584             datasize, &large_args_free) < 0)
12585       return NULL;
12586   }
12587 
12588   Py_BEGIN_ALLOW_THREADS
12589   _cffi_restore_errno();
12590   { result = clingo_propagate_init_theory_atoms(x0, x1); }
12591   _cffi_save_errno();
12592   Py_END_ALLOW_THREADS
12593 
12594   (void)self; /* unused */
12595   pyresult = _cffi_from_c__Bool(result);
12596   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
12597   return pyresult;
12598 }
12599 #else
12600 #  define _cffi_f_clingo_propagate_init_theory_atoms _cffi_d_clingo_propagate_init_theory_atoms
12601 #endif
12602 
_cffi_d_clingo_register_script(char const * x0,clingo_script_t const * x1,void * x2)12603 static _Bool _cffi_d_clingo_register_script(char const * x0, clingo_script_t const * x1, void * x2)
12604 {
12605   return clingo_register_script(x0, x1, x2);
12606 }
12607 #ifndef PYPY_VERSION
12608 static PyObject *
_cffi_f_clingo_register_script(PyObject * self,PyObject * args)12609 _cffi_f_clingo_register_script(PyObject *self, PyObject *args)
12610 {
12611   char const * x0;
12612   clingo_script_t const * x1;
12613   void * x2;
12614   Py_ssize_t datasize;
12615   struct _cffi_freeme_s *large_args_free = NULL;
12616   _Bool result;
12617   PyObject *pyresult;
12618   PyObject *arg0;
12619   PyObject *arg1;
12620   PyObject *arg2;
12621 
12622   if (!PyArg_UnpackTuple(args, "clingo_register_script", 3, 3, &arg0, &arg1, &arg2))
12623     return NULL;
12624 
12625   datasize = _cffi_prepare_pointer_call_argument(
12626       _cffi_type(39), arg0, (char **)&x0);
12627   if (datasize != 0) {
12628     x0 = ((size_t)datasize) <= 640 ? (char const *)alloca((size_t)datasize) : NULL;
12629     if (_cffi_convert_array_argument(_cffi_type(39), arg0, (char **)&x0,
12630             datasize, &large_args_free) < 0)
12631       return NULL;
12632   }
12633 
12634   datasize = _cffi_prepare_pointer_call_argument(
12635       _cffi_type(62), arg1, (char **)&x1);
12636   if (datasize != 0) {
12637     x1 = ((size_t)datasize) <= 640 ? (clingo_script_t const *)alloca((size_t)datasize) : NULL;
12638     if (_cffi_convert_array_argument(_cffi_type(62), arg1, (char **)&x1,
12639             datasize, &large_args_free) < 0)
12640       return NULL;
12641   }
12642 
12643   datasize = _cffi_prepare_pointer_call_argument(
12644       _cffi_type(6), arg2, (char **)&x2);
12645   if (datasize != 0) {
12646     x2 = ((size_t)datasize) <= 640 ? (void *)alloca((size_t)datasize) : NULL;
12647     if (_cffi_convert_array_argument(_cffi_type(6), arg2, (char **)&x2,
12648             datasize, &large_args_free) < 0)
12649       return NULL;
12650   }
12651 
12652   Py_BEGIN_ALLOW_THREADS
12653   _cffi_restore_errno();
12654   { result = clingo_register_script(x0, x1, x2); }
12655   _cffi_save_errno();
12656   Py_END_ALLOW_THREADS
12657 
12658   (void)self; /* unused */
12659   pyresult = _cffi_from_c__Bool(result);
12660   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
12661   return pyresult;
12662 }
12663 #else
12664 #  define _cffi_f_clingo_register_script _cffi_d_clingo_register_script
12665 #endif
12666 
_cffi_d_clingo_script_version(char const * x0)12667 static char const * _cffi_d_clingo_script_version(char const * x0)
12668 {
12669   return clingo_script_version(x0);
12670 }
12671 #ifndef PYPY_VERSION
12672 static PyObject *
_cffi_f_clingo_script_version(PyObject * self,PyObject * arg0)12673 _cffi_f_clingo_script_version(PyObject *self, PyObject *arg0)
12674 {
12675   char const * x0;
12676   Py_ssize_t datasize;
12677   struct _cffi_freeme_s *large_args_free = NULL;
12678   char const * result;
12679   PyObject *pyresult;
12680 
12681   datasize = _cffi_prepare_pointer_call_argument(
12682       _cffi_type(39), arg0, (char **)&x0);
12683   if (datasize != 0) {
12684     x0 = ((size_t)datasize) <= 640 ? (char const *)alloca((size_t)datasize) : NULL;
12685     if (_cffi_convert_array_argument(_cffi_type(39), arg0, (char **)&x0,
12686             datasize, &large_args_free) < 0)
12687       return NULL;
12688   }
12689 
12690   Py_BEGIN_ALLOW_THREADS
12691   _cffi_restore_errno();
12692   { result = clingo_script_version(x0); }
12693   _cffi_save_errno();
12694   Py_END_ALLOW_THREADS
12695 
12696   (void)self; /* unused */
12697   pyresult = _cffi_from_c_pointer((char *)result, _cffi_type(39));
12698   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
12699   return pyresult;
12700 }
12701 #else
12702 #  define _cffi_f_clingo_script_version _cffi_d_clingo_script_version
12703 #endif
12704 
_cffi_d_clingo_set_error(int x0,char const * x1)12705 static void _cffi_d_clingo_set_error(int x0, char const * x1)
12706 {
12707   clingo_set_error(x0, x1);
12708 }
12709 #ifndef PYPY_VERSION
12710 static PyObject *
_cffi_f_clingo_set_error(PyObject * self,PyObject * args)12711 _cffi_f_clingo_set_error(PyObject *self, PyObject *args)
12712 {
12713   int x0;
12714   char const * x1;
12715   Py_ssize_t datasize;
12716   struct _cffi_freeme_s *large_args_free = NULL;
12717   PyObject *arg0;
12718   PyObject *arg1;
12719 
12720   if (!PyArg_UnpackTuple(args, "clingo_set_error", 2, 2, &arg0, &arg1))
12721     return NULL;
12722 
12723   x0 = _cffi_to_c_int(arg0, int);
12724   if (x0 == (int)-1 && PyErr_Occurred())
12725     return NULL;
12726 
12727   datasize = _cffi_prepare_pointer_call_argument(
12728       _cffi_type(39), arg1, (char **)&x1);
12729   if (datasize != 0) {
12730     x1 = ((size_t)datasize) <= 640 ? (char const *)alloca((size_t)datasize) : NULL;
12731     if (_cffi_convert_array_argument(_cffi_type(39), arg1, (char **)&x1,
12732             datasize, &large_args_free) < 0)
12733       return NULL;
12734   }
12735 
12736   Py_BEGIN_ALLOW_THREADS
12737   _cffi_restore_errno();
12738   { clingo_set_error(x0, x1); }
12739   _cffi_save_errno();
12740   Py_END_ALLOW_THREADS
12741 
12742   (void)self; /* unused */
12743   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
12744   Py_INCREF(Py_None);
12745   return Py_None;
12746 }
12747 #else
12748 #  define _cffi_f_clingo_set_error _cffi_d_clingo_set_error
12749 #endif
12750 
_cffi_d_clingo_signature_arity(uint64_t x0)12751 static uint32_t _cffi_d_clingo_signature_arity(uint64_t x0)
12752 {
12753   return clingo_signature_arity(x0);
12754 }
12755 #ifndef PYPY_VERSION
12756 static PyObject *
_cffi_f_clingo_signature_arity(PyObject * self,PyObject * arg0)12757 _cffi_f_clingo_signature_arity(PyObject *self, PyObject *arg0)
12758 {
12759   uint64_t x0;
12760   uint32_t result;
12761   PyObject *pyresult;
12762 
12763   x0 = _cffi_to_c_int(arg0, uint64_t);
12764   if (x0 == (uint64_t)-1 && PyErr_Occurred())
12765     return NULL;
12766 
12767   Py_BEGIN_ALLOW_THREADS
12768   _cffi_restore_errno();
12769   { result = clingo_signature_arity(x0); }
12770   _cffi_save_errno();
12771   Py_END_ALLOW_THREADS
12772 
12773   (void)self; /* unused */
12774   pyresult = _cffi_from_c_int(result, uint32_t);
12775   return pyresult;
12776 }
12777 #else
12778 #  define _cffi_f_clingo_signature_arity _cffi_d_clingo_signature_arity
12779 #endif
12780 
_cffi_d_clingo_signature_create(char const * x0,uint32_t x1,_Bool x2,uint64_t * x3)12781 static _Bool _cffi_d_clingo_signature_create(char const * x0, uint32_t x1, _Bool x2, uint64_t * x3)
12782 {
12783   return clingo_signature_create(x0, x1, x2, x3);
12784 }
12785 #ifndef PYPY_VERSION
12786 static PyObject *
_cffi_f_clingo_signature_create(PyObject * self,PyObject * args)12787 _cffi_f_clingo_signature_create(PyObject *self, PyObject *args)
12788 {
12789   char const * x0;
12790   uint32_t x1;
12791   _Bool x2;
12792   uint64_t * x3;
12793   Py_ssize_t datasize;
12794   struct _cffi_freeme_s *large_args_free = NULL;
12795   _Bool result;
12796   PyObject *pyresult;
12797   PyObject *arg0;
12798   PyObject *arg1;
12799   PyObject *arg2;
12800   PyObject *arg3;
12801 
12802   if (!PyArg_UnpackTuple(args, "clingo_signature_create", 4, 4, &arg0, &arg1, &arg2, &arg3))
12803     return NULL;
12804 
12805   datasize = _cffi_prepare_pointer_call_argument(
12806       _cffi_type(39), arg0, (char **)&x0);
12807   if (datasize != 0) {
12808     x0 = ((size_t)datasize) <= 640 ? (char const *)alloca((size_t)datasize) : NULL;
12809     if (_cffi_convert_array_argument(_cffi_type(39), arg0, (char **)&x0,
12810             datasize, &large_args_free) < 0)
12811       return NULL;
12812   }
12813 
12814   x1 = _cffi_to_c_int(arg1, uint32_t);
12815   if (x1 == (uint32_t)-1 && PyErr_Occurred())
12816     return NULL;
12817 
12818   x2 = (_Bool)_cffi_to_c__Bool(arg2);
12819   if (x2 == (_Bool)-1 && PyErr_Occurred())
12820     return NULL;
12821 
12822   datasize = _cffi_prepare_pointer_call_argument(
12823       _cffi_type(54), arg3, (char **)&x3);
12824   if (datasize != 0) {
12825     x3 = ((size_t)datasize) <= 640 ? (uint64_t *)alloca((size_t)datasize) : NULL;
12826     if (_cffi_convert_array_argument(_cffi_type(54), arg3, (char **)&x3,
12827             datasize, &large_args_free) < 0)
12828       return NULL;
12829   }
12830 
12831   Py_BEGIN_ALLOW_THREADS
12832   _cffi_restore_errno();
12833   { result = clingo_signature_create(x0, x1, x2, x3); }
12834   _cffi_save_errno();
12835   Py_END_ALLOW_THREADS
12836 
12837   (void)self; /* unused */
12838   pyresult = _cffi_from_c__Bool(result);
12839   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
12840   return pyresult;
12841 }
12842 #else
12843 #  define _cffi_f_clingo_signature_create _cffi_d_clingo_signature_create
12844 #endif
12845 
_cffi_d_clingo_signature_hash(uint64_t x0)12846 static size_t _cffi_d_clingo_signature_hash(uint64_t x0)
12847 {
12848   return clingo_signature_hash(x0);
12849 }
12850 #ifndef PYPY_VERSION
12851 static PyObject *
_cffi_f_clingo_signature_hash(PyObject * self,PyObject * arg0)12852 _cffi_f_clingo_signature_hash(PyObject *self, PyObject *arg0)
12853 {
12854   uint64_t x0;
12855   size_t result;
12856   PyObject *pyresult;
12857 
12858   x0 = _cffi_to_c_int(arg0, uint64_t);
12859   if (x0 == (uint64_t)-1 && PyErr_Occurred())
12860     return NULL;
12861 
12862   Py_BEGIN_ALLOW_THREADS
12863   _cffi_restore_errno();
12864   { result = clingo_signature_hash(x0); }
12865   _cffi_save_errno();
12866   Py_END_ALLOW_THREADS
12867 
12868   (void)self; /* unused */
12869   pyresult = _cffi_from_c_int(result, size_t);
12870   return pyresult;
12871 }
12872 #else
12873 #  define _cffi_f_clingo_signature_hash _cffi_d_clingo_signature_hash
12874 #endif
12875 
_cffi_d_clingo_signature_is_equal_to(uint64_t x0,uint64_t x1)12876 static _Bool _cffi_d_clingo_signature_is_equal_to(uint64_t x0, uint64_t x1)
12877 {
12878   return clingo_signature_is_equal_to(x0, x1);
12879 }
12880 #ifndef PYPY_VERSION
12881 static PyObject *
_cffi_f_clingo_signature_is_equal_to(PyObject * self,PyObject * args)12882 _cffi_f_clingo_signature_is_equal_to(PyObject *self, PyObject *args)
12883 {
12884   uint64_t x0;
12885   uint64_t x1;
12886   _Bool result;
12887   PyObject *pyresult;
12888   PyObject *arg0;
12889   PyObject *arg1;
12890 
12891   if (!PyArg_UnpackTuple(args, "clingo_signature_is_equal_to", 2, 2, &arg0, &arg1))
12892     return NULL;
12893 
12894   x0 = _cffi_to_c_int(arg0, uint64_t);
12895   if (x0 == (uint64_t)-1 && PyErr_Occurred())
12896     return NULL;
12897 
12898   x1 = _cffi_to_c_int(arg1, uint64_t);
12899   if (x1 == (uint64_t)-1 && PyErr_Occurred())
12900     return NULL;
12901 
12902   Py_BEGIN_ALLOW_THREADS
12903   _cffi_restore_errno();
12904   { result = clingo_signature_is_equal_to(x0, x1); }
12905   _cffi_save_errno();
12906   Py_END_ALLOW_THREADS
12907 
12908   (void)self; /* unused */
12909   pyresult = _cffi_from_c__Bool(result);
12910   return pyresult;
12911 }
12912 #else
12913 #  define _cffi_f_clingo_signature_is_equal_to _cffi_d_clingo_signature_is_equal_to
12914 #endif
12915 
_cffi_d_clingo_signature_is_less_than(uint64_t x0,uint64_t x1)12916 static _Bool _cffi_d_clingo_signature_is_less_than(uint64_t x0, uint64_t x1)
12917 {
12918   return clingo_signature_is_less_than(x0, x1);
12919 }
12920 #ifndef PYPY_VERSION
12921 static PyObject *
_cffi_f_clingo_signature_is_less_than(PyObject * self,PyObject * args)12922 _cffi_f_clingo_signature_is_less_than(PyObject *self, PyObject *args)
12923 {
12924   uint64_t x0;
12925   uint64_t x1;
12926   _Bool result;
12927   PyObject *pyresult;
12928   PyObject *arg0;
12929   PyObject *arg1;
12930 
12931   if (!PyArg_UnpackTuple(args, "clingo_signature_is_less_than", 2, 2, &arg0, &arg1))
12932     return NULL;
12933 
12934   x0 = _cffi_to_c_int(arg0, uint64_t);
12935   if (x0 == (uint64_t)-1 && PyErr_Occurred())
12936     return NULL;
12937 
12938   x1 = _cffi_to_c_int(arg1, uint64_t);
12939   if (x1 == (uint64_t)-1 && PyErr_Occurred())
12940     return NULL;
12941 
12942   Py_BEGIN_ALLOW_THREADS
12943   _cffi_restore_errno();
12944   { result = clingo_signature_is_less_than(x0, x1); }
12945   _cffi_save_errno();
12946   Py_END_ALLOW_THREADS
12947 
12948   (void)self; /* unused */
12949   pyresult = _cffi_from_c__Bool(result);
12950   return pyresult;
12951 }
12952 #else
12953 #  define _cffi_f_clingo_signature_is_less_than _cffi_d_clingo_signature_is_less_than
12954 #endif
12955 
_cffi_d_clingo_signature_is_negative(uint64_t x0)12956 static _Bool _cffi_d_clingo_signature_is_negative(uint64_t x0)
12957 {
12958   return clingo_signature_is_negative(x0);
12959 }
12960 #ifndef PYPY_VERSION
12961 static PyObject *
_cffi_f_clingo_signature_is_negative(PyObject * self,PyObject * arg0)12962 _cffi_f_clingo_signature_is_negative(PyObject *self, PyObject *arg0)
12963 {
12964   uint64_t x0;
12965   _Bool result;
12966   PyObject *pyresult;
12967 
12968   x0 = _cffi_to_c_int(arg0, uint64_t);
12969   if (x0 == (uint64_t)-1 && PyErr_Occurred())
12970     return NULL;
12971 
12972   Py_BEGIN_ALLOW_THREADS
12973   _cffi_restore_errno();
12974   { result = clingo_signature_is_negative(x0); }
12975   _cffi_save_errno();
12976   Py_END_ALLOW_THREADS
12977 
12978   (void)self; /* unused */
12979   pyresult = _cffi_from_c__Bool(result);
12980   return pyresult;
12981 }
12982 #else
12983 #  define _cffi_f_clingo_signature_is_negative _cffi_d_clingo_signature_is_negative
12984 #endif
12985 
_cffi_d_clingo_signature_is_positive(uint64_t x0)12986 static _Bool _cffi_d_clingo_signature_is_positive(uint64_t x0)
12987 {
12988   return clingo_signature_is_positive(x0);
12989 }
12990 #ifndef PYPY_VERSION
12991 static PyObject *
_cffi_f_clingo_signature_is_positive(PyObject * self,PyObject * arg0)12992 _cffi_f_clingo_signature_is_positive(PyObject *self, PyObject *arg0)
12993 {
12994   uint64_t x0;
12995   _Bool result;
12996   PyObject *pyresult;
12997 
12998   x0 = _cffi_to_c_int(arg0, uint64_t);
12999   if (x0 == (uint64_t)-1 && PyErr_Occurred())
13000     return NULL;
13001 
13002   Py_BEGIN_ALLOW_THREADS
13003   _cffi_restore_errno();
13004   { result = clingo_signature_is_positive(x0); }
13005   _cffi_save_errno();
13006   Py_END_ALLOW_THREADS
13007 
13008   (void)self; /* unused */
13009   pyresult = _cffi_from_c__Bool(result);
13010   return pyresult;
13011 }
13012 #else
13013 #  define _cffi_f_clingo_signature_is_positive _cffi_d_clingo_signature_is_positive
13014 #endif
13015 
_cffi_d_clingo_signature_name(uint64_t x0)13016 static char const * _cffi_d_clingo_signature_name(uint64_t x0)
13017 {
13018   return clingo_signature_name(x0);
13019 }
13020 #ifndef PYPY_VERSION
13021 static PyObject *
_cffi_f_clingo_signature_name(PyObject * self,PyObject * arg0)13022 _cffi_f_clingo_signature_name(PyObject *self, PyObject *arg0)
13023 {
13024   uint64_t x0;
13025   char const * result;
13026   PyObject *pyresult;
13027 
13028   x0 = _cffi_to_c_int(arg0, uint64_t);
13029   if (x0 == (uint64_t)-1 && PyErr_Occurred())
13030     return NULL;
13031 
13032   Py_BEGIN_ALLOW_THREADS
13033   _cffi_restore_errno();
13034   { result = clingo_signature_name(x0); }
13035   _cffi_save_errno();
13036   Py_END_ALLOW_THREADS
13037 
13038   (void)self; /* unused */
13039   pyresult = _cffi_from_c_pointer((char *)result, _cffi_type(39));
13040   return pyresult;
13041 }
13042 #else
13043 #  define _cffi_f_clingo_signature_name _cffi_d_clingo_signature_name
13044 #endif
13045 
_cffi_d_clingo_solve_control_add_clause(clingo_solve_control_t * x0,int32_t const * x1,size_t x2)13046 static _Bool _cffi_d_clingo_solve_control_add_clause(clingo_solve_control_t * x0, int32_t const * x1, size_t x2)
13047 {
13048   return clingo_solve_control_add_clause(x0, x1, x2);
13049 }
13050 #ifndef PYPY_VERSION
13051 static PyObject *
_cffi_f_clingo_solve_control_add_clause(PyObject * self,PyObject * args)13052 _cffi_f_clingo_solve_control_add_clause(PyObject *self, PyObject *args)
13053 {
13054   clingo_solve_control_t * x0;
13055   int32_t const * x1;
13056   size_t x2;
13057   Py_ssize_t datasize;
13058   struct _cffi_freeme_s *large_args_free = NULL;
13059   _Bool result;
13060   PyObject *pyresult;
13061   PyObject *arg0;
13062   PyObject *arg1;
13063   PyObject *arg2;
13064 
13065   if (!PyArg_UnpackTuple(args, "clingo_solve_control_add_clause", 3, 3, &arg0, &arg1, &arg2))
13066     return NULL;
13067 
13068   datasize = _cffi_prepare_pointer_call_argument(
13069       _cffi_type(702), arg0, (char **)&x0);
13070   if (datasize != 0) {
13071     x0 = ((size_t)datasize) <= 640 ? (clingo_solve_control_t *)alloca((size_t)datasize) : NULL;
13072     if (_cffi_convert_array_argument(_cffi_type(702), arg0, (char **)&x0,
13073             datasize, &large_args_free) < 0)
13074       return NULL;
13075   }
13076 
13077   datasize = _cffi_prepare_pointer_call_argument(
13078       _cffi_type(4), arg1, (char **)&x1);
13079   if (datasize != 0) {
13080     x1 = ((size_t)datasize) <= 640 ? (int32_t const *)alloca((size_t)datasize) : NULL;
13081     if (_cffi_convert_array_argument(_cffi_type(4), arg1, (char **)&x1,
13082             datasize, &large_args_free) < 0)
13083       return NULL;
13084   }
13085 
13086   x2 = _cffi_to_c_int(arg2, size_t);
13087   if (x2 == (size_t)-1 && PyErr_Occurred())
13088     return NULL;
13089 
13090   Py_BEGIN_ALLOW_THREADS
13091   _cffi_restore_errno();
13092   { result = clingo_solve_control_add_clause(x0, x1, x2); }
13093   _cffi_save_errno();
13094   Py_END_ALLOW_THREADS
13095 
13096   (void)self; /* unused */
13097   pyresult = _cffi_from_c__Bool(result);
13098   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
13099   return pyresult;
13100 }
13101 #else
13102 #  define _cffi_f_clingo_solve_control_add_clause _cffi_d_clingo_solve_control_add_clause
13103 #endif
13104 
_cffi_d_clingo_solve_control_symbolic_atoms(clingo_solve_control_t const * x0,clingo_symbolic_atoms_t const ** x1)13105 static _Bool _cffi_d_clingo_solve_control_symbolic_atoms(clingo_solve_control_t const * x0, clingo_symbolic_atoms_t const * * x1)
13106 {
13107   return clingo_solve_control_symbolic_atoms(x0, x1);
13108 }
13109 #ifndef PYPY_VERSION
13110 static PyObject *
_cffi_f_clingo_solve_control_symbolic_atoms(PyObject * self,PyObject * args)13111 _cffi_f_clingo_solve_control_symbolic_atoms(PyObject *self, PyObject *args)
13112 {
13113   clingo_solve_control_t const * x0;
13114   clingo_symbolic_atoms_t const * * x1;
13115   Py_ssize_t datasize;
13116   struct _cffi_freeme_s *large_args_free = NULL;
13117   _Bool result;
13118   PyObject *pyresult;
13119   PyObject *arg0;
13120   PyObject *arg1;
13121 
13122   if (!PyArg_UnpackTuple(args, "clingo_solve_control_symbolic_atoms", 2, 2, &arg0, &arg1))
13123     return NULL;
13124 
13125   datasize = _cffi_prepare_pointer_call_argument(
13126       _cffi_type(707), arg0, (char **)&x0);
13127   if (datasize != 0) {
13128     x0 = ((size_t)datasize) <= 640 ? (clingo_solve_control_t const *)alloca((size_t)datasize) : NULL;
13129     if (_cffi_convert_array_argument(_cffi_type(707), arg0, (char **)&x0,
13130             datasize, &large_args_free) < 0)
13131       return NULL;
13132   }
13133 
13134   datasize = _cffi_prepare_pointer_call_argument(
13135       _cffi_type(479), arg1, (char **)&x1);
13136   if (datasize != 0) {
13137     x1 = ((size_t)datasize) <= 640 ? (clingo_symbolic_atoms_t const * *)alloca((size_t)datasize) : NULL;
13138     if (_cffi_convert_array_argument(_cffi_type(479), arg1, (char **)&x1,
13139             datasize, &large_args_free) < 0)
13140       return NULL;
13141   }
13142 
13143   Py_BEGIN_ALLOW_THREADS
13144   _cffi_restore_errno();
13145   { result = clingo_solve_control_symbolic_atoms(x0, x1); }
13146   _cffi_save_errno();
13147   Py_END_ALLOW_THREADS
13148 
13149   (void)self; /* unused */
13150   pyresult = _cffi_from_c__Bool(result);
13151   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
13152   return pyresult;
13153 }
13154 #else
13155 #  define _cffi_f_clingo_solve_control_symbolic_atoms _cffi_d_clingo_solve_control_symbolic_atoms
13156 #endif
13157 
_cffi_d_clingo_solve_handle_cancel(clingo_solve_handle_t * x0)13158 static _Bool _cffi_d_clingo_solve_handle_cancel(clingo_solve_handle_t * x0)
13159 {
13160   return clingo_solve_handle_cancel(x0);
13161 }
13162 #ifndef PYPY_VERSION
13163 static PyObject *
_cffi_f_clingo_solve_handle_cancel(PyObject * self,PyObject * arg0)13164 _cffi_f_clingo_solve_handle_cancel(PyObject *self, PyObject *arg0)
13165 {
13166   clingo_solve_handle_t * x0;
13167   Py_ssize_t datasize;
13168   struct _cffi_freeme_s *large_args_free = NULL;
13169   _Bool result;
13170   PyObject *pyresult;
13171 
13172   datasize = _cffi_prepare_pointer_call_argument(
13173       _cffi_type(711), arg0, (char **)&x0);
13174   if (datasize != 0) {
13175     x0 = ((size_t)datasize) <= 640 ? (clingo_solve_handle_t *)alloca((size_t)datasize) : NULL;
13176     if (_cffi_convert_array_argument(_cffi_type(711), arg0, (char **)&x0,
13177             datasize, &large_args_free) < 0)
13178       return NULL;
13179   }
13180 
13181   Py_BEGIN_ALLOW_THREADS
13182   _cffi_restore_errno();
13183   { result = clingo_solve_handle_cancel(x0); }
13184   _cffi_save_errno();
13185   Py_END_ALLOW_THREADS
13186 
13187   (void)self; /* unused */
13188   pyresult = _cffi_from_c__Bool(result);
13189   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
13190   return pyresult;
13191 }
13192 #else
13193 #  define _cffi_f_clingo_solve_handle_cancel _cffi_d_clingo_solve_handle_cancel
13194 #endif
13195 
_cffi_d_clingo_solve_handle_close(clingo_solve_handle_t * x0)13196 static _Bool _cffi_d_clingo_solve_handle_close(clingo_solve_handle_t * x0)
13197 {
13198   return clingo_solve_handle_close(x0);
13199 }
13200 #ifndef PYPY_VERSION
13201 static PyObject *
_cffi_f_clingo_solve_handle_close(PyObject * self,PyObject * arg0)13202 _cffi_f_clingo_solve_handle_close(PyObject *self, PyObject *arg0)
13203 {
13204   clingo_solve_handle_t * x0;
13205   Py_ssize_t datasize;
13206   struct _cffi_freeme_s *large_args_free = NULL;
13207   _Bool result;
13208   PyObject *pyresult;
13209 
13210   datasize = _cffi_prepare_pointer_call_argument(
13211       _cffi_type(711), arg0, (char **)&x0);
13212   if (datasize != 0) {
13213     x0 = ((size_t)datasize) <= 640 ? (clingo_solve_handle_t *)alloca((size_t)datasize) : NULL;
13214     if (_cffi_convert_array_argument(_cffi_type(711), arg0, (char **)&x0,
13215             datasize, &large_args_free) < 0)
13216       return NULL;
13217   }
13218 
13219   Py_BEGIN_ALLOW_THREADS
13220   _cffi_restore_errno();
13221   { result = clingo_solve_handle_close(x0); }
13222   _cffi_save_errno();
13223   Py_END_ALLOW_THREADS
13224 
13225   (void)self; /* unused */
13226   pyresult = _cffi_from_c__Bool(result);
13227   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
13228   return pyresult;
13229 }
13230 #else
13231 #  define _cffi_f_clingo_solve_handle_close _cffi_d_clingo_solve_handle_close
13232 #endif
13233 
_cffi_d_clingo_solve_handle_core(clingo_solve_handle_t * x0,int32_t const ** x1,size_t * x2)13234 static _Bool _cffi_d_clingo_solve_handle_core(clingo_solve_handle_t * x0, int32_t const * * x1, size_t * x2)
13235 {
13236   return clingo_solve_handle_core(x0, x1, x2);
13237 }
13238 #ifndef PYPY_VERSION
13239 static PyObject *
_cffi_f_clingo_solve_handle_core(PyObject * self,PyObject * args)13240 _cffi_f_clingo_solve_handle_core(PyObject *self, PyObject *args)
13241 {
13242   clingo_solve_handle_t * x0;
13243   int32_t const * * x1;
13244   size_t * x2;
13245   Py_ssize_t datasize;
13246   struct _cffi_freeme_s *large_args_free = NULL;
13247   _Bool result;
13248   PyObject *pyresult;
13249   PyObject *arg0;
13250   PyObject *arg1;
13251   PyObject *arg2;
13252 
13253   if (!PyArg_UnpackTuple(args, "clingo_solve_handle_core", 3, 3, &arg0, &arg1, &arg2))
13254     return NULL;
13255 
13256   datasize = _cffi_prepare_pointer_call_argument(
13257       _cffi_type(711), arg0, (char **)&x0);
13258   if (datasize != 0) {
13259     x0 = ((size_t)datasize) <= 640 ? (clingo_solve_handle_t *)alloca((size_t)datasize) : NULL;
13260     if (_cffi_convert_array_argument(_cffi_type(711), arg0, (char **)&x0,
13261             datasize, &large_args_free) < 0)
13262       return NULL;
13263   }
13264 
13265   datasize = _cffi_prepare_pointer_call_argument(
13266       _cffi_type(719), arg1, (char **)&x1);
13267   if (datasize != 0) {
13268     x1 = ((size_t)datasize) <= 640 ? (int32_t const * *)alloca((size_t)datasize) : NULL;
13269     if (_cffi_convert_array_argument(_cffi_type(719), arg1, (char **)&x1,
13270             datasize, &large_args_free) < 0)
13271       return NULL;
13272   }
13273 
13274   datasize = _cffi_prepare_pointer_call_argument(
13275       _cffi_type(205), arg2, (char **)&x2);
13276   if (datasize != 0) {
13277     x2 = ((size_t)datasize) <= 640 ? (size_t *)alloca((size_t)datasize) : NULL;
13278     if (_cffi_convert_array_argument(_cffi_type(205), arg2, (char **)&x2,
13279             datasize, &large_args_free) < 0)
13280       return NULL;
13281   }
13282 
13283   Py_BEGIN_ALLOW_THREADS
13284   _cffi_restore_errno();
13285   { result = clingo_solve_handle_core(x0, x1, x2); }
13286   _cffi_save_errno();
13287   Py_END_ALLOW_THREADS
13288 
13289   (void)self; /* unused */
13290   pyresult = _cffi_from_c__Bool(result);
13291   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
13292   return pyresult;
13293 }
13294 #else
13295 #  define _cffi_f_clingo_solve_handle_core _cffi_d_clingo_solve_handle_core
13296 #endif
13297 
_cffi_d_clingo_solve_handle_get(clingo_solve_handle_t * x0,unsigned int * x1)13298 static _Bool _cffi_d_clingo_solve_handle_get(clingo_solve_handle_t * x0, unsigned int * x1)
13299 {
13300   return clingo_solve_handle_get(x0, x1);
13301 }
13302 #ifndef PYPY_VERSION
13303 static PyObject *
_cffi_f_clingo_solve_handle_get(PyObject * self,PyObject * args)13304 _cffi_f_clingo_solve_handle_get(PyObject *self, PyObject *args)
13305 {
13306   clingo_solve_handle_t * x0;
13307   unsigned int * x1;
13308   Py_ssize_t datasize;
13309   struct _cffi_freeme_s *large_args_free = NULL;
13310   _Bool result;
13311   PyObject *pyresult;
13312   PyObject *arg0;
13313   PyObject *arg1;
13314 
13315   if (!PyArg_UnpackTuple(args, "clingo_solve_handle_get", 2, 2, &arg0, &arg1))
13316     return NULL;
13317 
13318   datasize = _cffi_prepare_pointer_call_argument(
13319       _cffi_type(711), arg0, (char **)&x0);
13320   if (datasize != 0) {
13321     x0 = ((size_t)datasize) <= 640 ? (clingo_solve_handle_t *)alloca((size_t)datasize) : NULL;
13322     if (_cffi_convert_array_argument(_cffi_type(711), arg0, (char **)&x0,
13323             datasize, &large_args_free) < 0)
13324       return NULL;
13325   }
13326 
13327   datasize = _cffi_prepare_pointer_call_argument(
13328       _cffi_type(377), arg1, (char **)&x1);
13329   if (datasize != 0) {
13330     x1 = ((size_t)datasize) <= 640 ? (unsigned int *)alloca((size_t)datasize) : NULL;
13331     if (_cffi_convert_array_argument(_cffi_type(377), arg1, (char **)&x1,
13332             datasize, &large_args_free) < 0)
13333       return NULL;
13334   }
13335 
13336   Py_BEGIN_ALLOW_THREADS
13337   _cffi_restore_errno();
13338   { result = clingo_solve_handle_get(x0, x1); }
13339   _cffi_save_errno();
13340   Py_END_ALLOW_THREADS
13341 
13342   (void)self; /* unused */
13343   pyresult = _cffi_from_c__Bool(result);
13344   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
13345   return pyresult;
13346 }
13347 #else
13348 #  define _cffi_f_clingo_solve_handle_get _cffi_d_clingo_solve_handle_get
13349 #endif
13350 
_cffi_d_clingo_solve_handle_model(clingo_solve_handle_t * x0,clingo_model_t const ** x1)13351 static _Bool _cffi_d_clingo_solve_handle_model(clingo_solve_handle_t * x0, clingo_model_t const * * x1)
13352 {
13353   return clingo_solve_handle_model(x0, x1);
13354 }
13355 #ifndef PYPY_VERSION
13356 static PyObject *
_cffi_f_clingo_solve_handle_model(PyObject * self,PyObject * args)13357 _cffi_f_clingo_solve_handle_model(PyObject *self, PyObject *args)
13358 {
13359   clingo_solve_handle_t * x0;
13360   clingo_model_t const * * x1;
13361   Py_ssize_t datasize;
13362   struct _cffi_freeme_s *large_args_free = NULL;
13363   _Bool result;
13364   PyObject *pyresult;
13365   PyObject *arg0;
13366   PyObject *arg1;
13367 
13368   if (!PyArg_UnpackTuple(args, "clingo_solve_handle_model", 2, 2, &arg0, &arg1))
13369     return NULL;
13370 
13371   datasize = _cffi_prepare_pointer_call_argument(
13372       _cffi_type(711), arg0, (char **)&x0);
13373   if (datasize != 0) {
13374     x0 = ((size_t)datasize) <= 640 ? (clingo_solve_handle_t *)alloca((size_t)datasize) : NULL;
13375     if (_cffi_convert_array_argument(_cffi_type(711), arg0, (char **)&x0,
13376             datasize, &large_args_free) < 0)
13377       return NULL;
13378   }
13379 
13380   datasize = _cffi_prepare_pointer_call_argument(
13381       _cffi_type(715), arg1, (char **)&x1);
13382   if (datasize != 0) {
13383     x1 = ((size_t)datasize) <= 640 ? (clingo_model_t const * *)alloca((size_t)datasize) : NULL;
13384     if (_cffi_convert_array_argument(_cffi_type(715), arg1, (char **)&x1,
13385             datasize, &large_args_free) < 0)
13386       return NULL;
13387   }
13388 
13389   Py_BEGIN_ALLOW_THREADS
13390   _cffi_restore_errno();
13391   { result = clingo_solve_handle_model(x0, x1); }
13392   _cffi_save_errno();
13393   Py_END_ALLOW_THREADS
13394 
13395   (void)self; /* unused */
13396   pyresult = _cffi_from_c__Bool(result);
13397   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
13398   return pyresult;
13399 }
13400 #else
13401 #  define _cffi_f_clingo_solve_handle_model _cffi_d_clingo_solve_handle_model
13402 #endif
13403 
_cffi_d_clingo_solve_handle_resume(clingo_solve_handle_t * x0)13404 static _Bool _cffi_d_clingo_solve_handle_resume(clingo_solve_handle_t * x0)
13405 {
13406   return clingo_solve_handle_resume(x0);
13407 }
13408 #ifndef PYPY_VERSION
13409 static PyObject *
_cffi_f_clingo_solve_handle_resume(PyObject * self,PyObject * arg0)13410 _cffi_f_clingo_solve_handle_resume(PyObject *self, PyObject *arg0)
13411 {
13412   clingo_solve_handle_t * x0;
13413   Py_ssize_t datasize;
13414   struct _cffi_freeme_s *large_args_free = NULL;
13415   _Bool result;
13416   PyObject *pyresult;
13417 
13418   datasize = _cffi_prepare_pointer_call_argument(
13419       _cffi_type(711), arg0, (char **)&x0);
13420   if (datasize != 0) {
13421     x0 = ((size_t)datasize) <= 640 ? (clingo_solve_handle_t *)alloca((size_t)datasize) : NULL;
13422     if (_cffi_convert_array_argument(_cffi_type(711), arg0, (char **)&x0,
13423             datasize, &large_args_free) < 0)
13424       return NULL;
13425   }
13426 
13427   Py_BEGIN_ALLOW_THREADS
13428   _cffi_restore_errno();
13429   { result = clingo_solve_handle_resume(x0); }
13430   _cffi_save_errno();
13431   Py_END_ALLOW_THREADS
13432 
13433   (void)self; /* unused */
13434   pyresult = _cffi_from_c__Bool(result);
13435   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
13436   return pyresult;
13437 }
13438 #else
13439 #  define _cffi_f_clingo_solve_handle_resume _cffi_d_clingo_solve_handle_resume
13440 #endif
13441 
_cffi_d_clingo_solve_handle_wait(clingo_solve_handle_t * x0,double x1,_Bool * x2)13442 static void _cffi_d_clingo_solve_handle_wait(clingo_solve_handle_t * x0, double x1, _Bool * x2)
13443 {
13444   clingo_solve_handle_wait(x0, x1, x2);
13445 }
13446 #ifndef PYPY_VERSION
13447 static PyObject *
_cffi_f_clingo_solve_handle_wait(PyObject * self,PyObject * args)13448 _cffi_f_clingo_solve_handle_wait(PyObject *self, PyObject *args)
13449 {
13450   clingo_solve_handle_t * x0;
13451   double x1;
13452   _Bool * x2;
13453   Py_ssize_t datasize;
13454   struct _cffi_freeme_s *large_args_free = NULL;
13455   PyObject *arg0;
13456   PyObject *arg1;
13457   PyObject *arg2;
13458 
13459   if (!PyArg_UnpackTuple(args, "clingo_solve_handle_wait", 3, 3, &arg0, &arg1, &arg2))
13460     return NULL;
13461 
13462   datasize = _cffi_prepare_pointer_call_argument(
13463       _cffi_type(711), arg0, (char **)&x0);
13464   if (datasize != 0) {
13465     x0 = ((size_t)datasize) <= 640 ? (clingo_solve_handle_t *)alloca((size_t)datasize) : NULL;
13466     if (_cffi_convert_array_argument(_cffi_type(711), arg0, (char **)&x0,
13467             datasize, &large_args_free) < 0)
13468       return NULL;
13469   }
13470 
13471   x1 = (double)_cffi_to_c_double(arg1);
13472   if (x1 == (double)-1 && PyErr_Occurred())
13473     return NULL;
13474 
13475   datasize = _cffi_prepare_pointer_call_argument(
13476       _cffi_type(40), arg2, (char **)&x2);
13477   if (datasize != 0) {
13478     x2 = ((size_t)datasize) <= 640 ? (_Bool *)alloca((size_t)datasize) : NULL;
13479     if (_cffi_convert_array_argument(_cffi_type(40), arg2, (char **)&x2,
13480             datasize, &large_args_free) < 0)
13481       return NULL;
13482   }
13483 
13484   Py_BEGIN_ALLOW_THREADS
13485   _cffi_restore_errno();
13486   { clingo_solve_handle_wait(x0, x1, x2); }
13487   _cffi_save_errno();
13488   Py_END_ALLOW_THREADS
13489 
13490   (void)self; /* unused */
13491   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
13492   Py_INCREF(Py_None);
13493   return Py_None;
13494 }
13495 #else
13496 #  define _cffi_f_clingo_solve_handle_wait _cffi_d_clingo_solve_handle_wait
13497 #endif
13498 
_cffi_d_clingo_statistics_array_at(clingo_statistics_t const * x0,uint64_t x1,size_t x2,uint64_t * x3)13499 static _Bool _cffi_d_clingo_statistics_array_at(clingo_statistics_t const * x0, uint64_t x1, size_t x2, uint64_t * x3)
13500 {
13501   return clingo_statistics_array_at(x0, x1, x2, x3);
13502 }
13503 #ifndef PYPY_VERSION
13504 static PyObject *
_cffi_f_clingo_statistics_array_at(PyObject * self,PyObject * args)13505 _cffi_f_clingo_statistics_array_at(PyObject *self, PyObject *args)
13506 {
13507   clingo_statistics_t const * x0;
13508   uint64_t x1;
13509   size_t x2;
13510   uint64_t * x3;
13511   Py_ssize_t datasize;
13512   struct _cffi_freeme_s *large_args_free = NULL;
13513   _Bool result;
13514   PyObject *pyresult;
13515   PyObject *arg0;
13516   PyObject *arg1;
13517   PyObject *arg2;
13518   PyObject *arg3;
13519 
13520   if (!PyArg_UnpackTuple(args, "clingo_statistics_array_at", 4, 4, &arg0, &arg1, &arg2, &arg3))
13521     return NULL;
13522 
13523   datasize = _cffi_prepare_pointer_call_argument(
13524       _cffi_type(745), arg0, (char **)&x0);
13525   if (datasize != 0) {
13526     x0 = ((size_t)datasize) <= 640 ? (clingo_statistics_t const *)alloca((size_t)datasize) : NULL;
13527     if (_cffi_convert_array_argument(_cffi_type(745), arg0, (char **)&x0,
13528             datasize, &large_args_free) < 0)
13529       return NULL;
13530   }
13531 
13532   x1 = _cffi_to_c_int(arg1, uint64_t);
13533   if (x1 == (uint64_t)-1 && PyErr_Occurred())
13534     return NULL;
13535 
13536   x2 = _cffi_to_c_int(arg2, size_t);
13537   if (x2 == (size_t)-1 && PyErr_Occurred())
13538     return NULL;
13539 
13540   datasize = _cffi_prepare_pointer_call_argument(
13541       _cffi_type(54), arg3, (char **)&x3);
13542   if (datasize != 0) {
13543     x3 = ((size_t)datasize) <= 640 ? (uint64_t *)alloca((size_t)datasize) : NULL;
13544     if (_cffi_convert_array_argument(_cffi_type(54), arg3, (char **)&x3,
13545             datasize, &large_args_free) < 0)
13546       return NULL;
13547   }
13548 
13549   Py_BEGIN_ALLOW_THREADS
13550   _cffi_restore_errno();
13551   { result = clingo_statistics_array_at(x0, x1, x2, x3); }
13552   _cffi_save_errno();
13553   Py_END_ALLOW_THREADS
13554 
13555   (void)self; /* unused */
13556   pyresult = _cffi_from_c__Bool(result);
13557   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
13558   return pyresult;
13559 }
13560 #else
13561 #  define _cffi_f_clingo_statistics_array_at _cffi_d_clingo_statistics_array_at
13562 #endif
13563 
_cffi_d_clingo_statistics_array_push(clingo_statistics_t * x0,uint64_t x1,int x2,uint64_t * x3)13564 static _Bool _cffi_d_clingo_statistics_array_push(clingo_statistics_t * x0, uint64_t x1, int x2, uint64_t * x3)
13565 {
13566   return clingo_statistics_array_push(x0, x1, x2, x3);
13567 }
13568 #ifndef PYPY_VERSION
13569 static PyObject *
_cffi_f_clingo_statistics_array_push(PyObject * self,PyObject * args)13570 _cffi_f_clingo_statistics_array_push(PyObject *self, PyObject *args)
13571 {
13572   clingo_statistics_t * x0;
13573   uint64_t x1;
13574   int x2;
13575   uint64_t * x3;
13576   Py_ssize_t datasize;
13577   struct _cffi_freeme_s *large_args_free = NULL;
13578   _Bool result;
13579   PyObject *pyresult;
13580   PyObject *arg0;
13581   PyObject *arg1;
13582   PyObject *arg2;
13583   PyObject *arg3;
13584 
13585   if (!PyArg_UnpackTuple(args, "clingo_statistics_array_push", 4, 4, &arg0, &arg1, &arg2, &arg3))
13586     return NULL;
13587 
13588   datasize = _cffi_prepare_pointer_call_argument(
13589       _cffi_type(727), arg0, (char **)&x0);
13590   if (datasize != 0) {
13591     x0 = ((size_t)datasize) <= 640 ? (clingo_statistics_t *)alloca((size_t)datasize) : NULL;
13592     if (_cffi_convert_array_argument(_cffi_type(727), arg0, (char **)&x0,
13593             datasize, &large_args_free) < 0)
13594       return NULL;
13595   }
13596 
13597   x1 = _cffi_to_c_int(arg1, uint64_t);
13598   if (x1 == (uint64_t)-1 && PyErr_Occurred())
13599     return NULL;
13600 
13601   x2 = _cffi_to_c_int(arg2, int);
13602   if (x2 == (int)-1 && PyErr_Occurred())
13603     return NULL;
13604 
13605   datasize = _cffi_prepare_pointer_call_argument(
13606       _cffi_type(54), arg3, (char **)&x3);
13607   if (datasize != 0) {
13608     x3 = ((size_t)datasize) <= 640 ? (uint64_t *)alloca((size_t)datasize) : NULL;
13609     if (_cffi_convert_array_argument(_cffi_type(54), arg3, (char **)&x3,
13610             datasize, &large_args_free) < 0)
13611       return NULL;
13612   }
13613 
13614   Py_BEGIN_ALLOW_THREADS
13615   _cffi_restore_errno();
13616   { result = clingo_statistics_array_push(x0, x1, x2, x3); }
13617   _cffi_save_errno();
13618   Py_END_ALLOW_THREADS
13619 
13620   (void)self; /* unused */
13621   pyresult = _cffi_from_c__Bool(result);
13622   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
13623   return pyresult;
13624 }
13625 #else
13626 #  define _cffi_f_clingo_statistics_array_push _cffi_d_clingo_statistics_array_push
13627 #endif
13628 
_cffi_d_clingo_statistics_array_size(clingo_statistics_t const * x0,uint64_t x1,size_t * x2)13629 static _Bool _cffi_d_clingo_statistics_array_size(clingo_statistics_t const * x0, uint64_t x1, size_t * x2)
13630 {
13631   return clingo_statistics_array_size(x0, x1, x2);
13632 }
13633 #ifndef PYPY_VERSION
13634 static PyObject *
_cffi_f_clingo_statistics_array_size(PyObject * self,PyObject * args)13635 _cffi_f_clingo_statistics_array_size(PyObject *self, PyObject *args)
13636 {
13637   clingo_statistics_t const * x0;
13638   uint64_t x1;
13639   size_t * x2;
13640   Py_ssize_t datasize;
13641   struct _cffi_freeme_s *large_args_free = NULL;
13642   _Bool result;
13643   PyObject *pyresult;
13644   PyObject *arg0;
13645   PyObject *arg1;
13646   PyObject *arg2;
13647 
13648   if (!PyArg_UnpackTuple(args, "clingo_statistics_array_size", 3, 3, &arg0, &arg1, &arg2))
13649     return NULL;
13650 
13651   datasize = _cffi_prepare_pointer_call_argument(
13652       _cffi_type(745), arg0, (char **)&x0);
13653   if (datasize != 0) {
13654     x0 = ((size_t)datasize) <= 640 ? (clingo_statistics_t const *)alloca((size_t)datasize) : NULL;
13655     if (_cffi_convert_array_argument(_cffi_type(745), arg0, (char **)&x0,
13656             datasize, &large_args_free) < 0)
13657       return NULL;
13658   }
13659 
13660   x1 = _cffi_to_c_int(arg1, uint64_t);
13661   if (x1 == (uint64_t)-1 && PyErr_Occurred())
13662     return NULL;
13663 
13664   datasize = _cffi_prepare_pointer_call_argument(
13665       _cffi_type(205), arg2, (char **)&x2);
13666   if (datasize != 0) {
13667     x2 = ((size_t)datasize) <= 640 ? (size_t *)alloca((size_t)datasize) : NULL;
13668     if (_cffi_convert_array_argument(_cffi_type(205), arg2, (char **)&x2,
13669             datasize, &large_args_free) < 0)
13670       return NULL;
13671   }
13672 
13673   Py_BEGIN_ALLOW_THREADS
13674   _cffi_restore_errno();
13675   { result = clingo_statistics_array_size(x0, x1, x2); }
13676   _cffi_save_errno();
13677   Py_END_ALLOW_THREADS
13678 
13679   (void)self; /* unused */
13680   pyresult = _cffi_from_c__Bool(result);
13681   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
13682   return pyresult;
13683 }
13684 #else
13685 #  define _cffi_f_clingo_statistics_array_size _cffi_d_clingo_statistics_array_size
13686 #endif
13687 
_cffi_d_clingo_statistics_map_add_subkey(clingo_statistics_t * x0,uint64_t x1,char const * x2,int x3,uint64_t * x4)13688 static _Bool _cffi_d_clingo_statistics_map_add_subkey(clingo_statistics_t * x0, uint64_t x1, char const * x2, int x3, uint64_t * x4)
13689 {
13690   return clingo_statistics_map_add_subkey(x0, x1, x2, x3, x4);
13691 }
13692 #ifndef PYPY_VERSION
13693 static PyObject *
_cffi_f_clingo_statistics_map_add_subkey(PyObject * self,PyObject * args)13694 _cffi_f_clingo_statistics_map_add_subkey(PyObject *self, PyObject *args)
13695 {
13696   clingo_statistics_t * x0;
13697   uint64_t x1;
13698   char const * x2;
13699   int x3;
13700   uint64_t * x4;
13701   Py_ssize_t datasize;
13702   struct _cffi_freeme_s *large_args_free = NULL;
13703   _Bool result;
13704   PyObject *pyresult;
13705   PyObject *arg0;
13706   PyObject *arg1;
13707   PyObject *arg2;
13708   PyObject *arg3;
13709   PyObject *arg4;
13710 
13711   if (!PyArg_UnpackTuple(args, "clingo_statistics_map_add_subkey", 5, 5, &arg0, &arg1, &arg2, &arg3, &arg4))
13712     return NULL;
13713 
13714   datasize = _cffi_prepare_pointer_call_argument(
13715       _cffi_type(727), arg0, (char **)&x0);
13716   if (datasize != 0) {
13717     x0 = ((size_t)datasize) <= 640 ? (clingo_statistics_t *)alloca((size_t)datasize) : NULL;
13718     if (_cffi_convert_array_argument(_cffi_type(727), arg0, (char **)&x0,
13719             datasize, &large_args_free) < 0)
13720       return NULL;
13721   }
13722 
13723   x1 = _cffi_to_c_int(arg1, uint64_t);
13724   if (x1 == (uint64_t)-1 && PyErr_Occurred())
13725     return NULL;
13726 
13727   datasize = _cffi_prepare_pointer_call_argument(
13728       _cffi_type(39), arg2, (char **)&x2);
13729   if (datasize != 0) {
13730     x2 = ((size_t)datasize) <= 640 ? (char const *)alloca((size_t)datasize) : NULL;
13731     if (_cffi_convert_array_argument(_cffi_type(39), arg2, (char **)&x2,
13732             datasize, &large_args_free) < 0)
13733       return NULL;
13734   }
13735 
13736   x3 = _cffi_to_c_int(arg3, int);
13737   if (x3 == (int)-1 && PyErr_Occurred())
13738     return NULL;
13739 
13740   datasize = _cffi_prepare_pointer_call_argument(
13741       _cffi_type(54), arg4, (char **)&x4);
13742   if (datasize != 0) {
13743     x4 = ((size_t)datasize) <= 640 ? (uint64_t *)alloca((size_t)datasize) : NULL;
13744     if (_cffi_convert_array_argument(_cffi_type(54), arg4, (char **)&x4,
13745             datasize, &large_args_free) < 0)
13746       return NULL;
13747   }
13748 
13749   Py_BEGIN_ALLOW_THREADS
13750   _cffi_restore_errno();
13751   { result = clingo_statistics_map_add_subkey(x0, x1, x2, x3, x4); }
13752   _cffi_save_errno();
13753   Py_END_ALLOW_THREADS
13754 
13755   (void)self; /* unused */
13756   pyresult = _cffi_from_c__Bool(result);
13757   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
13758   return pyresult;
13759 }
13760 #else
13761 #  define _cffi_f_clingo_statistics_map_add_subkey _cffi_d_clingo_statistics_map_add_subkey
13762 #endif
13763 
_cffi_d_clingo_statistics_map_at(clingo_statistics_t const * x0,uint64_t x1,char const * x2,uint64_t * x3)13764 static _Bool _cffi_d_clingo_statistics_map_at(clingo_statistics_t const * x0, uint64_t x1, char const * x2, uint64_t * x3)
13765 {
13766   return clingo_statistics_map_at(x0, x1, x2, x3);
13767 }
13768 #ifndef PYPY_VERSION
13769 static PyObject *
_cffi_f_clingo_statistics_map_at(PyObject * self,PyObject * args)13770 _cffi_f_clingo_statistics_map_at(PyObject *self, PyObject *args)
13771 {
13772   clingo_statistics_t const * x0;
13773   uint64_t x1;
13774   char const * x2;
13775   uint64_t * x3;
13776   Py_ssize_t datasize;
13777   struct _cffi_freeme_s *large_args_free = NULL;
13778   _Bool result;
13779   PyObject *pyresult;
13780   PyObject *arg0;
13781   PyObject *arg1;
13782   PyObject *arg2;
13783   PyObject *arg3;
13784 
13785   if (!PyArg_UnpackTuple(args, "clingo_statistics_map_at", 4, 4, &arg0, &arg1, &arg2, &arg3))
13786     return NULL;
13787 
13788   datasize = _cffi_prepare_pointer_call_argument(
13789       _cffi_type(745), arg0, (char **)&x0);
13790   if (datasize != 0) {
13791     x0 = ((size_t)datasize) <= 640 ? (clingo_statistics_t const *)alloca((size_t)datasize) : NULL;
13792     if (_cffi_convert_array_argument(_cffi_type(745), arg0, (char **)&x0,
13793             datasize, &large_args_free) < 0)
13794       return NULL;
13795   }
13796 
13797   x1 = _cffi_to_c_int(arg1, uint64_t);
13798   if (x1 == (uint64_t)-1 && PyErr_Occurred())
13799     return NULL;
13800 
13801   datasize = _cffi_prepare_pointer_call_argument(
13802       _cffi_type(39), arg2, (char **)&x2);
13803   if (datasize != 0) {
13804     x2 = ((size_t)datasize) <= 640 ? (char const *)alloca((size_t)datasize) : NULL;
13805     if (_cffi_convert_array_argument(_cffi_type(39), arg2, (char **)&x2,
13806             datasize, &large_args_free) < 0)
13807       return NULL;
13808   }
13809 
13810   datasize = _cffi_prepare_pointer_call_argument(
13811       _cffi_type(54), arg3, (char **)&x3);
13812   if (datasize != 0) {
13813     x3 = ((size_t)datasize) <= 640 ? (uint64_t *)alloca((size_t)datasize) : NULL;
13814     if (_cffi_convert_array_argument(_cffi_type(54), arg3, (char **)&x3,
13815             datasize, &large_args_free) < 0)
13816       return NULL;
13817   }
13818 
13819   Py_BEGIN_ALLOW_THREADS
13820   _cffi_restore_errno();
13821   { result = clingo_statistics_map_at(x0, x1, x2, x3); }
13822   _cffi_save_errno();
13823   Py_END_ALLOW_THREADS
13824 
13825   (void)self; /* unused */
13826   pyresult = _cffi_from_c__Bool(result);
13827   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
13828   return pyresult;
13829 }
13830 #else
13831 #  define _cffi_f_clingo_statistics_map_at _cffi_d_clingo_statistics_map_at
13832 #endif
13833 
_cffi_d_clingo_statistics_map_has_subkey(clingo_statistics_t const * x0,uint64_t x1,char const * x2,_Bool * x3)13834 static _Bool _cffi_d_clingo_statistics_map_has_subkey(clingo_statistics_t const * x0, uint64_t x1, char const * x2, _Bool * x3)
13835 {
13836   return clingo_statistics_map_has_subkey(x0, x1, x2, x3);
13837 }
13838 #ifndef PYPY_VERSION
13839 static PyObject *
_cffi_f_clingo_statistics_map_has_subkey(PyObject * self,PyObject * args)13840 _cffi_f_clingo_statistics_map_has_subkey(PyObject *self, PyObject *args)
13841 {
13842   clingo_statistics_t const * x0;
13843   uint64_t x1;
13844   char const * x2;
13845   _Bool * x3;
13846   Py_ssize_t datasize;
13847   struct _cffi_freeme_s *large_args_free = NULL;
13848   _Bool result;
13849   PyObject *pyresult;
13850   PyObject *arg0;
13851   PyObject *arg1;
13852   PyObject *arg2;
13853   PyObject *arg3;
13854 
13855   if (!PyArg_UnpackTuple(args, "clingo_statistics_map_has_subkey", 4, 4, &arg0, &arg1, &arg2, &arg3))
13856     return NULL;
13857 
13858   datasize = _cffi_prepare_pointer_call_argument(
13859       _cffi_type(745), arg0, (char **)&x0);
13860   if (datasize != 0) {
13861     x0 = ((size_t)datasize) <= 640 ? (clingo_statistics_t const *)alloca((size_t)datasize) : NULL;
13862     if (_cffi_convert_array_argument(_cffi_type(745), arg0, (char **)&x0,
13863             datasize, &large_args_free) < 0)
13864       return NULL;
13865   }
13866 
13867   x1 = _cffi_to_c_int(arg1, uint64_t);
13868   if (x1 == (uint64_t)-1 && PyErr_Occurred())
13869     return NULL;
13870 
13871   datasize = _cffi_prepare_pointer_call_argument(
13872       _cffi_type(39), arg2, (char **)&x2);
13873   if (datasize != 0) {
13874     x2 = ((size_t)datasize) <= 640 ? (char const *)alloca((size_t)datasize) : NULL;
13875     if (_cffi_convert_array_argument(_cffi_type(39), arg2, (char **)&x2,
13876             datasize, &large_args_free) < 0)
13877       return NULL;
13878   }
13879 
13880   datasize = _cffi_prepare_pointer_call_argument(
13881       _cffi_type(40), arg3, (char **)&x3);
13882   if (datasize != 0) {
13883     x3 = ((size_t)datasize) <= 640 ? (_Bool *)alloca((size_t)datasize) : NULL;
13884     if (_cffi_convert_array_argument(_cffi_type(40), arg3, (char **)&x3,
13885             datasize, &large_args_free) < 0)
13886       return NULL;
13887   }
13888 
13889   Py_BEGIN_ALLOW_THREADS
13890   _cffi_restore_errno();
13891   { result = clingo_statistics_map_has_subkey(x0, x1, x2, x3); }
13892   _cffi_save_errno();
13893   Py_END_ALLOW_THREADS
13894 
13895   (void)self; /* unused */
13896   pyresult = _cffi_from_c__Bool(result);
13897   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
13898   return pyresult;
13899 }
13900 #else
13901 #  define _cffi_f_clingo_statistics_map_has_subkey _cffi_d_clingo_statistics_map_has_subkey
13902 #endif
13903 
_cffi_d_clingo_statistics_map_size(clingo_statistics_t const * x0,uint64_t x1,size_t * x2)13904 static _Bool _cffi_d_clingo_statistics_map_size(clingo_statistics_t const * x0, uint64_t x1, size_t * x2)
13905 {
13906   return clingo_statistics_map_size(x0, x1, x2);
13907 }
13908 #ifndef PYPY_VERSION
13909 static PyObject *
_cffi_f_clingo_statistics_map_size(PyObject * self,PyObject * args)13910 _cffi_f_clingo_statistics_map_size(PyObject *self, PyObject *args)
13911 {
13912   clingo_statistics_t const * x0;
13913   uint64_t x1;
13914   size_t * x2;
13915   Py_ssize_t datasize;
13916   struct _cffi_freeme_s *large_args_free = NULL;
13917   _Bool result;
13918   PyObject *pyresult;
13919   PyObject *arg0;
13920   PyObject *arg1;
13921   PyObject *arg2;
13922 
13923   if (!PyArg_UnpackTuple(args, "clingo_statistics_map_size", 3, 3, &arg0, &arg1, &arg2))
13924     return NULL;
13925 
13926   datasize = _cffi_prepare_pointer_call_argument(
13927       _cffi_type(745), arg0, (char **)&x0);
13928   if (datasize != 0) {
13929     x0 = ((size_t)datasize) <= 640 ? (clingo_statistics_t const *)alloca((size_t)datasize) : NULL;
13930     if (_cffi_convert_array_argument(_cffi_type(745), arg0, (char **)&x0,
13931             datasize, &large_args_free) < 0)
13932       return NULL;
13933   }
13934 
13935   x1 = _cffi_to_c_int(arg1, uint64_t);
13936   if (x1 == (uint64_t)-1 && PyErr_Occurred())
13937     return NULL;
13938 
13939   datasize = _cffi_prepare_pointer_call_argument(
13940       _cffi_type(205), arg2, (char **)&x2);
13941   if (datasize != 0) {
13942     x2 = ((size_t)datasize) <= 640 ? (size_t *)alloca((size_t)datasize) : NULL;
13943     if (_cffi_convert_array_argument(_cffi_type(205), arg2, (char **)&x2,
13944             datasize, &large_args_free) < 0)
13945       return NULL;
13946   }
13947 
13948   Py_BEGIN_ALLOW_THREADS
13949   _cffi_restore_errno();
13950   { result = clingo_statistics_map_size(x0, x1, x2); }
13951   _cffi_save_errno();
13952   Py_END_ALLOW_THREADS
13953 
13954   (void)self; /* unused */
13955   pyresult = _cffi_from_c__Bool(result);
13956   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
13957   return pyresult;
13958 }
13959 #else
13960 #  define _cffi_f_clingo_statistics_map_size _cffi_d_clingo_statistics_map_size
13961 #endif
13962 
_cffi_d_clingo_statistics_map_subkey_name(clingo_statistics_t const * x0,uint64_t x1,size_t x2,char const ** x3)13963 static _Bool _cffi_d_clingo_statistics_map_subkey_name(clingo_statistics_t const * x0, uint64_t x1, size_t x2, char const * * x3)
13964 {
13965   return clingo_statistics_map_subkey_name(x0, x1, x2, x3);
13966 }
13967 #ifndef PYPY_VERSION
13968 static PyObject *
_cffi_f_clingo_statistics_map_subkey_name(PyObject * self,PyObject * args)13969 _cffi_f_clingo_statistics_map_subkey_name(PyObject *self, PyObject *args)
13970 {
13971   clingo_statistics_t const * x0;
13972   uint64_t x1;
13973   size_t x2;
13974   char const * * x3;
13975   Py_ssize_t datasize;
13976   struct _cffi_freeme_s *large_args_free = NULL;
13977   _Bool result;
13978   PyObject *pyresult;
13979   PyObject *arg0;
13980   PyObject *arg1;
13981   PyObject *arg2;
13982   PyObject *arg3;
13983 
13984   if (!PyArg_UnpackTuple(args, "clingo_statistics_map_subkey_name", 4, 4, &arg0, &arg1, &arg2, &arg3))
13985     return NULL;
13986 
13987   datasize = _cffi_prepare_pointer_call_argument(
13988       _cffi_type(745), arg0, (char **)&x0);
13989   if (datasize != 0) {
13990     x0 = ((size_t)datasize) <= 640 ? (clingo_statistics_t const *)alloca((size_t)datasize) : NULL;
13991     if (_cffi_convert_array_argument(_cffi_type(745), arg0, (char **)&x0,
13992             datasize, &large_args_free) < 0)
13993       return NULL;
13994   }
13995 
13996   x1 = _cffi_to_c_int(arg1, uint64_t);
13997   if (x1 == (uint64_t)-1 && PyErr_Occurred())
13998     return NULL;
13999 
14000   x2 = _cffi_to_c_int(arg2, size_t);
14001   if (x2 == (size_t)-1 && PyErr_Occurred())
14002     return NULL;
14003 
14004   datasize = _cffi_prepare_pointer_call_argument(
14005       _cffi_type(58), arg3, (char **)&x3);
14006   if (datasize != 0) {
14007     x3 = ((size_t)datasize) <= 640 ? (char const * *)alloca((size_t)datasize) : NULL;
14008     if (_cffi_convert_array_argument(_cffi_type(58), arg3, (char **)&x3,
14009             datasize, &large_args_free) < 0)
14010       return NULL;
14011   }
14012 
14013   Py_BEGIN_ALLOW_THREADS
14014   _cffi_restore_errno();
14015   { result = clingo_statistics_map_subkey_name(x0, x1, x2, x3); }
14016   _cffi_save_errno();
14017   Py_END_ALLOW_THREADS
14018 
14019   (void)self; /* unused */
14020   pyresult = _cffi_from_c__Bool(result);
14021   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
14022   return pyresult;
14023 }
14024 #else
14025 #  define _cffi_f_clingo_statistics_map_subkey_name _cffi_d_clingo_statistics_map_subkey_name
14026 #endif
14027 
_cffi_d_clingo_statistics_root(clingo_statistics_t const * x0,uint64_t * x1)14028 static _Bool _cffi_d_clingo_statistics_root(clingo_statistics_t const * x0, uint64_t * x1)
14029 {
14030   return clingo_statistics_root(x0, x1);
14031 }
14032 #ifndef PYPY_VERSION
14033 static PyObject *
_cffi_f_clingo_statistics_root(PyObject * self,PyObject * args)14034 _cffi_f_clingo_statistics_root(PyObject *self, PyObject *args)
14035 {
14036   clingo_statistics_t const * x0;
14037   uint64_t * x1;
14038   Py_ssize_t datasize;
14039   struct _cffi_freeme_s *large_args_free = NULL;
14040   _Bool result;
14041   PyObject *pyresult;
14042   PyObject *arg0;
14043   PyObject *arg1;
14044 
14045   if (!PyArg_UnpackTuple(args, "clingo_statistics_root", 2, 2, &arg0, &arg1))
14046     return NULL;
14047 
14048   datasize = _cffi_prepare_pointer_call_argument(
14049       _cffi_type(745), arg0, (char **)&x0);
14050   if (datasize != 0) {
14051     x0 = ((size_t)datasize) <= 640 ? (clingo_statistics_t const *)alloca((size_t)datasize) : NULL;
14052     if (_cffi_convert_array_argument(_cffi_type(745), arg0, (char **)&x0,
14053             datasize, &large_args_free) < 0)
14054       return NULL;
14055   }
14056 
14057   datasize = _cffi_prepare_pointer_call_argument(
14058       _cffi_type(54), arg1, (char **)&x1);
14059   if (datasize != 0) {
14060     x1 = ((size_t)datasize) <= 640 ? (uint64_t *)alloca((size_t)datasize) : NULL;
14061     if (_cffi_convert_array_argument(_cffi_type(54), arg1, (char **)&x1,
14062             datasize, &large_args_free) < 0)
14063       return NULL;
14064   }
14065 
14066   Py_BEGIN_ALLOW_THREADS
14067   _cffi_restore_errno();
14068   { result = clingo_statistics_root(x0, x1); }
14069   _cffi_save_errno();
14070   Py_END_ALLOW_THREADS
14071 
14072   (void)self; /* unused */
14073   pyresult = _cffi_from_c__Bool(result);
14074   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
14075   return pyresult;
14076 }
14077 #else
14078 #  define _cffi_f_clingo_statistics_root _cffi_d_clingo_statistics_root
14079 #endif
14080 
_cffi_d_clingo_statistics_type(clingo_statistics_t const * x0,uint64_t x1,int * x2)14081 static _Bool _cffi_d_clingo_statistics_type(clingo_statistics_t const * x0, uint64_t x1, int * x2)
14082 {
14083   return clingo_statistics_type(x0, x1, x2);
14084 }
14085 #ifndef PYPY_VERSION
14086 static PyObject *
_cffi_f_clingo_statistics_type(PyObject * self,PyObject * args)14087 _cffi_f_clingo_statistics_type(PyObject *self, PyObject *args)
14088 {
14089   clingo_statistics_t const * x0;
14090   uint64_t x1;
14091   int * x2;
14092   Py_ssize_t datasize;
14093   struct _cffi_freeme_s *large_args_free = NULL;
14094   _Bool result;
14095   PyObject *pyresult;
14096   PyObject *arg0;
14097   PyObject *arg1;
14098   PyObject *arg2;
14099 
14100   if (!PyArg_UnpackTuple(args, "clingo_statistics_type", 3, 3, &arg0, &arg1, &arg2))
14101     return NULL;
14102 
14103   datasize = _cffi_prepare_pointer_call_argument(
14104       _cffi_type(745), arg0, (char **)&x0);
14105   if (datasize != 0) {
14106     x0 = ((size_t)datasize) <= 640 ? (clingo_statistics_t const *)alloca((size_t)datasize) : NULL;
14107     if (_cffi_convert_array_argument(_cffi_type(745), arg0, (char **)&x0,
14108             datasize, &large_args_free) < 0)
14109       return NULL;
14110   }
14111 
14112   x1 = _cffi_to_c_int(arg1, uint64_t);
14113   if (x1 == (uint64_t)-1 && PyErr_Occurred())
14114     return NULL;
14115 
14116   datasize = _cffi_prepare_pointer_call_argument(
14117       _cffi_type(108), arg2, (char **)&x2);
14118   if (datasize != 0) {
14119     x2 = ((size_t)datasize) <= 640 ? (int *)alloca((size_t)datasize) : NULL;
14120     if (_cffi_convert_array_argument(_cffi_type(108), arg2, (char **)&x2,
14121             datasize, &large_args_free) < 0)
14122       return NULL;
14123   }
14124 
14125   Py_BEGIN_ALLOW_THREADS
14126   _cffi_restore_errno();
14127   { result = clingo_statistics_type(x0, x1, x2); }
14128   _cffi_save_errno();
14129   Py_END_ALLOW_THREADS
14130 
14131   (void)self; /* unused */
14132   pyresult = _cffi_from_c__Bool(result);
14133   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
14134   return pyresult;
14135 }
14136 #else
14137 #  define _cffi_f_clingo_statistics_type _cffi_d_clingo_statistics_type
14138 #endif
14139 
_cffi_d_clingo_statistics_value_get(clingo_statistics_t const * x0,uint64_t x1,double * x2)14140 static _Bool _cffi_d_clingo_statistics_value_get(clingo_statistics_t const * x0, uint64_t x1, double * x2)
14141 {
14142   return clingo_statistics_value_get(x0, x1, x2);
14143 }
14144 #ifndef PYPY_VERSION
14145 static PyObject *
_cffi_f_clingo_statistics_value_get(PyObject * self,PyObject * args)14146 _cffi_f_clingo_statistics_value_get(PyObject *self, PyObject *args)
14147 {
14148   clingo_statistics_t const * x0;
14149   uint64_t x1;
14150   double * x2;
14151   Py_ssize_t datasize;
14152   struct _cffi_freeme_s *large_args_free = NULL;
14153   _Bool result;
14154   PyObject *pyresult;
14155   PyObject *arg0;
14156   PyObject *arg1;
14157   PyObject *arg2;
14158 
14159   if (!PyArg_UnpackTuple(args, "clingo_statistics_value_get", 3, 3, &arg0, &arg1, &arg2))
14160     return NULL;
14161 
14162   datasize = _cffi_prepare_pointer_call_argument(
14163       _cffi_type(745), arg0, (char **)&x0);
14164   if (datasize != 0) {
14165     x0 = ((size_t)datasize) <= 640 ? (clingo_statistics_t const *)alloca((size_t)datasize) : NULL;
14166     if (_cffi_convert_array_argument(_cffi_type(745), arg0, (char **)&x0,
14167             datasize, &large_args_free) < 0)
14168       return NULL;
14169   }
14170 
14171   x1 = _cffi_to_c_int(arg1, uint64_t);
14172   if (x1 == (uint64_t)-1 && PyErr_Occurred())
14173     return NULL;
14174 
14175   datasize = _cffi_prepare_pointer_call_argument(
14176       _cffi_type(763), arg2, (char **)&x2);
14177   if (datasize != 0) {
14178     x2 = ((size_t)datasize) <= 640 ? (double *)alloca((size_t)datasize) : NULL;
14179     if (_cffi_convert_array_argument(_cffi_type(763), arg2, (char **)&x2,
14180             datasize, &large_args_free) < 0)
14181       return NULL;
14182   }
14183 
14184   Py_BEGIN_ALLOW_THREADS
14185   _cffi_restore_errno();
14186   { result = clingo_statistics_value_get(x0, x1, x2); }
14187   _cffi_save_errno();
14188   Py_END_ALLOW_THREADS
14189 
14190   (void)self; /* unused */
14191   pyresult = _cffi_from_c__Bool(result);
14192   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
14193   return pyresult;
14194 }
14195 #else
14196 #  define _cffi_f_clingo_statistics_value_get _cffi_d_clingo_statistics_value_get
14197 #endif
14198 
_cffi_d_clingo_statistics_value_set(clingo_statistics_t * x0,uint64_t x1,double x2)14199 static _Bool _cffi_d_clingo_statistics_value_set(clingo_statistics_t * x0, uint64_t x1, double x2)
14200 {
14201   return clingo_statistics_value_set(x0, x1, x2);
14202 }
14203 #ifndef PYPY_VERSION
14204 static PyObject *
_cffi_f_clingo_statistics_value_set(PyObject * self,PyObject * args)14205 _cffi_f_clingo_statistics_value_set(PyObject *self, PyObject *args)
14206 {
14207   clingo_statistics_t * x0;
14208   uint64_t x1;
14209   double x2;
14210   Py_ssize_t datasize;
14211   struct _cffi_freeme_s *large_args_free = NULL;
14212   _Bool result;
14213   PyObject *pyresult;
14214   PyObject *arg0;
14215   PyObject *arg1;
14216   PyObject *arg2;
14217 
14218   if (!PyArg_UnpackTuple(args, "clingo_statistics_value_set", 3, 3, &arg0, &arg1, &arg2))
14219     return NULL;
14220 
14221   datasize = _cffi_prepare_pointer_call_argument(
14222       _cffi_type(727), arg0, (char **)&x0);
14223   if (datasize != 0) {
14224     x0 = ((size_t)datasize) <= 640 ? (clingo_statistics_t *)alloca((size_t)datasize) : NULL;
14225     if (_cffi_convert_array_argument(_cffi_type(727), arg0, (char **)&x0,
14226             datasize, &large_args_free) < 0)
14227       return NULL;
14228   }
14229 
14230   x1 = _cffi_to_c_int(arg1, uint64_t);
14231   if (x1 == (uint64_t)-1 && PyErr_Occurred())
14232     return NULL;
14233 
14234   x2 = (double)_cffi_to_c_double(arg2);
14235   if (x2 == (double)-1 && PyErr_Occurred())
14236     return NULL;
14237 
14238   Py_BEGIN_ALLOW_THREADS
14239   _cffi_restore_errno();
14240   { result = clingo_statistics_value_set(x0, x1, x2); }
14241   _cffi_save_errno();
14242   Py_END_ALLOW_THREADS
14243 
14244   (void)self; /* unused */
14245   pyresult = _cffi_from_c__Bool(result);
14246   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
14247   return pyresult;
14248 }
14249 #else
14250 #  define _cffi_f_clingo_statistics_value_set _cffi_d_clingo_statistics_value_set
14251 #endif
14252 
_cffi_d_clingo_symbol_arguments(uint64_t x0,uint64_t const ** x1,size_t * x2)14253 static _Bool _cffi_d_clingo_symbol_arguments(uint64_t x0, uint64_t const * * x1, size_t * x2)
14254 {
14255   return clingo_symbol_arguments(x0, x1, x2);
14256 }
14257 #ifndef PYPY_VERSION
14258 static PyObject *
_cffi_f_clingo_symbol_arguments(PyObject * self,PyObject * args)14259 _cffi_f_clingo_symbol_arguments(PyObject *self, PyObject *args)
14260 {
14261   uint64_t x0;
14262   uint64_t const * * x1;
14263   size_t * x2;
14264   Py_ssize_t datasize;
14265   struct _cffi_freeme_s *large_args_free = NULL;
14266   _Bool result;
14267   PyObject *pyresult;
14268   PyObject *arg0;
14269   PyObject *arg1;
14270   PyObject *arg2;
14271 
14272   if (!PyArg_UnpackTuple(args, "clingo_symbol_arguments", 3, 3, &arg0, &arg1, &arg2))
14273     return NULL;
14274 
14275   x0 = _cffi_to_c_int(arg0, uint64_t);
14276   if (x0 == (uint64_t)-1 && PyErr_Occurred())
14277     return NULL;
14278 
14279   datasize = _cffi_prepare_pointer_call_argument(
14280       _cffi_type(1017), arg1, (char **)&x1);
14281   if (datasize != 0) {
14282     x1 = ((size_t)datasize) <= 640 ? (uint64_t const * *)alloca((size_t)datasize) : NULL;
14283     if (_cffi_convert_array_argument(_cffi_type(1017), arg1, (char **)&x1,
14284             datasize, &large_args_free) < 0)
14285       return NULL;
14286   }
14287 
14288   datasize = _cffi_prepare_pointer_call_argument(
14289       _cffi_type(205), arg2, (char **)&x2);
14290   if (datasize != 0) {
14291     x2 = ((size_t)datasize) <= 640 ? (size_t *)alloca((size_t)datasize) : NULL;
14292     if (_cffi_convert_array_argument(_cffi_type(205), arg2, (char **)&x2,
14293             datasize, &large_args_free) < 0)
14294       return NULL;
14295   }
14296 
14297   Py_BEGIN_ALLOW_THREADS
14298   _cffi_restore_errno();
14299   { result = clingo_symbol_arguments(x0, x1, x2); }
14300   _cffi_save_errno();
14301   Py_END_ALLOW_THREADS
14302 
14303   (void)self; /* unused */
14304   pyresult = _cffi_from_c__Bool(result);
14305   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
14306   return pyresult;
14307 }
14308 #else
14309 #  define _cffi_f_clingo_symbol_arguments _cffi_d_clingo_symbol_arguments
14310 #endif
14311 
_cffi_d_clingo_symbol_create_function(char const * x0,uint64_t const * x1,size_t x2,_Bool x3,uint64_t * x4)14312 static _Bool _cffi_d_clingo_symbol_create_function(char const * x0, uint64_t const * x1, size_t x2, _Bool x3, uint64_t * x4)
14313 {
14314   return clingo_symbol_create_function(x0, x1, x2, x3, x4);
14315 }
14316 #ifndef PYPY_VERSION
14317 static PyObject *
_cffi_f_clingo_symbol_create_function(PyObject * self,PyObject * args)14318 _cffi_f_clingo_symbol_create_function(PyObject *self, PyObject *args)
14319 {
14320   char const * x0;
14321   uint64_t const * x1;
14322   size_t x2;
14323   _Bool x3;
14324   uint64_t * x4;
14325   Py_ssize_t datasize;
14326   struct _cffi_freeme_s *large_args_free = NULL;
14327   _Bool result;
14328   PyObject *pyresult;
14329   PyObject *arg0;
14330   PyObject *arg1;
14331   PyObject *arg2;
14332   PyObject *arg3;
14333   PyObject *arg4;
14334 
14335   if (!PyArg_UnpackTuple(args, "clingo_symbol_create_function", 5, 5, &arg0, &arg1, &arg2, &arg3, &arg4))
14336     return NULL;
14337 
14338   datasize = _cffi_prepare_pointer_call_argument(
14339       _cffi_type(39), arg0, (char **)&x0);
14340   if (datasize != 0) {
14341     x0 = ((size_t)datasize) <= 640 ? (char const *)alloca((size_t)datasize) : NULL;
14342     if (_cffi_convert_array_argument(_cffi_type(39), arg0, (char **)&x0,
14343             datasize, &large_args_free) < 0)
14344       return NULL;
14345   }
14346 
14347   datasize = _cffi_prepare_pointer_call_argument(
14348       _cffi_type(77), arg1, (char **)&x1);
14349   if (datasize != 0) {
14350     x1 = ((size_t)datasize) <= 640 ? (uint64_t const *)alloca((size_t)datasize) : NULL;
14351     if (_cffi_convert_array_argument(_cffi_type(77), arg1, (char **)&x1,
14352             datasize, &large_args_free) < 0)
14353       return NULL;
14354   }
14355 
14356   x2 = _cffi_to_c_int(arg2, size_t);
14357   if (x2 == (size_t)-1 && PyErr_Occurred())
14358     return NULL;
14359 
14360   x3 = (_Bool)_cffi_to_c__Bool(arg3);
14361   if (x3 == (_Bool)-1 && PyErr_Occurred())
14362     return NULL;
14363 
14364   datasize = _cffi_prepare_pointer_call_argument(
14365       _cffi_type(54), arg4, (char **)&x4);
14366   if (datasize != 0) {
14367     x4 = ((size_t)datasize) <= 640 ? (uint64_t *)alloca((size_t)datasize) : NULL;
14368     if (_cffi_convert_array_argument(_cffi_type(54), arg4, (char **)&x4,
14369             datasize, &large_args_free) < 0)
14370       return NULL;
14371   }
14372 
14373   Py_BEGIN_ALLOW_THREADS
14374   _cffi_restore_errno();
14375   { result = clingo_symbol_create_function(x0, x1, x2, x3, x4); }
14376   _cffi_save_errno();
14377   Py_END_ALLOW_THREADS
14378 
14379   (void)self; /* unused */
14380   pyresult = _cffi_from_c__Bool(result);
14381   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
14382   return pyresult;
14383 }
14384 #else
14385 #  define _cffi_f_clingo_symbol_create_function _cffi_d_clingo_symbol_create_function
14386 #endif
14387 
_cffi_d_clingo_symbol_create_id(char const * x0,_Bool x1,uint64_t * x2)14388 static _Bool _cffi_d_clingo_symbol_create_id(char const * x0, _Bool x1, uint64_t * x2)
14389 {
14390   return clingo_symbol_create_id(x0, x1, x2);
14391 }
14392 #ifndef PYPY_VERSION
14393 static PyObject *
_cffi_f_clingo_symbol_create_id(PyObject * self,PyObject * args)14394 _cffi_f_clingo_symbol_create_id(PyObject *self, PyObject *args)
14395 {
14396   char const * x0;
14397   _Bool x1;
14398   uint64_t * x2;
14399   Py_ssize_t datasize;
14400   struct _cffi_freeme_s *large_args_free = NULL;
14401   _Bool result;
14402   PyObject *pyresult;
14403   PyObject *arg0;
14404   PyObject *arg1;
14405   PyObject *arg2;
14406 
14407   if (!PyArg_UnpackTuple(args, "clingo_symbol_create_id", 3, 3, &arg0, &arg1, &arg2))
14408     return NULL;
14409 
14410   datasize = _cffi_prepare_pointer_call_argument(
14411       _cffi_type(39), arg0, (char **)&x0);
14412   if (datasize != 0) {
14413     x0 = ((size_t)datasize) <= 640 ? (char const *)alloca((size_t)datasize) : NULL;
14414     if (_cffi_convert_array_argument(_cffi_type(39), arg0, (char **)&x0,
14415             datasize, &large_args_free) < 0)
14416       return NULL;
14417   }
14418 
14419   x1 = (_Bool)_cffi_to_c__Bool(arg1);
14420   if (x1 == (_Bool)-1 && PyErr_Occurred())
14421     return NULL;
14422 
14423   datasize = _cffi_prepare_pointer_call_argument(
14424       _cffi_type(54), arg2, (char **)&x2);
14425   if (datasize != 0) {
14426     x2 = ((size_t)datasize) <= 640 ? (uint64_t *)alloca((size_t)datasize) : NULL;
14427     if (_cffi_convert_array_argument(_cffi_type(54), arg2, (char **)&x2,
14428             datasize, &large_args_free) < 0)
14429       return NULL;
14430   }
14431 
14432   Py_BEGIN_ALLOW_THREADS
14433   _cffi_restore_errno();
14434   { result = clingo_symbol_create_id(x0, x1, x2); }
14435   _cffi_save_errno();
14436   Py_END_ALLOW_THREADS
14437 
14438   (void)self; /* unused */
14439   pyresult = _cffi_from_c__Bool(result);
14440   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
14441   return pyresult;
14442 }
14443 #else
14444 #  define _cffi_f_clingo_symbol_create_id _cffi_d_clingo_symbol_create_id
14445 #endif
14446 
_cffi_d_clingo_symbol_create_infimum(uint64_t * x0)14447 static void _cffi_d_clingo_symbol_create_infimum(uint64_t * x0)
14448 {
14449   clingo_symbol_create_infimum(x0);
14450 }
14451 #ifndef PYPY_VERSION
14452 static PyObject *
_cffi_f_clingo_symbol_create_infimum(PyObject * self,PyObject * arg0)14453 _cffi_f_clingo_symbol_create_infimum(PyObject *self, PyObject *arg0)
14454 {
14455   uint64_t * x0;
14456   Py_ssize_t datasize;
14457   struct _cffi_freeme_s *large_args_free = NULL;
14458 
14459   datasize = _cffi_prepare_pointer_call_argument(
14460       _cffi_type(54), arg0, (char **)&x0);
14461   if (datasize != 0) {
14462     x0 = ((size_t)datasize) <= 640 ? (uint64_t *)alloca((size_t)datasize) : NULL;
14463     if (_cffi_convert_array_argument(_cffi_type(54), arg0, (char **)&x0,
14464             datasize, &large_args_free) < 0)
14465       return NULL;
14466   }
14467 
14468   Py_BEGIN_ALLOW_THREADS
14469   _cffi_restore_errno();
14470   { clingo_symbol_create_infimum(x0); }
14471   _cffi_save_errno();
14472   Py_END_ALLOW_THREADS
14473 
14474   (void)self; /* unused */
14475   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
14476   Py_INCREF(Py_None);
14477   return Py_None;
14478 }
14479 #else
14480 #  define _cffi_f_clingo_symbol_create_infimum _cffi_d_clingo_symbol_create_infimum
14481 #endif
14482 
_cffi_d_clingo_symbol_create_number(int x0,uint64_t * x1)14483 static void _cffi_d_clingo_symbol_create_number(int x0, uint64_t * x1)
14484 {
14485   clingo_symbol_create_number(x0, x1);
14486 }
14487 #ifndef PYPY_VERSION
14488 static PyObject *
_cffi_f_clingo_symbol_create_number(PyObject * self,PyObject * args)14489 _cffi_f_clingo_symbol_create_number(PyObject *self, PyObject *args)
14490 {
14491   int x0;
14492   uint64_t * x1;
14493   Py_ssize_t datasize;
14494   struct _cffi_freeme_s *large_args_free = NULL;
14495   PyObject *arg0;
14496   PyObject *arg1;
14497 
14498   if (!PyArg_UnpackTuple(args, "clingo_symbol_create_number", 2, 2, &arg0, &arg1))
14499     return NULL;
14500 
14501   x0 = _cffi_to_c_int(arg0, int);
14502   if (x0 == (int)-1 && PyErr_Occurred())
14503     return NULL;
14504 
14505   datasize = _cffi_prepare_pointer_call_argument(
14506       _cffi_type(54), arg1, (char **)&x1);
14507   if (datasize != 0) {
14508     x1 = ((size_t)datasize) <= 640 ? (uint64_t *)alloca((size_t)datasize) : NULL;
14509     if (_cffi_convert_array_argument(_cffi_type(54), arg1, (char **)&x1,
14510             datasize, &large_args_free) < 0)
14511       return NULL;
14512   }
14513 
14514   Py_BEGIN_ALLOW_THREADS
14515   _cffi_restore_errno();
14516   { clingo_symbol_create_number(x0, x1); }
14517   _cffi_save_errno();
14518   Py_END_ALLOW_THREADS
14519 
14520   (void)self; /* unused */
14521   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
14522   Py_INCREF(Py_None);
14523   return Py_None;
14524 }
14525 #else
14526 #  define _cffi_f_clingo_symbol_create_number _cffi_d_clingo_symbol_create_number
14527 #endif
14528 
_cffi_d_clingo_symbol_create_string(char const * x0,uint64_t * x1)14529 static _Bool _cffi_d_clingo_symbol_create_string(char const * x0, uint64_t * x1)
14530 {
14531   return clingo_symbol_create_string(x0, x1);
14532 }
14533 #ifndef PYPY_VERSION
14534 static PyObject *
_cffi_f_clingo_symbol_create_string(PyObject * self,PyObject * args)14535 _cffi_f_clingo_symbol_create_string(PyObject *self, PyObject *args)
14536 {
14537   char const * x0;
14538   uint64_t * x1;
14539   Py_ssize_t datasize;
14540   struct _cffi_freeme_s *large_args_free = NULL;
14541   _Bool result;
14542   PyObject *pyresult;
14543   PyObject *arg0;
14544   PyObject *arg1;
14545 
14546   if (!PyArg_UnpackTuple(args, "clingo_symbol_create_string", 2, 2, &arg0, &arg1))
14547     return NULL;
14548 
14549   datasize = _cffi_prepare_pointer_call_argument(
14550       _cffi_type(39), arg0, (char **)&x0);
14551   if (datasize != 0) {
14552     x0 = ((size_t)datasize) <= 640 ? (char const *)alloca((size_t)datasize) : NULL;
14553     if (_cffi_convert_array_argument(_cffi_type(39), arg0, (char **)&x0,
14554             datasize, &large_args_free) < 0)
14555       return NULL;
14556   }
14557 
14558   datasize = _cffi_prepare_pointer_call_argument(
14559       _cffi_type(54), arg1, (char **)&x1);
14560   if (datasize != 0) {
14561     x1 = ((size_t)datasize) <= 640 ? (uint64_t *)alloca((size_t)datasize) : NULL;
14562     if (_cffi_convert_array_argument(_cffi_type(54), arg1, (char **)&x1,
14563             datasize, &large_args_free) < 0)
14564       return NULL;
14565   }
14566 
14567   Py_BEGIN_ALLOW_THREADS
14568   _cffi_restore_errno();
14569   { result = clingo_symbol_create_string(x0, x1); }
14570   _cffi_save_errno();
14571   Py_END_ALLOW_THREADS
14572 
14573   (void)self; /* unused */
14574   pyresult = _cffi_from_c__Bool(result);
14575   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
14576   return pyresult;
14577 }
14578 #else
14579 #  define _cffi_f_clingo_symbol_create_string _cffi_d_clingo_symbol_create_string
14580 #endif
14581 
_cffi_d_clingo_symbol_create_supremum(uint64_t * x0)14582 static void _cffi_d_clingo_symbol_create_supremum(uint64_t * x0)
14583 {
14584   clingo_symbol_create_supremum(x0);
14585 }
14586 #ifndef PYPY_VERSION
14587 static PyObject *
_cffi_f_clingo_symbol_create_supremum(PyObject * self,PyObject * arg0)14588 _cffi_f_clingo_symbol_create_supremum(PyObject *self, PyObject *arg0)
14589 {
14590   uint64_t * x0;
14591   Py_ssize_t datasize;
14592   struct _cffi_freeme_s *large_args_free = NULL;
14593 
14594   datasize = _cffi_prepare_pointer_call_argument(
14595       _cffi_type(54), arg0, (char **)&x0);
14596   if (datasize != 0) {
14597     x0 = ((size_t)datasize) <= 640 ? (uint64_t *)alloca((size_t)datasize) : NULL;
14598     if (_cffi_convert_array_argument(_cffi_type(54), arg0, (char **)&x0,
14599             datasize, &large_args_free) < 0)
14600       return NULL;
14601   }
14602 
14603   Py_BEGIN_ALLOW_THREADS
14604   _cffi_restore_errno();
14605   { clingo_symbol_create_supremum(x0); }
14606   _cffi_save_errno();
14607   Py_END_ALLOW_THREADS
14608 
14609   (void)self; /* unused */
14610   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
14611   Py_INCREF(Py_None);
14612   return Py_None;
14613 }
14614 #else
14615 #  define _cffi_f_clingo_symbol_create_supremum _cffi_d_clingo_symbol_create_supremum
14616 #endif
14617 
_cffi_d_clingo_symbol_hash(uint64_t x0)14618 static size_t _cffi_d_clingo_symbol_hash(uint64_t x0)
14619 {
14620   return clingo_symbol_hash(x0);
14621 }
14622 #ifndef PYPY_VERSION
14623 static PyObject *
_cffi_f_clingo_symbol_hash(PyObject * self,PyObject * arg0)14624 _cffi_f_clingo_symbol_hash(PyObject *self, PyObject *arg0)
14625 {
14626   uint64_t x0;
14627   size_t result;
14628   PyObject *pyresult;
14629 
14630   x0 = _cffi_to_c_int(arg0, uint64_t);
14631   if (x0 == (uint64_t)-1 && PyErr_Occurred())
14632     return NULL;
14633 
14634   Py_BEGIN_ALLOW_THREADS
14635   _cffi_restore_errno();
14636   { result = clingo_symbol_hash(x0); }
14637   _cffi_save_errno();
14638   Py_END_ALLOW_THREADS
14639 
14640   (void)self; /* unused */
14641   pyresult = _cffi_from_c_int(result, size_t);
14642   return pyresult;
14643 }
14644 #else
14645 #  define _cffi_f_clingo_symbol_hash _cffi_d_clingo_symbol_hash
14646 #endif
14647 
_cffi_d_clingo_symbol_is_equal_to(uint64_t x0,uint64_t x1)14648 static _Bool _cffi_d_clingo_symbol_is_equal_to(uint64_t x0, uint64_t x1)
14649 {
14650   return clingo_symbol_is_equal_to(x0, x1);
14651 }
14652 #ifndef PYPY_VERSION
14653 static PyObject *
_cffi_f_clingo_symbol_is_equal_to(PyObject * self,PyObject * args)14654 _cffi_f_clingo_symbol_is_equal_to(PyObject *self, PyObject *args)
14655 {
14656   uint64_t x0;
14657   uint64_t x1;
14658   _Bool result;
14659   PyObject *pyresult;
14660   PyObject *arg0;
14661   PyObject *arg1;
14662 
14663   if (!PyArg_UnpackTuple(args, "clingo_symbol_is_equal_to", 2, 2, &arg0, &arg1))
14664     return NULL;
14665 
14666   x0 = _cffi_to_c_int(arg0, uint64_t);
14667   if (x0 == (uint64_t)-1 && PyErr_Occurred())
14668     return NULL;
14669 
14670   x1 = _cffi_to_c_int(arg1, uint64_t);
14671   if (x1 == (uint64_t)-1 && PyErr_Occurred())
14672     return NULL;
14673 
14674   Py_BEGIN_ALLOW_THREADS
14675   _cffi_restore_errno();
14676   { result = clingo_symbol_is_equal_to(x0, x1); }
14677   _cffi_save_errno();
14678   Py_END_ALLOW_THREADS
14679 
14680   (void)self; /* unused */
14681   pyresult = _cffi_from_c__Bool(result);
14682   return pyresult;
14683 }
14684 #else
14685 #  define _cffi_f_clingo_symbol_is_equal_to _cffi_d_clingo_symbol_is_equal_to
14686 #endif
14687 
_cffi_d_clingo_symbol_is_less_than(uint64_t x0,uint64_t x1)14688 static _Bool _cffi_d_clingo_symbol_is_less_than(uint64_t x0, uint64_t x1)
14689 {
14690   return clingo_symbol_is_less_than(x0, x1);
14691 }
14692 #ifndef PYPY_VERSION
14693 static PyObject *
_cffi_f_clingo_symbol_is_less_than(PyObject * self,PyObject * args)14694 _cffi_f_clingo_symbol_is_less_than(PyObject *self, PyObject *args)
14695 {
14696   uint64_t x0;
14697   uint64_t x1;
14698   _Bool result;
14699   PyObject *pyresult;
14700   PyObject *arg0;
14701   PyObject *arg1;
14702 
14703   if (!PyArg_UnpackTuple(args, "clingo_symbol_is_less_than", 2, 2, &arg0, &arg1))
14704     return NULL;
14705 
14706   x0 = _cffi_to_c_int(arg0, uint64_t);
14707   if (x0 == (uint64_t)-1 && PyErr_Occurred())
14708     return NULL;
14709 
14710   x1 = _cffi_to_c_int(arg1, uint64_t);
14711   if (x1 == (uint64_t)-1 && PyErr_Occurred())
14712     return NULL;
14713 
14714   Py_BEGIN_ALLOW_THREADS
14715   _cffi_restore_errno();
14716   { result = clingo_symbol_is_less_than(x0, x1); }
14717   _cffi_save_errno();
14718   Py_END_ALLOW_THREADS
14719 
14720   (void)self; /* unused */
14721   pyresult = _cffi_from_c__Bool(result);
14722   return pyresult;
14723 }
14724 #else
14725 #  define _cffi_f_clingo_symbol_is_less_than _cffi_d_clingo_symbol_is_less_than
14726 #endif
14727 
_cffi_d_clingo_symbol_is_negative(uint64_t x0,_Bool * x1)14728 static _Bool _cffi_d_clingo_symbol_is_negative(uint64_t x0, _Bool * x1)
14729 {
14730   return clingo_symbol_is_negative(x0, x1);
14731 }
14732 #ifndef PYPY_VERSION
14733 static PyObject *
_cffi_f_clingo_symbol_is_negative(PyObject * self,PyObject * args)14734 _cffi_f_clingo_symbol_is_negative(PyObject *self, PyObject *args)
14735 {
14736   uint64_t x0;
14737   _Bool * x1;
14738   Py_ssize_t datasize;
14739   struct _cffi_freeme_s *large_args_free = NULL;
14740   _Bool result;
14741   PyObject *pyresult;
14742   PyObject *arg0;
14743   PyObject *arg1;
14744 
14745   if (!PyArg_UnpackTuple(args, "clingo_symbol_is_negative", 2, 2, &arg0, &arg1))
14746     return NULL;
14747 
14748   x0 = _cffi_to_c_int(arg0, uint64_t);
14749   if (x0 == (uint64_t)-1 && PyErr_Occurred())
14750     return NULL;
14751 
14752   datasize = _cffi_prepare_pointer_call_argument(
14753       _cffi_type(40), arg1, (char **)&x1);
14754   if (datasize != 0) {
14755     x1 = ((size_t)datasize) <= 640 ? (_Bool *)alloca((size_t)datasize) : NULL;
14756     if (_cffi_convert_array_argument(_cffi_type(40), arg1, (char **)&x1,
14757             datasize, &large_args_free) < 0)
14758       return NULL;
14759   }
14760 
14761   Py_BEGIN_ALLOW_THREADS
14762   _cffi_restore_errno();
14763   { result = clingo_symbol_is_negative(x0, x1); }
14764   _cffi_save_errno();
14765   Py_END_ALLOW_THREADS
14766 
14767   (void)self; /* unused */
14768   pyresult = _cffi_from_c__Bool(result);
14769   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
14770   return pyresult;
14771 }
14772 #else
14773 #  define _cffi_f_clingo_symbol_is_negative _cffi_d_clingo_symbol_is_negative
14774 #endif
14775 
_cffi_d_clingo_symbol_is_positive(uint64_t x0,_Bool * x1)14776 static _Bool _cffi_d_clingo_symbol_is_positive(uint64_t x0, _Bool * x1)
14777 {
14778   return clingo_symbol_is_positive(x0, x1);
14779 }
14780 #ifndef PYPY_VERSION
14781 static PyObject *
_cffi_f_clingo_symbol_is_positive(PyObject * self,PyObject * args)14782 _cffi_f_clingo_symbol_is_positive(PyObject *self, PyObject *args)
14783 {
14784   uint64_t x0;
14785   _Bool * x1;
14786   Py_ssize_t datasize;
14787   struct _cffi_freeme_s *large_args_free = NULL;
14788   _Bool result;
14789   PyObject *pyresult;
14790   PyObject *arg0;
14791   PyObject *arg1;
14792 
14793   if (!PyArg_UnpackTuple(args, "clingo_symbol_is_positive", 2, 2, &arg0, &arg1))
14794     return NULL;
14795 
14796   x0 = _cffi_to_c_int(arg0, uint64_t);
14797   if (x0 == (uint64_t)-1 && PyErr_Occurred())
14798     return NULL;
14799 
14800   datasize = _cffi_prepare_pointer_call_argument(
14801       _cffi_type(40), arg1, (char **)&x1);
14802   if (datasize != 0) {
14803     x1 = ((size_t)datasize) <= 640 ? (_Bool *)alloca((size_t)datasize) : NULL;
14804     if (_cffi_convert_array_argument(_cffi_type(40), arg1, (char **)&x1,
14805             datasize, &large_args_free) < 0)
14806       return NULL;
14807   }
14808 
14809   Py_BEGIN_ALLOW_THREADS
14810   _cffi_restore_errno();
14811   { result = clingo_symbol_is_positive(x0, x1); }
14812   _cffi_save_errno();
14813   Py_END_ALLOW_THREADS
14814 
14815   (void)self; /* unused */
14816   pyresult = _cffi_from_c__Bool(result);
14817   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
14818   return pyresult;
14819 }
14820 #else
14821 #  define _cffi_f_clingo_symbol_is_positive _cffi_d_clingo_symbol_is_positive
14822 #endif
14823 
_cffi_d_clingo_symbol_name(uint64_t x0,char const ** x1)14824 static _Bool _cffi_d_clingo_symbol_name(uint64_t x0, char const * * x1)
14825 {
14826   return clingo_symbol_name(x0, x1);
14827 }
14828 #ifndef PYPY_VERSION
14829 static PyObject *
_cffi_f_clingo_symbol_name(PyObject * self,PyObject * args)14830 _cffi_f_clingo_symbol_name(PyObject *self, PyObject *args)
14831 {
14832   uint64_t x0;
14833   char const * * x1;
14834   Py_ssize_t datasize;
14835   struct _cffi_freeme_s *large_args_free = NULL;
14836   _Bool result;
14837   PyObject *pyresult;
14838   PyObject *arg0;
14839   PyObject *arg1;
14840 
14841   if (!PyArg_UnpackTuple(args, "clingo_symbol_name", 2, 2, &arg0, &arg1))
14842     return NULL;
14843 
14844   x0 = _cffi_to_c_int(arg0, uint64_t);
14845   if (x0 == (uint64_t)-1 && PyErr_Occurred())
14846     return NULL;
14847 
14848   datasize = _cffi_prepare_pointer_call_argument(
14849       _cffi_type(58), arg1, (char **)&x1);
14850   if (datasize != 0) {
14851     x1 = ((size_t)datasize) <= 640 ? (char const * *)alloca((size_t)datasize) : NULL;
14852     if (_cffi_convert_array_argument(_cffi_type(58), arg1, (char **)&x1,
14853             datasize, &large_args_free) < 0)
14854       return NULL;
14855   }
14856 
14857   Py_BEGIN_ALLOW_THREADS
14858   _cffi_restore_errno();
14859   { result = clingo_symbol_name(x0, x1); }
14860   _cffi_save_errno();
14861   Py_END_ALLOW_THREADS
14862 
14863   (void)self; /* unused */
14864   pyresult = _cffi_from_c__Bool(result);
14865   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
14866   return pyresult;
14867 }
14868 #else
14869 #  define _cffi_f_clingo_symbol_name _cffi_d_clingo_symbol_name
14870 #endif
14871 
_cffi_d_clingo_symbol_number(uint64_t x0,int * x1)14872 static _Bool _cffi_d_clingo_symbol_number(uint64_t x0, int * x1)
14873 {
14874   return clingo_symbol_number(x0, x1);
14875 }
14876 #ifndef PYPY_VERSION
14877 static PyObject *
_cffi_f_clingo_symbol_number(PyObject * self,PyObject * args)14878 _cffi_f_clingo_symbol_number(PyObject *self, PyObject *args)
14879 {
14880   uint64_t x0;
14881   int * x1;
14882   Py_ssize_t datasize;
14883   struct _cffi_freeme_s *large_args_free = NULL;
14884   _Bool result;
14885   PyObject *pyresult;
14886   PyObject *arg0;
14887   PyObject *arg1;
14888 
14889   if (!PyArg_UnpackTuple(args, "clingo_symbol_number", 2, 2, &arg0, &arg1))
14890     return NULL;
14891 
14892   x0 = _cffi_to_c_int(arg0, uint64_t);
14893   if (x0 == (uint64_t)-1 && PyErr_Occurred())
14894     return NULL;
14895 
14896   datasize = _cffi_prepare_pointer_call_argument(
14897       _cffi_type(108), arg1, (char **)&x1);
14898   if (datasize != 0) {
14899     x1 = ((size_t)datasize) <= 640 ? (int *)alloca((size_t)datasize) : NULL;
14900     if (_cffi_convert_array_argument(_cffi_type(108), arg1, (char **)&x1,
14901             datasize, &large_args_free) < 0)
14902       return NULL;
14903   }
14904 
14905   Py_BEGIN_ALLOW_THREADS
14906   _cffi_restore_errno();
14907   { result = clingo_symbol_number(x0, x1); }
14908   _cffi_save_errno();
14909   Py_END_ALLOW_THREADS
14910 
14911   (void)self; /* unused */
14912   pyresult = _cffi_from_c__Bool(result);
14913   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
14914   return pyresult;
14915 }
14916 #else
14917 #  define _cffi_f_clingo_symbol_number _cffi_d_clingo_symbol_number
14918 #endif
14919 
_cffi_d_clingo_symbol_string(uint64_t x0,char const ** x1)14920 static _Bool _cffi_d_clingo_symbol_string(uint64_t x0, char const * * x1)
14921 {
14922   return clingo_symbol_string(x0, x1);
14923 }
14924 #ifndef PYPY_VERSION
14925 static PyObject *
_cffi_f_clingo_symbol_string(PyObject * self,PyObject * args)14926 _cffi_f_clingo_symbol_string(PyObject *self, PyObject *args)
14927 {
14928   uint64_t x0;
14929   char const * * x1;
14930   Py_ssize_t datasize;
14931   struct _cffi_freeme_s *large_args_free = NULL;
14932   _Bool result;
14933   PyObject *pyresult;
14934   PyObject *arg0;
14935   PyObject *arg1;
14936 
14937   if (!PyArg_UnpackTuple(args, "clingo_symbol_string", 2, 2, &arg0, &arg1))
14938     return NULL;
14939 
14940   x0 = _cffi_to_c_int(arg0, uint64_t);
14941   if (x0 == (uint64_t)-1 && PyErr_Occurred())
14942     return NULL;
14943 
14944   datasize = _cffi_prepare_pointer_call_argument(
14945       _cffi_type(58), arg1, (char **)&x1);
14946   if (datasize != 0) {
14947     x1 = ((size_t)datasize) <= 640 ? (char const * *)alloca((size_t)datasize) : NULL;
14948     if (_cffi_convert_array_argument(_cffi_type(58), arg1, (char **)&x1,
14949             datasize, &large_args_free) < 0)
14950       return NULL;
14951   }
14952 
14953   Py_BEGIN_ALLOW_THREADS
14954   _cffi_restore_errno();
14955   { result = clingo_symbol_string(x0, x1); }
14956   _cffi_save_errno();
14957   Py_END_ALLOW_THREADS
14958 
14959   (void)self; /* unused */
14960   pyresult = _cffi_from_c__Bool(result);
14961   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
14962   return pyresult;
14963 }
14964 #else
14965 #  define _cffi_f_clingo_symbol_string _cffi_d_clingo_symbol_string
14966 #endif
14967 
_cffi_d_clingo_symbol_to_string(uint64_t x0,char * x1,size_t x2)14968 static _Bool _cffi_d_clingo_symbol_to_string(uint64_t x0, char * x1, size_t x2)
14969 {
14970   return clingo_symbol_to_string(x0, x1, x2);
14971 }
14972 #ifndef PYPY_VERSION
14973 static PyObject *
_cffi_f_clingo_symbol_to_string(PyObject * self,PyObject * args)14974 _cffi_f_clingo_symbol_to_string(PyObject *self, PyObject *args)
14975 {
14976   uint64_t x0;
14977   char * x1;
14978   size_t x2;
14979   Py_ssize_t datasize;
14980   struct _cffi_freeme_s *large_args_free = NULL;
14981   _Bool result;
14982   PyObject *pyresult;
14983   PyObject *arg0;
14984   PyObject *arg1;
14985   PyObject *arg2;
14986 
14987   if (!PyArg_UnpackTuple(args, "clingo_symbol_to_string", 3, 3, &arg0, &arg1, &arg2))
14988     return NULL;
14989 
14990   x0 = _cffi_to_c_int(arg0, uint64_t);
14991   if (x0 == (uint64_t)-1 && PyErr_Occurred())
14992     return NULL;
14993 
14994   datasize = _cffi_prepare_pointer_call_argument(
14995       _cffi_type(136), arg1, (char **)&x1);
14996   if (datasize != 0) {
14997     x1 = ((size_t)datasize) <= 640 ? (char *)alloca((size_t)datasize) : NULL;
14998     if (_cffi_convert_array_argument(_cffi_type(136), arg1, (char **)&x1,
14999             datasize, &large_args_free) < 0)
15000       return NULL;
15001   }
15002 
15003   x2 = _cffi_to_c_int(arg2, size_t);
15004   if (x2 == (size_t)-1 && PyErr_Occurred())
15005     return NULL;
15006 
15007   Py_BEGIN_ALLOW_THREADS
15008   _cffi_restore_errno();
15009   { result = clingo_symbol_to_string(x0, x1, x2); }
15010   _cffi_save_errno();
15011   Py_END_ALLOW_THREADS
15012 
15013   (void)self; /* unused */
15014   pyresult = _cffi_from_c__Bool(result);
15015   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
15016   return pyresult;
15017 }
15018 #else
15019 #  define _cffi_f_clingo_symbol_to_string _cffi_d_clingo_symbol_to_string
15020 #endif
15021 
_cffi_d_clingo_symbol_to_string_size(uint64_t x0,size_t * x1)15022 static _Bool _cffi_d_clingo_symbol_to_string_size(uint64_t x0, size_t * x1)
15023 {
15024   return clingo_symbol_to_string_size(x0, x1);
15025 }
15026 #ifndef PYPY_VERSION
15027 static PyObject *
_cffi_f_clingo_symbol_to_string_size(PyObject * self,PyObject * args)15028 _cffi_f_clingo_symbol_to_string_size(PyObject *self, PyObject *args)
15029 {
15030   uint64_t x0;
15031   size_t * x1;
15032   Py_ssize_t datasize;
15033   struct _cffi_freeme_s *large_args_free = NULL;
15034   _Bool result;
15035   PyObject *pyresult;
15036   PyObject *arg0;
15037   PyObject *arg1;
15038 
15039   if (!PyArg_UnpackTuple(args, "clingo_symbol_to_string_size", 2, 2, &arg0, &arg1))
15040     return NULL;
15041 
15042   x0 = _cffi_to_c_int(arg0, uint64_t);
15043   if (x0 == (uint64_t)-1 && PyErr_Occurred())
15044     return NULL;
15045 
15046   datasize = _cffi_prepare_pointer_call_argument(
15047       _cffi_type(205), arg1, (char **)&x1);
15048   if (datasize != 0) {
15049     x1 = ((size_t)datasize) <= 640 ? (size_t *)alloca((size_t)datasize) : NULL;
15050     if (_cffi_convert_array_argument(_cffi_type(205), arg1, (char **)&x1,
15051             datasize, &large_args_free) < 0)
15052       return NULL;
15053   }
15054 
15055   Py_BEGIN_ALLOW_THREADS
15056   _cffi_restore_errno();
15057   { result = clingo_symbol_to_string_size(x0, x1); }
15058   _cffi_save_errno();
15059   Py_END_ALLOW_THREADS
15060 
15061   (void)self; /* unused */
15062   pyresult = _cffi_from_c__Bool(result);
15063   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
15064   return pyresult;
15065 }
15066 #else
15067 #  define _cffi_f_clingo_symbol_to_string_size _cffi_d_clingo_symbol_to_string_size
15068 #endif
15069 
_cffi_d_clingo_symbol_type(uint64_t x0)15070 static int _cffi_d_clingo_symbol_type(uint64_t x0)
15071 {
15072   return clingo_symbol_type(x0);
15073 }
15074 #ifndef PYPY_VERSION
15075 static PyObject *
_cffi_f_clingo_symbol_type(PyObject * self,PyObject * arg0)15076 _cffi_f_clingo_symbol_type(PyObject *self, PyObject *arg0)
15077 {
15078   uint64_t x0;
15079   int result;
15080   PyObject *pyresult;
15081 
15082   x0 = _cffi_to_c_int(arg0, uint64_t);
15083   if (x0 == (uint64_t)-1 && PyErr_Occurred())
15084     return NULL;
15085 
15086   Py_BEGIN_ALLOW_THREADS
15087   _cffi_restore_errno();
15088   { result = clingo_symbol_type(x0); }
15089   _cffi_save_errno();
15090   Py_END_ALLOW_THREADS
15091 
15092   (void)self; /* unused */
15093   pyresult = _cffi_from_c_int(result, int);
15094   return pyresult;
15095 }
15096 #else
15097 #  define _cffi_f_clingo_symbol_type _cffi_d_clingo_symbol_type
15098 #endif
15099 
_cffi_d_clingo_symbolic_atoms_begin(clingo_symbolic_atoms_t const * x0,uint64_t const * x1,uint64_t * x2)15100 static _Bool _cffi_d_clingo_symbolic_atoms_begin(clingo_symbolic_atoms_t const * x0, uint64_t const * x1, uint64_t * x2)
15101 {
15102   return clingo_symbolic_atoms_begin(x0, x1, x2);
15103 }
15104 #ifndef PYPY_VERSION
15105 static PyObject *
_cffi_f_clingo_symbolic_atoms_begin(PyObject * self,PyObject * args)15106 _cffi_f_clingo_symbolic_atoms_begin(PyObject *self, PyObject *args)
15107 {
15108   clingo_symbolic_atoms_t const * x0;
15109   uint64_t const * x1;
15110   uint64_t * x2;
15111   Py_ssize_t datasize;
15112   struct _cffi_freeme_s *large_args_free = NULL;
15113   _Bool result;
15114   PyObject *pyresult;
15115   PyObject *arg0;
15116   PyObject *arg1;
15117   PyObject *arg2;
15118 
15119   if (!PyArg_UnpackTuple(args, "clingo_symbolic_atoms_begin", 3, 3, &arg0, &arg1, &arg2))
15120     return NULL;
15121 
15122   datasize = _cffi_prepare_pointer_call_argument(
15123       _cffi_type(788), arg0, (char **)&x0);
15124   if (datasize != 0) {
15125     x0 = ((size_t)datasize) <= 640 ? (clingo_symbolic_atoms_t const *)alloca((size_t)datasize) : NULL;
15126     if (_cffi_convert_array_argument(_cffi_type(788), arg0, (char **)&x0,
15127             datasize, &large_args_free) < 0)
15128       return NULL;
15129   }
15130 
15131   datasize = _cffi_prepare_pointer_call_argument(
15132       _cffi_type(77), arg1, (char **)&x1);
15133   if (datasize != 0) {
15134     x1 = ((size_t)datasize) <= 640 ? (uint64_t const *)alloca((size_t)datasize) : NULL;
15135     if (_cffi_convert_array_argument(_cffi_type(77), arg1, (char **)&x1,
15136             datasize, &large_args_free) < 0)
15137       return NULL;
15138   }
15139 
15140   datasize = _cffi_prepare_pointer_call_argument(
15141       _cffi_type(54), arg2, (char **)&x2);
15142   if (datasize != 0) {
15143     x2 = ((size_t)datasize) <= 640 ? (uint64_t *)alloca((size_t)datasize) : NULL;
15144     if (_cffi_convert_array_argument(_cffi_type(54), arg2, (char **)&x2,
15145             datasize, &large_args_free) < 0)
15146       return NULL;
15147   }
15148 
15149   Py_BEGIN_ALLOW_THREADS
15150   _cffi_restore_errno();
15151   { result = clingo_symbolic_atoms_begin(x0, x1, x2); }
15152   _cffi_save_errno();
15153   Py_END_ALLOW_THREADS
15154 
15155   (void)self; /* unused */
15156   pyresult = _cffi_from_c__Bool(result);
15157   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
15158   return pyresult;
15159 }
15160 #else
15161 #  define _cffi_f_clingo_symbolic_atoms_begin _cffi_d_clingo_symbolic_atoms_begin
15162 #endif
15163 
_cffi_d_clingo_symbolic_atoms_end(clingo_symbolic_atoms_t const * x0,uint64_t * x1)15164 static _Bool _cffi_d_clingo_symbolic_atoms_end(clingo_symbolic_atoms_t const * x0, uint64_t * x1)
15165 {
15166   return clingo_symbolic_atoms_end(x0, x1);
15167 }
15168 #ifndef PYPY_VERSION
15169 static PyObject *
_cffi_f_clingo_symbolic_atoms_end(PyObject * self,PyObject * args)15170 _cffi_f_clingo_symbolic_atoms_end(PyObject *self, PyObject *args)
15171 {
15172   clingo_symbolic_atoms_t const * x0;
15173   uint64_t * x1;
15174   Py_ssize_t datasize;
15175   struct _cffi_freeme_s *large_args_free = NULL;
15176   _Bool result;
15177   PyObject *pyresult;
15178   PyObject *arg0;
15179   PyObject *arg1;
15180 
15181   if (!PyArg_UnpackTuple(args, "clingo_symbolic_atoms_end", 2, 2, &arg0, &arg1))
15182     return NULL;
15183 
15184   datasize = _cffi_prepare_pointer_call_argument(
15185       _cffi_type(788), arg0, (char **)&x0);
15186   if (datasize != 0) {
15187     x0 = ((size_t)datasize) <= 640 ? (clingo_symbolic_atoms_t const *)alloca((size_t)datasize) : NULL;
15188     if (_cffi_convert_array_argument(_cffi_type(788), arg0, (char **)&x0,
15189             datasize, &large_args_free) < 0)
15190       return NULL;
15191   }
15192 
15193   datasize = _cffi_prepare_pointer_call_argument(
15194       _cffi_type(54), arg1, (char **)&x1);
15195   if (datasize != 0) {
15196     x1 = ((size_t)datasize) <= 640 ? (uint64_t *)alloca((size_t)datasize) : NULL;
15197     if (_cffi_convert_array_argument(_cffi_type(54), arg1, (char **)&x1,
15198             datasize, &large_args_free) < 0)
15199       return NULL;
15200   }
15201 
15202   Py_BEGIN_ALLOW_THREADS
15203   _cffi_restore_errno();
15204   { result = clingo_symbolic_atoms_end(x0, x1); }
15205   _cffi_save_errno();
15206   Py_END_ALLOW_THREADS
15207 
15208   (void)self; /* unused */
15209   pyresult = _cffi_from_c__Bool(result);
15210   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
15211   return pyresult;
15212 }
15213 #else
15214 #  define _cffi_f_clingo_symbolic_atoms_end _cffi_d_clingo_symbolic_atoms_end
15215 #endif
15216 
_cffi_d_clingo_symbolic_atoms_find(clingo_symbolic_atoms_t const * x0,uint64_t x1,uint64_t * x2)15217 static _Bool _cffi_d_clingo_symbolic_atoms_find(clingo_symbolic_atoms_t const * x0, uint64_t x1, uint64_t * x2)
15218 {
15219   return clingo_symbolic_atoms_find(x0, x1, x2);
15220 }
15221 #ifndef PYPY_VERSION
15222 static PyObject *
_cffi_f_clingo_symbolic_atoms_find(PyObject * self,PyObject * args)15223 _cffi_f_clingo_symbolic_atoms_find(PyObject *self, PyObject *args)
15224 {
15225   clingo_symbolic_atoms_t const * x0;
15226   uint64_t x1;
15227   uint64_t * x2;
15228   Py_ssize_t datasize;
15229   struct _cffi_freeme_s *large_args_free = NULL;
15230   _Bool result;
15231   PyObject *pyresult;
15232   PyObject *arg0;
15233   PyObject *arg1;
15234   PyObject *arg2;
15235 
15236   if (!PyArg_UnpackTuple(args, "clingo_symbolic_atoms_find", 3, 3, &arg0, &arg1, &arg2))
15237     return NULL;
15238 
15239   datasize = _cffi_prepare_pointer_call_argument(
15240       _cffi_type(788), arg0, (char **)&x0);
15241   if (datasize != 0) {
15242     x0 = ((size_t)datasize) <= 640 ? (clingo_symbolic_atoms_t const *)alloca((size_t)datasize) : NULL;
15243     if (_cffi_convert_array_argument(_cffi_type(788), arg0, (char **)&x0,
15244             datasize, &large_args_free) < 0)
15245       return NULL;
15246   }
15247 
15248   x1 = _cffi_to_c_int(arg1, uint64_t);
15249   if (x1 == (uint64_t)-1 && PyErr_Occurred())
15250     return NULL;
15251 
15252   datasize = _cffi_prepare_pointer_call_argument(
15253       _cffi_type(54), arg2, (char **)&x2);
15254   if (datasize != 0) {
15255     x2 = ((size_t)datasize) <= 640 ? (uint64_t *)alloca((size_t)datasize) : NULL;
15256     if (_cffi_convert_array_argument(_cffi_type(54), arg2, (char **)&x2,
15257             datasize, &large_args_free) < 0)
15258       return NULL;
15259   }
15260 
15261   Py_BEGIN_ALLOW_THREADS
15262   _cffi_restore_errno();
15263   { result = clingo_symbolic_atoms_find(x0, x1, x2); }
15264   _cffi_save_errno();
15265   Py_END_ALLOW_THREADS
15266 
15267   (void)self; /* unused */
15268   pyresult = _cffi_from_c__Bool(result);
15269   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
15270   return pyresult;
15271 }
15272 #else
15273 #  define _cffi_f_clingo_symbolic_atoms_find _cffi_d_clingo_symbolic_atoms_find
15274 #endif
15275 
_cffi_d_clingo_symbolic_atoms_is_external(clingo_symbolic_atoms_t const * x0,uint64_t x1,_Bool * x2)15276 static _Bool _cffi_d_clingo_symbolic_atoms_is_external(clingo_symbolic_atoms_t const * x0, uint64_t x1, _Bool * x2)
15277 {
15278   return clingo_symbolic_atoms_is_external(x0, x1, x2);
15279 }
15280 #ifndef PYPY_VERSION
15281 static PyObject *
_cffi_f_clingo_symbolic_atoms_is_external(PyObject * self,PyObject * args)15282 _cffi_f_clingo_symbolic_atoms_is_external(PyObject *self, PyObject *args)
15283 {
15284   clingo_symbolic_atoms_t const * x0;
15285   uint64_t x1;
15286   _Bool * x2;
15287   Py_ssize_t datasize;
15288   struct _cffi_freeme_s *large_args_free = NULL;
15289   _Bool result;
15290   PyObject *pyresult;
15291   PyObject *arg0;
15292   PyObject *arg1;
15293   PyObject *arg2;
15294 
15295   if (!PyArg_UnpackTuple(args, "clingo_symbolic_atoms_is_external", 3, 3, &arg0, &arg1, &arg2))
15296     return NULL;
15297 
15298   datasize = _cffi_prepare_pointer_call_argument(
15299       _cffi_type(788), arg0, (char **)&x0);
15300   if (datasize != 0) {
15301     x0 = ((size_t)datasize) <= 640 ? (clingo_symbolic_atoms_t const *)alloca((size_t)datasize) : NULL;
15302     if (_cffi_convert_array_argument(_cffi_type(788), arg0, (char **)&x0,
15303             datasize, &large_args_free) < 0)
15304       return NULL;
15305   }
15306 
15307   x1 = _cffi_to_c_int(arg1, uint64_t);
15308   if (x1 == (uint64_t)-1 && PyErr_Occurred())
15309     return NULL;
15310 
15311   datasize = _cffi_prepare_pointer_call_argument(
15312       _cffi_type(40), arg2, (char **)&x2);
15313   if (datasize != 0) {
15314     x2 = ((size_t)datasize) <= 640 ? (_Bool *)alloca((size_t)datasize) : NULL;
15315     if (_cffi_convert_array_argument(_cffi_type(40), arg2, (char **)&x2,
15316             datasize, &large_args_free) < 0)
15317       return NULL;
15318   }
15319 
15320   Py_BEGIN_ALLOW_THREADS
15321   _cffi_restore_errno();
15322   { result = clingo_symbolic_atoms_is_external(x0, x1, x2); }
15323   _cffi_save_errno();
15324   Py_END_ALLOW_THREADS
15325 
15326   (void)self; /* unused */
15327   pyresult = _cffi_from_c__Bool(result);
15328   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
15329   return pyresult;
15330 }
15331 #else
15332 #  define _cffi_f_clingo_symbolic_atoms_is_external _cffi_d_clingo_symbolic_atoms_is_external
15333 #endif
15334 
_cffi_d_clingo_symbolic_atoms_is_fact(clingo_symbolic_atoms_t const * x0,uint64_t x1,_Bool * x2)15335 static _Bool _cffi_d_clingo_symbolic_atoms_is_fact(clingo_symbolic_atoms_t const * x0, uint64_t x1, _Bool * x2)
15336 {
15337   return clingo_symbolic_atoms_is_fact(x0, x1, x2);
15338 }
15339 #ifndef PYPY_VERSION
15340 static PyObject *
_cffi_f_clingo_symbolic_atoms_is_fact(PyObject * self,PyObject * args)15341 _cffi_f_clingo_symbolic_atoms_is_fact(PyObject *self, PyObject *args)
15342 {
15343   clingo_symbolic_atoms_t const * x0;
15344   uint64_t x1;
15345   _Bool * x2;
15346   Py_ssize_t datasize;
15347   struct _cffi_freeme_s *large_args_free = NULL;
15348   _Bool result;
15349   PyObject *pyresult;
15350   PyObject *arg0;
15351   PyObject *arg1;
15352   PyObject *arg2;
15353 
15354   if (!PyArg_UnpackTuple(args, "clingo_symbolic_atoms_is_fact", 3, 3, &arg0, &arg1, &arg2))
15355     return NULL;
15356 
15357   datasize = _cffi_prepare_pointer_call_argument(
15358       _cffi_type(788), arg0, (char **)&x0);
15359   if (datasize != 0) {
15360     x0 = ((size_t)datasize) <= 640 ? (clingo_symbolic_atoms_t const *)alloca((size_t)datasize) : NULL;
15361     if (_cffi_convert_array_argument(_cffi_type(788), arg0, (char **)&x0,
15362             datasize, &large_args_free) < 0)
15363       return NULL;
15364   }
15365 
15366   x1 = _cffi_to_c_int(arg1, uint64_t);
15367   if (x1 == (uint64_t)-1 && PyErr_Occurred())
15368     return NULL;
15369 
15370   datasize = _cffi_prepare_pointer_call_argument(
15371       _cffi_type(40), arg2, (char **)&x2);
15372   if (datasize != 0) {
15373     x2 = ((size_t)datasize) <= 640 ? (_Bool *)alloca((size_t)datasize) : NULL;
15374     if (_cffi_convert_array_argument(_cffi_type(40), arg2, (char **)&x2,
15375             datasize, &large_args_free) < 0)
15376       return NULL;
15377   }
15378 
15379   Py_BEGIN_ALLOW_THREADS
15380   _cffi_restore_errno();
15381   { result = clingo_symbolic_atoms_is_fact(x0, x1, x2); }
15382   _cffi_save_errno();
15383   Py_END_ALLOW_THREADS
15384 
15385   (void)self; /* unused */
15386   pyresult = _cffi_from_c__Bool(result);
15387   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
15388   return pyresult;
15389 }
15390 #else
15391 #  define _cffi_f_clingo_symbolic_atoms_is_fact _cffi_d_clingo_symbolic_atoms_is_fact
15392 #endif
15393 
_cffi_d_clingo_symbolic_atoms_is_valid(clingo_symbolic_atoms_t const * x0,uint64_t x1,_Bool * x2)15394 static _Bool _cffi_d_clingo_symbolic_atoms_is_valid(clingo_symbolic_atoms_t const * x0, uint64_t x1, _Bool * x2)
15395 {
15396   return clingo_symbolic_atoms_is_valid(x0, x1, x2);
15397 }
15398 #ifndef PYPY_VERSION
15399 static PyObject *
_cffi_f_clingo_symbolic_atoms_is_valid(PyObject * self,PyObject * args)15400 _cffi_f_clingo_symbolic_atoms_is_valid(PyObject *self, PyObject *args)
15401 {
15402   clingo_symbolic_atoms_t const * x0;
15403   uint64_t x1;
15404   _Bool * x2;
15405   Py_ssize_t datasize;
15406   struct _cffi_freeme_s *large_args_free = NULL;
15407   _Bool result;
15408   PyObject *pyresult;
15409   PyObject *arg0;
15410   PyObject *arg1;
15411   PyObject *arg2;
15412 
15413   if (!PyArg_UnpackTuple(args, "clingo_symbolic_atoms_is_valid", 3, 3, &arg0, &arg1, &arg2))
15414     return NULL;
15415 
15416   datasize = _cffi_prepare_pointer_call_argument(
15417       _cffi_type(788), arg0, (char **)&x0);
15418   if (datasize != 0) {
15419     x0 = ((size_t)datasize) <= 640 ? (clingo_symbolic_atoms_t const *)alloca((size_t)datasize) : NULL;
15420     if (_cffi_convert_array_argument(_cffi_type(788), arg0, (char **)&x0,
15421             datasize, &large_args_free) < 0)
15422       return NULL;
15423   }
15424 
15425   x1 = _cffi_to_c_int(arg1, uint64_t);
15426   if (x1 == (uint64_t)-1 && PyErr_Occurred())
15427     return NULL;
15428 
15429   datasize = _cffi_prepare_pointer_call_argument(
15430       _cffi_type(40), arg2, (char **)&x2);
15431   if (datasize != 0) {
15432     x2 = ((size_t)datasize) <= 640 ? (_Bool *)alloca((size_t)datasize) : NULL;
15433     if (_cffi_convert_array_argument(_cffi_type(40), arg2, (char **)&x2,
15434             datasize, &large_args_free) < 0)
15435       return NULL;
15436   }
15437 
15438   Py_BEGIN_ALLOW_THREADS
15439   _cffi_restore_errno();
15440   { result = clingo_symbolic_atoms_is_valid(x0, x1, x2); }
15441   _cffi_save_errno();
15442   Py_END_ALLOW_THREADS
15443 
15444   (void)self; /* unused */
15445   pyresult = _cffi_from_c__Bool(result);
15446   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
15447   return pyresult;
15448 }
15449 #else
15450 #  define _cffi_f_clingo_symbolic_atoms_is_valid _cffi_d_clingo_symbolic_atoms_is_valid
15451 #endif
15452 
_cffi_d_clingo_symbolic_atoms_iterator_is_equal_to(clingo_symbolic_atoms_t const * x0,uint64_t x1,uint64_t x2,_Bool * x3)15453 static _Bool _cffi_d_clingo_symbolic_atoms_iterator_is_equal_to(clingo_symbolic_atoms_t const * x0, uint64_t x1, uint64_t x2, _Bool * x3)
15454 {
15455   return clingo_symbolic_atoms_iterator_is_equal_to(x0, x1, x2, x3);
15456 }
15457 #ifndef PYPY_VERSION
15458 static PyObject *
_cffi_f_clingo_symbolic_atoms_iterator_is_equal_to(PyObject * self,PyObject * args)15459 _cffi_f_clingo_symbolic_atoms_iterator_is_equal_to(PyObject *self, PyObject *args)
15460 {
15461   clingo_symbolic_atoms_t const * x0;
15462   uint64_t x1;
15463   uint64_t x2;
15464   _Bool * x3;
15465   Py_ssize_t datasize;
15466   struct _cffi_freeme_s *large_args_free = NULL;
15467   _Bool result;
15468   PyObject *pyresult;
15469   PyObject *arg0;
15470   PyObject *arg1;
15471   PyObject *arg2;
15472   PyObject *arg3;
15473 
15474   if (!PyArg_UnpackTuple(args, "clingo_symbolic_atoms_iterator_is_equal_to", 4, 4, &arg0, &arg1, &arg2, &arg3))
15475     return NULL;
15476 
15477   datasize = _cffi_prepare_pointer_call_argument(
15478       _cffi_type(788), arg0, (char **)&x0);
15479   if (datasize != 0) {
15480     x0 = ((size_t)datasize) <= 640 ? (clingo_symbolic_atoms_t const *)alloca((size_t)datasize) : NULL;
15481     if (_cffi_convert_array_argument(_cffi_type(788), arg0, (char **)&x0,
15482             datasize, &large_args_free) < 0)
15483       return NULL;
15484   }
15485 
15486   x1 = _cffi_to_c_int(arg1, uint64_t);
15487   if (x1 == (uint64_t)-1 && PyErr_Occurred())
15488     return NULL;
15489 
15490   x2 = _cffi_to_c_int(arg2, uint64_t);
15491   if (x2 == (uint64_t)-1 && PyErr_Occurred())
15492     return NULL;
15493 
15494   datasize = _cffi_prepare_pointer_call_argument(
15495       _cffi_type(40), arg3, (char **)&x3);
15496   if (datasize != 0) {
15497     x3 = ((size_t)datasize) <= 640 ? (_Bool *)alloca((size_t)datasize) : NULL;
15498     if (_cffi_convert_array_argument(_cffi_type(40), arg3, (char **)&x3,
15499             datasize, &large_args_free) < 0)
15500       return NULL;
15501   }
15502 
15503   Py_BEGIN_ALLOW_THREADS
15504   _cffi_restore_errno();
15505   { result = clingo_symbolic_atoms_iterator_is_equal_to(x0, x1, x2, x3); }
15506   _cffi_save_errno();
15507   Py_END_ALLOW_THREADS
15508 
15509   (void)self; /* unused */
15510   pyresult = _cffi_from_c__Bool(result);
15511   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
15512   return pyresult;
15513 }
15514 #else
15515 #  define _cffi_f_clingo_symbolic_atoms_iterator_is_equal_to _cffi_d_clingo_symbolic_atoms_iterator_is_equal_to
15516 #endif
15517 
_cffi_d_clingo_symbolic_atoms_literal(clingo_symbolic_atoms_t const * x0,uint64_t x1,int32_t * x2)15518 static _Bool _cffi_d_clingo_symbolic_atoms_literal(clingo_symbolic_atoms_t const * x0, uint64_t x1, int32_t * x2)
15519 {
15520   return clingo_symbolic_atoms_literal(x0, x1, x2);
15521 }
15522 #ifndef PYPY_VERSION
15523 static PyObject *
_cffi_f_clingo_symbolic_atoms_literal(PyObject * self,PyObject * args)15524 _cffi_f_clingo_symbolic_atoms_literal(PyObject *self, PyObject *args)
15525 {
15526   clingo_symbolic_atoms_t const * x0;
15527   uint64_t x1;
15528   int32_t * x2;
15529   Py_ssize_t datasize;
15530   struct _cffi_freeme_s *large_args_free = NULL;
15531   _Bool result;
15532   PyObject *pyresult;
15533   PyObject *arg0;
15534   PyObject *arg1;
15535   PyObject *arg2;
15536 
15537   if (!PyArg_UnpackTuple(args, "clingo_symbolic_atoms_literal", 3, 3, &arg0, &arg1, &arg2))
15538     return NULL;
15539 
15540   datasize = _cffi_prepare_pointer_call_argument(
15541       _cffi_type(788), arg0, (char **)&x0);
15542   if (datasize != 0) {
15543     x0 = ((size_t)datasize) <= 640 ? (clingo_symbolic_atoms_t const *)alloca((size_t)datasize) : NULL;
15544     if (_cffi_convert_array_argument(_cffi_type(788), arg0, (char **)&x0,
15545             datasize, &large_args_free) < 0)
15546       return NULL;
15547   }
15548 
15549   x1 = _cffi_to_c_int(arg1, uint64_t);
15550   if (x1 == (uint64_t)-1 && PyErr_Occurred())
15551     return NULL;
15552 
15553   datasize = _cffi_prepare_pointer_call_argument(
15554       _cffi_type(118), arg2, (char **)&x2);
15555   if (datasize != 0) {
15556     x2 = ((size_t)datasize) <= 640 ? (int32_t *)alloca((size_t)datasize) : NULL;
15557     if (_cffi_convert_array_argument(_cffi_type(118), arg2, (char **)&x2,
15558             datasize, &large_args_free) < 0)
15559       return NULL;
15560   }
15561 
15562   Py_BEGIN_ALLOW_THREADS
15563   _cffi_restore_errno();
15564   { result = clingo_symbolic_atoms_literal(x0, x1, x2); }
15565   _cffi_save_errno();
15566   Py_END_ALLOW_THREADS
15567 
15568   (void)self; /* unused */
15569   pyresult = _cffi_from_c__Bool(result);
15570   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
15571   return pyresult;
15572 }
15573 #else
15574 #  define _cffi_f_clingo_symbolic_atoms_literal _cffi_d_clingo_symbolic_atoms_literal
15575 #endif
15576 
_cffi_d_clingo_symbolic_atoms_next(clingo_symbolic_atoms_t const * x0,uint64_t x1,uint64_t * x2)15577 static _Bool _cffi_d_clingo_symbolic_atoms_next(clingo_symbolic_atoms_t const * x0, uint64_t x1, uint64_t * x2)
15578 {
15579   return clingo_symbolic_atoms_next(x0, x1, x2);
15580 }
15581 #ifndef PYPY_VERSION
15582 static PyObject *
_cffi_f_clingo_symbolic_atoms_next(PyObject * self,PyObject * args)15583 _cffi_f_clingo_symbolic_atoms_next(PyObject *self, PyObject *args)
15584 {
15585   clingo_symbolic_atoms_t const * x0;
15586   uint64_t x1;
15587   uint64_t * x2;
15588   Py_ssize_t datasize;
15589   struct _cffi_freeme_s *large_args_free = NULL;
15590   _Bool result;
15591   PyObject *pyresult;
15592   PyObject *arg0;
15593   PyObject *arg1;
15594   PyObject *arg2;
15595 
15596   if (!PyArg_UnpackTuple(args, "clingo_symbolic_atoms_next", 3, 3, &arg0, &arg1, &arg2))
15597     return NULL;
15598 
15599   datasize = _cffi_prepare_pointer_call_argument(
15600       _cffi_type(788), arg0, (char **)&x0);
15601   if (datasize != 0) {
15602     x0 = ((size_t)datasize) <= 640 ? (clingo_symbolic_atoms_t const *)alloca((size_t)datasize) : NULL;
15603     if (_cffi_convert_array_argument(_cffi_type(788), arg0, (char **)&x0,
15604             datasize, &large_args_free) < 0)
15605       return NULL;
15606   }
15607 
15608   x1 = _cffi_to_c_int(arg1, uint64_t);
15609   if (x1 == (uint64_t)-1 && PyErr_Occurred())
15610     return NULL;
15611 
15612   datasize = _cffi_prepare_pointer_call_argument(
15613       _cffi_type(54), arg2, (char **)&x2);
15614   if (datasize != 0) {
15615     x2 = ((size_t)datasize) <= 640 ? (uint64_t *)alloca((size_t)datasize) : NULL;
15616     if (_cffi_convert_array_argument(_cffi_type(54), arg2, (char **)&x2,
15617             datasize, &large_args_free) < 0)
15618       return NULL;
15619   }
15620 
15621   Py_BEGIN_ALLOW_THREADS
15622   _cffi_restore_errno();
15623   { result = clingo_symbolic_atoms_next(x0, x1, x2); }
15624   _cffi_save_errno();
15625   Py_END_ALLOW_THREADS
15626 
15627   (void)self; /* unused */
15628   pyresult = _cffi_from_c__Bool(result);
15629   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
15630   return pyresult;
15631 }
15632 #else
15633 #  define _cffi_f_clingo_symbolic_atoms_next _cffi_d_clingo_symbolic_atoms_next
15634 #endif
15635 
_cffi_d_clingo_symbolic_atoms_signatures(clingo_symbolic_atoms_t const * x0,uint64_t * x1,size_t x2)15636 static _Bool _cffi_d_clingo_symbolic_atoms_signatures(clingo_symbolic_atoms_t const * x0, uint64_t * x1, size_t x2)
15637 {
15638   return clingo_symbolic_atoms_signatures(x0, x1, x2);
15639 }
15640 #ifndef PYPY_VERSION
15641 static PyObject *
_cffi_f_clingo_symbolic_atoms_signatures(PyObject * self,PyObject * args)15642 _cffi_f_clingo_symbolic_atoms_signatures(PyObject *self, PyObject *args)
15643 {
15644   clingo_symbolic_atoms_t const * x0;
15645   uint64_t * x1;
15646   size_t x2;
15647   Py_ssize_t datasize;
15648   struct _cffi_freeme_s *large_args_free = NULL;
15649   _Bool result;
15650   PyObject *pyresult;
15651   PyObject *arg0;
15652   PyObject *arg1;
15653   PyObject *arg2;
15654 
15655   if (!PyArg_UnpackTuple(args, "clingo_symbolic_atoms_signatures", 3, 3, &arg0, &arg1, &arg2))
15656     return NULL;
15657 
15658   datasize = _cffi_prepare_pointer_call_argument(
15659       _cffi_type(788), arg0, (char **)&x0);
15660   if (datasize != 0) {
15661     x0 = ((size_t)datasize) <= 640 ? (clingo_symbolic_atoms_t const *)alloca((size_t)datasize) : NULL;
15662     if (_cffi_convert_array_argument(_cffi_type(788), arg0, (char **)&x0,
15663             datasize, &large_args_free) < 0)
15664       return NULL;
15665   }
15666 
15667   datasize = _cffi_prepare_pointer_call_argument(
15668       _cffi_type(54), arg1, (char **)&x1);
15669   if (datasize != 0) {
15670     x1 = ((size_t)datasize) <= 640 ? (uint64_t *)alloca((size_t)datasize) : NULL;
15671     if (_cffi_convert_array_argument(_cffi_type(54), arg1, (char **)&x1,
15672             datasize, &large_args_free) < 0)
15673       return NULL;
15674   }
15675 
15676   x2 = _cffi_to_c_int(arg2, size_t);
15677   if (x2 == (size_t)-1 && PyErr_Occurred())
15678     return NULL;
15679 
15680   Py_BEGIN_ALLOW_THREADS
15681   _cffi_restore_errno();
15682   { result = clingo_symbolic_atoms_signatures(x0, x1, x2); }
15683   _cffi_save_errno();
15684   Py_END_ALLOW_THREADS
15685 
15686   (void)self; /* unused */
15687   pyresult = _cffi_from_c__Bool(result);
15688   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
15689   return pyresult;
15690 }
15691 #else
15692 #  define _cffi_f_clingo_symbolic_atoms_signatures _cffi_d_clingo_symbolic_atoms_signatures
15693 #endif
15694 
_cffi_d_clingo_symbolic_atoms_signatures_size(clingo_symbolic_atoms_t const * x0,size_t * x1)15695 static _Bool _cffi_d_clingo_symbolic_atoms_signatures_size(clingo_symbolic_atoms_t const * x0, size_t * x1)
15696 {
15697   return clingo_symbolic_atoms_signatures_size(x0, x1);
15698 }
15699 #ifndef PYPY_VERSION
15700 static PyObject *
_cffi_f_clingo_symbolic_atoms_signatures_size(PyObject * self,PyObject * args)15701 _cffi_f_clingo_symbolic_atoms_signatures_size(PyObject *self, PyObject *args)
15702 {
15703   clingo_symbolic_atoms_t const * x0;
15704   size_t * x1;
15705   Py_ssize_t datasize;
15706   struct _cffi_freeme_s *large_args_free = NULL;
15707   _Bool result;
15708   PyObject *pyresult;
15709   PyObject *arg0;
15710   PyObject *arg1;
15711 
15712   if (!PyArg_UnpackTuple(args, "clingo_symbolic_atoms_signatures_size", 2, 2, &arg0, &arg1))
15713     return NULL;
15714 
15715   datasize = _cffi_prepare_pointer_call_argument(
15716       _cffi_type(788), arg0, (char **)&x0);
15717   if (datasize != 0) {
15718     x0 = ((size_t)datasize) <= 640 ? (clingo_symbolic_atoms_t const *)alloca((size_t)datasize) : NULL;
15719     if (_cffi_convert_array_argument(_cffi_type(788), arg0, (char **)&x0,
15720             datasize, &large_args_free) < 0)
15721       return NULL;
15722   }
15723 
15724   datasize = _cffi_prepare_pointer_call_argument(
15725       _cffi_type(205), arg1, (char **)&x1);
15726   if (datasize != 0) {
15727     x1 = ((size_t)datasize) <= 640 ? (size_t *)alloca((size_t)datasize) : NULL;
15728     if (_cffi_convert_array_argument(_cffi_type(205), arg1, (char **)&x1,
15729             datasize, &large_args_free) < 0)
15730       return NULL;
15731   }
15732 
15733   Py_BEGIN_ALLOW_THREADS
15734   _cffi_restore_errno();
15735   { result = clingo_symbolic_atoms_signatures_size(x0, x1); }
15736   _cffi_save_errno();
15737   Py_END_ALLOW_THREADS
15738 
15739   (void)self; /* unused */
15740   pyresult = _cffi_from_c__Bool(result);
15741   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
15742   return pyresult;
15743 }
15744 #else
15745 #  define _cffi_f_clingo_symbolic_atoms_signatures_size _cffi_d_clingo_symbolic_atoms_signatures_size
15746 #endif
15747 
_cffi_d_clingo_symbolic_atoms_size(clingo_symbolic_atoms_t const * x0,size_t * x1)15748 static _Bool _cffi_d_clingo_symbolic_atoms_size(clingo_symbolic_atoms_t const * x0, size_t * x1)
15749 {
15750   return clingo_symbolic_atoms_size(x0, x1);
15751 }
15752 #ifndef PYPY_VERSION
15753 static PyObject *
_cffi_f_clingo_symbolic_atoms_size(PyObject * self,PyObject * args)15754 _cffi_f_clingo_symbolic_atoms_size(PyObject *self, PyObject *args)
15755 {
15756   clingo_symbolic_atoms_t const * x0;
15757   size_t * x1;
15758   Py_ssize_t datasize;
15759   struct _cffi_freeme_s *large_args_free = NULL;
15760   _Bool result;
15761   PyObject *pyresult;
15762   PyObject *arg0;
15763   PyObject *arg1;
15764 
15765   if (!PyArg_UnpackTuple(args, "clingo_symbolic_atoms_size", 2, 2, &arg0, &arg1))
15766     return NULL;
15767 
15768   datasize = _cffi_prepare_pointer_call_argument(
15769       _cffi_type(788), arg0, (char **)&x0);
15770   if (datasize != 0) {
15771     x0 = ((size_t)datasize) <= 640 ? (clingo_symbolic_atoms_t const *)alloca((size_t)datasize) : NULL;
15772     if (_cffi_convert_array_argument(_cffi_type(788), arg0, (char **)&x0,
15773             datasize, &large_args_free) < 0)
15774       return NULL;
15775   }
15776 
15777   datasize = _cffi_prepare_pointer_call_argument(
15778       _cffi_type(205), arg1, (char **)&x1);
15779   if (datasize != 0) {
15780     x1 = ((size_t)datasize) <= 640 ? (size_t *)alloca((size_t)datasize) : NULL;
15781     if (_cffi_convert_array_argument(_cffi_type(205), arg1, (char **)&x1,
15782             datasize, &large_args_free) < 0)
15783       return NULL;
15784   }
15785 
15786   Py_BEGIN_ALLOW_THREADS
15787   _cffi_restore_errno();
15788   { result = clingo_symbolic_atoms_size(x0, x1); }
15789   _cffi_save_errno();
15790   Py_END_ALLOW_THREADS
15791 
15792   (void)self; /* unused */
15793   pyresult = _cffi_from_c__Bool(result);
15794   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
15795   return pyresult;
15796 }
15797 #else
15798 #  define _cffi_f_clingo_symbolic_atoms_size _cffi_d_clingo_symbolic_atoms_size
15799 #endif
15800 
_cffi_d_clingo_symbolic_atoms_symbol(clingo_symbolic_atoms_t const * x0,uint64_t x1,uint64_t * x2)15801 static _Bool _cffi_d_clingo_symbolic_atoms_symbol(clingo_symbolic_atoms_t const * x0, uint64_t x1, uint64_t * x2)
15802 {
15803   return clingo_symbolic_atoms_symbol(x0, x1, x2);
15804 }
15805 #ifndef PYPY_VERSION
15806 static PyObject *
_cffi_f_clingo_symbolic_atoms_symbol(PyObject * self,PyObject * args)15807 _cffi_f_clingo_symbolic_atoms_symbol(PyObject *self, PyObject *args)
15808 {
15809   clingo_symbolic_atoms_t const * x0;
15810   uint64_t x1;
15811   uint64_t * x2;
15812   Py_ssize_t datasize;
15813   struct _cffi_freeme_s *large_args_free = NULL;
15814   _Bool result;
15815   PyObject *pyresult;
15816   PyObject *arg0;
15817   PyObject *arg1;
15818   PyObject *arg2;
15819 
15820   if (!PyArg_UnpackTuple(args, "clingo_symbolic_atoms_symbol", 3, 3, &arg0, &arg1, &arg2))
15821     return NULL;
15822 
15823   datasize = _cffi_prepare_pointer_call_argument(
15824       _cffi_type(788), arg0, (char **)&x0);
15825   if (datasize != 0) {
15826     x0 = ((size_t)datasize) <= 640 ? (clingo_symbolic_atoms_t const *)alloca((size_t)datasize) : NULL;
15827     if (_cffi_convert_array_argument(_cffi_type(788), arg0, (char **)&x0,
15828             datasize, &large_args_free) < 0)
15829       return NULL;
15830   }
15831 
15832   x1 = _cffi_to_c_int(arg1, uint64_t);
15833   if (x1 == (uint64_t)-1 && PyErr_Occurred())
15834     return NULL;
15835 
15836   datasize = _cffi_prepare_pointer_call_argument(
15837       _cffi_type(54), arg2, (char **)&x2);
15838   if (datasize != 0) {
15839     x2 = ((size_t)datasize) <= 640 ? (uint64_t *)alloca((size_t)datasize) : NULL;
15840     if (_cffi_convert_array_argument(_cffi_type(54), arg2, (char **)&x2,
15841             datasize, &large_args_free) < 0)
15842       return NULL;
15843   }
15844 
15845   Py_BEGIN_ALLOW_THREADS
15846   _cffi_restore_errno();
15847   { result = clingo_symbolic_atoms_symbol(x0, x1, x2); }
15848   _cffi_save_errno();
15849   Py_END_ALLOW_THREADS
15850 
15851   (void)self; /* unused */
15852   pyresult = _cffi_from_c__Bool(result);
15853   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
15854   return pyresult;
15855 }
15856 #else
15857 #  define _cffi_f_clingo_symbolic_atoms_symbol _cffi_d_clingo_symbolic_atoms_symbol
15858 #endif
15859 
_cffi_d_clingo_theory_atoms_atom_elements(clingo_theory_atoms_t const * x0,uint32_t x1,uint32_t const ** x2,size_t * x3)15860 static _Bool _cffi_d_clingo_theory_atoms_atom_elements(clingo_theory_atoms_t const * x0, uint32_t x1, uint32_t const * * x2, size_t * x3)
15861 {
15862   return clingo_theory_atoms_atom_elements(x0, x1, x2, x3);
15863 }
15864 #ifndef PYPY_VERSION
15865 static PyObject *
_cffi_f_clingo_theory_atoms_atom_elements(PyObject * self,PyObject * args)15866 _cffi_f_clingo_theory_atoms_atom_elements(PyObject *self, PyObject *args)
15867 {
15868   clingo_theory_atoms_t const * x0;
15869   uint32_t x1;
15870   uint32_t const * * x2;
15871   size_t * x3;
15872   Py_ssize_t datasize;
15873   struct _cffi_freeme_s *large_args_free = NULL;
15874   _Bool result;
15875   PyObject *pyresult;
15876   PyObject *arg0;
15877   PyObject *arg1;
15878   PyObject *arg2;
15879   PyObject *arg3;
15880 
15881   if (!PyArg_UnpackTuple(args, "clingo_theory_atoms_atom_elements", 4, 4, &arg0, &arg1, &arg2, &arg3))
15882     return NULL;
15883 
15884   datasize = _cffi_prepare_pointer_call_argument(
15885       _cffi_type(827), arg0, (char **)&x0);
15886   if (datasize != 0) {
15887     x0 = ((size_t)datasize) <= 640 ? (clingo_theory_atoms_t const *)alloca((size_t)datasize) : NULL;
15888     if (_cffi_convert_array_argument(_cffi_type(827), arg0, (char **)&x0,
15889             datasize, &large_args_free) < 0)
15890       return NULL;
15891   }
15892 
15893   x1 = _cffi_to_c_int(arg1, uint32_t);
15894   if (x1 == (uint32_t)-1 && PyErr_Occurred())
15895     return NULL;
15896 
15897   datasize = _cffi_prepare_pointer_call_argument(
15898       _cffi_type(881), arg2, (char **)&x2);
15899   if (datasize != 0) {
15900     x2 = ((size_t)datasize) <= 640 ? (uint32_t const * *)alloca((size_t)datasize) : NULL;
15901     if (_cffi_convert_array_argument(_cffi_type(881), arg2, (char **)&x2,
15902             datasize, &large_args_free) < 0)
15903       return NULL;
15904   }
15905 
15906   datasize = _cffi_prepare_pointer_call_argument(
15907       _cffi_type(205), arg3, (char **)&x3);
15908   if (datasize != 0) {
15909     x3 = ((size_t)datasize) <= 640 ? (size_t *)alloca((size_t)datasize) : NULL;
15910     if (_cffi_convert_array_argument(_cffi_type(205), arg3, (char **)&x3,
15911             datasize, &large_args_free) < 0)
15912       return NULL;
15913   }
15914 
15915   Py_BEGIN_ALLOW_THREADS
15916   _cffi_restore_errno();
15917   { result = clingo_theory_atoms_atom_elements(x0, x1, x2, x3); }
15918   _cffi_save_errno();
15919   Py_END_ALLOW_THREADS
15920 
15921   (void)self; /* unused */
15922   pyresult = _cffi_from_c__Bool(result);
15923   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
15924   return pyresult;
15925 }
15926 #else
15927 #  define _cffi_f_clingo_theory_atoms_atom_elements _cffi_d_clingo_theory_atoms_atom_elements
15928 #endif
15929 
_cffi_d_clingo_theory_atoms_atom_guard(clingo_theory_atoms_t const * x0,uint32_t x1,char const ** x2,uint32_t * x3)15930 static _Bool _cffi_d_clingo_theory_atoms_atom_guard(clingo_theory_atoms_t const * x0, uint32_t x1, char const * * x2, uint32_t * x3)
15931 {
15932   return clingo_theory_atoms_atom_guard(x0, x1, x2, x3);
15933 }
15934 #ifndef PYPY_VERSION
15935 static PyObject *
_cffi_f_clingo_theory_atoms_atom_guard(PyObject * self,PyObject * args)15936 _cffi_f_clingo_theory_atoms_atom_guard(PyObject *self, PyObject *args)
15937 {
15938   clingo_theory_atoms_t const * x0;
15939   uint32_t x1;
15940   char const * * x2;
15941   uint32_t * x3;
15942   Py_ssize_t datasize;
15943   struct _cffi_freeme_s *large_args_free = NULL;
15944   _Bool result;
15945   PyObject *pyresult;
15946   PyObject *arg0;
15947   PyObject *arg1;
15948   PyObject *arg2;
15949   PyObject *arg3;
15950 
15951   if (!PyArg_UnpackTuple(args, "clingo_theory_atoms_atom_guard", 4, 4, &arg0, &arg1, &arg2, &arg3))
15952     return NULL;
15953 
15954   datasize = _cffi_prepare_pointer_call_argument(
15955       _cffi_type(827), arg0, (char **)&x0);
15956   if (datasize != 0) {
15957     x0 = ((size_t)datasize) <= 640 ? (clingo_theory_atoms_t const *)alloca((size_t)datasize) : NULL;
15958     if (_cffi_convert_array_argument(_cffi_type(827), arg0, (char **)&x0,
15959             datasize, &large_args_free) < 0)
15960       return NULL;
15961   }
15962 
15963   x1 = _cffi_to_c_int(arg1, uint32_t);
15964   if (x1 == (uint32_t)-1 && PyErr_Occurred())
15965     return NULL;
15966 
15967   datasize = _cffi_prepare_pointer_call_argument(
15968       _cffi_type(58), arg2, (char **)&x2);
15969   if (datasize != 0) {
15970     x2 = ((size_t)datasize) <= 640 ? (char const * *)alloca((size_t)datasize) : NULL;
15971     if (_cffi_convert_array_argument(_cffi_type(58), arg2, (char **)&x2,
15972             datasize, &large_args_free) < 0)
15973       return NULL;
15974   }
15975 
15976   datasize = _cffi_prepare_pointer_call_argument(
15977       _cffi_type(113), arg3, (char **)&x3);
15978   if (datasize != 0) {
15979     x3 = ((size_t)datasize) <= 640 ? (uint32_t *)alloca((size_t)datasize) : NULL;
15980     if (_cffi_convert_array_argument(_cffi_type(113), arg3, (char **)&x3,
15981             datasize, &large_args_free) < 0)
15982       return NULL;
15983   }
15984 
15985   Py_BEGIN_ALLOW_THREADS
15986   _cffi_restore_errno();
15987   { result = clingo_theory_atoms_atom_guard(x0, x1, x2, x3); }
15988   _cffi_save_errno();
15989   Py_END_ALLOW_THREADS
15990 
15991   (void)self; /* unused */
15992   pyresult = _cffi_from_c__Bool(result);
15993   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
15994   return pyresult;
15995 }
15996 #else
15997 #  define _cffi_f_clingo_theory_atoms_atom_guard _cffi_d_clingo_theory_atoms_atom_guard
15998 #endif
15999 
_cffi_d_clingo_theory_atoms_atom_has_guard(clingo_theory_atoms_t const * x0,uint32_t x1,_Bool * x2)16000 static _Bool _cffi_d_clingo_theory_atoms_atom_has_guard(clingo_theory_atoms_t const * x0, uint32_t x1, _Bool * x2)
16001 {
16002   return clingo_theory_atoms_atom_has_guard(x0, x1, x2);
16003 }
16004 #ifndef PYPY_VERSION
16005 static PyObject *
_cffi_f_clingo_theory_atoms_atom_has_guard(PyObject * self,PyObject * args)16006 _cffi_f_clingo_theory_atoms_atom_has_guard(PyObject *self, PyObject *args)
16007 {
16008   clingo_theory_atoms_t const * x0;
16009   uint32_t x1;
16010   _Bool * x2;
16011   Py_ssize_t datasize;
16012   struct _cffi_freeme_s *large_args_free = NULL;
16013   _Bool result;
16014   PyObject *pyresult;
16015   PyObject *arg0;
16016   PyObject *arg1;
16017   PyObject *arg2;
16018 
16019   if (!PyArg_UnpackTuple(args, "clingo_theory_atoms_atom_has_guard", 3, 3, &arg0, &arg1, &arg2))
16020     return NULL;
16021 
16022   datasize = _cffi_prepare_pointer_call_argument(
16023       _cffi_type(827), arg0, (char **)&x0);
16024   if (datasize != 0) {
16025     x0 = ((size_t)datasize) <= 640 ? (clingo_theory_atoms_t const *)alloca((size_t)datasize) : NULL;
16026     if (_cffi_convert_array_argument(_cffi_type(827), arg0, (char **)&x0,
16027             datasize, &large_args_free) < 0)
16028       return NULL;
16029   }
16030 
16031   x1 = _cffi_to_c_int(arg1, uint32_t);
16032   if (x1 == (uint32_t)-1 && PyErr_Occurred())
16033     return NULL;
16034 
16035   datasize = _cffi_prepare_pointer_call_argument(
16036       _cffi_type(40), arg2, (char **)&x2);
16037   if (datasize != 0) {
16038     x2 = ((size_t)datasize) <= 640 ? (_Bool *)alloca((size_t)datasize) : NULL;
16039     if (_cffi_convert_array_argument(_cffi_type(40), arg2, (char **)&x2,
16040             datasize, &large_args_free) < 0)
16041       return NULL;
16042   }
16043 
16044   Py_BEGIN_ALLOW_THREADS
16045   _cffi_restore_errno();
16046   { result = clingo_theory_atoms_atom_has_guard(x0, x1, x2); }
16047   _cffi_save_errno();
16048   Py_END_ALLOW_THREADS
16049 
16050   (void)self; /* unused */
16051   pyresult = _cffi_from_c__Bool(result);
16052   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
16053   return pyresult;
16054 }
16055 #else
16056 #  define _cffi_f_clingo_theory_atoms_atom_has_guard _cffi_d_clingo_theory_atoms_atom_has_guard
16057 #endif
16058 
_cffi_d_clingo_theory_atoms_atom_literal(clingo_theory_atoms_t const * x0,uint32_t x1,int32_t * x2)16059 static _Bool _cffi_d_clingo_theory_atoms_atom_literal(clingo_theory_atoms_t const * x0, uint32_t x1, int32_t * x2)
16060 {
16061   return clingo_theory_atoms_atom_literal(x0, x1, x2);
16062 }
16063 #ifndef PYPY_VERSION
16064 static PyObject *
_cffi_f_clingo_theory_atoms_atom_literal(PyObject * self,PyObject * args)16065 _cffi_f_clingo_theory_atoms_atom_literal(PyObject *self, PyObject *args)
16066 {
16067   clingo_theory_atoms_t const * x0;
16068   uint32_t x1;
16069   int32_t * x2;
16070   Py_ssize_t datasize;
16071   struct _cffi_freeme_s *large_args_free = NULL;
16072   _Bool result;
16073   PyObject *pyresult;
16074   PyObject *arg0;
16075   PyObject *arg1;
16076   PyObject *arg2;
16077 
16078   if (!PyArg_UnpackTuple(args, "clingo_theory_atoms_atom_literal", 3, 3, &arg0, &arg1, &arg2))
16079     return NULL;
16080 
16081   datasize = _cffi_prepare_pointer_call_argument(
16082       _cffi_type(827), arg0, (char **)&x0);
16083   if (datasize != 0) {
16084     x0 = ((size_t)datasize) <= 640 ? (clingo_theory_atoms_t const *)alloca((size_t)datasize) : NULL;
16085     if (_cffi_convert_array_argument(_cffi_type(827), arg0, (char **)&x0,
16086             datasize, &large_args_free) < 0)
16087       return NULL;
16088   }
16089 
16090   x1 = _cffi_to_c_int(arg1, uint32_t);
16091   if (x1 == (uint32_t)-1 && PyErr_Occurred())
16092     return NULL;
16093 
16094   datasize = _cffi_prepare_pointer_call_argument(
16095       _cffi_type(118), arg2, (char **)&x2);
16096   if (datasize != 0) {
16097     x2 = ((size_t)datasize) <= 640 ? (int32_t *)alloca((size_t)datasize) : NULL;
16098     if (_cffi_convert_array_argument(_cffi_type(118), arg2, (char **)&x2,
16099             datasize, &large_args_free) < 0)
16100       return NULL;
16101   }
16102 
16103   Py_BEGIN_ALLOW_THREADS
16104   _cffi_restore_errno();
16105   { result = clingo_theory_atoms_atom_literal(x0, x1, x2); }
16106   _cffi_save_errno();
16107   Py_END_ALLOW_THREADS
16108 
16109   (void)self; /* unused */
16110   pyresult = _cffi_from_c__Bool(result);
16111   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
16112   return pyresult;
16113 }
16114 #else
16115 #  define _cffi_f_clingo_theory_atoms_atom_literal _cffi_d_clingo_theory_atoms_atom_literal
16116 #endif
16117 
_cffi_d_clingo_theory_atoms_atom_term(clingo_theory_atoms_t const * x0,uint32_t x1,uint32_t * x2)16118 static _Bool _cffi_d_clingo_theory_atoms_atom_term(clingo_theory_atoms_t const * x0, uint32_t x1, uint32_t * x2)
16119 {
16120   return clingo_theory_atoms_atom_term(x0, x1, x2);
16121 }
16122 #ifndef PYPY_VERSION
16123 static PyObject *
_cffi_f_clingo_theory_atoms_atom_term(PyObject * self,PyObject * args)16124 _cffi_f_clingo_theory_atoms_atom_term(PyObject *self, PyObject *args)
16125 {
16126   clingo_theory_atoms_t const * x0;
16127   uint32_t x1;
16128   uint32_t * x2;
16129   Py_ssize_t datasize;
16130   struct _cffi_freeme_s *large_args_free = NULL;
16131   _Bool result;
16132   PyObject *pyresult;
16133   PyObject *arg0;
16134   PyObject *arg1;
16135   PyObject *arg2;
16136 
16137   if (!PyArg_UnpackTuple(args, "clingo_theory_atoms_atom_term", 3, 3, &arg0, &arg1, &arg2))
16138     return NULL;
16139 
16140   datasize = _cffi_prepare_pointer_call_argument(
16141       _cffi_type(827), arg0, (char **)&x0);
16142   if (datasize != 0) {
16143     x0 = ((size_t)datasize) <= 640 ? (clingo_theory_atoms_t const *)alloca((size_t)datasize) : NULL;
16144     if (_cffi_convert_array_argument(_cffi_type(827), arg0, (char **)&x0,
16145             datasize, &large_args_free) < 0)
16146       return NULL;
16147   }
16148 
16149   x1 = _cffi_to_c_int(arg1, uint32_t);
16150   if (x1 == (uint32_t)-1 && PyErr_Occurred())
16151     return NULL;
16152 
16153   datasize = _cffi_prepare_pointer_call_argument(
16154       _cffi_type(113), arg2, (char **)&x2);
16155   if (datasize != 0) {
16156     x2 = ((size_t)datasize) <= 640 ? (uint32_t *)alloca((size_t)datasize) : NULL;
16157     if (_cffi_convert_array_argument(_cffi_type(113), arg2, (char **)&x2,
16158             datasize, &large_args_free) < 0)
16159       return NULL;
16160   }
16161 
16162   Py_BEGIN_ALLOW_THREADS
16163   _cffi_restore_errno();
16164   { result = clingo_theory_atoms_atom_term(x0, x1, x2); }
16165   _cffi_save_errno();
16166   Py_END_ALLOW_THREADS
16167 
16168   (void)self; /* unused */
16169   pyresult = _cffi_from_c__Bool(result);
16170   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
16171   return pyresult;
16172 }
16173 #else
16174 #  define _cffi_f_clingo_theory_atoms_atom_term _cffi_d_clingo_theory_atoms_atom_term
16175 #endif
16176 
_cffi_d_clingo_theory_atoms_atom_to_string(clingo_theory_atoms_t const * x0,uint32_t x1,char * x2,size_t x3)16177 static _Bool _cffi_d_clingo_theory_atoms_atom_to_string(clingo_theory_atoms_t const * x0, uint32_t x1, char * x2, size_t x3)
16178 {
16179   return clingo_theory_atoms_atom_to_string(x0, x1, x2, x3);
16180 }
16181 #ifndef PYPY_VERSION
16182 static PyObject *
_cffi_f_clingo_theory_atoms_atom_to_string(PyObject * self,PyObject * args)16183 _cffi_f_clingo_theory_atoms_atom_to_string(PyObject *self, PyObject *args)
16184 {
16185   clingo_theory_atoms_t const * x0;
16186   uint32_t x1;
16187   char * x2;
16188   size_t x3;
16189   Py_ssize_t datasize;
16190   struct _cffi_freeme_s *large_args_free = NULL;
16191   _Bool result;
16192   PyObject *pyresult;
16193   PyObject *arg0;
16194   PyObject *arg1;
16195   PyObject *arg2;
16196   PyObject *arg3;
16197 
16198   if (!PyArg_UnpackTuple(args, "clingo_theory_atoms_atom_to_string", 4, 4, &arg0, &arg1, &arg2, &arg3))
16199     return NULL;
16200 
16201   datasize = _cffi_prepare_pointer_call_argument(
16202       _cffi_type(827), arg0, (char **)&x0);
16203   if (datasize != 0) {
16204     x0 = ((size_t)datasize) <= 640 ? (clingo_theory_atoms_t const *)alloca((size_t)datasize) : NULL;
16205     if (_cffi_convert_array_argument(_cffi_type(827), arg0, (char **)&x0,
16206             datasize, &large_args_free) < 0)
16207       return NULL;
16208   }
16209 
16210   x1 = _cffi_to_c_int(arg1, uint32_t);
16211   if (x1 == (uint32_t)-1 && PyErr_Occurred())
16212     return NULL;
16213 
16214   datasize = _cffi_prepare_pointer_call_argument(
16215       _cffi_type(136), arg2, (char **)&x2);
16216   if (datasize != 0) {
16217     x2 = ((size_t)datasize) <= 640 ? (char *)alloca((size_t)datasize) : NULL;
16218     if (_cffi_convert_array_argument(_cffi_type(136), arg2, (char **)&x2,
16219             datasize, &large_args_free) < 0)
16220       return NULL;
16221   }
16222 
16223   x3 = _cffi_to_c_int(arg3, size_t);
16224   if (x3 == (size_t)-1 && PyErr_Occurred())
16225     return NULL;
16226 
16227   Py_BEGIN_ALLOW_THREADS
16228   _cffi_restore_errno();
16229   { result = clingo_theory_atoms_atom_to_string(x0, x1, x2, x3); }
16230   _cffi_save_errno();
16231   Py_END_ALLOW_THREADS
16232 
16233   (void)self; /* unused */
16234   pyresult = _cffi_from_c__Bool(result);
16235   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
16236   return pyresult;
16237 }
16238 #else
16239 #  define _cffi_f_clingo_theory_atoms_atom_to_string _cffi_d_clingo_theory_atoms_atom_to_string
16240 #endif
16241 
_cffi_d_clingo_theory_atoms_atom_to_string_size(clingo_theory_atoms_t const * x0,uint32_t x1,size_t * x2)16242 static _Bool _cffi_d_clingo_theory_atoms_atom_to_string_size(clingo_theory_atoms_t const * x0, uint32_t x1, size_t * x2)
16243 {
16244   return clingo_theory_atoms_atom_to_string_size(x0, x1, x2);
16245 }
16246 #ifndef PYPY_VERSION
16247 static PyObject *
_cffi_f_clingo_theory_atoms_atom_to_string_size(PyObject * self,PyObject * args)16248 _cffi_f_clingo_theory_atoms_atom_to_string_size(PyObject *self, PyObject *args)
16249 {
16250   clingo_theory_atoms_t const * x0;
16251   uint32_t x1;
16252   size_t * x2;
16253   Py_ssize_t datasize;
16254   struct _cffi_freeme_s *large_args_free = NULL;
16255   _Bool result;
16256   PyObject *pyresult;
16257   PyObject *arg0;
16258   PyObject *arg1;
16259   PyObject *arg2;
16260 
16261   if (!PyArg_UnpackTuple(args, "clingo_theory_atoms_atom_to_string_size", 3, 3, &arg0, &arg1, &arg2))
16262     return NULL;
16263 
16264   datasize = _cffi_prepare_pointer_call_argument(
16265       _cffi_type(827), arg0, (char **)&x0);
16266   if (datasize != 0) {
16267     x0 = ((size_t)datasize) <= 640 ? (clingo_theory_atoms_t const *)alloca((size_t)datasize) : NULL;
16268     if (_cffi_convert_array_argument(_cffi_type(827), arg0, (char **)&x0,
16269             datasize, &large_args_free) < 0)
16270       return NULL;
16271   }
16272 
16273   x1 = _cffi_to_c_int(arg1, uint32_t);
16274   if (x1 == (uint32_t)-1 && PyErr_Occurred())
16275     return NULL;
16276 
16277   datasize = _cffi_prepare_pointer_call_argument(
16278       _cffi_type(205), arg2, (char **)&x2);
16279   if (datasize != 0) {
16280     x2 = ((size_t)datasize) <= 640 ? (size_t *)alloca((size_t)datasize) : NULL;
16281     if (_cffi_convert_array_argument(_cffi_type(205), arg2, (char **)&x2,
16282             datasize, &large_args_free) < 0)
16283       return NULL;
16284   }
16285 
16286   Py_BEGIN_ALLOW_THREADS
16287   _cffi_restore_errno();
16288   { result = clingo_theory_atoms_atom_to_string_size(x0, x1, x2); }
16289   _cffi_save_errno();
16290   Py_END_ALLOW_THREADS
16291 
16292   (void)self; /* unused */
16293   pyresult = _cffi_from_c__Bool(result);
16294   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
16295   return pyresult;
16296 }
16297 #else
16298 #  define _cffi_f_clingo_theory_atoms_atom_to_string_size _cffi_d_clingo_theory_atoms_atom_to_string_size
16299 #endif
16300 
_cffi_d_clingo_theory_atoms_element_condition(clingo_theory_atoms_t const * x0,uint32_t x1,int32_t const ** x2,size_t * x3)16301 static _Bool _cffi_d_clingo_theory_atoms_element_condition(clingo_theory_atoms_t const * x0, uint32_t x1, int32_t const * * x2, size_t * x3)
16302 {
16303   return clingo_theory_atoms_element_condition(x0, x1, x2, x3);
16304 }
16305 #ifndef PYPY_VERSION
16306 static PyObject *
_cffi_f_clingo_theory_atoms_element_condition(PyObject * self,PyObject * args)16307 _cffi_f_clingo_theory_atoms_element_condition(PyObject *self, PyObject *args)
16308 {
16309   clingo_theory_atoms_t const * x0;
16310   uint32_t x1;
16311   int32_t const * * x2;
16312   size_t * x3;
16313   Py_ssize_t datasize;
16314   struct _cffi_freeme_s *large_args_free = NULL;
16315   _Bool result;
16316   PyObject *pyresult;
16317   PyObject *arg0;
16318   PyObject *arg1;
16319   PyObject *arg2;
16320   PyObject *arg3;
16321 
16322   if (!PyArg_UnpackTuple(args, "clingo_theory_atoms_element_condition", 4, 4, &arg0, &arg1, &arg2, &arg3))
16323     return NULL;
16324 
16325   datasize = _cffi_prepare_pointer_call_argument(
16326       _cffi_type(827), arg0, (char **)&x0);
16327   if (datasize != 0) {
16328     x0 = ((size_t)datasize) <= 640 ? (clingo_theory_atoms_t const *)alloca((size_t)datasize) : NULL;
16329     if (_cffi_convert_array_argument(_cffi_type(827), arg0, (char **)&x0,
16330             datasize, &large_args_free) < 0)
16331       return NULL;
16332   }
16333 
16334   x1 = _cffi_to_c_int(arg1, uint32_t);
16335   if (x1 == (uint32_t)-1 && PyErr_Occurred())
16336     return NULL;
16337 
16338   datasize = _cffi_prepare_pointer_call_argument(
16339       _cffi_type(719), arg2, (char **)&x2);
16340   if (datasize != 0) {
16341     x2 = ((size_t)datasize) <= 640 ? (int32_t const * *)alloca((size_t)datasize) : NULL;
16342     if (_cffi_convert_array_argument(_cffi_type(719), arg2, (char **)&x2,
16343             datasize, &large_args_free) < 0)
16344       return NULL;
16345   }
16346 
16347   datasize = _cffi_prepare_pointer_call_argument(
16348       _cffi_type(205), arg3, (char **)&x3);
16349   if (datasize != 0) {
16350     x3 = ((size_t)datasize) <= 640 ? (size_t *)alloca((size_t)datasize) : NULL;
16351     if (_cffi_convert_array_argument(_cffi_type(205), arg3, (char **)&x3,
16352             datasize, &large_args_free) < 0)
16353       return NULL;
16354   }
16355 
16356   Py_BEGIN_ALLOW_THREADS
16357   _cffi_restore_errno();
16358   { result = clingo_theory_atoms_element_condition(x0, x1, x2, x3); }
16359   _cffi_save_errno();
16360   Py_END_ALLOW_THREADS
16361 
16362   (void)self; /* unused */
16363   pyresult = _cffi_from_c__Bool(result);
16364   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
16365   return pyresult;
16366 }
16367 #else
16368 #  define _cffi_f_clingo_theory_atoms_element_condition _cffi_d_clingo_theory_atoms_element_condition
16369 #endif
16370 
_cffi_d_clingo_theory_atoms_element_condition_id(clingo_theory_atoms_t const * x0,uint32_t x1,int32_t * x2)16371 static _Bool _cffi_d_clingo_theory_atoms_element_condition_id(clingo_theory_atoms_t const * x0, uint32_t x1, int32_t * x2)
16372 {
16373   return clingo_theory_atoms_element_condition_id(x0, x1, x2);
16374 }
16375 #ifndef PYPY_VERSION
16376 static PyObject *
_cffi_f_clingo_theory_atoms_element_condition_id(PyObject * self,PyObject * args)16377 _cffi_f_clingo_theory_atoms_element_condition_id(PyObject *self, PyObject *args)
16378 {
16379   clingo_theory_atoms_t const * x0;
16380   uint32_t x1;
16381   int32_t * x2;
16382   Py_ssize_t datasize;
16383   struct _cffi_freeme_s *large_args_free = NULL;
16384   _Bool result;
16385   PyObject *pyresult;
16386   PyObject *arg0;
16387   PyObject *arg1;
16388   PyObject *arg2;
16389 
16390   if (!PyArg_UnpackTuple(args, "clingo_theory_atoms_element_condition_id", 3, 3, &arg0, &arg1, &arg2))
16391     return NULL;
16392 
16393   datasize = _cffi_prepare_pointer_call_argument(
16394       _cffi_type(827), arg0, (char **)&x0);
16395   if (datasize != 0) {
16396     x0 = ((size_t)datasize) <= 640 ? (clingo_theory_atoms_t const *)alloca((size_t)datasize) : NULL;
16397     if (_cffi_convert_array_argument(_cffi_type(827), arg0, (char **)&x0,
16398             datasize, &large_args_free) < 0)
16399       return NULL;
16400   }
16401 
16402   x1 = _cffi_to_c_int(arg1, uint32_t);
16403   if (x1 == (uint32_t)-1 && PyErr_Occurred())
16404     return NULL;
16405 
16406   datasize = _cffi_prepare_pointer_call_argument(
16407       _cffi_type(118), arg2, (char **)&x2);
16408   if (datasize != 0) {
16409     x2 = ((size_t)datasize) <= 640 ? (int32_t *)alloca((size_t)datasize) : NULL;
16410     if (_cffi_convert_array_argument(_cffi_type(118), arg2, (char **)&x2,
16411             datasize, &large_args_free) < 0)
16412       return NULL;
16413   }
16414 
16415   Py_BEGIN_ALLOW_THREADS
16416   _cffi_restore_errno();
16417   { result = clingo_theory_atoms_element_condition_id(x0, x1, x2); }
16418   _cffi_save_errno();
16419   Py_END_ALLOW_THREADS
16420 
16421   (void)self; /* unused */
16422   pyresult = _cffi_from_c__Bool(result);
16423   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
16424   return pyresult;
16425 }
16426 #else
16427 #  define _cffi_f_clingo_theory_atoms_element_condition_id _cffi_d_clingo_theory_atoms_element_condition_id
16428 #endif
16429 
_cffi_d_clingo_theory_atoms_element_to_string(clingo_theory_atoms_t const * x0,uint32_t x1,char * x2,size_t x3)16430 static _Bool _cffi_d_clingo_theory_atoms_element_to_string(clingo_theory_atoms_t const * x0, uint32_t x1, char * x2, size_t x3)
16431 {
16432   return clingo_theory_atoms_element_to_string(x0, x1, x2, x3);
16433 }
16434 #ifndef PYPY_VERSION
16435 static PyObject *
_cffi_f_clingo_theory_atoms_element_to_string(PyObject * self,PyObject * args)16436 _cffi_f_clingo_theory_atoms_element_to_string(PyObject *self, PyObject *args)
16437 {
16438   clingo_theory_atoms_t const * x0;
16439   uint32_t x1;
16440   char * x2;
16441   size_t x3;
16442   Py_ssize_t datasize;
16443   struct _cffi_freeme_s *large_args_free = NULL;
16444   _Bool result;
16445   PyObject *pyresult;
16446   PyObject *arg0;
16447   PyObject *arg1;
16448   PyObject *arg2;
16449   PyObject *arg3;
16450 
16451   if (!PyArg_UnpackTuple(args, "clingo_theory_atoms_element_to_string", 4, 4, &arg0, &arg1, &arg2, &arg3))
16452     return NULL;
16453 
16454   datasize = _cffi_prepare_pointer_call_argument(
16455       _cffi_type(827), arg0, (char **)&x0);
16456   if (datasize != 0) {
16457     x0 = ((size_t)datasize) <= 640 ? (clingo_theory_atoms_t const *)alloca((size_t)datasize) : NULL;
16458     if (_cffi_convert_array_argument(_cffi_type(827), arg0, (char **)&x0,
16459             datasize, &large_args_free) < 0)
16460       return NULL;
16461   }
16462 
16463   x1 = _cffi_to_c_int(arg1, uint32_t);
16464   if (x1 == (uint32_t)-1 && PyErr_Occurred())
16465     return NULL;
16466 
16467   datasize = _cffi_prepare_pointer_call_argument(
16468       _cffi_type(136), arg2, (char **)&x2);
16469   if (datasize != 0) {
16470     x2 = ((size_t)datasize) <= 640 ? (char *)alloca((size_t)datasize) : NULL;
16471     if (_cffi_convert_array_argument(_cffi_type(136), arg2, (char **)&x2,
16472             datasize, &large_args_free) < 0)
16473       return NULL;
16474   }
16475 
16476   x3 = _cffi_to_c_int(arg3, size_t);
16477   if (x3 == (size_t)-1 && PyErr_Occurred())
16478     return NULL;
16479 
16480   Py_BEGIN_ALLOW_THREADS
16481   _cffi_restore_errno();
16482   { result = clingo_theory_atoms_element_to_string(x0, x1, x2, x3); }
16483   _cffi_save_errno();
16484   Py_END_ALLOW_THREADS
16485 
16486   (void)self; /* unused */
16487   pyresult = _cffi_from_c__Bool(result);
16488   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
16489   return pyresult;
16490 }
16491 #else
16492 #  define _cffi_f_clingo_theory_atoms_element_to_string _cffi_d_clingo_theory_atoms_element_to_string
16493 #endif
16494 
_cffi_d_clingo_theory_atoms_element_to_string_size(clingo_theory_atoms_t const * x0,uint32_t x1,size_t * x2)16495 static _Bool _cffi_d_clingo_theory_atoms_element_to_string_size(clingo_theory_atoms_t const * x0, uint32_t x1, size_t * x2)
16496 {
16497   return clingo_theory_atoms_element_to_string_size(x0, x1, x2);
16498 }
16499 #ifndef PYPY_VERSION
16500 static PyObject *
_cffi_f_clingo_theory_atoms_element_to_string_size(PyObject * self,PyObject * args)16501 _cffi_f_clingo_theory_atoms_element_to_string_size(PyObject *self, PyObject *args)
16502 {
16503   clingo_theory_atoms_t const * x0;
16504   uint32_t x1;
16505   size_t * x2;
16506   Py_ssize_t datasize;
16507   struct _cffi_freeme_s *large_args_free = NULL;
16508   _Bool result;
16509   PyObject *pyresult;
16510   PyObject *arg0;
16511   PyObject *arg1;
16512   PyObject *arg2;
16513 
16514   if (!PyArg_UnpackTuple(args, "clingo_theory_atoms_element_to_string_size", 3, 3, &arg0, &arg1, &arg2))
16515     return NULL;
16516 
16517   datasize = _cffi_prepare_pointer_call_argument(
16518       _cffi_type(827), arg0, (char **)&x0);
16519   if (datasize != 0) {
16520     x0 = ((size_t)datasize) <= 640 ? (clingo_theory_atoms_t const *)alloca((size_t)datasize) : NULL;
16521     if (_cffi_convert_array_argument(_cffi_type(827), arg0, (char **)&x0,
16522             datasize, &large_args_free) < 0)
16523       return NULL;
16524   }
16525 
16526   x1 = _cffi_to_c_int(arg1, uint32_t);
16527   if (x1 == (uint32_t)-1 && PyErr_Occurred())
16528     return NULL;
16529 
16530   datasize = _cffi_prepare_pointer_call_argument(
16531       _cffi_type(205), arg2, (char **)&x2);
16532   if (datasize != 0) {
16533     x2 = ((size_t)datasize) <= 640 ? (size_t *)alloca((size_t)datasize) : NULL;
16534     if (_cffi_convert_array_argument(_cffi_type(205), arg2, (char **)&x2,
16535             datasize, &large_args_free) < 0)
16536       return NULL;
16537   }
16538 
16539   Py_BEGIN_ALLOW_THREADS
16540   _cffi_restore_errno();
16541   { result = clingo_theory_atoms_element_to_string_size(x0, x1, x2); }
16542   _cffi_save_errno();
16543   Py_END_ALLOW_THREADS
16544 
16545   (void)self; /* unused */
16546   pyresult = _cffi_from_c__Bool(result);
16547   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
16548   return pyresult;
16549 }
16550 #else
16551 #  define _cffi_f_clingo_theory_atoms_element_to_string_size _cffi_d_clingo_theory_atoms_element_to_string_size
16552 #endif
16553 
_cffi_d_clingo_theory_atoms_element_tuple(clingo_theory_atoms_t const * x0,uint32_t x1,uint32_t const ** x2,size_t * x3)16554 static _Bool _cffi_d_clingo_theory_atoms_element_tuple(clingo_theory_atoms_t const * x0, uint32_t x1, uint32_t const * * x2, size_t * x3)
16555 {
16556   return clingo_theory_atoms_element_tuple(x0, x1, x2, x3);
16557 }
16558 #ifndef PYPY_VERSION
16559 static PyObject *
_cffi_f_clingo_theory_atoms_element_tuple(PyObject * self,PyObject * args)16560 _cffi_f_clingo_theory_atoms_element_tuple(PyObject *self, PyObject *args)
16561 {
16562   clingo_theory_atoms_t const * x0;
16563   uint32_t x1;
16564   uint32_t const * * x2;
16565   size_t * x3;
16566   Py_ssize_t datasize;
16567   struct _cffi_freeme_s *large_args_free = NULL;
16568   _Bool result;
16569   PyObject *pyresult;
16570   PyObject *arg0;
16571   PyObject *arg1;
16572   PyObject *arg2;
16573   PyObject *arg3;
16574 
16575   if (!PyArg_UnpackTuple(args, "clingo_theory_atoms_element_tuple", 4, 4, &arg0, &arg1, &arg2, &arg3))
16576     return NULL;
16577 
16578   datasize = _cffi_prepare_pointer_call_argument(
16579       _cffi_type(827), arg0, (char **)&x0);
16580   if (datasize != 0) {
16581     x0 = ((size_t)datasize) <= 640 ? (clingo_theory_atoms_t const *)alloca((size_t)datasize) : NULL;
16582     if (_cffi_convert_array_argument(_cffi_type(827), arg0, (char **)&x0,
16583             datasize, &large_args_free) < 0)
16584       return NULL;
16585   }
16586 
16587   x1 = _cffi_to_c_int(arg1, uint32_t);
16588   if (x1 == (uint32_t)-1 && PyErr_Occurred())
16589     return NULL;
16590 
16591   datasize = _cffi_prepare_pointer_call_argument(
16592       _cffi_type(881), arg2, (char **)&x2);
16593   if (datasize != 0) {
16594     x2 = ((size_t)datasize) <= 640 ? (uint32_t const * *)alloca((size_t)datasize) : NULL;
16595     if (_cffi_convert_array_argument(_cffi_type(881), arg2, (char **)&x2,
16596             datasize, &large_args_free) < 0)
16597       return NULL;
16598   }
16599 
16600   datasize = _cffi_prepare_pointer_call_argument(
16601       _cffi_type(205), arg3, (char **)&x3);
16602   if (datasize != 0) {
16603     x3 = ((size_t)datasize) <= 640 ? (size_t *)alloca((size_t)datasize) : NULL;
16604     if (_cffi_convert_array_argument(_cffi_type(205), arg3, (char **)&x3,
16605             datasize, &large_args_free) < 0)
16606       return NULL;
16607   }
16608 
16609   Py_BEGIN_ALLOW_THREADS
16610   _cffi_restore_errno();
16611   { result = clingo_theory_atoms_element_tuple(x0, x1, x2, x3); }
16612   _cffi_save_errno();
16613   Py_END_ALLOW_THREADS
16614 
16615   (void)self; /* unused */
16616   pyresult = _cffi_from_c__Bool(result);
16617   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
16618   return pyresult;
16619 }
16620 #else
16621 #  define _cffi_f_clingo_theory_atoms_element_tuple _cffi_d_clingo_theory_atoms_element_tuple
16622 #endif
16623 
_cffi_d_clingo_theory_atoms_size(clingo_theory_atoms_t const * x0,size_t * x1)16624 static _Bool _cffi_d_clingo_theory_atoms_size(clingo_theory_atoms_t const * x0, size_t * x1)
16625 {
16626   return clingo_theory_atoms_size(x0, x1);
16627 }
16628 #ifndef PYPY_VERSION
16629 static PyObject *
_cffi_f_clingo_theory_atoms_size(PyObject * self,PyObject * args)16630 _cffi_f_clingo_theory_atoms_size(PyObject *self, PyObject *args)
16631 {
16632   clingo_theory_atoms_t const * x0;
16633   size_t * x1;
16634   Py_ssize_t datasize;
16635   struct _cffi_freeme_s *large_args_free = NULL;
16636   _Bool result;
16637   PyObject *pyresult;
16638   PyObject *arg0;
16639   PyObject *arg1;
16640 
16641   if (!PyArg_UnpackTuple(args, "clingo_theory_atoms_size", 2, 2, &arg0, &arg1))
16642     return NULL;
16643 
16644   datasize = _cffi_prepare_pointer_call_argument(
16645       _cffi_type(827), arg0, (char **)&x0);
16646   if (datasize != 0) {
16647     x0 = ((size_t)datasize) <= 640 ? (clingo_theory_atoms_t const *)alloca((size_t)datasize) : NULL;
16648     if (_cffi_convert_array_argument(_cffi_type(827), arg0, (char **)&x0,
16649             datasize, &large_args_free) < 0)
16650       return NULL;
16651   }
16652 
16653   datasize = _cffi_prepare_pointer_call_argument(
16654       _cffi_type(205), arg1, (char **)&x1);
16655   if (datasize != 0) {
16656     x1 = ((size_t)datasize) <= 640 ? (size_t *)alloca((size_t)datasize) : NULL;
16657     if (_cffi_convert_array_argument(_cffi_type(205), arg1, (char **)&x1,
16658             datasize, &large_args_free) < 0)
16659       return NULL;
16660   }
16661 
16662   Py_BEGIN_ALLOW_THREADS
16663   _cffi_restore_errno();
16664   { result = clingo_theory_atoms_size(x0, x1); }
16665   _cffi_save_errno();
16666   Py_END_ALLOW_THREADS
16667 
16668   (void)self; /* unused */
16669   pyresult = _cffi_from_c__Bool(result);
16670   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
16671   return pyresult;
16672 }
16673 #else
16674 #  define _cffi_f_clingo_theory_atoms_size _cffi_d_clingo_theory_atoms_size
16675 #endif
16676 
_cffi_d_clingo_theory_atoms_term_arguments(clingo_theory_atoms_t const * x0,uint32_t x1,uint32_t const ** x2,size_t * x3)16677 static _Bool _cffi_d_clingo_theory_atoms_term_arguments(clingo_theory_atoms_t const * x0, uint32_t x1, uint32_t const * * x2, size_t * x3)
16678 {
16679   return clingo_theory_atoms_term_arguments(x0, x1, x2, x3);
16680 }
16681 #ifndef PYPY_VERSION
16682 static PyObject *
_cffi_f_clingo_theory_atoms_term_arguments(PyObject * self,PyObject * args)16683 _cffi_f_clingo_theory_atoms_term_arguments(PyObject *self, PyObject *args)
16684 {
16685   clingo_theory_atoms_t const * x0;
16686   uint32_t x1;
16687   uint32_t const * * x2;
16688   size_t * x3;
16689   Py_ssize_t datasize;
16690   struct _cffi_freeme_s *large_args_free = NULL;
16691   _Bool result;
16692   PyObject *pyresult;
16693   PyObject *arg0;
16694   PyObject *arg1;
16695   PyObject *arg2;
16696   PyObject *arg3;
16697 
16698   if (!PyArg_UnpackTuple(args, "clingo_theory_atoms_term_arguments", 4, 4, &arg0, &arg1, &arg2, &arg3))
16699     return NULL;
16700 
16701   datasize = _cffi_prepare_pointer_call_argument(
16702       _cffi_type(827), arg0, (char **)&x0);
16703   if (datasize != 0) {
16704     x0 = ((size_t)datasize) <= 640 ? (clingo_theory_atoms_t const *)alloca((size_t)datasize) : NULL;
16705     if (_cffi_convert_array_argument(_cffi_type(827), arg0, (char **)&x0,
16706             datasize, &large_args_free) < 0)
16707       return NULL;
16708   }
16709 
16710   x1 = _cffi_to_c_int(arg1, uint32_t);
16711   if (x1 == (uint32_t)-1 && PyErr_Occurred())
16712     return NULL;
16713 
16714   datasize = _cffi_prepare_pointer_call_argument(
16715       _cffi_type(881), arg2, (char **)&x2);
16716   if (datasize != 0) {
16717     x2 = ((size_t)datasize) <= 640 ? (uint32_t const * *)alloca((size_t)datasize) : NULL;
16718     if (_cffi_convert_array_argument(_cffi_type(881), arg2, (char **)&x2,
16719             datasize, &large_args_free) < 0)
16720       return NULL;
16721   }
16722 
16723   datasize = _cffi_prepare_pointer_call_argument(
16724       _cffi_type(205), arg3, (char **)&x3);
16725   if (datasize != 0) {
16726     x3 = ((size_t)datasize) <= 640 ? (size_t *)alloca((size_t)datasize) : NULL;
16727     if (_cffi_convert_array_argument(_cffi_type(205), arg3, (char **)&x3,
16728             datasize, &large_args_free) < 0)
16729       return NULL;
16730   }
16731 
16732   Py_BEGIN_ALLOW_THREADS
16733   _cffi_restore_errno();
16734   { result = clingo_theory_atoms_term_arguments(x0, x1, x2, x3); }
16735   _cffi_save_errno();
16736   Py_END_ALLOW_THREADS
16737 
16738   (void)self; /* unused */
16739   pyresult = _cffi_from_c__Bool(result);
16740   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
16741   return pyresult;
16742 }
16743 #else
16744 #  define _cffi_f_clingo_theory_atoms_term_arguments _cffi_d_clingo_theory_atoms_term_arguments
16745 #endif
16746 
_cffi_d_clingo_theory_atoms_term_name(clingo_theory_atoms_t const * x0,uint32_t x1,char const ** x2)16747 static _Bool _cffi_d_clingo_theory_atoms_term_name(clingo_theory_atoms_t const * x0, uint32_t x1, char const * * x2)
16748 {
16749   return clingo_theory_atoms_term_name(x0, x1, x2);
16750 }
16751 #ifndef PYPY_VERSION
16752 static PyObject *
_cffi_f_clingo_theory_atoms_term_name(PyObject * self,PyObject * args)16753 _cffi_f_clingo_theory_atoms_term_name(PyObject *self, PyObject *args)
16754 {
16755   clingo_theory_atoms_t const * x0;
16756   uint32_t x1;
16757   char const * * x2;
16758   Py_ssize_t datasize;
16759   struct _cffi_freeme_s *large_args_free = NULL;
16760   _Bool result;
16761   PyObject *pyresult;
16762   PyObject *arg0;
16763   PyObject *arg1;
16764   PyObject *arg2;
16765 
16766   if (!PyArg_UnpackTuple(args, "clingo_theory_atoms_term_name", 3, 3, &arg0, &arg1, &arg2))
16767     return NULL;
16768 
16769   datasize = _cffi_prepare_pointer_call_argument(
16770       _cffi_type(827), arg0, (char **)&x0);
16771   if (datasize != 0) {
16772     x0 = ((size_t)datasize) <= 640 ? (clingo_theory_atoms_t const *)alloca((size_t)datasize) : NULL;
16773     if (_cffi_convert_array_argument(_cffi_type(827), arg0, (char **)&x0,
16774             datasize, &large_args_free) < 0)
16775       return NULL;
16776   }
16777 
16778   x1 = _cffi_to_c_int(arg1, uint32_t);
16779   if (x1 == (uint32_t)-1 && PyErr_Occurred())
16780     return NULL;
16781 
16782   datasize = _cffi_prepare_pointer_call_argument(
16783       _cffi_type(58), arg2, (char **)&x2);
16784   if (datasize != 0) {
16785     x2 = ((size_t)datasize) <= 640 ? (char const * *)alloca((size_t)datasize) : NULL;
16786     if (_cffi_convert_array_argument(_cffi_type(58), arg2, (char **)&x2,
16787             datasize, &large_args_free) < 0)
16788       return NULL;
16789   }
16790 
16791   Py_BEGIN_ALLOW_THREADS
16792   _cffi_restore_errno();
16793   { result = clingo_theory_atoms_term_name(x0, x1, x2); }
16794   _cffi_save_errno();
16795   Py_END_ALLOW_THREADS
16796 
16797   (void)self; /* unused */
16798   pyresult = _cffi_from_c__Bool(result);
16799   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
16800   return pyresult;
16801 }
16802 #else
16803 #  define _cffi_f_clingo_theory_atoms_term_name _cffi_d_clingo_theory_atoms_term_name
16804 #endif
16805 
_cffi_d_clingo_theory_atoms_term_number(clingo_theory_atoms_t const * x0,uint32_t x1,int * x2)16806 static _Bool _cffi_d_clingo_theory_atoms_term_number(clingo_theory_atoms_t const * x0, uint32_t x1, int * x2)
16807 {
16808   return clingo_theory_atoms_term_number(x0, x1, x2);
16809 }
16810 #ifndef PYPY_VERSION
16811 static PyObject *
_cffi_f_clingo_theory_atoms_term_number(PyObject * self,PyObject * args)16812 _cffi_f_clingo_theory_atoms_term_number(PyObject *self, PyObject *args)
16813 {
16814   clingo_theory_atoms_t const * x0;
16815   uint32_t x1;
16816   int * x2;
16817   Py_ssize_t datasize;
16818   struct _cffi_freeme_s *large_args_free = NULL;
16819   _Bool result;
16820   PyObject *pyresult;
16821   PyObject *arg0;
16822   PyObject *arg1;
16823   PyObject *arg2;
16824 
16825   if (!PyArg_UnpackTuple(args, "clingo_theory_atoms_term_number", 3, 3, &arg0, &arg1, &arg2))
16826     return NULL;
16827 
16828   datasize = _cffi_prepare_pointer_call_argument(
16829       _cffi_type(827), arg0, (char **)&x0);
16830   if (datasize != 0) {
16831     x0 = ((size_t)datasize) <= 640 ? (clingo_theory_atoms_t const *)alloca((size_t)datasize) : NULL;
16832     if (_cffi_convert_array_argument(_cffi_type(827), arg0, (char **)&x0,
16833             datasize, &large_args_free) < 0)
16834       return NULL;
16835   }
16836 
16837   x1 = _cffi_to_c_int(arg1, uint32_t);
16838   if (x1 == (uint32_t)-1 && PyErr_Occurred())
16839     return NULL;
16840 
16841   datasize = _cffi_prepare_pointer_call_argument(
16842       _cffi_type(108), arg2, (char **)&x2);
16843   if (datasize != 0) {
16844     x2 = ((size_t)datasize) <= 640 ? (int *)alloca((size_t)datasize) : NULL;
16845     if (_cffi_convert_array_argument(_cffi_type(108), arg2, (char **)&x2,
16846             datasize, &large_args_free) < 0)
16847       return NULL;
16848   }
16849 
16850   Py_BEGIN_ALLOW_THREADS
16851   _cffi_restore_errno();
16852   { result = clingo_theory_atoms_term_number(x0, x1, x2); }
16853   _cffi_save_errno();
16854   Py_END_ALLOW_THREADS
16855 
16856   (void)self; /* unused */
16857   pyresult = _cffi_from_c__Bool(result);
16858   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
16859   return pyresult;
16860 }
16861 #else
16862 #  define _cffi_f_clingo_theory_atoms_term_number _cffi_d_clingo_theory_atoms_term_number
16863 #endif
16864 
_cffi_d_clingo_theory_atoms_term_to_string(clingo_theory_atoms_t const * x0,uint32_t x1,char * x2,size_t x3)16865 static _Bool _cffi_d_clingo_theory_atoms_term_to_string(clingo_theory_atoms_t const * x0, uint32_t x1, char * x2, size_t x3)
16866 {
16867   return clingo_theory_atoms_term_to_string(x0, x1, x2, x3);
16868 }
16869 #ifndef PYPY_VERSION
16870 static PyObject *
_cffi_f_clingo_theory_atoms_term_to_string(PyObject * self,PyObject * args)16871 _cffi_f_clingo_theory_atoms_term_to_string(PyObject *self, PyObject *args)
16872 {
16873   clingo_theory_atoms_t const * x0;
16874   uint32_t x1;
16875   char * x2;
16876   size_t x3;
16877   Py_ssize_t datasize;
16878   struct _cffi_freeme_s *large_args_free = NULL;
16879   _Bool result;
16880   PyObject *pyresult;
16881   PyObject *arg0;
16882   PyObject *arg1;
16883   PyObject *arg2;
16884   PyObject *arg3;
16885 
16886   if (!PyArg_UnpackTuple(args, "clingo_theory_atoms_term_to_string", 4, 4, &arg0, &arg1, &arg2, &arg3))
16887     return NULL;
16888 
16889   datasize = _cffi_prepare_pointer_call_argument(
16890       _cffi_type(827), arg0, (char **)&x0);
16891   if (datasize != 0) {
16892     x0 = ((size_t)datasize) <= 640 ? (clingo_theory_atoms_t const *)alloca((size_t)datasize) : NULL;
16893     if (_cffi_convert_array_argument(_cffi_type(827), arg0, (char **)&x0,
16894             datasize, &large_args_free) < 0)
16895       return NULL;
16896   }
16897 
16898   x1 = _cffi_to_c_int(arg1, uint32_t);
16899   if (x1 == (uint32_t)-1 && PyErr_Occurred())
16900     return NULL;
16901 
16902   datasize = _cffi_prepare_pointer_call_argument(
16903       _cffi_type(136), arg2, (char **)&x2);
16904   if (datasize != 0) {
16905     x2 = ((size_t)datasize) <= 640 ? (char *)alloca((size_t)datasize) : NULL;
16906     if (_cffi_convert_array_argument(_cffi_type(136), arg2, (char **)&x2,
16907             datasize, &large_args_free) < 0)
16908       return NULL;
16909   }
16910 
16911   x3 = _cffi_to_c_int(arg3, size_t);
16912   if (x3 == (size_t)-1 && PyErr_Occurred())
16913     return NULL;
16914 
16915   Py_BEGIN_ALLOW_THREADS
16916   _cffi_restore_errno();
16917   { result = clingo_theory_atoms_term_to_string(x0, x1, x2, x3); }
16918   _cffi_save_errno();
16919   Py_END_ALLOW_THREADS
16920 
16921   (void)self; /* unused */
16922   pyresult = _cffi_from_c__Bool(result);
16923   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
16924   return pyresult;
16925 }
16926 #else
16927 #  define _cffi_f_clingo_theory_atoms_term_to_string _cffi_d_clingo_theory_atoms_term_to_string
16928 #endif
16929 
_cffi_d_clingo_theory_atoms_term_to_string_size(clingo_theory_atoms_t const * x0,uint32_t x1,size_t * x2)16930 static _Bool _cffi_d_clingo_theory_atoms_term_to_string_size(clingo_theory_atoms_t const * x0, uint32_t x1, size_t * x2)
16931 {
16932   return clingo_theory_atoms_term_to_string_size(x0, x1, x2);
16933 }
16934 #ifndef PYPY_VERSION
16935 static PyObject *
_cffi_f_clingo_theory_atoms_term_to_string_size(PyObject * self,PyObject * args)16936 _cffi_f_clingo_theory_atoms_term_to_string_size(PyObject *self, PyObject *args)
16937 {
16938   clingo_theory_atoms_t const * x0;
16939   uint32_t x1;
16940   size_t * x2;
16941   Py_ssize_t datasize;
16942   struct _cffi_freeme_s *large_args_free = NULL;
16943   _Bool result;
16944   PyObject *pyresult;
16945   PyObject *arg0;
16946   PyObject *arg1;
16947   PyObject *arg2;
16948 
16949   if (!PyArg_UnpackTuple(args, "clingo_theory_atoms_term_to_string_size", 3, 3, &arg0, &arg1, &arg2))
16950     return NULL;
16951 
16952   datasize = _cffi_prepare_pointer_call_argument(
16953       _cffi_type(827), arg0, (char **)&x0);
16954   if (datasize != 0) {
16955     x0 = ((size_t)datasize) <= 640 ? (clingo_theory_atoms_t const *)alloca((size_t)datasize) : NULL;
16956     if (_cffi_convert_array_argument(_cffi_type(827), arg0, (char **)&x0,
16957             datasize, &large_args_free) < 0)
16958       return NULL;
16959   }
16960 
16961   x1 = _cffi_to_c_int(arg1, uint32_t);
16962   if (x1 == (uint32_t)-1 && PyErr_Occurred())
16963     return NULL;
16964 
16965   datasize = _cffi_prepare_pointer_call_argument(
16966       _cffi_type(205), arg2, (char **)&x2);
16967   if (datasize != 0) {
16968     x2 = ((size_t)datasize) <= 640 ? (size_t *)alloca((size_t)datasize) : NULL;
16969     if (_cffi_convert_array_argument(_cffi_type(205), arg2, (char **)&x2,
16970             datasize, &large_args_free) < 0)
16971       return NULL;
16972   }
16973 
16974   Py_BEGIN_ALLOW_THREADS
16975   _cffi_restore_errno();
16976   { result = clingo_theory_atoms_term_to_string_size(x0, x1, x2); }
16977   _cffi_save_errno();
16978   Py_END_ALLOW_THREADS
16979 
16980   (void)self; /* unused */
16981   pyresult = _cffi_from_c__Bool(result);
16982   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
16983   return pyresult;
16984 }
16985 #else
16986 #  define _cffi_f_clingo_theory_atoms_term_to_string_size _cffi_d_clingo_theory_atoms_term_to_string_size
16987 #endif
16988 
_cffi_d_clingo_theory_atoms_term_type(clingo_theory_atoms_t const * x0,uint32_t x1,int * x2)16989 static _Bool _cffi_d_clingo_theory_atoms_term_type(clingo_theory_atoms_t const * x0, uint32_t x1, int * x2)
16990 {
16991   return clingo_theory_atoms_term_type(x0, x1, x2);
16992 }
16993 #ifndef PYPY_VERSION
16994 static PyObject *
_cffi_f_clingo_theory_atoms_term_type(PyObject * self,PyObject * args)16995 _cffi_f_clingo_theory_atoms_term_type(PyObject *self, PyObject *args)
16996 {
16997   clingo_theory_atoms_t const * x0;
16998   uint32_t x1;
16999   int * x2;
17000   Py_ssize_t datasize;
17001   struct _cffi_freeme_s *large_args_free = NULL;
17002   _Bool result;
17003   PyObject *pyresult;
17004   PyObject *arg0;
17005   PyObject *arg1;
17006   PyObject *arg2;
17007 
17008   if (!PyArg_UnpackTuple(args, "clingo_theory_atoms_term_type", 3, 3, &arg0, &arg1, &arg2))
17009     return NULL;
17010 
17011   datasize = _cffi_prepare_pointer_call_argument(
17012       _cffi_type(827), arg0, (char **)&x0);
17013   if (datasize != 0) {
17014     x0 = ((size_t)datasize) <= 640 ? (clingo_theory_atoms_t const *)alloca((size_t)datasize) : NULL;
17015     if (_cffi_convert_array_argument(_cffi_type(827), arg0, (char **)&x0,
17016             datasize, &large_args_free) < 0)
17017       return NULL;
17018   }
17019 
17020   x1 = _cffi_to_c_int(arg1, uint32_t);
17021   if (x1 == (uint32_t)-1 && PyErr_Occurred())
17022     return NULL;
17023 
17024   datasize = _cffi_prepare_pointer_call_argument(
17025       _cffi_type(108), arg2, (char **)&x2);
17026   if (datasize != 0) {
17027     x2 = ((size_t)datasize) <= 640 ? (int *)alloca((size_t)datasize) : NULL;
17028     if (_cffi_convert_array_argument(_cffi_type(108), arg2, (char **)&x2,
17029             datasize, &large_args_free) < 0)
17030       return NULL;
17031   }
17032 
17033   Py_BEGIN_ALLOW_THREADS
17034   _cffi_restore_errno();
17035   { result = clingo_theory_atoms_term_type(x0, x1, x2); }
17036   _cffi_save_errno();
17037   Py_END_ALLOW_THREADS
17038 
17039   (void)self; /* unused */
17040   pyresult = _cffi_from_c__Bool(result);
17041   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
17042   return pyresult;
17043 }
17044 #else
17045 #  define _cffi_f_clingo_theory_atoms_term_type _cffi_d_clingo_theory_atoms_term_type
17046 #endif
17047 
_cffi_d_clingo_version(int * x0,int * x1,int * x2)17048 static void _cffi_d_clingo_version(int * x0, int * x1, int * x2)
17049 {
17050   clingo_version(x0, x1, x2);
17051 }
17052 #ifndef PYPY_VERSION
17053 static PyObject *
_cffi_f_clingo_version(PyObject * self,PyObject * args)17054 _cffi_f_clingo_version(PyObject *self, PyObject *args)
17055 {
17056   int * x0;
17057   int * x1;
17058   int * x2;
17059   Py_ssize_t datasize;
17060   struct _cffi_freeme_s *large_args_free = NULL;
17061   PyObject *arg0;
17062   PyObject *arg1;
17063   PyObject *arg2;
17064 
17065   if (!PyArg_UnpackTuple(args, "clingo_version", 3, 3, &arg0, &arg1, &arg2))
17066     return NULL;
17067 
17068   datasize = _cffi_prepare_pointer_call_argument(
17069       _cffi_type(108), arg0, (char **)&x0);
17070   if (datasize != 0) {
17071     x0 = ((size_t)datasize) <= 640 ? (int *)alloca((size_t)datasize) : NULL;
17072     if (_cffi_convert_array_argument(_cffi_type(108), arg0, (char **)&x0,
17073             datasize, &large_args_free) < 0)
17074       return NULL;
17075   }
17076 
17077   datasize = _cffi_prepare_pointer_call_argument(
17078       _cffi_type(108), arg1, (char **)&x1);
17079   if (datasize != 0) {
17080     x1 = ((size_t)datasize) <= 640 ? (int *)alloca((size_t)datasize) : NULL;
17081     if (_cffi_convert_array_argument(_cffi_type(108), arg1, (char **)&x1,
17082             datasize, &large_args_free) < 0)
17083       return NULL;
17084   }
17085 
17086   datasize = _cffi_prepare_pointer_call_argument(
17087       _cffi_type(108), arg2, (char **)&x2);
17088   if (datasize != 0) {
17089     x2 = ((size_t)datasize) <= 640 ? (int *)alloca((size_t)datasize) : NULL;
17090     if (_cffi_convert_array_argument(_cffi_type(108), arg2, (char **)&x2,
17091             datasize, &large_args_free) < 0)
17092       return NULL;
17093   }
17094 
17095   Py_BEGIN_ALLOW_THREADS
17096   _cffi_restore_errno();
17097   { clingo_version(x0, x1, x2); }
17098   _cffi_save_errno();
17099   Py_END_ALLOW_THREADS
17100 
17101   (void)self; /* unused */
17102   if (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);
17103   Py_INCREF(Py_None);
17104   return Py_None;
17105 }
17106 #else
17107 #  define _cffi_f_clingo_version _cffi_d_clingo_version
17108 #endif
17109 
_cffi_d_clingo_warning_string(int x0)17110 static char const * _cffi_d_clingo_warning_string(int x0)
17111 {
17112   return clingo_warning_string(x0);
17113 }
17114 #ifndef PYPY_VERSION
17115 static PyObject *
_cffi_f_clingo_warning_string(PyObject * self,PyObject * arg0)17116 _cffi_f_clingo_warning_string(PyObject *self, PyObject *arg0)
17117 {
17118   int x0;
17119   char const * result;
17120   PyObject *pyresult;
17121 
17122   x0 = _cffi_to_c_int(arg0, int);
17123   if (x0 == (int)-1 && PyErr_Occurred())
17124     return NULL;
17125 
17126   Py_BEGIN_ALLOW_THREADS
17127   _cffi_restore_errno();
17128   { result = clingo_warning_string(x0); }
17129   _cffi_save_errno();
17130   Py_END_ALLOW_THREADS
17131 
17132   (void)self; /* unused */
17133   pyresult = _cffi_from_c_pointer((char *)result, _cffi_type(39));
17134   return pyresult;
17135 }
17136 #else
17137 #  define _cffi_f_clingo_warning_string _cffi_d_clingo_warning_string
17138 #endif
17139 
17140 _CFFI_UNUSED_FN
_cffi_checkfld__clingo_application_t(clingo_application_t * p)17141 static void _cffi_checkfld__clingo_application_t(clingo_application_t *p)
17142 {
17143   /* only to generate compile-time warnings or errors */
17144   (void)p;
17145   { char const *(* *tmp)(void *) = &p->program_name; (void)tmp; }
17146   { char const *(* *tmp)(void *) = &p->version; (void)tmp; }
17147   { unsigned int(* *tmp)(void *) = &p->message_limit; (void)tmp; }
17148   { _Bool(* *tmp)(clingo_control_t *, char const * const *, size_t, void *) = &p->main; (void)tmp; }
17149   { void(* *tmp)(int, char const *, void *) = &p->logger; (void)tmp; }
17150   { _Bool(* *tmp)(clingo_model_t const *, _Bool(*)(void *), void *, void *) = &p->printer; (void)tmp; }
17151   { _Bool(* *tmp)(clingo_options_t *, void *) = &p->register_options; (void)tmp; }
17152   { _Bool(* *tmp)(void *) = &p->validate_options; (void)tmp; }
17153 }
17154 struct _cffi_align__clingo_application_t { char x; clingo_application_t y; };
17155 
17156 _CFFI_UNUSED_FN
_cffi_checkfld__clingo_ast_argument_t(clingo_ast_argument_t * p)17157 static void _cffi_checkfld__clingo_ast_argument_t(clingo_ast_argument_t *p)
17158 {
17159   /* only to generate compile-time warnings or errors */
17160   (void)p;
17161   (void)((p->attribute) | 0);  /* check that 'clingo_ast_argument_t.attribute' is an integer */
17162   (void)((p->type) | 0);  /* check that 'clingo_ast_argument_t.type' is an integer */
17163 }
17164 struct _cffi_align__clingo_ast_argument_t { char x; clingo_ast_argument_t y; };
17165 
17166 _CFFI_UNUSED_FN
_cffi_checkfld__clingo_ast_attribute_names_t(clingo_ast_attribute_names_t * p)17167 static void _cffi_checkfld__clingo_ast_attribute_names_t(clingo_ast_attribute_names_t *p)
17168 {
17169   /* only to generate compile-time warnings or errors */
17170   (void)p;
17171   { char const * const * *tmp = &p->names; (void)tmp; }
17172   (void)((p->size) | 0);  /* check that 'clingo_ast_attribute_names_t.size' is an integer */
17173 }
17174 struct _cffi_align__clingo_ast_attribute_names_t { char x; clingo_ast_attribute_names_t y; };
17175 
17176 _CFFI_UNUSED_FN
_cffi_checkfld__clingo_ast_constructor_t(clingo_ast_constructor_t * p)17177 static void _cffi_checkfld__clingo_ast_constructor_t(clingo_ast_constructor_t *p)
17178 {
17179   /* only to generate compile-time warnings or errors */
17180   (void)p;
17181   { char const * *tmp = &p->name; (void)tmp; }
17182   { clingo_ast_argument_t const * *tmp = &p->arguments; (void)tmp; }
17183   (void)((p->size) | 0);  /* check that 'clingo_ast_constructor_t.size' is an integer */
17184 }
17185 struct _cffi_align__clingo_ast_constructor_t { char x; clingo_ast_constructor_t y; };
17186 
17187 _CFFI_UNUSED_FN
_cffi_checkfld__clingo_ast_constructors_t(clingo_ast_constructors_t * p)17188 static void _cffi_checkfld__clingo_ast_constructors_t(clingo_ast_constructors_t *p)
17189 {
17190   /* only to generate compile-time warnings or errors */
17191   (void)p;
17192   { clingo_ast_constructor_t const * *tmp = &p->constructors; (void)tmp; }
17193   (void)((p->size) | 0);  /* check that 'clingo_ast_constructors_t.size' is an integer */
17194 }
17195 struct _cffi_align__clingo_ast_constructors_t { char x; clingo_ast_constructors_t y; };
17196 
17197 _CFFI_UNUSED_FN
_cffi_checkfld__clingo_ground_program_observer_t(clingo_ground_program_observer_t * p)17198 static void _cffi_checkfld__clingo_ground_program_observer_t(clingo_ground_program_observer_t *p)
17199 {
17200   /* only to generate compile-time warnings or errors */
17201   (void)p;
17202   { _Bool(* *tmp)(_Bool, void *) = &p->init_program; (void)tmp; }
17203   { _Bool(* *tmp)(void *) = &p->begin_step; (void)tmp; }
17204   { _Bool(* *tmp)(void *) = &p->end_step; (void)tmp; }
17205   { _Bool(* *tmp)(_Bool, uint32_t const *, size_t, int32_t const *, size_t, void *) = &p->rule; (void)tmp; }
17206   { _Bool(* *tmp)(_Bool, uint32_t const *, size_t, int32_t, clingo_weighted_literal_t const *, size_t, void *) = &p->weight_rule; (void)tmp; }
17207   { _Bool(* *tmp)(int32_t, clingo_weighted_literal_t const *, size_t, void *) = &p->minimize; (void)tmp; }
17208   { _Bool(* *tmp)(uint32_t const *, size_t, void *) = &p->project; (void)tmp; }
17209   { _Bool(* *tmp)(uint64_t, uint32_t, void *) = &p->output_atom; (void)tmp; }
17210   { _Bool(* *tmp)(uint64_t, int32_t const *, size_t, void *) = &p->output_term; (void)tmp; }
17211   { _Bool(* *tmp)(uint64_t, int, int32_t const *, size_t, void *) = &p->output_csp; (void)tmp; }
17212   { _Bool(* *tmp)(uint32_t, int, void *) = &p->external; (void)tmp; }
17213   { _Bool(* *tmp)(int32_t const *, size_t, void *) = &p->assume; (void)tmp; }
17214   { _Bool(* *tmp)(uint32_t, int, int, unsigned int, int32_t const *, size_t, void *) = &p->heuristic; (void)tmp; }
17215   { _Bool(* *tmp)(int, int, int32_t const *, size_t, void *) = &p->acyc_edge; (void)tmp; }
17216   { _Bool(* *tmp)(uint32_t, int, void *) = &p->theory_term_number; (void)tmp; }
17217   { _Bool(* *tmp)(uint32_t, char const *, void *) = &p->theory_term_string; (void)tmp; }
17218   { _Bool(* *tmp)(uint32_t, int, uint32_t const *, size_t, void *) = &p->theory_term_compound; (void)tmp; }
17219   { _Bool(* *tmp)(uint32_t, uint32_t const *, size_t, int32_t const *, size_t, void *) = &p->theory_element; (void)tmp; }
17220   { _Bool(* *tmp)(uint32_t, uint32_t, uint32_t const *, size_t, void *) = &p->theory_atom; (void)tmp; }
17221   { _Bool(* *tmp)(uint32_t, uint32_t, uint32_t const *, size_t, uint32_t, uint32_t, void *) = &p->theory_atom_with_guard; (void)tmp; }
17222 }
17223 struct _cffi_align__clingo_ground_program_observer_t { char x; clingo_ground_program_observer_t y; };
17224 
17225 _CFFI_UNUSED_FN
_cffi_checkfld__clingo_location_t(clingo_location_t * p)17226 static void _cffi_checkfld__clingo_location_t(clingo_location_t *p)
17227 {
17228   /* only to generate compile-time warnings or errors */
17229   (void)p;
17230   { char const * *tmp = &p->begin_file; (void)tmp; }
17231   { char const * *tmp = &p->end_file; (void)tmp; }
17232   (void)((p->begin_line) | 0);  /* check that 'clingo_location_t.begin_line' is an integer */
17233   (void)((p->end_line) | 0);  /* check that 'clingo_location_t.end_line' is an integer */
17234   (void)((p->begin_column) | 0);  /* check that 'clingo_location_t.begin_column' is an integer */
17235   (void)((p->end_column) | 0);  /* check that 'clingo_location_t.end_column' is an integer */
17236 }
17237 struct _cffi_align__clingo_location_t { char x; clingo_location_t y; };
17238 
17239 _CFFI_UNUSED_FN
_cffi_checkfld__clingo_part_t(clingo_part_t * p)17240 static void _cffi_checkfld__clingo_part_t(clingo_part_t *p)
17241 {
17242   /* only to generate compile-time warnings or errors */
17243   (void)p;
17244   { char const * *tmp = &p->name; (void)tmp; }
17245   { uint64_t const * *tmp = &p->params; (void)tmp; }
17246   (void)((p->size) | 0);  /* check that 'clingo_part_t.size' is an integer */
17247 }
17248 struct _cffi_align__clingo_part_t { char x; clingo_part_t y; };
17249 
17250 _CFFI_UNUSED_FN
_cffi_checkfld__clingo_propagator_t(clingo_propagator_t * p)17251 static void _cffi_checkfld__clingo_propagator_t(clingo_propagator_t *p)
17252 {
17253   /* only to generate compile-time warnings or errors */
17254   (void)p;
17255   { _Bool(* *tmp)(clingo_propagate_init_t *, void *) = &p->init; (void)tmp; }
17256   { _Bool(* *tmp)(clingo_propagate_control_t *, int32_t const *, size_t, void *) = &p->propagate; (void)tmp; }
17257   { void(* *tmp)(clingo_propagate_control_t const *, int32_t const *, size_t, void *) = &p->undo; (void)tmp; }
17258   { _Bool(* *tmp)(clingo_propagate_control_t *, void *) = &p->check; (void)tmp; }
17259   { _Bool(* *tmp)(uint32_t, clingo_assignment_t const *, int32_t, void *, int32_t *) = &p->decide; (void)tmp; }
17260 }
17261 struct _cffi_align__clingo_propagator_t { char x; clingo_propagator_t y; };
17262 
17263 _CFFI_UNUSED_FN
_cffi_checkfld__clingo_script_t(clingo_script_t * p)17264 static void _cffi_checkfld__clingo_script_t(clingo_script_t *p)
17265 {
17266   /* only to generate compile-time warnings or errors */
17267   (void)p;
17268   { _Bool(* *tmp)(clingo_location_t const *, char const *, void *) = &p->execute; (void)tmp; }
17269   { _Bool(* *tmp)(clingo_location_t const *, char const *, uint64_t const *, size_t, _Bool(*)(uint64_t const *, size_t, void *), void *, void *) = &p->call; (void)tmp; }
17270   { _Bool(* *tmp)(char const *, _Bool *, void *) = &p->callable; (void)tmp; }
17271   { _Bool(* *tmp)(clingo_control_t *, void *) = &p->main; (void)tmp; }
17272   { void(* *tmp)(void *) = &p->free; (void)tmp; }
17273   { char const * *tmp = &p->version; (void)tmp; }
17274 }
17275 struct _cffi_align__clingo_script_t { char x; clingo_script_t y; };
17276 
17277 _CFFI_UNUSED_FN
_cffi_checkfld__clingo_weighted_literal_t(clingo_weighted_literal_t * p)17278 static void _cffi_checkfld__clingo_weighted_literal_t(clingo_weighted_literal_t *p)
17279 {
17280   /* only to generate compile-time warnings or errors */
17281   (void)p;
17282   (void)((p->literal) | 0);  /* check that 'clingo_weighted_literal_t.literal' is an integer */
17283   (void)((p->weight) | 0);  /* check that 'clingo_weighted_literal_t.weight' is an integer */
17284 }
17285 struct _cffi_align__clingo_weighted_literal_t { char x; clingo_weighted_literal_t y; };
17286 
_cffi_var_g_clingo_ast_attribute_names(void)17287 static clingo_ast_attribute_names_t *_cffi_var_g_clingo_ast_attribute_names(void)
17288 {
17289   return &(g_clingo_ast_attribute_names);
17290 }
17291 
_cffi_var_g_clingo_ast_constructors(void)17292 static clingo_ast_constructors_t *_cffi_var_g_clingo_ast_constructors(void)
17293 {
17294   return &(g_clingo_ast_constructors);
17295 }
17296 
17297 static const struct _cffi_global_s _cffi_globals[] = {
17298   { "clingo_add_string", (void *)_cffi_f_clingo_add_string, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 56), (void *)_cffi_d_clingo_add_string },
17299   { "clingo_assignment_at", (void *)_cffi_f_clingo_assignment_at, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 115), (void *)_cffi_d_clingo_assignment_at },
17300   { "clingo_assignment_decision", (void *)_cffi_f_clingo_assignment_decision, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 124), (void *)_cffi_d_clingo_assignment_decision },
17301   { "clingo_assignment_decision_level", (void *)_cffi_f_clingo_assignment_decision_level, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_O, 1094), (void *)_cffi_d_clingo_assignment_decision_level },
17302   { "clingo_assignment_has_conflict", (void *)_cffi_f_clingo_assignment_has_conflict, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_O, 93), (void *)_cffi_d_clingo_assignment_has_conflict },
17303   { "clingo_assignment_has_literal", (void *)_cffi_f_clingo_assignment_has_literal, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 96), (void *)_cffi_d_clingo_assignment_has_literal },
17304   { "clingo_assignment_is_false", (void *)_cffi_f_clingo_assignment_is_false, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 100), (void *)_cffi_d_clingo_assignment_is_false },
17305   { "clingo_assignment_is_fixed", (void *)_cffi_f_clingo_assignment_is_fixed, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 100), (void *)_cffi_d_clingo_assignment_is_fixed },
17306   { "clingo_assignment_is_total", (void *)_cffi_f_clingo_assignment_is_total, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_O, 93), (void *)_cffi_d_clingo_assignment_is_total },
17307   { "clingo_assignment_is_true", (void *)_cffi_f_clingo_assignment_is_true, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 100), (void *)_cffi_d_clingo_assignment_is_true },
17308   { "clingo_assignment_level", (void *)_cffi_f_clingo_assignment_level, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 110), (void *)_cffi_d_clingo_assignment_level },
17309   { "clingo_assignment_root_level", (void *)_cffi_f_clingo_assignment_root_level, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_O, 1094), (void *)_cffi_d_clingo_assignment_root_level },
17310   { "clingo_assignment_size", (void *)_cffi_f_clingo_assignment_size, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_O, 1085), (void *)_cffi_d_clingo_assignment_size },
17311   { "clingo_assignment_trail_at", (void *)_cffi_f_clingo_assignment_trail_at, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 124), (void *)_cffi_d_clingo_assignment_trail_at },
17312   { "clingo_assignment_trail_begin", (void *)_cffi_f_clingo_assignment_trail_begin, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 129), (void *)_cffi_d_clingo_assignment_trail_begin },
17313   { "clingo_assignment_trail_end", (void *)_cffi_f_clingo_assignment_trail_end, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 129), (void *)_cffi_d_clingo_assignment_trail_end },
17314   { "clingo_assignment_trail_size", (void *)_cffi_f_clingo_assignment_trail_size, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 120), (void *)_cffi_d_clingo_assignment_trail_size },
17315   { "clingo_assignment_truth_value", (void *)_cffi_f_clingo_assignment_truth_value, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 105), (void *)_cffi_d_clingo_assignment_truth_value },
17316   { "clingo_ast_acquire", (void *)_cffi_f_clingo_ast_acquire, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_O, 1106), (void *)_cffi_d_clingo_ast_acquire },
17317   { "clingo_ast_aggregate_function_count", (void *)_cffi_const_clingo_ast_aggregate_function_count, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17318   { "clingo_ast_aggregate_function_max", (void *)_cffi_const_clingo_ast_aggregate_function_max, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17319   { "clingo_ast_aggregate_function_min", (void *)_cffi_const_clingo_ast_aggregate_function_min, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17320   { "clingo_ast_aggregate_function_sum", (void *)_cffi_const_clingo_ast_aggregate_function_sum, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17321   { "clingo_ast_aggregate_function_sump", (void *)_cffi_const_clingo_ast_aggregate_function_sump, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17322   { "clingo_ast_attribute_argument", (void *)_cffi_const_clingo_ast_attribute_argument, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17323   { "clingo_ast_attribute_arguments", (void *)_cffi_const_clingo_ast_attribute_arguments, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17324   { "clingo_ast_attribute_arity", (void *)_cffi_const_clingo_ast_attribute_arity, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17325   { "clingo_ast_attribute_atom", (void *)_cffi_const_clingo_ast_attribute_atom, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17326   { "clingo_ast_attribute_atom_type", (void *)_cffi_const_clingo_ast_attribute_atom_type, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17327   { "clingo_ast_attribute_atoms", (void *)_cffi_const_clingo_ast_attribute_atoms, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17328   { "clingo_ast_attribute_bias", (void *)_cffi_const_clingo_ast_attribute_bias, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17329   { "clingo_ast_attribute_body", (void *)_cffi_const_clingo_ast_attribute_body, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17330   { "clingo_ast_attribute_code", (void *)_cffi_const_clingo_ast_attribute_code, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17331   { "clingo_ast_attribute_coefficient", (void *)_cffi_const_clingo_ast_attribute_coefficient, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17332   { "clingo_ast_attribute_comparison", (void *)_cffi_const_clingo_ast_attribute_comparison, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17333   { "clingo_ast_attribute_condition", (void *)_cffi_const_clingo_ast_attribute_condition, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17334   { "clingo_ast_attribute_csp", (void *)_cffi_const_clingo_ast_attribute_csp, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17335   { "clingo_ast_attribute_delete_ast_at", (void *)_cffi_f_clingo_ast_attribute_delete_ast_at, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 207), (void *)_cffi_d_clingo_ast_attribute_delete_ast_at },
17336   { "clingo_ast_attribute_delete_string_at", (void *)_cffi_f_clingo_ast_attribute_delete_string_at, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 207), (void *)_cffi_d_clingo_ast_attribute_delete_string_at },
17337   { "clingo_ast_attribute_elements", (void *)_cffi_const_clingo_ast_attribute_elements, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17338   { "clingo_ast_attribute_external", (void *)_cffi_const_clingo_ast_attribute_external, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17339   { "clingo_ast_attribute_external_type", (void *)_cffi_const_clingo_ast_attribute_external_type, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17340   { "clingo_ast_attribute_function", (void *)_cffi_const_clingo_ast_attribute_function, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17341   { "clingo_ast_attribute_get_ast", (void *)_cffi_f_clingo_ast_attribute_get_ast, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 172), (void *)_cffi_d_clingo_ast_attribute_get_ast },
17342   { "clingo_ast_attribute_get_ast_at", (void *)_cffi_f_clingo_ast_attribute_get_ast_at, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 224), (void *)_cffi_d_clingo_ast_attribute_get_ast_at },
17343   { "clingo_ast_attribute_get_location", (void *)_cffi_f_clingo_ast_attribute_get_location, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 182), (void *)_cffi_d_clingo_ast_attribute_get_location },
17344   { "clingo_ast_attribute_get_number", (void *)_cffi_f_clingo_ast_attribute_get_number, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 192), (void *)_cffi_d_clingo_ast_attribute_get_number },
17345   { "clingo_ast_attribute_get_optional_ast", (void *)_cffi_f_clingo_ast_attribute_get_optional_ast, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 172), (void *)_cffi_d_clingo_ast_attribute_get_optional_ast },
17346   { "clingo_ast_attribute_get_string", (void *)_cffi_f_clingo_ast_attribute_get_string, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 162), (void *)_cffi_d_clingo_ast_attribute_get_string },
17347   { "clingo_ast_attribute_get_string_at", (void *)_cffi_f_clingo_ast_attribute_get_string_at, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 212), (void *)_cffi_d_clingo_ast_attribute_get_string_at },
17348   { "clingo_ast_attribute_get_symbol", (void *)_cffi_f_clingo_ast_attribute_get_symbol, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 236), (void *)_cffi_d_clingo_ast_attribute_get_symbol },
17349   { "clingo_ast_attribute_guard", (void *)_cffi_const_clingo_ast_attribute_guard, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17350   { "clingo_ast_attribute_guards", (void *)_cffi_const_clingo_ast_attribute_guards, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17351   { "clingo_ast_attribute_head", (void *)_cffi_const_clingo_ast_attribute_head, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17352   { "clingo_ast_attribute_insert_ast_at", (void *)_cffi_f_clingo_ast_attribute_insert_ast_at, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 230), (void *)_cffi_d_clingo_ast_attribute_insert_ast_at },
17353   { "clingo_ast_attribute_insert_string_at", (void *)_cffi_f_clingo_ast_attribute_insert_string_at, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 218), (void *)_cffi_d_clingo_ast_attribute_insert_string_at },
17354   { "clingo_ast_attribute_is_default", (void *)_cffi_const_clingo_ast_attribute_is_default, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17355   { "clingo_ast_attribute_left", (void *)_cffi_const_clingo_ast_attribute_left, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17356   { "clingo_ast_attribute_left_guard", (void *)_cffi_const_clingo_ast_attribute_left_guard, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17357   { "clingo_ast_attribute_literal", (void *)_cffi_const_clingo_ast_attribute_literal, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17358   { "clingo_ast_attribute_location", (void *)_cffi_const_clingo_ast_attribute_location, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17359   { "clingo_ast_attribute_modifier", (void *)_cffi_const_clingo_ast_attribute_modifier, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17360   { "clingo_ast_attribute_name", (void *)_cffi_const_clingo_ast_attribute_name, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17361   { "clingo_ast_attribute_node_u", (void *)_cffi_const_clingo_ast_attribute_node_u, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17362   { "clingo_ast_attribute_node_v", (void *)_cffi_const_clingo_ast_attribute_node_v, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17363   { "clingo_ast_attribute_operator_name", (void *)_cffi_const_clingo_ast_attribute_operator_name, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17364   { "clingo_ast_attribute_operator_type", (void *)_cffi_const_clingo_ast_attribute_operator_type, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17365   { "clingo_ast_attribute_operators", (void *)_cffi_const_clingo_ast_attribute_operators, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17366   { "clingo_ast_attribute_parameters", (void *)_cffi_const_clingo_ast_attribute_parameters, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17367   { "clingo_ast_attribute_positive", (void *)_cffi_const_clingo_ast_attribute_positive, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17368   { "clingo_ast_attribute_priority", (void *)_cffi_const_clingo_ast_attribute_priority, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17369   { "clingo_ast_attribute_right", (void *)_cffi_const_clingo_ast_attribute_right, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17370   { "clingo_ast_attribute_right_guard", (void *)_cffi_const_clingo_ast_attribute_right_guard, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17371   { "clingo_ast_attribute_sequence_type", (void *)_cffi_const_clingo_ast_attribute_sequence_type, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17372   { "clingo_ast_attribute_set_ast", (void *)_cffi_f_clingo_ast_attribute_set_ast, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 177), (void *)_cffi_d_clingo_ast_attribute_set_ast },
17373   { "clingo_ast_attribute_set_ast_at", (void *)_cffi_f_clingo_ast_attribute_set_ast_at, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 230), (void *)_cffi_d_clingo_ast_attribute_set_ast_at },
17374   { "clingo_ast_attribute_set_location", (void *)_cffi_f_clingo_ast_attribute_set_location, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 187), (void *)_cffi_d_clingo_ast_attribute_set_location },
17375   { "clingo_ast_attribute_set_number", (void *)_cffi_f_clingo_ast_attribute_set_number, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 197), (void *)_cffi_d_clingo_ast_attribute_set_number },
17376   { "clingo_ast_attribute_set_optional_ast", (void *)_cffi_f_clingo_ast_attribute_set_optional_ast, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 177), (void *)_cffi_d_clingo_ast_attribute_set_optional_ast },
17377   { "clingo_ast_attribute_set_string", (void *)_cffi_f_clingo_ast_attribute_set_string, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 167), (void *)_cffi_d_clingo_ast_attribute_set_string },
17378   { "clingo_ast_attribute_set_string_at", (void *)_cffi_f_clingo_ast_attribute_set_string_at, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 218), (void *)_cffi_d_clingo_ast_attribute_set_string_at },
17379   { "clingo_ast_attribute_set_symbol", (void *)_cffi_f_clingo_ast_attribute_set_symbol, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 241), (void *)_cffi_d_clingo_ast_attribute_set_symbol },
17380   { "clingo_ast_attribute_sign", (void *)_cffi_const_clingo_ast_attribute_sign, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17381   { "clingo_ast_attribute_size_ast_array", (void *)_cffi_f_clingo_ast_attribute_size_ast_array, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 202), (void *)_cffi_d_clingo_ast_attribute_size_ast_array },
17382   { "clingo_ast_attribute_size_string_array", (void *)_cffi_f_clingo_ast_attribute_size_string_array, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 202), (void *)_cffi_d_clingo_ast_attribute_size_string_array },
17383   { "clingo_ast_attribute_symbol", (void *)_cffi_const_clingo_ast_attribute_symbol, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17384   { "clingo_ast_attribute_term", (void *)_cffi_const_clingo_ast_attribute_term, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17385   { "clingo_ast_attribute_terms", (void *)_cffi_const_clingo_ast_attribute_terms, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17386   { "clingo_ast_attribute_type", (void *)_cffi_f_clingo_ast_attribute_type, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 192), (void *)_cffi_d_clingo_ast_attribute_type },
17387   { "clingo_ast_attribute_type_ast", (void *)_cffi_const_clingo_ast_attribute_type_ast, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17388   { "clingo_ast_attribute_type_ast_array", (void *)_cffi_const_clingo_ast_attribute_type_ast_array, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17389   { "clingo_ast_attribute_type_location", (void *)_cffi_const_clingo_ast_attribute_type_location, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17390   { "clingo_ast_attribute_type_number", (void *)_cffi_const_clingo_ast_attribute_type_number, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17391   { "clingo_ast_attribute_type_optional_ast", (void *)_cffi_const_clingo_ast_attribute_type_optional_ast, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17392   { "clingo_ast_attribute_type_string", (void *)_cffi_const_clingo_ast_attribute_type_string, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17393   { "clingo_ast_attribute_type_string_array", (void *)_cffi_const_clingo_ast_attribute_type_string_array, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17394   { "clingo_ast_attribute_type_symbol", (void *)_cffi_const_clingo_ast_attribute_type_symbol, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17395   { "clingo_ast_attribute_value", (void *)_cffi_const_clingo_ast_attribute_value, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17396   { "clingo_ast_attribute_variable", (void *)_cffi_const_clingo_ast_attribute_variable, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17397   { "clingo_ast_attribute_weight", (void *)_cffi_const_clingo_ast_attribute_weight, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17398   { "clingo_ast_binary_operator_and", (void *)_cffi_const_clingo_ast_binary_operator_and, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17399   { "clingo_ast_binary_operator_division", (void *)_cffi_const_clingo_ast_binary_operator_division, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17400   { "clingo_ast_binary_operator_minus", (void *)_cffi_const_clingo_ast_binary_operator_minus, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17401   { "clingo_ast_binary_operator_modulo", (void *)_cffi_const_clingo_ast_binary_operator_modulo, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17402   { "clingo_ast_binary_operator_multiplication", (void *)_cffi_const_clingo_ast_binary_operator_multiplication, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17403   { "clingo_ast_binary_operator_or", (void *)_cffi_const_clingo_ast_binary_operator_or, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17404   { "clingo_ast_binary_operator_plus", (void *)_cffi_const_clingo_ast_binary_operator_plus, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17405   { "clingo_ast_binary_operator_power", (void *)_cffi_const_clingo_ast_binary_operator_power, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17406   { "clingo_ast_binary_operator_xor", (void *)_cffi_const_clingo_ast_binary_operator_xor, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17407   { "clingo_ast_build", (void *)_cffi_const_clingo_ast_build, _CFFI_OP(_CFFI_OP_CONSTANT, 1171), (void *)0 },
17408   { "clingo_ast_comparison_operator_equal", (void *)_cffi_const_clingo_ast_comparison_operator_equal, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17409   { "clingo_ast_comparison_operator_greater_equal", (void *)_cffi_const_clingo_ast_comparison_operator_greater_equal, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17410   { "clingo_ast_comparison_operator_greater_than", (void *)_cffi_const_clingo_ast_comparison_operator_greater_than, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17411   { "clingo_ast_comparison_operator_less_equal", (void *)_cffi_const_clingo_ast_comparison_operator_less_equal, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17412   { "clingo_ast_comparison_operator_less_than", (void *)_cffi_const_clingo_ast_comparison_operator_less_than, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17413   { "clingo_ast_comparison_operator_not_equal", (void *)_cffi_const_clingo_ast_comparison_operator_not_equal, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17414   { "clingo_ast_copy", (void *)_cffi_f_clingo_ast_copy, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 139), (void *)_cffi_d_clingo_ast_copy },
17415   { "clingo_ast_deep_copy", (void *)_cffi_f_clingo_ast_deep_copy, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 139), (void *)_cffi_d_clingo_ast_deep_copy },
17416   { "clingo_ast_equal", (void *)_cffi_f_clingo_ast_equal, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 143), (void *)_cffi_d_clingo_ast_equal },
17417   { "clingo_ast_get_type", (void *)_cffi_f_clingo_ast_get_type, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 147), (void *)_cffi_d_clingo_ast_get_type },
17418   { "clingo_ast_has_attribute", (void *)_cffi_f_clingo_ast_has_attribute, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 151), (void *)_cffi_d_clingo_ast_has_attribute },
17419   { "clingo_ast_hash", (void *)_cffi_f_clingo_ast_hash, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_O, 1088), (void *)_cffi_d_clingo_ast_hash },
17420   { "clingo_ast_less_than", (void *)_cffi_f_clingo_ast_less_than, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 143), (void *)_cffi_d_clingo_ast_less_than },
17421   { "clingo_ast_parse_files", (void *)_cffi_f_clingo_ast_parse_files, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 21), (void *)_cffi_d_clingo_ast_parse_files },
17422   { "clingo_ast_parse_string", (void *)_cffi_f_clingo_ast_parse_string, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 43), (void *)_cffi_d_clingo_ast_parse_string },
17423   { "clingo_ast_release", (void *)_cffi_f_clingo_ast_release, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_O, 1106), (void *)_cffi_d_clingo_ast_release },
17424   { "clingo_ast_sign_double_negation", (void *)_cffi_const_clingo_ast_sign_double_negation, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17425   { "clingo_ast_sign_negation", (void *)_cffi_const_clingo_ast_sign_negation, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17426   { "clingo_ast_sign_no_sign", (void *)_cffi_const_clingo_ast_sign_no_sign, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17427   { "clingo_ast_theory_atom_definition_type_any", (void *)_cffi_const_clingo_ast_theory_atom_definition_type_any, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17428   { "clingo_ast_theory_atom_definition_type_body", (void *)_cffi_const_clingo_ast_theory_atom_definition_type_body, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17429   { "clingo_ast_theory_atom_definition_type_directive", (void *)_cffi_const_clingo_ast_theory_atom_definition_type_directive, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17430   { "clingo_ast_theory_atom_definition_type_head", (void *)_cffi_const_clingo_ast_theory_atom_definition_type_head, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17431   { "clingo_ast_theory_operator_type_binary_left", (void *)_cffi_const_clingo_ast_theory_operator_type_binary_left, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17432   { "clingo_ast_theory_operator_type_binary_right", (void *)_cffi_const_clingo_ast_theory_operator_type_binary_right, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17433   { "clingo_ast_theory_operator_type_unary", (void *)_cffi_const_clingo_ast_theory_operator_type_unary, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17434   { "clingo_ast_theory_sequence_type_list", (void *)_cffi_const_clingo_ast_theory_sequence_type_list, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17435   { "clingo_ast_theory_sequence_type_set", (void *)_cffi_const_clingo_ast_theory_sequence_type_set, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17436   { "clingo_ast_theory_sequence_type_tuple", (void *)_cffi_const_clingo_ast_theory_sequence_type_tuple, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17437   { "clingo_ast_to_string", (void *)_cffi_f_clingo_ast_to_string, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 134), (void *)_cffi_d_clingo_ast_to_string },
17438   { "clingo_ast_to_string_size", (void *)_cffi_f_clingo_ast_to_string_size, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 246), (void *)_cffi_d_clingo_ast_to_string_size },
17439   { "clingo_ast_type_aggregate", (void *)_cffi_const_clingo_ast_type_aggregate, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17440   { "clingo_ast_type_aggregate_guard", (void *)_cffi_const_clingo_ast_type_aggregate_guard, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17441   { "clingo_ast_type_binary_operation", (void *)_cffi_const_clingo_ast_type_binary_operation, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17442   { "clingo_ast_type_body_aggregate", (void *)_cffi_const_clingo_ast_type_body_aggregate, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17443   { "clingo_ast_type_body_aggregate_element", (void *)_cffi_const_clingo_ast_type_body_aggregate_element, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17444   { "clingo_ast_type_boolean_constant", (void *)_cffi_const_clingo_ast_type_boolean_constant, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17445   { "clingo_ast_type_comparison", (void *)_cffi_const_clingo_ast_type_comparison, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17446   { "clingo_ast_type_conditional_literal", (void *)_cffi_const_clingo_ast_type_conditional_literal, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17447   { "clingo_ast_type_csp_guard", (void *)_cffi_const_clingo_ast_type_csp_guard, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17448   { "clingo_ast_type_csp_literal", (void *)_cffi_const_clingo_ast_type_csp_literal, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17449   { "clingo_ast_type_csp_product", (void *)_cffi_const_clingo_ast_type_csp_product, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17450   { "clingo_ast_type_csp_sum", (void *)_cffi_const_clingo_ast_type_csp_sum, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17451   { "clingo_ast_type_defined", (void *)_cffi_const_clingo_ast_type_defined, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17452   { "clingo_ast_type_definition", (void *)_cffi_const_clingo_ast_type_definition, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17453   { "clingo_ast_type_disjoint", (void *)_cffi_const_clingo_ast_type_disjoint, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17454   { "clingo_ast_type_disjoint_element", (void *)_cffi_const_clingo_ast_type_disjoint_element, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17455   { "clingo_ast_type_disjunction", (void *)_cffi_const_clingo_ast_type_disjunction, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17456   { "clingo_ast_type_edge", (void *)_cffi_const_clingo_ast_type_edge, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17457   { "clingo_ast_type_external", (void *)_cffi_const_clingo_ast_type_external, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17458   { "clingo_ast_type_function", (void *)_cffi_const_clingo_ast_type_function, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17459   { "clingo_ast_type_head_aggregate", (void *)_cffi_const_clingo_ast_type_head_aggregate, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17460   { "clingo_ast_type_head_aggregate_element", (void *)_cffi_const_clingo_ast_type_head_aggregate_element, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17461   { "clingo_ast_type_heuristic", (void *)_cffi_const_clingo_ast_type_heuristic, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17462   { "clingo_ast_type_id", (void *)_cffi_const_clingo_ast_type_id, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17463   { "clingo_ast_type_interval", (void *)_cffi_const_clingo_ast_type_interval, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17464   { "clingo_ast_type_literal", (void *)_cffi_const_clingo_ast_type_literal, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17465   { "clingo_ast_type_minimize", (void *)_cffi_const_clingo_ast_type_minimize, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17466   { "clingo_ast_type_pool", (void *)_cffi_const_clingo_ast_type_pool, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17467   { "clingo_ast_type_program", (void *)_cffi_const_clingo_ast_type_program, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17468   { "clingo_ast_type_project_atom", (void *)_cffi_const_clingo_ast_type_project_atom, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17469   { "clingo_ast_type_project_signature", (void *)_cffi_const_clingo_ast_type_project_signature, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17470   { "clingo_ast_type_rule", (void *)_cffi_const_clingo_ast_type_rule, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17471   { "clingo_ast_type_script", (void *)_cffi_const_clingo_ast_type_script, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17472   { "clingo_ast_type_show_signature", (void *)_cffi_const_clingo_ast_type_show_signature, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17473   { "clingo_ast_type_show_term", (void *)_cffi_const_clingo_ast_type_show_term, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17474   { "clingo_ast_type_symbolic_atom", (void *)_cffi_const_clingo_ast_type_symbolic_atom, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17475   { "clingo_ast_type_symbolic_term", (void *)_cffi_const_clingo_ast_type_symbolic_term, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17476   { "clingo_ast_type_theory_atom", (void *)_cffi_const_clingo_ast_type_theory_atom, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17477   { "clingo_ast_type_theory_atom_definition", (void *)_cffi_const_clingo_ast_type_theory_atom_definition, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17478   { "clingo_ast_type_theory_atom_element", (void *)_cffi_const_clingo_ast_type_theory_atom_element, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17479   { "clingo_ast_type_theory_definition", (void *)_cffi_const_clingo_ast_type_theory_definition, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17480   { "clingo_ast_type_theory_function", (void *)_cffi_const_clingo_ast_type_theory_function, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17481   { "clingo_ast_type_theory_guard", (void *)_cffi_const_clingo_ast_type_theory_guard, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17482   { "clingo_ast_type_theory_guard_definition", (void *)_cffi_const_clingo_ast_type_theory_guard_definition, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17483   { "clingo_ast_type_theory_operator_definition", (void *)_cffi_const_clingo_ast_type_theory_operator_definition, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17484   { "clingo_ast_type_theory_sequence", (void *)_cffi_const_clingo_ast_type_theory_sequence, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17485   { "clingo_ast_type_theory_term_definition", (void *)_cffi_const_clingo_ast_type_theory_term_definition, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17486   { "clingo_ast_type_theory_unparsed_term", (void *)_cffi_const_clingo_ast_type_theory_unparsed_term, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17487   { "clingo_ast_type_theory_unparsed_term_element", (void *)_cffi_const_clingo_ast_type_theory_unparsed_term_element, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17488   { "clingo_ast_type_unary_operation", (void *)_cffi_const_clingo_ast_type_unary_operation, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17489   { "clingo_ast_type_variable", (void *)_cffi_const_clingo_ast_type_variable, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17490   { "clingo_ast_unary_operator_absolute", (void *)_cffi_const_clingo_ast_unary_operator_absolute, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17491   { "clingo_ast_unary_operator_minus", (void *)_cffi_const_clingo_ast_unary_operator_minus, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17492   { "clingo_ast_unary_operator_negation", (void *)_cffi_const_clingo_ast_unary_operator_negation, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17493   { "clingo_ast_unpool", (void *)_cffi_f_clingo_ast_unpool, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 156), (void *)_cffi_d_clingo_ast_unpool },
17494   { "clingo_ast_unpool_type_all", (void *)_cffi_const_clingo_ast_unpool_type_all, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17495   { "clingo_ast_unpool_type_condition", (void *)_cffi_const_clingo_ast_unpool_type_condition, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17496   { "clingo_ast_unpool_type_other", (void *)_cffi_const_clingo_ast_unpool_type_other, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17497   { "clingo_backend_acyc_edge", (void *)_cffi_f_clingo_backend_acyc_edge, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 278), (void *)_cffi_d_clingo_backend_acyc_edge },
17498   { "clingo_backend_add_atom", (void *)_cffi_f_clingo_backend_add_atom, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 315), (void *)_cffi_d_clingo_backend_add_atom },
17499   { "clingo_backend_assume", (void *)_cffi_f_clingo_backend_assume, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 285), (void *)_cffi_d_clingo_backend_assume },
17500   { "clingo_backend_begin", (void *)_cffi_f_clingo_backend_begin, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_O, 258), (void *)_cffi_d_clingo_backend_begin },
17501   { "clingo_backend_end", (void *)_cffi_f_clingo_backend_end, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_O, 258), (void *)_cffi_d_clingo_backend_end },
17502   { "clingo_backend_external", (void *)_cffi_f_clingo_backend_external, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 301), (void *)_cffi_d_clingo_backend_external },
17503   { "clingo_backend_heuristic", (void *)_cffi_f_clingo_backend_heuristic, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 306), (void *)_cffi_d_clingo_backend_heuristic },
17504   { "clingo_backend_minimize", (void *)_cffi_f_clingo_backend_minimize, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 290), (void *)_cffi_d_clingo_backend_minimize },
17505   { "clingo_backend_project", (void *)_cffi_f_clingo_backend_project, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 296), (void *)_cffi_d_clingo_backend_project },
17506   { "clingo_backend_rule", (void *)_cffi_f_clingo_backend_rule, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 261), (void *)_cffi_d_clingo_backend_rule },
17507   { "clingo_backend_weight_rule", (void *)_cffi_f_clingo_backend_weight_rule, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 269), (void *)_cffi_d_clingo_backend_weight_rule },
17508   { "clingo_clause_type_learnt", (void *)_cffi_const_clingo_clause_type_learnt, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17509   { "clingo_clause_type_static", (void *)_cffi_const_clingo_clause_type_static, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17510   { "clingo_clause_type_volatile", (void *)_cffi_const_clingo_clause_type_volatile, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17511   { "clingo_clause_type_volatile_static", (void *)_cffi_const_clingo_clause_type_volatile_static, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17512   { "clingo_configuration_array_at", (void *)_cffi_f_clingo_configuration_array_at, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 368), (void *)_cffi_d_clingo_configuration_array_at },
17513   { "clingo_configuration_array_size", (void *)_cffi_f_clingo_configuration_array_size, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 357), (void *)_cffi_d_clingo_configuration_array_size },
17514   { "clingo_configuration_description", (void *)_cffi_f_clingo_configuration_description, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 340), (void *)_cffi_d_clingo_configuration_description },
17515   { "clingo_configuration_map_at", (void *)_cffi_f_clingo_configuration_map_at, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 351), (void *)_cffi_d_clingo_configuration_map_at },
17516   { "clingo_configuration_map_has_subkey", (void *)_cffi_f_clingo_configuration_map_has_subkey, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 345), (void *)_cffi_d_clingo_configuration_map_has_subkey },
17517   { "clingo_configuration_map_size", (void *)_cffi_f_clingo_configuration_map_size, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 357), (void *)_cffi_d_clingo_configuration_map_size },
17518   { "clingo_configuration_map_subkey_name", (void *)_cffi_f_clingo_configuration_map_subkey_name, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 362), (void *)_cffi_d_clingo_configuration_map_subkey_name },
17519   { "clingo_configuration_root", (void *)_cffi_f_clingo_configuration_root, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 325), (void *)_cffi_d_clingo_configuration_root },
17520   { "clingo_configuration_type", (void *)_cffi_f_clingo_configuration_type, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 374), (void *)_cffi_d_clingo_configuration_type },
17521   { "clingo_configuration_type_array", (void *)_cffi_const_clingo_configuration_type_array, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17522   { "clingo_configuration_type_map", (void *)_cffi_const_clingo_configuration_type_map, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17523   { "clingo_configuration_type_value", (void *)_cffi_const_clingo_configuration_type_value, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17524   { "clingo_configuration_value_get", (void *)_cffi_f_clingo_configuration_value_get, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 334), (void *)_cffi_d_clingo_configuration_value_get },
17525   { "clingo_configuration_value_get_size", (void *)_cffi_f_clingo_configuration_value_get_size, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 357), (void *)_cffi_d_clingo_configuration_value_get_size },
17526   { "clingo_configuration_value_is_assigned", (void *)_cffi_f_clingo_configuration_value_is_assigned, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 329), (void *)_cffi_d_clingo_configuration_value_is_assigned },
17527   { "clingo_configuration_value_set", (void *)_cffi_f_clingo_configuration_value_set, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 320), (void *)_cffi_d_clingo_configuration_value_set },
17528   { "clingo_control_add", (void *)_cffi_f_clingo_control_add, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 396), (void *)_cffi_d_clingo_control_add },
17529   { "clingo_control_assign_external", (void *)_cffi_f_clingo_control_assign_external, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 438), (void *)_cffi_d_clingo_control_assign_external },
17530   { "clingo_control_backend", (void *)_cffi_f_clingo_control_backend, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 403), (void *)_cffi_d_clingo_control_backend },
17531   { "clingo_control_clasp_facade", (void *)_cffi_f_clingo_control_clasp_facade, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 452), (void *)_cffi_d_clingo_control_clasp_facade },
17532   { "clingo_control_cleanup", (void *)_cffi_f_clingo_control_cleanup, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_O, 379), (void *)_cffi_d_clingo_control_cleanup },
17533   { "clingo_control_configuration", (void *)_cffi_f_clingo_control_configuration, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 407), (void *)_cffi_d_clingo_control_configuration },
17534   { "clingo_control_free", (void *)_cffi_f_clingo_control_free, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_O, 1109), (void *)_cffi_d_clingo_control_free },
17535   { "clingo_control_get_const", (void *)_cffi_f_clingo_control_get_const, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 468), (void *)_cffi_d_clingo_control_get_const },
17536   { "clingo_control_get_enable_cleanup", (void *)_cffi_f_clingo_control_get_enable_cleanup, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_O, 379), (void *)_cffi_d_clingo_control_get_enable_cleanup },
17537   { "clingo_control_get_enable_enumeration_assumption", (void *)_cffi_f_clingo_control_get_enable_enumeration_assumption, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_O, 379), (void *)_cffi_d_clingo_control_get_enable_enumeration_assumption },
17538   { "clingo_control_ground", (void *)_cffi_f_clingo_control_ground, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 417), (void *)_cffi_d_clingo_control_ground },
17539   { "clingo_control_has_const", (void *)_cffi_f_clingo_control_has_const, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 463), (void *)_cffi_d_clingo_control_has_const },
17540   { "clingo_control_interrupt", (void *)_cffi_f_clingo_control_interrupt, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_O, 1109), (void *)_cffi_d_clingo_control_interrupt },
17541   { "clingo_control_is_conflicting", (void *)_cffi_f_clingo_control_is_conflicting, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_O, 460), (void *)_cffi_d_clingo_control_is_conflicting },
17542   { "clingo_control_load", (void *)_cffi_f_clingo_control_load, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 392), (void *)_cffi_d_clingo_control_load },
17543   { "clingo_control_new", (void *)_cffi_f_clingo_control_new, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 30), (void *)_cffi_d_clingo_control_new },
17544   { "clingo_control_program_builder", (void *)_cffi_f_clingo_control_program_builder, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 424), (void *)_cffi_d_clingo_control_program_builder },
17545   { "clingo_control_register_observer", (void *)_cffi_f_clingo_control_register_observer, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 411), (void *)_cffi_d_clingo_control_register_observer },
17546   { "clingo_control_register_propagator", (void *)_cffi_f_clingo_control_register_propagator, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 428), (void *)_cffi_d_clingo_control_register_propagator },
17547   { "clingo_control_release_external", (void *)_cffi_f_clingo_control_release_external, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 434), (void *)_cffi_d_clingo_control_release_external },
17548   { "clingo_control_set_enable_cleanup", (void *)_cffi_f_clingo_control_set_enable_cleanup, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 382), (void *)_cffi_d_clingo_control_set_enable_cleanup },
17549   { "clingo_control_set_enable_enumeration_assumption", (void *)_cffi_f_clingo_control_set_enable_enumeration_assumption, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 382), (void *)_cffi_d_clingo_control_set_enable_enumeration_assumption },
17550   { "clingo_control_solve", (void *)_cffi_f_clingo_control_solve, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 443), (void *)_cffi_d_clingo_control_solve },
17551   { "clingo_control_statistics", (void *)_cffi_f_clingo_control_statistics, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 473), (void *)_cffi_d_clingo_control_statistics },
17552   { "clingo_control_symbolic_atoms", (void *)_cffi_f_clingo_control_symbolic_atoms, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 477), (void *)_cffi_d_clingo_control_symbolic_atoms },
17553   { "clingo_control_theory_atoms", (void *)_cffi_f_clingo_control_theory_atoms, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 481), (void *)_cffi_d_clingo_control_theory_atoms },
17554   { "clingo_error_bad_alloc", (void *)_cffi_const_clingo_error_bad_alloc, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17555   { "clingo_error_code", (void *)_cffi_f_clingo_error_code, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_N, 1083), (void *)_cffi_d_clingo_error_code },
17556   { "clingo_error_logic", (void *)_cffi_const_clingo_error_logic, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17557   { "clingo_error_message", (void *)_cffi_f_clingo_error_message, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_N, 1063), (void *)_cffi_d_clingo_error_message },
17558   { "clingo_error_runtime", (void *)_cffi_const_clingo_error_runtime, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17559   { "clingo_error_string", (void *)_cffi_f_clingo_error_string, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_O, 1054), (void *)_cffi_d_clingo_error_string },
17560   { "clingo_error_success", (void *)_cffi_const_clingo_error_success, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17561   { "clingo_error_unknown", (void *)_cffi_const_clingo_error_unknown, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17562   { "clingo_external_type_false", (void *)_cffi_const_clingo_external_type_false, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17563   { "clingo_external_type_free", (void *)_cffi_const_clingo_external_type_free, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17564   { "clingo_external_type_release", (void *)_cffi_const_clingo_external_type_release, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17565   { "clingo_external_type_true", (void *)_cffi_const_clingo_external_type_true, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17566   { "clingo_heuristic_type_factor", (void *)_cffi_const_clingo_heuristic_type_factor, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17567   { "clingo_heuristic_type_false", (void *)_cffi_const_clingo_heuristic_type_false, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17568   { "clingo_heuristic_type_init", (void *)_cffi_const_clingo_heuristic_type_init, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17569   { "clingo_heuristic_type_level", (void *)_cffi_const_clingo_heuristic_type_level, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17570   { "clingo_heuristic_type_sign", (void *)_cffi_const_clingo_heuristic_type_sign, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17571   { "clingo_heuristic_type_true", (void *)_cffi_const_clingo_heuristic_type_true, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17572   { "clingo_main", (void *)_cffi_f_clingo_main, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 1071), (void *)_cffi_d_clingo_main },
17573   { "clingo_model_contains", (void *)_cffi_f_clingo_model_contains, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 567), (void *)_cffi_d_clingo_model_contains },
17574   { "clingo_model_context", (void *)_cffi_f_clingo_model_context, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 537), (void *)_cffi_d_clingo_model_context },
17575   { "clingo_model_cost", (void *)_cffi_f_clingo_model_cost, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 550), (void *)_cffi_d_clingo_model_cost },
17576   { "clingo_model_cost_size", (void *)_cffi_f_clingo_model_cost_size, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 555), (void *)_cffi_d_clingo_model_cost_size },
17577   { "clingo_model_extend", (void *)_cffi_f_clingo_model_extend, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 522), (void *)_cffi_d_clingo_model_extend },
17578   { "clingo_model_is_true", (void *)_cffi_f_clingo_model_is_true, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 545), (void *)_cffi_d_clingo_model_is_true },
17579   { "clingo_model_number", (void *)_cffi_f_clingo_model_number, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 563), (void *)_cffi_d_clingo_model_number },
17580   { "clingo_model_optimality_proven", (void *)_cffi_f_clingo_model_optimality_proven, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 527), (void *)_cffi_d_clingo_model_optimality_proven },
17581   { "clingo_model_symbols", (void *)_cffi_f_clingo_model_symbols, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 577), (void *)_cffi_d_clingo_model_symbols },
17582   { "clingo_model_symbols_size", (void *)_cffi_f_clingo_model_symbols_size, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 572), (void *)_cffi_d_clingo_model_symbols_size },
17583   { "clingo_model_thread_id", (void *)_cffi_f_clingo_model_thread_id, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 559), (void *)_cffi_d_clingo_model_thread_id },
17584   { "clingo_model_type", (void *)_cffi_f_clingo_model_type, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 541), (void *)_cffi_d_clingo_model_type },
17585   { "clingo_model_type_brave_consequences", (void *)_cffi_const_clingo_model_type_brave_consequences, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17586   { "clingo_model_type_cautious_consequences", (void *)_cffi_const_clingo_model_type_cautious_consequences, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17587   { "clingo_model_type_stable_model", (void *)_cffi_const_clingo_model_type_stable_model, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17588   { "clingo_options_add", (void *)_cffi_f_clingo_options_add, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 590), (void *)_cffi_d_clingo_options_add },
17589   { "clingo_options_add_flag", (void *)_cffi_f_clingo_options_add_flag, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 583), (void *)_cffi_d_clingo_options_add_flag },
17590   { "clingo_parse_term", (void *)_cffi_f_clingo_parse_term, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 86), (void *)_cffi_d_clingo_parse_term },
17591   { "clingo_program_builder_add", (void *)_cffi_f_clingo_program_builder_add, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 607), (void *)_cffi_d_clingo_program_builder_add },
17592   { "clingo_program_builder_begin", (void *)_cffi_f_clingo_program_builder_begin, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_O, 604), (void *)_cffi_d_clingo_program_builder_begin },
17593   { "clingo_program_builder_end", (void *)_cffi_f_clingo_program_builder_end, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_O, 604), (void *)_cffi_d_clingo_program_builder_end },
17594   { "clingo_propagate_control_add_clause", (void *)_cffi_f_clingo_propagate_control_add_clause, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 619), (void *)_cffi_d_clingo_propagate_control_add_clause },
17595   { "clingo_propagate_control_add_literal", (void *)_cffi_f_clingo_propagate_control_add_literal, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 615), (void *)_cffi_d_clingo_propagate_control_add_literal },
17596   { "clingo_propagate_control_add_watch", (void *)_cffi_f_clingo_propagate_control_add_watch, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 632), (void *)_cffi_d_clingo_propagate_control_add_watch },
17597   { "clingo_propagate_control_assignment", (void *)_cffi_f_clingo_propagate_control_assignment, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_O, 1065), (void *)_cffi_d_clingo_propagate_control_assignment },
17598   { "clingo_propagate_control_has_watch", (void *)_cffi_f_clingo_propagate_control_has_watch, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 640), (void *)_cffi_d_clingo_propagate_control_has_watch },
17599   { "clingo_propagate_control_propagate", (void *)_cffi_f_clingo_propagate_control_propagate, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 611), (void *)_cffi_d_clingo_propagate_control_propagate },
17600   { "clingo_propagate_control_remove_watch", (void *)_cffi_f_clingo_propagate_control_remove_watch, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 1112), (void *)_cffi_d_clingo_propagate_control_remove_watch },
17601   { "clingo_propagate_control_thread_id", (void *)_cffi_f_clingo_propagate_control_thread_id, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_O, 1097), (void *)_cffi_d_clingo_propagate_control_thread_id },
17602   { "clingo_propagate_init_add_clause", (void *)_cffi_f_clingo_propagate_init_add_clause, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 653), (void *)_cffi_d_clingo_propagate_init_add_clause },
17603   { "clingo_propagate_init_add_literal", (void *)_cffi_f_clingo_propagate_init_add_literal, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 648), (void *)_cffi_d_clingo_propagate_init_add_literal },
17604   { "clingo_propagate_init_add_minimize", (void *)_cffi_f_clingo_propagate_init_add_minimize, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 673), (void *)_cffi_d_clingo_propagate_init_add_minimize },
17605   { "clingo_propagate_init_add_watch", (void *)_cffi_f_clingo_propagate_init_add_watch, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 659), (void *)_cffi_d_clingo_propagate_init_add_watch },
17606   { "clingo_propagate_init_add_watch_to_thread", (void *)_cffi_f_clingo_propagate_init_add_watch_to_thread, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 679), (void *)_cffi_d_clingo_propagate_init_add_watch_to_thread },
17607   { "clingo_propagate_init_add_weight_constraint", (void *)_cffi_f_clingo_propagate_init_add_weight_constraint, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 663), (void *)_cffi_d_clingo_propagate_init_add_weight_constraint },
17608   { "clingo_propagate_init_assignment", (void *)_cffi_f_clingo_propagate_init_assignment, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_O, 1068), (void *)_cffi_d_clingo_propagate_init_assignment },
17609   { "clingo_propagate_init_freeze_literal", (void *)_cffi_f_clingo_propagate_init_freeze_literal, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 659), (void *)_cffi_d_clingo_propagate_init_freeze_literal },
17610   { "clingo_propagate_init_get_check_mode", (void *)_cffi_f_clingo_propagate_init_get_check_mode, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_O, 1077), (void *)_cffi_d_clingo_propagate_init_get_check_mode },
17611   { "clingo_propagate_init_number_of_threads", (void *)_cffi_f_clingo_propagate_init_number_of_threads, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_O, 1077), (void *)_cffi_d_clingo_propagate_init_number_of_threads },
17612   { "clingo_propagate_init_propagate", (void *)_cffi_f_clingo_propagate_init_propagate, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 644), (void *)_cffi_d_clingo_propagate_init_propagate },
17613   { "clingo_propagate_init_remove_watch", (void *)_cffi_f_clingo_propagate_init_remove_watch, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 659), (void *)_cffi_d_clingo_propagate_init_remove_watch },
17614   { "clingo_propagate_init_remove_watch_from_thread", (void *)_cffi_f_clingo_propagate_init_remove_watch_from_thread, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 679), (void *)_cffi_d_clingo_propagate_init_remove_watch_from_thread },
17615   { "clingo_propagate_init_set_check_mode", (void *)_cffi_f_clingo_propagate_init_set_check_mode, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 1122), (void *)_cffi_d_clingo_propagate_init_set_check_mode },
17616   { "clingo_propagate_init_solver_literal", (void *)_cffi_f_clingo_propagate_init_solver_literal, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 696), (void *)_cffi_d_clingo_propagate_init_solver_literal },
17617   { "clingo_propagate_init_symbolic_atoms", (void *)_cffi_f_clingo_propagate_init_symbolic_atoms, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 688), (void *)_cffi_d_clingo_propagate_init_symbolic_atoms },
17618   { "clingo_propagate_init_theory_atoms", (void *)_cffi_f_clingo_propagate_init_theory_atoms, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 692), (void *)_cffi_d_clingo_propagate_init_theory_atoms },
17619   { "clingo_propagator_check_mode_both", (void *)_cffi_const_clingo_propagator_check_mode_both, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17620   { "clingo_propagator_check_mode_fixpoint", (void *)_cffi_const_clingo_propagator_check_mode_fixpoint, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17621   { "clingo_propagator_check_mode_none", (void *)_cffi_const_clingo_propagator_check_mode_none, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17622   { "clingo_propagator_check_mode_total", (void *)_cffi_const_clingo_propagator_check_mode_total, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17623   { "clingo_register_script", (void *)_cffi_f_clingo_register_script, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 60), (void *)_cffi_d_clingo_register_script },
17624   { "clingo_script_version", (void *)_cffi_f_clingo_script_version, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_O, 1051), (void *)_cffi_d_clingo_script_version },
17625   { "clingo_set_error", (void *)_cffi_f_clingo_set_error, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 1136), (void *)_cffi_d_clingo_set_error },
17626   { "clingo_show_type_all", (void *)_cffi_const_clingo_show_type_all, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17627   { "clingo_show_type_atoms", (void *)_cffi_const_clingo_show_type_atoms, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17628   { "clingo_show_type_complement", (void *)_cffi_const_clingo_show_type_complement, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17629   { "clingo_show_type_csp", (void *)_cffi_const_clingo_show_type_csp, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17630   { "clingo_show_type_shown", (void *)_cffi_const_clingo_show_type_shown, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17631   { "clingo_show_type_terms", (void *)_cffi_const_clingo_show_type_terms, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17632   { "clingo_show_type_theory", (void *)_cffi_const_clingo_show_type_theory, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17633   { "clingo_signature_arity", (void *)_cffi_f_clingo_signature_arity, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_O, 1100), (void *)_cffi_d_clingo_signature_arity },
17634   { "clingo_signature_create", (void *)_cffi_f_clingo_signature_create, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 65), (void *)_cffi_d_clingo_signature_create },
17635   { "clingo_signature_hash", (void *)_cffi_f_clingo_signature_hash, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_O, 1091), (void *)_cffi_d_clingo_signature_hash },
17636   { "clingo_signature_is_equal_to", (void *)_cffi_f_clingo_signature_is_equal_to, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 1020), (void *)_cffi_d_clingo_signature_is_equal_to },
17637   { "clingo_signature_is_less_than", (void *)_cffi_f_clingo_signature_is_less_than, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 1020), (void *)_cffi_d_clingo_signature_is_less_than },
17638   { "clingo_signature_is_negative", (void *)_cffi_f_clingo_signature_is_negative, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_O, 973), (void *)_cffi_d_clingo_signature_is_negative },
17639   { "clingo_signature_is_positive", (void *)_cffi_f_clingo_signature_is_positive, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_O, 973), (void *)_cffi_d_clingo_signature_is_positive },
17640   { "clingo_signature_name", (void *)_cffi_f_clingo_signature_name, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_O, 1057), (void *)_cffi_d_clingo_signature_name },
17641   { "clingo_solve_control_add_clause", (void *)_cffi_f_clingo_solve_control_add_clause, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 701), (void *)_cffi_d_clingo_solve_control_add_clause },
17642   { "clingo_solve_control_symbolic_atoms", (void *)_cffi_f_clingo_solve_control_symbolic_atoms, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 706), (void *)_cffi_d_clingo_solve_control_symbolic_atoms },
17643   { "clingo_solve_event_type_finish", (void *)_cffi_const_clingo_solve_event_type_finish, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17644   { "clingo_solve_event_type_model", (void *)_cffi_const_clingo_solve_event_type_model, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17645   { "clingo_solve_event_type_statistics", (void *)_cffi_const_clingo_solve_event_type_statistics, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17646   { "clingo_solve_event_type_unsat", (void *)_cffi_const_clingo_solve_event_type_unsat, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17647   { "clingo_solve_handle_cancel", (void *)_cffi_f_clingo_solve_handle_cancel, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_O, 710), (void *)_cffi_d_clingo_solve_handle_cancel },
17648   { "clingo_solve_handle_close", (void *)_cffi_f_clingo_solve_handle_close, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_O, 710), (void *)_cffi_d_clingo_solve_handle_close },
17649   { "clingo_solve_handle_core", (void *)_cffi_f_clingo_solve_handle_core, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 717), (void *)_cffi_d_clingo_solve_handle_core },
17650   { "clingo_solve_handle_get", (void *)_cffi_f_clingo_solve_handle_get, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 722), (void *)_cffi_d_clingo_solve_handle_get },
17651   { "clingo_solve_handle_model", (void *)_cffi_f_clingo_solve_handle_model, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 713), (void *)_cffi_d_clingo_solve_handle_model },
17652   { "clingo_solve_handle_resume", (void *)_cffi_f_clingo_solve_handle_resume, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_O, 710), (void *)_cffi_d_clingo_solve_handle_resume },
17653   { "clingo_solve_handle_wait", (void *)_cffi_f_clingo_solve_handle_wait, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 1126), (void *)_cffi_d_clingo_solve_handle_wait },
17654   { "clingo_solve_mode_async", (void *)_cffi_const_clingo_solve_mode_async, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17655   { "clingo_solve_mode_yield", (void *)_cffi_const_clingo_solve_mode_yield, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17656   { "clingo_solve_result_exhausted", (void *)_cffi_const_clingo_solve_result_exhausted, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17657   { "clingo_solve_result_interrupted", (void *)_cffi_const_clingo_solve_result_interrupted, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17658   { "clingo_solve_result_satisfiable", (void *)_cffi_const_clingo_solve_result_satisfiable, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17659   { "clingo_solve_result_unsatisfiable", (void *)_cffi_const_clingo_solve_result_unsatisfiable, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17660   { "clingo_statistics_array_at", (void *)_cffi_f_clingo_statistics_array_at, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 781), (void *)_cffi_d_clingo_statistics_array_at },
17661   { "clingo_statistics_array_push", (void *)_cffi_f_clingo_statistics_array_push, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 738), (void *)_cffi_d_clingo_statistics_array_push },
17662   { "clingo_statistics_array_size", (void *)_cffi_f_clingo_statistics_array_size, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 770), (void *)_cffi_d_clingo_statistics_array_size },
17663   { "clingo_statistics_map_add_subkey", (void *)_cffi_f_clingo_statistics_map_add_subkey, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 726), (void *)_cffi_d_clingo_statistics_map_add_subkey },
17664   { "clingo_statistics_map_at", (void *)_cffi_f_clingo_statistics_map_at, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 754), (void *)_cffi_d_clingo_statistics_map_at },
17665   { "clingo_statistics_map_has_subkey", (void *)_cffi_f_clingo_statistics_map_has_subkey, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 748), (void *)_cffi_d_clingo_statistics_map_has_subkey },
17666   { "clingo_statistics_map_size", (void *)_cffi_f_clingo_statistics_map_size, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 770), (void *)_cffi_d_clingo_statistics_map_size },
17667   { "clingo_statistics_map_subkey_name", (void *)_cffi_f_clingo_statistics_map_subkey_name, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 775), (void *)_cffi_d_clingo_statistics_map_subkey_name },
17668   { "clingo_statistics_root", (void *)_cffi_f_clingo_statistics_root, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 744), (void *)_cffi_d_clingo_statistics_root },
17669   { "clingo_statistics_type", (void *)_cffi_f_clingo_statistics_type, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 765), (void *)_cffi_d_clingo_statistics_type },
17670   { "clingo_statistics_type_array", (void *)_cffi_const_clingo_statistics_type_array, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17671   { "clingo_statistics_type_empty", (void *)_cffi_const_clingo_statistics_type_empty, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17672   { "clingo_statistics_type_map", (void *)_cffi_const_clingo_statistics_type_map, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17673   { "clingo_statistics_type_value", (void *)_cffi_const_clingo_statistics_type_value, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17674   { "clingo_statistics_value_get", (void *)_cffi_f_clingo_statistics_value_get, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 760), (void *)_cffi_d_clingo_statistics_value_get },
17675   { "clingo_statistics_value_set", (void *)_cffi_f_clingo_statistics_value_set, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 733), (void *)_cffi_d_clingo_statistics_value_set },
17676   { "clingo_symbol_arguments", (void *)_cffi_f_clingo_symbol_arguments, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 1015), (void *)_cffi_d_clingo_symbol_arguments },
17677   { "clingo_symbol_create_function", (void *)_cffi_f_clingo_symbol_create_function, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 75), (void *)_cffi_d_clingo_symbol_create_function },
17678   { "clingo_symbol_create_id", (void *)_cffi_f_clingo_symbol_create_id, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 51), (void *)_cffi_d_clingo_symbol_create_id },
17679   { "clingo_symbol_create_infimum", (void *)_cffi_f_clingo_symbol_create_infimum, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_O, 1149), (void *)_cffi_d_clingo_symbol_create_infimum },
17680   { "clingo_symbol_create_number", (void *)_cffi_f_clingo_symbol_create_number, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 1145), (void *)_cffi_d_clingo_symbol_create_number },
17681   { "clingo_symbol_create_string", (void *)_cffi_f_clingo_symbol_create_string, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 71), (void *)_cffi_d_clingo_symbol_create_string },
17682   { "clingo_symbol_create_supremum", (void *)_cffi_f_clingo_symbol_create_supremum, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_O, 1149), (void *)_cffi_d_clingo_symbol_create_supremum },
17683   { "clingo_symbol_hash", (void *)_cffi_f_clingo_symbol_hash, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_O, 1091), (void *)_cffi_d_clingo_symbol_hash },
17684   { "clingo_symbol_is_equal_to", (void *)_cffi_f_clingo_symbol_is_equal_to, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 1020), (void *)_cffi_d_clingo_symbol_is_equal_to },
17685   { "clingo_symbol_is_less_than", (void *)_cffi_f_clingo_symbol_is_less_than, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 1020), (void *)_cffi_d_clingo_symbol_is_less_than },
17686   { "clingo_symbol_is_negative", (void *)_cffi_f_clingo_symbol_is_negative, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 976), (void *)_cffi_d_clingo_symbol_is_negative },
17687   { "clingo_symbol_is_positive", (void *)_cffi_f_clingo_symbol_is_positive, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 976), (void *)_cffi_d_clingo_symbol_is_positive },
17688   { "clingo_symbol_name", (void *)_cffi_f_clingo_symbol_name, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 985), (void *)_cffi_d_clingo_symbol_name },
17689   { "clingo_symbol_number", (void *)_cffi_f_clingo_symbol_number, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 989), (void *)_cffi_d_clingo_symbol_number },
17690   { "clingo_symbol_string", (void *)_cffi_f_clingo_symbol_string, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 985), (void *)_cffi_d_clingo_symbol_string },
17691   { "clingo_symbol_to_string", (void *)_cffi_f_clingo_symbol_to_string, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 980), (void *)_cffi_d_clingo_symbol_to_string },
17692   { "clingo_symbol_to_string_size", (void *)_cffi_f_clingo_symbol_to_string_size, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 1006), (void *)_cffi_d_clingo_symbol_to_string_size },
17693   { "clingo_symbol_type", (void *)_cffi_f_clingo_symbol_type, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_O, 1080), (void *)_cffi_d_clingo_symbol_type },
17694   { "clingo_symbol_type_function", (void *)_cffi_const_clingo_symbol_type_function, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17695   { "clingo_symbol_type_infimum", (void *)_cffi_const_clingo_symbol_type_infimum, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17696   { "clingo_symbol_type_number", (void *)_cffi_const_clingo_symbol_type_number, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17697   { "clingo_symbol_type_string", (void *)_cffi_const_clingo_symbol_type_string, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17698   { "clingo_symbol_type_supremum", (void *)_cffi_const_clingo_symbol_type_supremum, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17699   { "clingo_symbolic_atoms_begin", (void *)_cffi_f_clingo_symbolic_atoms_begin, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 800), (void *)_cffi_d_clingo_symbolic_atoms_begin },
17700   { "clingo_symbolic_atoms_end", (void *)_cffi_f_clingo_symbolic_atoms_end, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 791), (void *)_cffi_d_clingo_symbolic_atoms_end },
17701   { "clingo_symbolic_atoms_find", (void *)_cffi_f_clingo_symbolic_atoms_find, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 815), (void *)_cffi_d_clingo_symbolic_atoms_find },
17702   { "clingo_symbolic_atoms_is_external", (void *)_cffi_f_clingo_symbolic_atoms_is_external, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 805), (void *)_cffi_d_clingo_symbolic_atoms_is_external },
17703   { "clingo_symbolic_atoms_is_fact", (void *)_cffi_f_clingo_symbolic_atoms_is_fact, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 805), (void *)_cffi_d_clingo_symbolic_atoms_is_fact },
17704   { "clingo_symbolic_atoms_is_valid", (void *)_cffi_f_clingo_symbolic_atoms_is_valid, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 805), (void *)_cffi_d_clingo_symbolic_atoms_is_valid },
17705   { "clingo_symbolic_atoms_iterator_is_equal_to", (void *)_cffi_f_clingo_symbolic_atoms_iterator_is_equal_to, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 820), (void *)_cffi_d_clingo_symbolic_atoms_iterator_is_equal_to },
17706   { "clingo_symbolic_atoms_literal", (void *)_cffi_f_clingo_symbolic_atoms_literal, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 810), (void *)_cffi_d_clingo_symbolic_atoms_literal },
17707   { "clingo_symbolic_atoms_next", (void *)_cffi_f_clingo_symbolic_atoms_next, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 815), (void *)_cffi_d_clingo_symbolic_atoms_next },
17708   { "clingo_symbolic_atoms_signatures", (void *)_cffi_f_clingo_symbolic_atoms_signatures, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 795), (void *)_cffi_d_clingo_symbolic_atoms_signatures },
17709   { "clingo_symbolic_atoms_signatures_size", (void *)_cffi_f_clingo_symbolic_atoms_signatures_size, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 787), (void *)_cffi_d_clingo_symbolic_atoms_signatures_size },
17710   { "clingo_symbolic_atoms_size", (void *)_cffi_f_clingo_symbolic_atoms_size, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 787), (void *)_cffi_d_clingo_symbolic_atoms_size },
17711   { "clingo_symbolic_atoms_symbol", (void *)_cffi_f_clingo_symbolic_atoms_symbol, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 815), (void *)_cffi_d_clingo_symbolic_atoms_symbol },
17712   { "clingo_theory_atoms_atom_elements", (void *)_cffi_f_clingo_theory_atoms_atom_elements, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 878), (void *)_cffi_d_clingo_theory_atoms_atom_elements },
17713   { "clingo_theory_atoms_atom_guard", (void *)_cffi_f_clingo_theory_atoms_atom_guard, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 846), (void *)_cffi_d_clingo_theory_atoms_atom_guard },
17714   { "clingo_theory_atoms_atom_has_guard", (void *)_cffi_f_clingo_theory_atoms_atom_has_guard, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 830), (void *)_cffi_d_clingo_theory_atoms_atom_has_guard },
17715   { "clingo_theory_atoms_atom_literal", (void *)_cffi_f_clingo_theory_atoms_atom_literal, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 857), (void *)_cffi_d_clingo_theory_atoms_atom_literal },
17716   { "clingo_theory_atoms_atom_term", (void *)_cffi_f_clingo_theory_atoms_atom_term, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 873), (void *)_cffi_d_clingo_theory_atoms_atom_term },
17717   { "clingo_theory_atoms_atom_to_string", (void *)_cffi_f_clingo_theory_atoms_atom_to_string, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 835), (void *)_cffi_d_clingo_theory_atoms_atom_to_string },
17718   { "clingo_theory_atoms_atom_to_string_size", (void *)_cffi_f_clingo_theory_atoms_atom_to_string_size, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 868), (void *)_cffi_d_clingo_theory_atoms_atom_to_string_size },
17719   { "clingo_theory_atoms_element_condition", (void *)_cffi_f_clingo_theory_atoms_element_condition, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 862), (void *)_cffi_d_clingo_theory_atoms_element_condition },
17720   { "clingo_theory_atoms_element_condition_id", (void *)_cffi_f_clingo_theory_atoms_element_condition_id, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 857), (void *)_cffi_d_clingo_theory_atoms_element_condition_id },
17721   { "clingo_theory_atoms_element_to_string", (void *)_cffi_f_clingo_theory_atoms_element_to_string, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 835), (void *)_cffi_d_clingo_theory_atoms_element_to_string },
17722   { "clingo_theory_atoms_element_to_string_size", (void *)_cffi_f_clingo_theory_atoms_element_to_string_size, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 868), (void *)_cffi_d_clingo_theory_atoms_element_to_string_size },
17723   { "clingo_theory_atoms_element_tuple", (void *)_cffi_f_clingo_theory_atoms_element_tuple, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 878), (void *)_cffi_d_clingo_theory_atoms_element_tuple },
17724   { "clingo_theory_atoms_size", (void *)_cffi_f_clingo_theory_atoms_size, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 826), (void *)_cffi_d_clingo_theory_atoms_size },
17725   { "clingo_theory_atoms_term_arguments", (void *)_cffi_f_clingo_theory_atoms_term_arguments, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 878), (void *)_cffi_d_clingo_theory_atoms_term_arguments },
17726   { "clingo_theory_atoms_term_name", (void *)_cffi_f_clingo_theory_atoms_term_name, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 841), (void *)_cffi_d_clingo_theory_atoms_term_name },
17727   { "clingo_theory_atoms_term_number", (void *)_cffi_f_clingo_theory_atoms_term_number, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 852), (void *)_cffi_d_clingo_theory_atoms_term_number },
17728   { "clingo_theory_atoms_term_to_string", (void *)_cffi_f_clingo_theory_atoms_term_to_string, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 835), (void *)_cffi_d_clingo_theory_atoms_term_to_string },
17729   { "clingo_theory_atoms_term_to_string_size", (void *)_cffi_f_clingo_theory_atoms_term_to_string_size, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 868), (void *)_cffi_d_clingo_theory_atoms_term_to_string_size },
17730   { "clingo_theory_atoms_term_type", (void *)_cffi_f_clingo_theory_atoms_term_type, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 852), (void *)_cffi_d_clingo_theory_atoms_term_type },
17731   { "clingo_theory_term_type_function", (void *)_cffi_const_clingo_theory_term_type_function, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17732   { "clingo_theory_term_type_list", (void *)_cffi_const_clingo_theory_term_type_list, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17733   { "clingo_theory_term_type_number", (void *)_cffi_const_clingo_theory_term_type_number, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17734   { "clingo_theory_term_type_set", (void *)_cffi_const_clingo_theory_term_type_set, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17735   { "clingo_theory_term_type_symbol", (void *)_cffi_const_clingo_theory_term_type_symbol, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17736   { "clingo_theory_term_type_tuple", (void *)_cffi_const_clingo_theory_term_type_tuple, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17737   { "clingo_truth_value_false", (void *)_cffi_const_clingo_truth_value_false, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17738   { "clingo_truth_value_free", (void *)_cffi_const_clingo_truth_value_free, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17739   { "clingo_truth_value_true", (void *)_cffi_const_clingo_truth_value_true, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17740   { "clingo_version", (void *)_cffi_f_clingo_version, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 1131), (void *)_cffi_d_clingo_version },
17741   { "clingo_warning_atom_undefined", (void *)_cffi_const_clingo_warning_atom_undefined, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17742   { "clingo_warning_file_included", (void *)_cffi_const_clingo_warning_file_included, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17743   { "clingo_warning_global_variable", (void *)_cffi_const_clingo_warning_global_variable, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17744   { "clingo_warning_operation_undefined", (void *)_cffi_const_clingo_warning_operation_undefined, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17745   { "clingo_warning_other", (void *)_cffi_const_clingo_warning_other, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17746   { "clingo_warning_runtime_error", (void *)_cffi_const_clingo_warning_runtime_error, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17747   { "clingo_warning_string", (void *)_cffi_f_clingo_warning_string, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_O, 1054), (void *)_cffi_d_clingo_warning_string },
17748   { "clingo_warning_variable_unbounded", (void *)_cffi_const_clingo_warning_variable_unbounded, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17749   { "clingo_weight_constraint_type_equivalence", (void *)_cffi_const_clingo_weight_constraint_type_equivalence, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17750   { "clingo_weight_constraint_type_implication_left", (void *)_cffi_const_clingo_weight_constraint_type_implication_left, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17751   { "clingo_weight_constraint_type_implication_right", (void *)_cffi_const_clingo_weight_constraint_type_implication_right, _CFFI_OP(_CFFI_OP_ENUM, -1), (void *)0 },
17752   { "g_clingo_ast_attribute_names", (void *)_cffi_var_g_clingo_ast_attribute_names, _CFFI_OP(_CFFI_OP_GLOBAL_VAR_F, 1196), (void *)0 },
17753   { "g_clingo_ast_constructors", (void *)_cffi_var_g_clingo_ast_constructors, _CFFI_OP(_CFFI_OP_GLOBAL_VAR_F, 1199), (void *)0 },
17754   { "pyclingo_application_logger", (void *)&_cffi_externpy__pyclingo_application_logger, _CFFI_OP(_CFFI_OP_EXTERN_PYTHON, 26), (void *)pyclingo_application_logger },
17755   { "pyclingo_application_main", (void *)&_cffi_externpy__pyclingo_application_main, _CFFI_OP(_CFFI_OP_EXTERN_PYTHON, 1160), (void *)pyclingo_application_main },
17756   { "pyclingo_application_message_limit", (void *)&_cffi_externpy__pyclingo_application_message_limit, _CFFI_OP(_CFFI_OP_EXTERN_PYTHON, 1250), (void *)pyclingo_application_message_limit },
17757   { "pyclingo_application_options_parse", (void *)&_cffi_externpy__pyclingo_application_options_parse, _CFFI_OP(_CFFI_OP_EXTERN_PYTHON, 595), (void *)pyclingo_application_options_parse },
17758   { "pyclingo_application_print_model", (void *)&_cffi_externpy__pyclingo_application_print_model, _CFFI_OP(_CFFI_OP_EXTERN_PYTHON, 1166), (void *)pyclingo_application_print_model },
17759   { "pyclingo_application_program_name", (void *)&_cffi_externpy__pyclingo_application_program_name, _CFFI_OP(_CFFI_OP_EXTERN_PYTHON, 1190), (void *)pyclingo_application_program_name },
17760   { "pyclingo_application_register_options", (void *)&_cffi_externpy__pyclingo_application_register_options, _CFFI_OP(_CFFI_OP_EXTERN_PYTHON, 1167), (void *)pyclingo_application_register_options },
17761   { "pyclingo_application_validate_options", (void *)&_cffi_externpy__pyclingo_application_validate_options, _CFFI_OP(_CFFI_OP_EXTERN_PYTHON, 533), (void *)pyclingo_application_validate_options },
17762   { "pyclingo_application_version", (void *)&_cffi_externpy__pyclingo_application_version, _CFFI_OP(_CFFI_OP_EXTERN_PYTHON, 1190), (void *)pyclingo_application_version },
17763   { "pyclingo_ast_callback", (void *)&_cffi_externpy__pyclingo_ast_callback, _CFFI_OP(_CFFI_OP_EXTERN_PYTHON, 1159), (void *)pyclingo_ast_callback },
17764   { "pyclingo_call", (void *)&_cffi_externpy__pyclingo_call, _CFFI_OP(_CFFI_OP_EXTERN_PYTHON, 1188), (void *)pyclingo_call },
17765   { "pyclingo_callable", (void *)&_cffi_externpy__pyclingo_callable, _CFFI_OP(_CFFI_OP_EXTERN_PYTHON, 1158), (void *)pyclingo_callable },
17766   { "pyclingo_execute", (void *)&_cffi_externpy__pyclingo_execute, _CFFI_OP(_CFFI_OP_EXTERN_PYTHON, 1187), (void *)pyclingo_execute },
17767   { "pyclingo_ground_callback", (void *)&_cffi_externpy__pyclingo_ground_callback, _CFFI_OP(_CFFI_OP_EXTERN_PYTHON, 421), (void *)pyclingo_ground_callback },
17768   { "pyclingo_logger_callback", (void *)&_cffi_externpy__pyclingo_logger_callback, _CFFI_OP(_CFFI_OP_EXTERN_PYTHON, 26), (void *)pyclingo_logger_callback },
17769   { "pyclingo_main", (void *)&_cffi_externpy__pyclingo_main, _CFFI_OP(_CFFI_OP_EXTERN_PYTHON, 1189), (void *)pyclingo_main },
17770   { "pyclingo_observer_acyc_edge", (void *)&_cffi_externpy__pyclingo_observer_acyc_edge, _CFFI_OP(_CFFI_OP_EXTERN_PYTHON, 1172), (void *)pyclingo_observer_acyc_edge },
17771   { "pyclingo_observer_assume", (void *)&_cffi_externpy__pyclingo_observer_assume, _CFFI_OP(_CFFI_OP_EXTERN_PYTHON, 1173), (void *)pyclingo_observer_assume },
17772   { "pyclingo_observer_begin_step", (void *)&_cffi_externpy__pyclingo_observer_begin_step, _CFFI_OP(_CFFI_OP_EXTERN_PYTHON, 533), (void *)pyclingo_observer_begin_step },
17773   { "pyclingo_observer_end_step", (void *)&_cffi_externpy__pyclingo_observer_end_step, _CFFI_OP(_CFFI_OP_EXTERN_PYTHON, 533), (void *)pyclingo_observer_end_step },
17774   { "pyclingo_observer_external", (void *)&_cffi_externpy__pyclingo_observer_external, _CFFI_OP(_CFFI_OP_EXTERN_PYTHON, 1180), (void *)pyclingo_observer_external },
17775   { "pyclingo_observer_heuristic", (void *)&_cffi_externpy__pyclingo_observer_heuristic, _CFFI_OP(_CFFI_OP_EXTERN_PYTHON, 1178), (void *)pyclingo_observer_heuristic },
17776   { "pyclingo_observer_init_program", (void *)&_cffi_externpy__pyclingo_observer_init_program, _CFFI_OP(_CFFI_OP_EXTERN_PYTHON, 1157), (void *)pyclingo_observer_init_program },
17777   { "pyclingo_observer_minimize", (void *)&_cffi_externpy__pyclingo_observer_minimize, _CFFI_OP(_CFFI_OP_EXTERN_PYTHON, 1174), (void *)pyclingo_observer_minimize },
17778   { "pyclingo_observer_output_atom", (void *)&_cffi_externpy__pyclingo_observer_output_atom, _CFFI_OP(_CFFI_OP_EXTERN_PYTHON, 1186), (void *)pyclingo_observer_output_atom },
17779   { "pyclingo_observer_output_csp", (void *)&_cffi_externpy__pyclingo_observer_output_csp, _CFFI_OP(_CFFI_OP_EXTERN_PYTHON, 1184), (void *)pyclingo_observer_output_csp },
17780   { "pyclingo_observer_output_term", (void *)&_cffi_externpy__pyclingo_observer_output_term, _CFFI_OP(_CFFI_OP_EXTERN_PYTHON, 1185), (void *)pyclingo_observer_output_term },
17781   { "pyclingo_observer_project", (void *)&_cffi_externpy__pyclingo_observer_project, _CFFI_OP(_CFFI_OP_EXTERN_PYTHON, 1175), (void *)pyclingo_observer_project },
17782   { "pyclingo_observer_rule", (void *)&_cffi_externpy__pyclingo_observer_rule, _CFFI_OP(_CFFI_OP_EXTERN_PYTHON, 1155), (void *)pyclingo_observer_rule },
17783   { "pyclingo_observer_theory_atom", (void *)&_cffi_externpy__pyclingo_observer_theory_atom, _CFFI_OP(_CFFI_OP_EXTERN_PYTHON, 1183), (void *)pyclingo_observer_theory_atom },
17784   { "pyclingo_observer_theory_atom_with_guard", (void *)&_cffi_externpy__pyclingo_observer_theory_atom_with_guard, _CFFI_OP(_CFFI_OP_EXTERN_PYTHON, 1182), (void *)pyclingo_observer_theory_atom_with_guard },
17785   { "pyclingo_observer_theory_element", (void *)&_cffi_externpy__pyclingo_observer_theory_element, _CFFI_OP(_CFFI_OP_EXTERN_PYTHON, 1181), (void *)pyclingo_observer_theory_element },
17786   { "pyclingo_observer_theory_term_compound", (void *)&_cffi_externpy__pyclingo_observer_theory_term_compound, _CFFI_OP(_CFFI_OP_EXTERN_PYTHON, 1179), (void *)pyclingo_observer_theory_term_compound },
17787   { "pyclingo_observer_theory_term_number", (void *)&_cffi_externpy__pyclingo_observer_theory_term_number, _CFFI_OP(_CFFI_OP_EXTERN_PYTHON, 1180), (void *)pyclingo_observer_theory_term_number },
17788   { "pyclingo_observer_theory_term_string", (void *)&_cffi_externpy__pyclingo_observer_theory_term_string, _CFFI_OP(_CFFI_OP_EXTERN_PYTHON, 1176), (void *)pyclingo_observer_theory_term_string },
17789   { "pyclingo_observer_weight_rule", (void *)&_cffi_externpy__pyclingo_observer_weight_rule, _CFFI_OP(_CFFI_OP_EXTERN_PYTHON, 1156), (void *)pyclingo_observer_weight_rule },
17790   { "pyclingo_propagator_check", (void *)&_cffi_externpy__pyclingo_propagator_check, _CFFI_OP(_CFFI_OP_EXTERN_PYTHON, 1169), (void *)pyclingo_propagator_check },
17791   { "pyclingo_propagator_decide", (void *)&_cffi_externpy__pyclingo_propagator_decide, _CFFI_OP(_CFFI_OP_EXTERN_PYTHON, 1177), (void *)pyclingo_propagator_decide },
17792   { "pyclingo_propagator_init", (void *)&_cffi_externpy__pyclingo_propagator_init, _CFFI_OP(_CFFI_OP_EXTERN_PYTHON, 1170), (void *)pyclingo_propagator_init },
17793   { "pyclingo_propagator_propagate", (void *)&_cffi_externpy__pyclingo_propagator_propagate, _CFFI_OP(_CFFI_OP_EXTERN_PYTHON, 1168), (void *)pyclingo_propagator_propagate },
17794   { "pyclingo_propagator_undo", (void *)&_cffi_externpy__pyclingo_propagator_undo, _CFFI_OP(_CFFI_OP_EXTERN_PYTHON, 1251), (void *)pyclingo_propagator_undo },
17795   { "pyclingo_script_call", (void *)&_cffi_externpy__pyclingo_script_call, _CFFI_OP(_CFFI_OP_EXTERN_PYTHON, 1163), (void *)pyclingo_script_call },
17796   { "pyclingo_script_callable", (void *)&_cffi_externpy__pyclingo_script_callable, _CFFI_OP(_CFFI_OP_EXTERN_PYTHON, 1158), (void *)pyclingo_script_callable },
17797   { "pyclingo_script_execute", (void *)&_cffi_externpy__pyclingo_script_execute, _CFFI_OP(_CFFI_OP_EXTERN_PYTHON, 1162), (void *)pyclingo_script_execute },
17798   { "pyclingo_script_main", (void *)&_cffi_externpy__pyclingo_script_main, _CFFI_OP(_CFFI_OP_EXTERN_PYTHON, 1161), (void *)pyclingo_script_main },
17799   { "pyclingo_solve_event_callback", (void *)&_cffi_externpy__pyclingo_solve_event_callback, _CFFI_OP(_CFFI_OP_EXTERN_PYTHON, 448), (void *)pyclingo_solve_event_callback },
17800 };
17801 
17802 static const struct _cffi_field_s _cffi_fields[] = {
17803   { "program_name", offsetof(clingo_application_t, program_name),
17804                     sizeof(((clingo_application_t *)0)->program_name),
17805                     _CFFI_OP(_CFFI_OP_NOOP, 1190) },
17806   { "version", offsetof(clingo_application_t, version),
17807                sizeof(((clingo_application_t *)0)->version),
17808                _CFFI_OP(_CFFI_OP_NOOP, 1190) },
17809   { "message_limit", offsetof(clingo_application_t, message_limit),
17810                      sizeof(((clingo_application_t *)0)->message_limit),
17811                      _CFFI_OP(_CFFI_OP_NOOP, 1250) },
17812   { "main", offsetof(clingo_application_t, main),
17813             sizeof(((clingo_application_t *)0)->main),
17814             _CFFI_OP(_CFFI_OP_NOOP, 1160) },
17815   { "logger", offsetof(clingo_application_t, logger),
17816               sizeof(((clingo_application_t *)0)->logger),
17817               _CFFI_OP(_CFFI_OP_NOOP, 26) },
17818   { "printer", offsetof(clingo_application_t, printer),
17819                sizeof(((clingo_application_t *)0)->printer),
17820                _CFFI_OP(_CFFI_OP_NOOP, 1166) },
17821   { "register_options", offsetof(clingo_application_t, register_options),
17822                         sizeof(((clingo_application_t *)0)->register_options),
17823                         _CFFI_OP(_CFFI_OP_NOOP, 1167) },
17824   { "validate_options", offsetof(clingo_application_t, validate_options),
17825                         sizeof(((clingo_application_t *)0)->validate_options),
17826                         _CFFI_OP(_CFFI_OP_NOOP, 533) },
17827   { "attribute", offsetof(clingo_ast_argument_t, attribute),
17828                  sizeof(((clingo_ast_argument_t *)0)->attribute),
17829                  _CFFI_OP(_CFFI_OP_NOOP, 153) },
17830   { "type", offsetof(clingo_ast_argument_t, type),
17831             sizeof(((clingo_ast_argument_t *)0)->type),
17832             _CFFI_OP(_CFFI_OP_NOOP, 153) },
17833   { "names", offsetof(clingo_ast_attribute_names_t, names),
17834              sizeof(((clingo_ast_attribute_names_t *)0)->names),
17835              _CFFI_OP(_CFFI_OP_NOOP, 22) },
17836   { "size", offsetof(clingo_ast_attribute_names_t, size),
17837             sizeof(((clingo_ast_attribute_names_t *)0)->size),
17838             _CFFI_OP(_CFFI_OP_NOOP, 3) },
17839   { "name", offsetof(clingo_ast_constructor_t, name),
17840             sizeof(((clingo_ast_constructor_t *)0)->name),
17841             _CFFI_OP(_CFFI_OP_NOOP, 39) },
17842   { "arguments", offsetof(clingo_ast_constructor_t, arguments),
17843                  sizeof(((clingo_ast_constructor_t *)0)->arguments),
17844                  _CFFI_OP(_CFFI_OP_NOOP, 1194) },
17845   { "size", offsetof(clingo_ast_constructor_t, size),
17846             sizeof(((clingo_ast_constructor_t *)0)->size),
17847             _CFFI_OP(_CFFI_OP_NOOP, 3) },
17848   { "constructors", offsetof(clingo_ast_constructors_t, constructors),
17849                     sizeof(((clingo_ast_constructors_t *)0)->constructors),
17850                     _CFFI_OP(_CFFI_OP_NOOP, 1197) },
17851   { "size", offsetof(clingo_ast_constructors_t, size),
17852             sizeof(((clingo_ast_constructors_t *)0)->size),
17853             _CFFI_OP(_CFFI_OP_NOOP, 3) },
17854   { "init_program", offsetof(clingo_ground_program_observer_t, init_program),
17855                     sizeof(((clingo_ground_program_observer_t *)0)->init_program),
17856                     _CFFI_OP(_CFFI_OP_NOOP, 1157) },
17857   { "begin_step", offsetof(clingo_ground_program_observer_t, begin_step),
17858                   sizeof(((clingo_ground_program_observer_t *)0)->begin_step),
17859                   _CFFI_OP(_CFFI_OP_NOOP, 533) },
17860   { "end_step", offsetof(clingo_ground_program_observer_t, end_step),
17861                 sizeof(((clingo_ground_program_observer_t *)0)->end_step),
17862                 _CFFI_OP(_CFFI_OP_NOOP, 533) },
17863   { "rule", offsetof(clingo_ground_program_observer_t, rule),
17864             sizeof(((clingo_ground_program_observer_t *)0)->rule),
17865             _CFFI_OP(_CFFI_OP_NOOP, 1155) },
17866   { "weight_rule", offsetof(clingo_ground_program_observer_t, weight_rule),
17867                    sizeof(((clingo_ground_program_observer_t *)0)->weight_rule),
17868                    _CFFI_OP(_CFFI_OP_NOOP, 1156) },
17869   { "minimize", offsetof(clingo_ground_program_observer_t, minimize),
17870                 sizeof(((clingo_ground_program_observer_t *)0)->minimize),
17871                 _CFFI_OP(_CFFI_OP_NOOP, 1174) },
17872   { "project", offsetof(clingo_ground_program_observer_t, project),
17873                sizeof(((clingo_ground_program_observer_t *)0)->project),
17874                _CFFI_OP(_CFFI_OP_NOOP, 1175) },
17875   { "output_atom", offsetof(clingo_ground_program_observer_t, output_atom),
17876                    sizeof(((clingo_ground_program_observer_t *)0)->output_atom),
17877                    _CFFI_OP(_CFFI_OP_NOOP, 1186) },
17878   { "output_term", offsetof(clingo_ground_program_observer_t, output_term),
17879                    sizeof(((clingo_ground_program_observer_t *)0)->output_term),
17880                    _CFFI_OP(_CFFI_OP_NOOP, 1185) },
17881   { "output_csp", offsetof(clingo_ground_program_observer_t, output_csp),
17882                   sizeof(((clingo_ground_program_observer_t *)0)->output_csp),
17883                   _CFFI_OP(_CFFI_OP_NOOP, 1184) },
17884   { "external", offsetof(clingo_ground_program_observer_t, external),
17885                 sizeof(((clingo_ground_program_observer_t *)0)->external),
17886                 _CFFI_OP(_CFFI_OP_NOOP, 1180) },
17887   { "assume", offsetof(clingo_ground_program_observer_t, assume),
17888               sizeof(((clingo_ground_program_observer_t *)0)->assume),
17889               _CFFI_OP(_CFFI_OP_NOOP, 1173) },
17890   { "heuristic", offsetof(clingo_ground_program_observer_t, heuristic),
17891                  sizeof(((clingo_ground_program_observer_t *)0)->heuristic),
17892                  _CFFI_OP(_CFFI_OP_NOOP, 1178) },
17893   { "acyc_edge", offsetof(clingo_ground_program_observer_t, acyc_edge),
17894                  sizeof(((clingo_ground_program_observer_t *)0)->acyc_edge),
17895                  _CFFI_OP(_CFFI_OP_NOOP, 1172) },
17896   { "theory_term_number", offsetof(clingo_ground_program_observer_t, theory_term_number),
17897                           sizeof(((clingo_ground_program_observer_t *)0)->theory_term_number),
17898                           _CFFI_OP(_CFFI_OP_NOOP, 1180) },
17899   { "theory_term_string", offsetof(clingo_ground_program_observer_t, theory_term_string),
17900                           sizeof(((clingo_ground_program_observer_t *)0)->theory_term_string),
17901                           _CFFI_OP(_CFFI_OP_NOOP, 1176) },
17902   { "theory_term_compound", offsetof(clingo_ground_program_observer_t, theory_term_compound),
17903                             sizeof(((clingo_ground_program_observer_t *)0)->theory_term_compound),
17904                             _CFFI_OP(_CFFI_OP_NOOP, 1179) },
17905   { "theory_element", offsetof(clingo_ground_program_observer_t, theory_element),
17906                       sizeof(((clingo_ground_program_observer_t *)0)->theory_element),
17907                       _CFFI_OP(_CFFI_OP_NOOP, 1181) },
17908   { "theory_atom", offsetof(clingo_ground_program_observer_t, theory_atom),
17909                    sizeof(((clingo_ground_program_observer_t *)0)->theory_atom),
17910                    _CFFI_OP(_CFFI_OP_NOOP, 1183) },
17911   { "theory_atom_with_guard", offsetof(clingo_ground_program_observer_t, theory_atom_with_guard),
17912                               sizeof(((clingo_ground_program_observer_t *)0)->theory_atom_with_guard),
17913                               _CFFI_OP(_CFFI_OP_NOOP, 1182) },
17914   { "begin_file", offsetof(clingo_location_t, begin_file),
17915                   sizeof(((clingo_location_t *)0)->begin_file),
17916                   _CFFI_OP(_CFFI_OP_NOOP, 39) },
17917   { "end_file", offsetof(clingo_location_t, end_file),
17918                 sizeof(((clingo_location_t *)0)->end_file),
17919                 _CFFI_OP(_CFFI_OP_NOOP, 39) },
17920   { "begin_line", offsetof(clingo_location_t, begin_line),
17921                   sizeof(((clingo_location_t *)0)->begin_line),
17922                   _CFFI_OP(_CFFI_OP_NOOP, 3) },
17923   { "end_line", offsetof(clingo_location_t, end_line),
17924                 sizeof(((clingo_location_t *)0)->end_line),
17925                 _CFFI_OP(_CFFI_OP_NOOP, 3) },
17926   { "begin_column", offsetof(clingo_location_t, begin_column),
17927                     sizeof(((clingo_location_t *)0)->begin_column),
17928                     _CFFI_OP(_CFFI_OP_NOOP, 3) },
17929   { "end_column", offsetof(clingo_location_t, end_column),
17930                   sizeof(((clingo_location_t *)0)->end_column),
17931                   _CFFI_OP(_CFFI_OP_NOOP, 3) },
17932   { "name", offsetof(clingo_part_t, name),
17933             sizeof(((clingo_part_t *)0)->name),
17934             _CFFI_OP(_CFFI_OP_NOOP, 39) },
17935   { "params", offsetof(clingo_part_t, params),
17936               sizeof(((clingo_part_t *)0)->params),
17937               _CFFI_OP(_CFFI_OP_NOOP, 77) },
17938   { "size", offsetof(clingo_part_t, size),
17939             sizeof(((clingo_part_t *)0)->size),
17940             _CFFI_OP(_CFFI_OP_NOOP, 3) },
17941   { "init", offsetof(clingo_propagator_t, init),
17942             sizeof(((clingo_propagator_t *)0)->init),
17943             _CFFI_OP(_CFFI_OP_NOOP, 1170) },
17944   { "propagate", offsetof(clingo_propagator_t, propagate),
17945                  sizeof(((clingo_propagator_t *)0)->propagate),
17946                  _CFFI_OP(_CFFI_OP_NOOP, 1168) },
17947   { "undo", offsetof(clingo_propagator_t, undo),
17948             sizeof(((clingo_propagator_t *)0)->undo),
17949             _CFFI_OP(_CFFI_OP_NOOP, 1251) },
17950   { "check", offsetof(clingo_propagator_t, check),
17951              sizeof(((clingo_propagator_t *)0)->check),
17952              _CFFI_OP(_CFFI_OP_NOOP, 1169) },
17953   { "decide", offsetof(clingo_propagator_t, decide),
17954               sizeof(((clingo_propagator_t *)0)->decide),
17955               _CFFI_OP(_CFFI_OP_NOOP, 1177) },
17956   { "execute", offsetof(clingo_script_t, execute),
17957                sizeof(((clingo_script_t *)0)->execute),
17958                _CFFI_OP(_CFFI_OP_NOOP, 1165) },
17959   { "call", offsetof(clingo_script_t, call),
17960             sizeof(((clingo_script_t *)0)->call),
17961             _CFFI_OP(_CFFI_OP_NOOP, 1164) },
17962   { "callable", offsetof(clingo_script_t, callable),
17963                 sizeof(((clingo_script_t *)0)->callable),
17964                 _CFFI_OP(_CFFI_OP_NOOP, 1158) },
17965   { "main", offsetof(clingo_script_t, main),
17966             sizeof(((clingo_script_t *)0)->main),
17967             _CFFI_OP(_CFFI_OP_NOOP, 1161) },
17968   { "free", offsetof(clingo_script_t, free),
17969             sizeof(((clingo_script_t *)0)->free),
17970             _CFFI_OP(_CFFI_OP_NOOP, 1252) },
17971   { "version", offsetof(clingo_script_t, version),
17972                sizeof(((clingo_script_t *)0)->version),
17973                _CFFI_OP(_CFFI_OP_NOOP, 39) },
17974   { "literal", offsetof(clingo_weighted_literal_t, literal),
17975                sizeof(((clingo_weighted_literal_t *)0)->literal),
17976                _CFFI_OP(_CFFI_OP_NOOP, 12) },
17977   { "weight", offsetof(clingo_weighted_literal_t, weight),
17978               sizeof(((clingo_weighted_literal_t *)0)->weight),
17979               _CFFI_OP(_CFFI_OP_NOOP, 12) },
17980 };
17981 
17982 static const struct _cffi_struct_union_s _cffi_struct_unions[] = {
17983   { "clingo_application", 1192, _CFFI_F_CHECK_FIELDS,
17984     sizeof(clingo_application_t), offsetof(struct _cffi_align__clingo_application_t, y), 0, 8 },
17985   { "clingo_assignment", 1193, _CFFI_F_OPAQUE,
17986     (size_t)-1, -1, -1, 0 /* opaque */ },
17987   { "clingo_ast", 1200, _CFFI_F_OPAQUE,
17988     (size_t)-1, -1, -1, 0 /* opaque */ },
17989   { "clingo_ast_argument", 1195, _CFFI_F_CHECK_FIELDS,
17990     sizeof(clingo_ast_argument_t), offsetof(struct _cffi_align__clingo_ast_argument_t, y), 8, 2 },
17991   { "clingo_ast_attribute_names", 1196, _CFFI_F_CHECK_FIELDS,
17992     sizeof(clingo_ast_attribute_names_t), offsetof(struct _cffi_align__clingo_ast_attribute_names_t, y), 10, 2 },
17993   { "clingo_ast_constructor", 1198, _CFFI_F_CHECK_FIELDS,
17994     sizeof(clingo_ast_constructor_t), offsetof(struct _cffi_align__clingo_ast_constructor_t, y), 12, 3 },
17995   { "clingo_ast_constructors", 1199, _CFFI_F_CHECK_FIELDS,
17996     sizeof(clingo_ast_constructors_t), offsetof(struct _cffi_align__clingo_ast_constructors_t, y), 15, 2 },
17997   { "clingo_backend", 1201, _CFFI_F_OPAQUE,
17998     (size_t)-1, -1, -1, 0 /* opaque */ },
17999   { "clingo_configuration", 1202, _CFFI_F_OPAQUE,
18000     (size_t)-1, -1, -1, 0 /* opaque */ },
18001   { "clingo_control", 1203, _CFFI_F_OPAQUE,
18002     (size_t)-1, -1, -1, 0 /* opaque */ },
18003   { "clingo_ground_program_observer", 1204, _CFFI_F_CHECK_FIELDS,
18004     sizeof(clingo_ground_program_observer_t), offsetof(struct _cffi_align__clingo_ground_program_observer_t, y), 17, 20 },
18005   { "clingo_location", 1205, _CFFI_F_CHECK_FIELDS,
18006     sizeof(clingo_location_t), offsetof(struct _cffi_align__clingo_location_t, y), 37, 6 },
18007   { "clingo_model", 1206, _CFFI_F_OPAQUE,
18008     (size_t)-1, -1, -1, 0 /* opaque */ },
18009   { "clingo_options", 1207, _CFFI_F_OPAQUE,
18010     (size_t)-1, -1, -1, 0 /* opaque */ },
18011   { "clingo_part", 1208, _CFFI_F_CHECK_FIELDS,
18012     sizeof(clingo_part_t), offsetof(struct _cffi_align__clingo_part_t, y), 43, 3 },
18013   { "clingo_program_builder", 1209, _CFFI_F_OPAQUE,
18014     (size_t)-1, -1, -1, 0 /* opaque */ },
18015   { "clingo_propagate_control", 1210, _CFFI_F_OPAQUE,
18016     (size_t)-1, -1, -1, 0 /* opaque */ },
18017   { "clingo_propagate_init", 1211, _CFFI_F_OPAQUE,
18018     (size_t)-1, -1, -1, 0 /* opaque */ },
18019   { "clingo_propagator", 1212, _CFFI_F_CHECK_FIELDS,
18020     sizeof(clingo_propagator_t), offsetof(struct _cffi_align__clingo_propagator_t, y), 46, 5 },
18021   { "clingo_script", 1213, _CFFI_F_CHECK_FIELDS,
18022     sizeof(clingo_script_t), offsetof(struct _cffi_align__clingo_script_t, y), 51, 6 },
18023   { "clingo_solve_control", 1214, _CFFI_F_OPAQUE,
18024     (size_t)-1, -1, -1, 0 /* opaque */ },
18025   { "clingo_solve_handle", 1215, _CFFI_F_OPAQUE,
18026     (size_t)-1, -1, -1, 0 /* opaque */ },
18027   { "clingo_statistic", 1216, _CFFI_F_OPAQUE,
18028     (size_t)-1, -1, -1, 0 /* opaque */ },
18029   { "clingo_symbolic_atoms", 1217, _CFFI_F_OPAQUE,
18030     (size_t)-1, -1, -1, 0 /* opaque */ },
18031   { "clingo_theory_atoms", 1218, _CFFI_F_OPAQUE,
18032     (size_t)-1, -1, -1, 0 /* opaque */ },
18033   { "clingo_weighted_literal", 1219, _CFFI_F_CHECK_FIELDS,
18034     sizeof(clingo_weighted_literal_t), offsetof(struct _cffi_align__clingo_weighted_literal_t, y), 57, 2 },
18035 };
18036 
18037 static const struct _cffi_enum_s _cffi_enums[] = {
18038   { "clingo_ast_aggregate_function_e", 1220, _cffi_prim_int(sizeof(enum clingo_ast_aggregate_function_e), ((enum clingo_ast_aggregate_function_e)-1) <= 0),
18039     "clingo_ast_aggregate_function_count,clingo_ast_aggregate_function_sum,clingo_ast_aggregate_function_sump,clingo_ast_aggregate_function_min,clingo_ast_aggregate_function_max" },
18040   { "clingo_ast_attribute_e", 1221, _cffi_prim_int(sizeof(enum clingo_ast_attribute_e), ((enum clingo_ast_attribute_e)-1) <= 0),
18041     "clingo_ast_attribute_argument,clingo_ast_attribute_arguments,clingo_ast_attribute_arity,clingo_ast_attribute_atom,clingo_ast_attribute_atoms,clingo_ast_attribute_atom_type,clingo_ast_attribute_bias,clingo_ast_attribute_body,clingo_ast_attribute_code,clingo_ast_attribute_coefficient,clingo_ast_attribute_comparison,clingo_ast_attribute_condition,clingo_ast_attribute_csp,clingo_ast_attribute_elements,clingo_ast_attribute_external,clingo_ast_attribute_external_type,clingo_ast_attribute_function,clingo_ast_attribute_guard,clingo_ast_attribute_guards,clingo_ast_attribute_head,clingo_ast_attribute_is_default,clingo_ast_attribute_left,clingo_ast_attribute_left_guard,clingo_ast_attribute_literal,clingo_ast_attribute_location,clingo_ast_attribute_modifier,clingo_ast_attribute_name,clingo_ast_attribute_node_u,clingo_ast_attribute_node_v,clingo_ast_attribute_operator_name,clingo_ast_attribute_operator_type,clingo_ast_attribute_operators,clingo_ast_attribute_parameters,clingo_ast_attribute_positive,clingo_ast_attribute_priority,clingo_ast_attribute_right,clingo_ast_attribute_right_guard,clingo_ast_attribute_sequence_type,clingo_ast_attribute_sign,clingo_ast_attribute_symbol,clingo_ast_attribute_term,clingo_ast_attribute_terms,clingo_ast_attribute_value,clingo_ast_attribute_variable,clingo_ast_attribute_weight" },
18042   { "clingo_ast_attribute_type_e", 1222, _cffi_prim_int(sizeof(enum clingo_ast_attribute_type_e), ((enum clingo_ast_attribute_type_e)-1) <= 0),
18043     "clingo_ast_attribute_type_number,clingo_ast_attribute_type_symbol,clingo_ast_attribute_type_location,clingo_ast_attribute_type_string,clingo_ast_attribute_type_ast,clingo_ast_attribute_type_optional_ast,clingo_ast_attribute_type_string_array,clingo_ast_attribute_type_ast_array" },
18044   { "clingo_ast_binary_operator_e", 1223, _cffi_prim_int(sizeof(enum clingo_ast_binary_operator_e), ((enum clingo_ast_binary_operator_e)-1) <= 0),
18045     "clingo_ast_binary_operator_xor,clingo_ast_binary_operator_or,clingo_ast_binary_operator_and,clingo_ast_binary_operator_plus,clingo_ast_binary_operator_minus,clingo_ast_binary_operator_multiplication,clingo_ast_binary_operator_division,clingo_ast_binary_operator_modulo,clingo_ast_binary_operator_power" },
18046   { "clingo_ast_comparison_operator_e", 1224, _cffi_prim_int(sizeof(enum clingo_ast_comparison_operator_e), ((enum clingo_ast_comparison_operator_e)-1) <= 0),
18047     "clingo_ast_comparison_operator_greater_than,clingo_ast_comparison_operator_less_than,clingo_ast_comparison_operator_less_equal,clingo_ast_comparison_operator_greater_equal,clingo_ast_comparison_operator_not_equal,clingo_ast_comparison_operator_equal" },
18048   { "clingo_ast_sign_e", 1225, _cffi_prim_int(sizeof(enum clingo_ast_sign_e), ((enum clingo_ast_sign_e)-1) <= 0),
18049     "clingo_ast_sign_no_sign,clingo_ast_sign_negation,clingo_ast_sign_double_negation" },
18050   { "clingo_ast_theory_atom_definition_type_e", 1226, _cffi_prim_int(sizeof(enum clingo_ast_theory_atom_definition_type_e), ((enum clingo_ast_theory_atom_definition_type_e)-1) <= 0),
18051     "clingo_ast_theory_atom_definition_type_head,clingo_ast_theory_atom_definition_type_body,clingo_ast_theory_atom_definition_type_any,clingo_ast_theory_atom_definition_type_directive" },
18052   { "clingo_ast_theory_operator_type_e", 1227, _cffi_prim_int(sizeof(enum clingo_ast_theory_operator_type_e), ((enum clingo_ast_theory_operator_type_e)-1) <= 0),
18053     "clingo_ast_theory_operator_type_unary,clingo_ast_theory_operator_type_binary_left,clingo_ast_theory_operator_type_binary_right" },
18054   { "clingo_ast_theory_sequence_type_e", 1228, _cffi_prim_int(sizeof(enum clingo_ast_theory_sequence_type_e), ((enum clingo_ast_theory_sequence_type_e)-1) <= 0),
18055     "clingo_ast_theory_sequence_type_tuple,clingo_ast_theory_sequence_type_list,clingo_ast_theory_sequence_type_set" },
18056   { "clingo_ast_type_e", 1229, _cffi_prim_int(sizeof(enum clingo_ast_type_e), ((enum clingo_ast_type_e)-1) <= 0),
18057     "clingo_ast_type_id,clingo_ast_type_variable,clingo_ast_type_symbolic_term,clingo_ast_type_unary_operation,clingo_ast_type_binary_operation,clingo_ast_type_interval,clingo_ast_type_function,clingo_ast_type_pool,clingo_ast_type_csp_product,clingo_ast_type_csp_sum,clingo_ast_type_csp_guard,clingo_ast_type_boolean_constant,clingo_ast_type_symbolic_atom,clingo_ast_type_comparison,clingo_ast_type_csp_literal,clingo_ast_type_aggregate_guard,clingo_ast_type_conditional_literal,clingo_ast_type_aggregate,clingo_ast_type_body_aggregate_element,clingo_ast_type_body_aggregate,clingo_ast_type_head_aggregate_element,clingo_ast_type_head_aggregate,clingo_ast_type_disjunction,clingo_ast_type_disjoint_element,clingo_ast_type_disjoint,clingo_ast_type_theory_sequence,clingo_ast_type_theory_function,clingo_ast_type_theory_unparsed_term_element,clingo_ast_type_theory_unparsed_term,clingo_ast_type_theory_guard,clingo_ast_type_theory_atom_element,clingo_ast_type_theory_atom,clingo_ast_type_literal,clingo_ast_type_theory_operator_definition,clingo_ast_type_theory_term_definition,clingo_ast_type_theory_guard_definition,clingo_ast_type_theory_atom_definition,clingo_ast_type_rule,clingo_ast_type_definition,clingo_ast_type_show_signature,clingo_ast_type_show_term,clingo_ast_type_minimize,clingo_ast_type_script,clingo_ast_type_program,clingo_ast_type_external,clingo_ast_type_edge,clingo_ast_type_heuristic,clingo_ast_type_project_atom,clingo_ast_type_project_signature,clingo_ast_type_defined,clingo_ast_type_theory_definition" },
18058   { "clingo_ast_unary_operator_e", 1230, _cffi_prim_int(sizeof(enum clingo_ast_unary_operator_e), ((enum clingo_ast_unary_operator_e)-1) <= 0),
18059     "clingo_ast_unary_operator_minus,clingo_ast_unary_operator_negation,clingo_ast_unary_operator_absolute" },
18060   { "clingo_ast_unpool_type_e", 1231, _cffi_prim_int(sizeof(enum clingo_ast_unpool_type_e), ((enum clingo_ast_unpool_type_e)-1) <= 0),
18061     "clingo_ast_unpool_type_condition,clingo_ast_unpool_type_other,clingo_ast_unpool_type_all" },
18062   { "clingo_clause_type_e", 1232, _cffi_prim_int(sizeof(enum clingo_clause_type_e), ((enum clingo_clause_type_e)-1) <= 0),
18063     "clingo_clause_type_learnt,clingo_clause_type_static,clingo_clause_type_volatile,clingo_clause_type_volatile_static" },
18064   { "clingo_configuration_type_e", 1233, _cffi_prim_int(sizeof(enum clingo_configuration_type_e), ((enum clingo_configuration_type_e)-1) <= 0),
18065     "clingo_configuration_type_value,clingo_configuration_type_array,clingo_configuration_type_map" },
18066   { "clingo_error_e", 1234, _cffi_prim_int(sizeof(enum clingo_error_e), ((enum clingo_error_e)-1) <= 0),
18067     "clingo_error_success,clingo_error_runtime,clingo_error_logic,clingo_error_bad_alloc,clingo_error_unknown" },
18068   { "clingo_external_type_e", 1235, _cffi_prim_int(sizeof(enum clingo_external_type_e), ((enum clingo_external_type_e)-1) <= 0),
18069     "clingo_external_type_free,clingo_external_type_true,clingo_external_type_false,clingo_external_type_release" },
18070   { "clingo_heuristic_type_e", 1236, _cffi_prim_int(sizeof(enum clingo_heuristic_type_e), ((enum clingo_heuristic_type_e)-1) <= 0),
18071     "clingo_heuristic_type_level,clingo_heuristic_type_sign,clingo_heuristic_type_factor,clingo_heuristic_type_init,clingo_heuristic_type_true,clingo_heuristic_type_false" },
18072   { "clingo_model_type_e", 1237, _cffi_prim_int(sizeof(enum clingo_model_type_e), ((enum clingo_model_type_e)-1) <= 0),
18073     "clingo_model_type_stable_model,clingo_model_type_brave_consequences,clingo_model_type_cautious_consequences" },
18074   { "clingo_propagator_check_mode_e", 1238, _cffi_prim_int(sizeof(enum clingo_propagator_check_mode_e), ((enum clingo_propagator_check_mode_e)-1) <= 0),
18075     "clingo_propagator_check_mode_none,clingo_propagator_check_mode_total,clingo_propagator_check_mode_fixpoint,clingo_propagator_check_mode_both" },
18076   { "clingo_show_type_e", 1239, _cffi_prim_int(sizeof(enum clingo_show_type_e), ((enum clingo_show_type_e)-1) <= 0),
18077     "clingo_show_type_csp,clingo_show_type_shown,clingo_show_type_atoms,clingo_show_type_terms,clingo_show_type_theory,clingo_show_type_all,clingo_show_type_complement" },
18078   { "clingo_solve_event_type_e", 1240, _cffi_prim_int(sizeof(enum clingo_solve_event_type_e), ((enum clingo_solve_event_type_e)-1) <= 0),
18079     "clingo_solve_event_type_model,clingo_solve_event_type_unsat,clingo_solve_event_type_statistics,clingo_solve_event_type_finish" },
18080   { "clingo_solve_mode_e", 1241, _cffi_prim_int(sizeof(enum clingo_solve_mode_e), ((enum clingo_solve_mode_e)-1) <= 0),
18081     "clingo_solve_mode_async,clingo_solve_mode_yield" },
18082   { "clingo_solve_result_e", 1242, _cffi_prim_int(sizeof(enum clingo_solve_result_e), ((enum clingo_solve_result_e)-1) <= 0),
18083     "clingo_solve_result_satisfiable,clingo_solve_result_unsatisfiable,clingo_solve_result_exhausted,clingo_solve_result_interrupted" },
18084   { "clingo_statistics_type_e", 1243, _cffi_prim_int(sizeof(enum clingo_statistics_type_e), ((enum clingo_statistics_type_e)-1) <= 0),
18085     "clingo_statistics_type_empty,clingo_statistics_type_value,clingo_statistics_type_array,clingo_statistics_type_map" },
18086   { "clingo_symbol_type_e", 1244, _cffi_prim_int(sizeof(enum clingo_symbol_type_e), ((enum clingo_symbol_type_e)-1) <= 0),
18087     "clingo_symbol_type_infimum,clingo_symbol_type_number,clingo_symbol_type_string,clingo_symbol_type_function,clingo_symbol_type_supremum" },
18088   { "clingo_theory_term_type_e", 1245, _cffi_prim_int(sizeof(enum clingo_theory_term_type_e), ((enum clingo_theory_term_type_e)-1) <= 0),
18089     "clingo_theory_term_type_tuple,clingo_theory_term_type_list,clingo_theory_term_type_set,clingo_theory_term_type_function,clingo_theory_term_type_number,clingo_theory_term_type_symbol" },
18090   { "clingo_truth_value_e", 1246, _cffi_prim_int(sizeof(enum clingo_truth_value_e), ((enum clingo_truth_value_e)-1) <= 0),
18091     "clingo_truth_value_free,clingo_truth_value_true,clingo_truth_value_false" },
18092   { "clingo_warning_e", 1247, _cffi_prim_int(sizeof(enum clingo_warning_e), ((enum clingo_warning_e)-1) <= 0),
18093     "clingo_warning_operation_undefined,clingo_warning_runtime_error,clingo_warning_atom_undefined,clingo_warning_file_included,clingo_warning_variable_unbounded,clingo_warning_global_variable,clingo_warning_other" },
18094   { "clingo_weight_constraint_type_e", 1248, _cffi_prim_int(sizeof(enum clingo_weight_constraint_type_e), ((enum clingo_weight_constraint_type_e)-1) <= 0),
18095     "clingo_weight_constraint_type_implication_left,clingo_weight_constraint_type_implication_right,clingo_weight_constraint_type_equivalence" },
18096 };
18097 
18098 static const struct _cffi_typename_s _cffi_typenames[] = {
18099   { "clingo_application_t", 1192 },
18100   { "clingo_assignment_t", 1193 },
18101   { "clingo_ast_aggregate_function_t", 153 },
18102   { "clingo_ast_argument_t", 1195 },
18103   { "clingo_ast_attribute_names_t", 1196 },
18104   { "clingo_ast_attribute_t", 153 },
18105   { "clingo_ast_attribute_type_t", 153 },
18106   { "clingo_ast_binary_operator_t", 153 },
18107   { "clingo_ast_callback_t", 24 },
18108   { "clingo_ast_comparison_operator_t", 153 },
18109   { "clingo_ast_constructor_t", 1198 },
18110   { "clingo_ast_constructors_t", 1199 },
18111   { "clingo_ast_sign_t", 153 },
18112   { "clingo_ast_t", 1200 },
18113   { "clingo_ast_theory_atom_definition_type_t", 153 },
18114   { "clingo_ast_theory_operator_type_t", 153 },
18115   { "clingo_ast_theory_sequence_type_t", 153 },
18116   { "clingo_ast_type_t", 153 },
18117   { "clingo_ast_unary_operator_t", 153 },
18118   { "clingo_ast_unpool_type_bitset_t", 153 },
18119   { "clingo_atom_t", 67 },
18120   { "clingo_backend_t", 1201 },
18121   { "clingo_clause_type_t", 153 },
18122   { "clingo_configuration_t", 1202 },
18123   { "clingo_configuration_type_bitset_t", 28 },
18124   { "clingo_control_t", 1203 },
18125   { "clingo_default_model_printer_t", 533 },
18126   { "clingo_error_t", 153 },
18127   { "clingo_external_type_t", 153 },
18128   { "clingo_ground_callback_t", 421 },
18129   { "clingo_ground_program_observer_t", 1204 },
18130   { "clingo_heuristic_type_t", 153 },
18131   { "clingo_id_t", 67 },
18132   { "clingo_literal_t", 12 },
18133   { "clingo_location_t", 1205 },
18134   { "clingo_logger_t", 26 },
18135   { "clingo_main_function_t", 1160 },
18136   { "clingo_model_printer_t", 1166 },
18137   { "clingo_model_t", 1206 },
18138   { "clingo_model_type_t", 153 },
18139   { "clingo_options_t", 1207 },
18140   { "clingo_part_t", 1208 },
18141   { "clingo_program_builder_t", 1209 },
18142   { "clingo_propagate_control_t", 1210 },
18143   { "clingo_propagate_init_t", 1211 },
18144   { "clingo_propagator_check_callback_t", 1169 },
18145   { "clingo_propagator_check_mode_t", 153 },
18146   { "clingo_propagator_init_callback_t", 1170 },
18147   { "clingo_propagator_propagate_callback_t", 1168 },
18148   { "clingo_propagator_t", 1212 },
18149   { "clingo_propagator_undo_callback_t", 1251 },
18150   { "clingo_script_t", 1213 },
18151   { "clingo_show_type_bitset_t", 28 },
18152   { "clingo_signature_t", 244 },
18153   { "clingo_solve_control_t", 1214 },
18154   { "clingo_solve_event_callback_t", 448 },
18155   { "clingo_solve_event_type_t", 28 },
18156   { "clingo_solve_handle_t", 1215 },
18157   { "clingo_solve_mode_bitset_t", 28 },
18158   { "clingo_solve_result_bitset_t", 28 },
18159   { "clingo_statistics_t", 1216 },
18160   { "clingo_statistics_type_t", 153 },
18161   { "clingo_symbol_callback_t", 504 },
18162   { "clingo_symbol_t", 244 },
18163   { "clingo_symbol_type_t", 153 },
18164   { "clingo_symbolic_atom_iterator_t", 244 },
18165   { "clingo_symbolic_atoms_t", 1217 },
18166   { "clingo_theory_atoms_t", 1218 },
18167   { "clingo_theory_term_type_t", 153 },
18168   { "clingo_truth_value_t", 153 },
18169   { "clingo_warning_t", 153 },
18170   { "clingo_weight_constraint_type_t", 153 },
18171   { "clingo_weight_t", 12 },
18172   { "clingo_weighted_literal_t", 1219 },
18173 };
18174 
18175 static const struct _cffi_type_context_s _cffi_type_context = {
18176   _cffi_types,
18177   _cffi_globals,
18178   _cffi_fields,
18179   _cffi_struct_unions,
18180   _cffi_enums,
18181   _cffi_typenames,
18182   502,  /* num_globals */
18183   26,  /* num_struct_unions */
18184   29,  /* num_enums */
18185   74,  /* num_typenames */
18186   NULL,  /* no includes */
18187   1254,  /* num_types */
18188   1,  /* flags */
18189 };
18190 
18191 #ifdef __GNUC__
18192 #  pragma GCC visibility push(default)  /* for -fvisibility= */
18193 #endif
18194 
18195 #ifdef PYPY_VERSION
18196 PyMODINIT_FUNC
_cffi_pypyinit__clingo(const void * p[])18197 _cffi_pypyinit__clingo(const void *p[])
18198 {
18199     if (((intptr_t)p[0]) >= 0x0A03) {
18200         _cffi_call_python_org = (void(*)(struct _cffi_externpy_s *, char *))p[1];
18201     }
18202     p[0] = (const void *)0x2601;
18203     p[1] = &_cffi_type_context;
18204 #if PY_MAJOR_VERSION >= 3
18205     return NULL;
18206 #endif
18207 }
18208 #  ifdef _MSC_VER
18209      PyMODINIT_FUNC
18210 #  if PY_MAJOR_VERSION >= 3
PyInit__clingo(void)18211      PyInit__clingo(void) { return NULL; }
18212 #  else
18213      init_clingo(void) { }
18214 #  endif
18215 #  endif
18216 #elif PY_MAJOR_VERSION >= 3
18217 PyMODINIT_FUNC
PyInit__clingo(void)18218 PyInit__clingo(void)
18219 {
18220   return _cffi_init("_clingo", 0x2601, &_cffi_type_context);
18221 }
18222 #else
18223 PyMODINIT_FUNC
init_clingo(void)18224 init_clingo(void)
18225 {
18226   _cffi_init("_clingo", 0x2601, &_cffi_type_context);
18227 }
18228 #endif
18229 
18230 #ifdef __GNUC__
18231 #  pragma GCC visibility pop
18232 #endif
18233