cvc5-sys 0.4.0

Low-level FFI bindings for the cvc5 SMT solver
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
/* automatically generated by rust-bindgen 0.72.1 */

pub type wchar_t = ::std::os::raw::c_int;
pub type __uint32_t = ::std::os::raw::c_uint;
pub type __uint_least32_t = __uint32_t;
#[repr(i32)]
#[doc = " The kind of a cvc5 Term.\n\n \\internal\n\n Note that the API type `cvc5::Kind` roughly corresponds to\n `cvc5::internal::Kind`, but is a different type. It hides internal kinds\n that should not be exported to the API, and maps all kinds that we want to\n export to its corresponding internal kinds. The underlying type of\n `cvc5::Kind` must be signed (to enable range checks for validity). The size\n of this type depends on the size of `cvc5::internal::Kind`\n (`NodeValue::NBITS_KIND`, currently 10 bits, see expr/node_value.h)."]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum Kind {
    InternalKind = -2,
    UndefinedKind = -1,
    NullTerm = 0,
    UninterpretedSortValue = 1,
    Equal = 2,
    Distinct = 3,
    Constant = 4,
    Variable = 5,
    Skolem = 6,
    Sexpr = 7,
    Lambda = 8,
    Witness = 9,
    ConstBoolean = 10,
    Not = 11,
    And = 12,
    Implies = 13,
    Or = 14,
    Xor = 15,
    Ite = 16,
    ApplyUf = 17,
    CardinalityConstraint = 18,
    HoApply = 19,
    Add = 20,
    Mult = 21,
    Iand = 22,
    Pow2 = 23,
    Sub = 24,
    Neg = 25,
    Division = 26,
    DivisionTotal = 27,
    IntsDivision = 28,
    IntsDivisionTotal = 29,
    IntsModulus = 30,
    IntsModulusTotal = 31,
    Abs = 32,
    Pow = 33,
    Exponential = 34,
    Sine = 35,
    Cosine = 36,
    Tangent = 37,
    Cosecant = 38,
    Secant = 39,
    Cotangent = 40,
    Arcsine = 41,
    Arccosine = 42,
    Arctangent = 43,
    Arccosecant = 44,
    Arcsecant = 45,
    Arccotangent = 46,
    Sqrt = 47,
    Divisible = 48,
    ConstRational = 49,
    ConstInteger = 50,
    Lt = 51,
    Leq = 52,
    Gt = 53,
    Geq = 54,
    IsInteger = 55,
    ToInteger = 56,
    ToReal = 57,
    Pi = 58,
    ConstBitvector = 59,
    BitvectorConcat = 60,
    BitvectorAnd = 61,
    BitvectorOr = 62,
    BitvectorXor = 63,
    BitvectorNot = 64,
    BitvectorNand = 65,
    BitvectorNor = 66,
    BitvectorXnor = 67,
    BitvectorComp = 68,
    BitvectorMult = 69,
    BitvectorAdd = 70,
    BitvectorSub = 71,
    BitvectorNeg = 72,
    BitvectorUdiv = 73,
    BitvectorUrem = 74,
    BitvectorSdiv = 75,
    BitvectorSrem = 76,
    BitvectorSmod = 77,
    BitvectorShl = 78,
    BitvectorLshr = 79,
    BitvectorAshr = 80,
    BitvectorUlt = 81,
    BitvectorUle = 82,
    BitvectorUgt = 83,
    BitvectorUge = 84,
    BitvectorSlt = 85,
    BitvectorSle = 86,
    BitvectorSgt = 87,
    BitvectorSge = 88,
    BitvectorUltbv = 89,
    BitvectorSltbv = 90,
    BitvectorIte = 91,
    BitvectorRedor = 92,
    BitvectorRedand = 93,
    BitvectorNego = 94,
    BitvectorUaddo = 95,
    BitvectorSaddo = 96,
    BitvectorUmulo = 97,
    BitvectorSmulo = 98,
    BitvectorUsubo = 99,
    BitvectorSsubo = 100,
    BitvectorSdivo = 101,
    BitvectorExtract = 102,
    BitvectorRepeat = 103,
    BitvectorZeroExtend = 104,
    BitvectorSignExtend = 105,
    BitvectorRotateLeft = 106,
    BitvectorRotateRight = 107,
    IntToBitvector = 108,
    BitvectorToNat = 109,
    BitvectorUbvToInt = 110,
    BitvectorSbvToInt = 111,
    BitvectorFromBools = 112,
    BitvectorBit = 113,
    ConstFiniteField = 114,
    FiniteFieldNeg = 115,
    FiniteFieldAdd = 116,
    FiniteFieldBitsum = 117,
    FiniteFieldMult = 118,
    ConstFloatingpoint = 119,
    ConstRoundingmode = 120,
    FloatingpointFp = 121,
    FloatingpointEq = 122,
    FloatingpointAbs = 123,
    FloatingpointNeg = 124,
    FloatingpointAdd = 125,
    FloatingpointSub = 126,
    FloatingpointMult = 127,
    FloatingpointDiv = 128,
    FloatingpointFma = 129,
    FloatingpointSqrt = 130,
    FloatingpointRem = 131,
    FloatingpointRti = 132,
    FloatingpointMin = 133,
    FloatingpointMax = 134,
    FloatingpointLeq = 135,
    FloatingpointLt = 136,
    FloatingpointGeq = 137,
    FloatingpointGt = 138,
    FloatingpointIsNormal = 139,
    FloatingpointIsSubnormal = 140,
    FloatingpointIsZero = 141,
    FloatingpointIsInf = 142,
    FloatingpointIsNan = 143,
    FloatingpointIsNeg = 144,
    FloatingpointIsPos = 145,
    FloatingpointToFpFromIeeeBv = 146,
    FloatingpointToFpFromFp = 147,
    FloatingpointToFpFromReal = 148,
    FloatingpointToFpFromSbv = 149,
    FloatingpointToFpFromUbv = 150,
    FloatingpointToUbv = 151,
    FloatingpointToSbv = 152,
    FloatingpointToReal = 153,
    Select = 154,
    Store = 155,
    ConstArray = 156,
    EqRange = 157,
    ApplyConstructor = 158,
    ApplySelector = 159,
    ApplyTester = 160,
    ApplyUpdater = 161,
    Match = 162,
    MatchCase = 163,
    MatchBindCase = 164,
    TupleProject = 165,
    NullableLift = 166,
    SepNil = 167,
    SepEmp = 168,
    SepPto = 169,
    SepStar = 170,
    SepWand = 171,
    SetEmpty = 172,
    SetUnion = 173,
    SetInter = 174,
    SetMinus = 175,
    SetSubset = 176,
    SetMember = 177,
    SetSingleton = 178,
    SetInsert = 179,
    SetCard = 180,
    SetComplement = 181,
    SetUniverse = 182,
    SetComprehension = 183,
    SetChoose = 184,
    SetIsEmpty = 185,
    SetIsSingleton = 186,
    SetMap = 187,
    SetFilter = 188,
    SetAll = 189,
    SetSome = 190,
    SetFold = 191,
    RelationJoin = 192,
    RelationTableJoin = 193,
    RelationProduct = 194,
    RelationTranspose = 195,
    RelationTclosure = 196,
    RelationJoinImage = 197,
    RelationIden = 198,
    RelationGroup = 199,
    RelationAggregate = 200,
    RelationProject = 201,
    BagEmpty = 202,
    BagUnionMax = 203,
    BagUnionDisjoint = 204,
    BagInterMin = 205,
    BagDifferenceSubtract = 206,
    BagDifferenceRemove = 207,
    BagSubbag = 208,
    BagCount = 209,
    BagMember = 210,
    BagSetof = 211,
    BagMake = 212,
    BagCard = 213,
    BagChoose = 214,
    BagMap = 215,
    BagFilter = 216,
    BagAll = 217,
    BagSome = 218,
    BagFold = 219,
    BagPartition = 220,
    TableProduct = 221,
    TableProject = 222,
    TableAggregate = 223,
    TableJoin = 224,
    TableGroup = 225,
    StringConcat = 226,
    StringInRegexp = 227,
    StringLength = 228,
    StringSubstr = 229,
    StringUpdate = 230,
    StringCharat = 231,
    StringContains = 232,
    StringIndexof = 233,
    StringIndexofRe = 234,
    StringReplace = 235,
    StringReplaceAll = 236,
    StringReplaceRe = 237,
    StringReplaceReAll = 238,
    StringToLower = 239,
    StringToUpper = 240,
    StringRev = 241,
    StringToCode = 242,
    StringFromCode = 243,
    StringLt = 244,
    StringLeq = 245,
    StringPrefix = 246,
    StringSuffix = 247,
    StringIsDigit = 248,
    StringFromInt = 249,
    StringToInt = 250,
    ConstString = 251,
    StringToRegexp = 252,
    RegexpConcat = 253,
    RegexpUnion = 254,
    RegexpInter = 255,
    RegexpDiff = 256,
    RegexpStar = 257,
    RegexpPlus = 258,
    RegexpOpt = 259,
    RegexpRange = 260,
    RegexpRepeat = 261,
    RegexpLoop = 262,
    RegexpNone = 263,
    RegexpAll = 264,
    RegexpAllchar = 265,
    RegexpComplement = 266,
    SeqConcat = 267,
    SeqLength = 268,
    SeqExtract = 269,
    SeqUpdate = 270,
    SeqAt = 271,
    SeqContains = 272,
    SeqIndexof = 273,
    SeqReplace = 274,
    SeqReplaceAll = 275,
    SeqRev = 276,
    SeqPrefix = 277,
    SeqSuffix = 278,
    ConstSequence = 279,
    SeqUnit = 280,
    SeqNth = 281,
    Forall = 282,
    Exists = 283,
    VariableList = 284,
    InstPattern = 285,
    InstNoPattern = 286,
    InstPool = 287,
    InstAddToPool = 288,
    SkolemAddToPool = 289,
    InstAttribute = 290,
    InstPatternList = 291,
    LastKind = 292,
}
unsafe extern "C" {
    #[doc = " Get a string representation of a Cvc5Kind.\n @param kind The kind.\n @return The string representation."]
    #[link_name = "\u{1}cvc5_kind_to_string"]
    pub fn kind_to_string(kind: Kind) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " Hash function for Cvc5Kinds.\n @param kind The kind.\n @return The hash value."]
    #[link_name = "\u{1}cvc5_kind_hash"]
    pub fn kind_hash(kind: Kind) -> usize;
}
#[repr(i32)]
#[doc = " The kind of a cvc5 Sort.\n\n \\internal\n\n Note that the API type `cvc5::SortKind` roughly corresponds to\n `cvc5::internal::Kind`, but is a different type. It hides internal kinds\n that should not be exported to the API, and maps all kinds that we want to\n export to its corresponding internal kinds. The underlying type of\n `cvc5::Kind` must be signed (to enable range checks for validity). The size\n of this type depends on the size of `cvc5::internal::Kind`\n (`NodeValue::NBITS_KIND`, currently 10 bits, see expr/node_value.h)."]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum SortKind {
    InternalSortKind = -2,
    UndefinedSortKind = -1,
    NullSort = 0,
    AbstractSort = 1,
    ArraySort = 2,
    BagSort = 3,
    BooleanSort = 4,
    BitvectorSort = 5,
    DatatypeSort = 6,
    FiniteFieldSort = 7,
    FloatingpointSort = 8,
    FunctionSort = 9,
    IntegerSort = 10,
    RealSort = 11,
    ReglanSort = 12,
    RoundingmodeSort = 13,
    SequenceSort = 14,
    SetSort = 15,
    StringSort = 16,
    TupleSort = 17,
    NullableSort = 18,
    UninterpretedSort = 19,
    LastSortKind = 20,
}
unsafe extern "C" {
    #[doc = " Get a string representation of a Cvc5SortKind.\n @param kind The sort kind.\n @return The string representation."]
    #[link_name = "\u{1}cvc5_sort_kind_to_string"]
    pub fn sort_kind_to_string(kind: SortKind) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " Hash function for Cvc5SortKinds.\n @param kind The kind.\n @return The hash value."]
    #[link_name = "\u{1}cvc5_sort_kind_hash"]
    pub fn sort_kind_hash(kind: SortKind) -> usize;
}
#[repr(u32)]
#[doc = " \\internal\n This documentation is target for the online documentation that can\n be found at https://cvc5.github.io/docs/latest/proofs/proof_rules.html\n \\endinternal\n\n \\verbatim embed:rst:leading-asterisk\n An enumeration for proof rules. This enumeration is analogous to Kind for\n Node objects.\n\n All proof rules are given as inference rules, presented in the following\n form:\n\n .. math::\n\n   \\texttt{RULENAME}:\n   \\inferruleSC{\\varphi_1 \\dots \\varphi_n \\mid t_1 \\dots t_m}{\\psi}{if $C$}\n\n where we call :math:`\\varphi_i` its premises or children, :math:`t_i` its\n arguments, :math:`\\psi` its conclusion, and :math:`C` its side condition.\n Alternatively, we can write the application of a proof rule as\n ``(RULENAME F1 ... Fn :args t1 ... tm)``, omitting the conclusion\n (since it can be uniquely determined from premises and arguments).\n Note that premises are sometimes given as proofs, i.e., application of\n proof rules, instead of formulas. This abuses the notation to see proof\n rule applications and their conclusions interchangeably.\n\n Conceptually, the following proof rules form a calculus whose target\n user is the Node-level theory solvers. This means that the rules below\n are designed to reason about, among other things, common operations on Node\n objects like Rewriter::rewrite or Node::substitute. It is intended to be\n translated or printed in other formats.\n\n The following ProofRule values include core rules and those categorized by\n theory, including the theory of equality.\n\n The \"core rules\" include two distinguished rules which have special status:\n (1) :cpp:enumerator:`ASSUME <cvc5::ProofRule::ASSUME>`, which represents an\n open leaf in a proof; and\n (2) :cpp:enumerator:`SCOPE <cvc5::ProofRule::SCOPE>`, which encloses a scope\n (a subproof) with a set of scoped assumptions.\n The core rules additionally correspond to generic operations that are done\n internally on nodes, e.g., calling `Rewriter::rewrite()`.\n\n Rules with prefix ``MACRO_`` are those that can be defined in terms of other\n rules. These exist for convenience and can be replaced by their definition\n in post-processing.\n \\endverbatim"]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum ProofRule {
    Assume = 0,
    Scope = 1,
    Subs = 2,
    MacroRewrite = 3,
    Evaluate = 4,
    DistinctValues = 5,
    AciNorm = 6,
    Absorb = 7,
    MacroSrEqIntro = 8,
    MacroSrPredIntro = 9,
    MacroSrPredElim = 10,
    MacroSrPredTransform = 11,
    EncodeEqIntro = 12,
    DslRewrite = 13,
    TheoryRewrite = 14,
    IteEq = 15,
    Trust = 16,
    TrustTheoryRewrite = 17,
    SatRefutation = 18,
    DratRefutation = 19,
    SatExternalProve = 20,
    Resolution = 21,
    ChainResolution = 22,
    Factoring = 23,
    Reordering = 24,
    MacroResolution = 25,
    MacroResolutionTrust = 26,
    ChainMResolution = 27,
    Split = 28,
    EqResolve = 29,
    ModusPonens = 30,
    NotNotElim = 31,
    Contra = 32,
    AndElim = 33,
    AndIntro = 34,
    NotOrElim = 35,
    ImpliesElim = 36,
    NotImpliesElim1 = 37,
    NotImpliesElim2 = 38,
    EquivElim1 = 39,
    EquivElim2 = 40,
    NotEquivElim1 = 41,
    NotEquivElim2 = 42,
    XorElim1 = 43,
    XorElim2 = 44,
    NotXorElim1 = 45,
    NotXorElim2 = 46,
    IteElim1 = 47,
    IteElim2 = 48,
    NotIteElim1 = 49,
    NotIteElim2 = 50,
    NotAnd = 51,
    CnfAndPos = 52,
    CnfAndNeg = 53,
    CnfOrPos = 54,
    CnfOrNeg = 55,
    CnfImpliesPos = 56,
    CnfImpliesNeg1 = 57,
    CnfImpliesNeg2 = 58,
    CnfEquivPos1 = 59,
    CnfEquivPos2 = 60,
    CnfEquivNeg1 = 61,
    CnfEquivNeg2 = 62,
    CnfXorPos1 = 63,
    CnfXorPos2 = 64,
    CnfXorNeg1 = 65,
    CnfXorNeg2 = 66,
    CnfItePos1 = 67,
    CnfItePos2 = 68,
    CnfItePos3 = 69,
    CnfIteNeg1 = 70,
    CnfIteNeg2 = 71,
    CnfIteNeg3 = 72,
    Refl = 73,
    Symm = 74,
    Trans = 75,
    Cong = 76,
    NaryCong = 77,
    TrueIntro = 78,
    TrueElim = 79,
    FalseIntro = 80,
    FalseElim = 81,
    HoAppEncode = 82,
    HoCong = 83,
    ArraysReadOverWrite = 84,
    ArraysReadOverWriteContra = 85,
    ArraysReadOverWrite1 = 86,
    ArraysExt = 87,
    MacroBvBitblast = 88,
    BvBitblastStep = 89,
    BvEagerAtom = 90,
    BvPolyNorm = 91,
    BvPolyNormEq = 92,
    DtSplit = 93,
    SkolemIntro = 94,
    Skolemize = 95,
    Instantiate = 96,
    AlphaEquiv = 97,
    QuantVarReordering = 98,
    ExistsStringLength = 99,
    SetsSingletonInj = 100,
    SetsExt = 101,
    SetsFilterUp = 102,
    SetsFilterDown = 103,
    ConcatEq = 104,
    ConcatUnify = 105,
    ConcatSplit = 106,
    ConcatCsplit = 107,
    ConcatLprop = 108,
    ConcatCprop = 109,
    StringDecompose = 110,
    StringLengthPos = 111,
    StringLengthNonEmpty = 112,
    StringReduction = 113,
    StringEagerReduction = 114,
    ReInter = 115,
    ReConcat = 116,
    ReUnfoldPos = 117,
    ReUnfoldNeg = 118,
    ReUnfoldNegConcatFixed = 119,
    StringCodeInj = 120,
    StringSeqUnitInj = 121,
    StringExt = 122,
    MacroStringInference = 123,
    MacroArithScaleSumUb = 124,
    ArithMultAbsComparison = 125,
    ArithSumUb = 126,
    IntTightUb = 127,
    IntTightLb = 128,
    ArithTrichotomy = 129,
    ArithReduction = 130,
    ArithPolyNorm = 131,
    ArithPolyNormRel = 132,
    ArithMultSign = 133,
    ArithMultPos = 134,
    ArithMultNeg = 135,
    ArithMultTangent = 136,
    ArithTransPi = 137,
    ArithTransExpNeg = 138,
    ArithTransExpPositivity = 139,
    ArithTransExpSuperLin = 140,
    ArithTransExpZero = 141,
    ArithTransExpApproxAboveNeg = 142,
    ArithTransExpApproxAbovePos = 143,
    ArithTransExpApproxBelow = 144,
    ArithTransSineBounds = 145,
    ArithTransSineShift = 146,
    ArithTransSineSymmetry = 147,
    ArithTransSineTangentZero = 148,
    ArithTransSineTangentPi = 149,
    ArithTransSineApproxAboveNeg = 150,
    ArithTransSineApproxAbovePos = 151,
    ArithTransSineApproxBelowNeg = 152,
    ArithTransSineApproxBelowPos = 153,
    LfscRule = 154,
    AletheRule = 155,
    Unknown = 156,
    Last = 157,
}
#[repr(u32)]
#[doc = " \\verbatim embed:rst:leading-asterisk\n This enumeration represents the rewrite rules used in a rewrite proof. Some\n of the rules are internal ad-hoc rewrites, while others are rewrites\n specified by the RARE DSL. This enumeration is used as the first argument to\n the :cpp:enumerator:`DSL_REWRITE <cvc5::ProofRule::DSL_REWRITE>` proof rule\n and the :cpp:enumerator:`THEORY_REWRITE <cvc5::ProofRule::THEORY_REWRITE>`\n proof rule.\n \\endverbatim"]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum ProofRewriteRule {
    None = 0,
    DistinctElim = 1,
    DistinctCardConflict = 2,
    UbvToIntElim = 3,
    IntToBvElim = 4,
    MacroBoolNnfNorm = 5,
    MacroBoolBvInvertSolve = 6,
    MacroArithIntEqConflict = 7,
    MacroArithIntGeqTighten = 8,
    MacroArithStringPredEntail = 9,
    ArithStringPredEntail = 10,
    ArithStringPredSafeApprox = 11,
    ArithPowElim = 12,
    BetaReduce = 13,
    LambdaElim = 14,
    MacroLambdaCaptureAvoid = 15,
    ArraysSelectConst = 16,
    MacroArraysNormalizeOp = 17,
    MacroArraysNormalizeConstant = 18,
    ArraysEqRangeExpand = 19,
    ExistsElim = 20,
    QuantUnusedVars = 21,
    MacroQuantMergePrenex = 22,
    QuantMergePrenex = 23,
    MacroQuantPrenex = 24,
    MacroQuantMiniscope = 25,
    QuantMiniscopeAnd = 26,
    QuantMiniscopeOr = 27,
    QuantMiniscopeIte = 28,
    QuantDtSplit = 29,
    MacroQuantDtVarExpand = 30,
    MacroQuantPartitionConnectedFv = 31,
    MacroQuantVarElimEq = 32,
    QuantVarElimEq = 33,
    MacroQuantVarElimIneq = 34,
    MacroQuantRewriteBody = 35,
    DtInst = 36,
    DtCollapseSelector = 37,
    DtCollapseTester = 38,
    DtCollapseTesterSingleton = 39,
    MacroDtConsEq = 40,
    DtConsEq = 41,
    DtConsEqClash = 42,
    DtCycle = 43,
    DtCollapseUpdater = 44,
    DtUpdaterElim = 45,
    DtMatchElim = 46,
    MacroBvExtractConcat = 47,
    MacroBvOrSimplify = 48,
    MacroBvAndSimplify = 49,
    MacroBvXorSimplify = 50,
    MacroBvAndOrXorConcatPullup = 51,
    MacroBvMultSltMult = 52,
    MacroBvConcatExtractMerge = 53,
    MacroBvConcatConstantMerge = 54,
    MacroBvEqSolve = 55,
    BvUmuloElim = 56,
    BvSmuloElim = 57,
    BvBitwiseSlicing = 58,
    BvRepeatElim = 59,
    StrCtnMultisetSubset = 60,
    MacroStrEqLenUnifyPrefix = 61,
    MacroStrEqLenUnify = 62,
    MacroStrSplitCtn = 63,
    MacroStrStripEndpoints = 64,
    StrOverlapSplitCtn = 65,
    StrOverlapEndpointsCtn = 66,
    StrOverlapEndpointsIndexof = 67,
    StrOverlapEndpointsReplace = 68,
    MacroStrComponentCtn = 69,
    MacroStrConstNctnConcat = 70,
    MacroStrInReInclusion = 71,
    MacroReInterUnionConstElim = 72,
    SeqEvalOp = 73,
    StrIndexofReEval = 74,
    StrReplaceReEval = 75,
    StrReplaceReAllEval = 76,
    ReLoopElim = 77,
    ReEqElim = 78,
    MacroReInterUnionInclusion = 79,
    ReInterInclusion = 80,
    ReUnionInclusion = 81,
    StrInReEval = 82,
    StrInReConsume = 83,
    StrInReConcatStarChar = 84,
    StrInReSigma = 85,
    StrInReSigmaStar = 86,
    MacroSubstrStripSymLength = 87,
    SetsEvalOp = 88,
    SetsInsertElim = 89,
    ArithDivTotalZeroReal = 90,
    ArithDivTotalZeroInt = 91,
    ArithIntDivTotal = 92,
    ArithIntDivTotalOne = 93,
    ArithIntDivTotalZero = 94,
    ArithIntDivTotalNeg = 95,
    ArithIntModTotal = 96,
    ArithIntModTotalOne = 97,
    ArithIntModTotalZero = 98,
    ArithIntModTotalNeg = 99,
    ArithElimGt = 100,
    ArithElimLt = 101,
    ArithElimIntGt = 102,
    ArithElimIntLt = 103,
    ArithElimLeq = 104,
    ArithLeqNorm = 105,
    ArithGeqTighten = 106,
    ArithGeqNorm1Int = 107,
    ArithGeqNorm1Real = 108,
    ArithEqElimReal = 109,
    ArithEqElimInt = 110,
    ArithToIntElim = 111,
    ArithToIntElimToReal = 112,
    ArithDivElimToReal1 = 113,
    ArithDivElimToReal2 = 114,
    ArithModOverMod = 115,
    ArithIntEqConflict = 116,
    ArithIntGeqTighten = 117,
    ArithDivisibleElim = 118,
    ArithAbsEq = 119,
    ArithAbsIntGt = 120,
    ArithAbsRealGt = 121,
    ArithGeqIteLift = 122,
    ArithLeqIteLift = 123,
    ArithMinLt1 = 124,
    ArithMinLt2 = 125,
    ArithMaxGeq1 = 126,
    ArithMaxGeq2 = 127,
    ArrayReadOverWrite = 128,
    ArrayReadOverWrite2 = 129,
    ArrayStoreOverwrite = 130,
    ArrayStoreSelf = 131,
    ArrayReadOverWriteSplit = 132,
    ArrayStoreSwap = 133,
    BoolDoubleNotElim = 134,
    BoolNotTrue = 135,
    BoolNotFalse = 136,
    BoolEqTrue = 137,
    BoolEqFalse = 138,
    BoolEqNrefl = 139,
    BoolImplFalse1 = 140,
    BoolImplFalse2 = 141,
    BoolImplTrue1 = 142,
    BoolImplTrue2 = 143,
    BoolImplElim = 144,
    BoolDualImplEq = 145,
    BoolAndConf = 146,
    BoolAndConf2 = 147,
    BoolOrTaut = 148,
    BoolOrTaut2 = 149,
    BoolOrDeMorgan = 150,
    BoolImpliesDeMorgan = 151,
    BoolAndDeMorgan = 152,
    BoolOrAndDistrib = 153,
    BoolImpliesOrDistrib = 154,
    BoolXorRefl = 155,
    BoolXorNrefl = 156,
    BoolXorFalse = 157,
    BoolXorTrue = 158,
    BoolXorComm = 159,
    BoolXorElim = 160,
    BoolNotXorElim = 161,
    BoolNotEqElim1 = 162,
    BoolNotEqElim2 = 163,
    IteNegBranch = 164,
    IteThenTrue = 165,
    IteElseFalse = 166,
    IteThenFalse = 167,
    IteElseTrue = 168,
    IteThenLookaheadSelf = 169,
    IteElseLookaheadSelf = 170,
    IteThenLookaheadNotSelf = 171,
    IteElseLookaheadNotSelf = 172,
    IteExpand = 173,
    BoolNotIteElim = 174,
    IteTrueCond = 175,
    IteFalseCond = 176,
    IteNotCond = 177,
    IteEqBranch = 178,
    IteThenLookahead = 179,
    IteElseLookahead = 180,
    IteThenNegLookahead = 181,
    IteElseNegLookahead = 182,
    BvConcatExtractMerge = 183,
    BvExtractExtract = 184,
    BvExtractWhole = 185,
    BvExtractConcat1 = 186,
    BvExtractConcat2 = 187,
    BvExtractConcat3 = 188,
    BvExtractConcat4 = 189,
    BvEqExtractElim1 = 190,
    BvEqExtractElim2 = 191,
    BvEqExtractElim3 = 192,
    BvExtractNot = 193,
    BvExtractSignExtend1 = 194,
    BvExtractSignExtend2 = 195,
    BvExtractSignExtend3 = 196,
    BvNotXor = 197,
    BvAndSimplify1 = 198,
    BvAndSimplify2 = 199,
    BvOrSimplify1 = 200,
    BvOrSimplify2 = 201,
    BvXorSimplify1 = 202,
    BvXorSimplify2 = 203,
    BvXorSimplify3 = 204,
    BvUltAddOne = 205,
    BvMultSltMult1 = 206,
    BvMultSltMult2 = 207,
    BvCommutativeXor = 208,
    BvCommutativeComp = 209,
    BvZeroExtendEliminate0 = 210,
    BvSignExtendEliminate0 = 211,
    BvNotNeq = 212,
    BvUltOnes = 213,
    BvConcatMergeConst = 214,
    BvCommutativeAdd = 215,
    BvSubEliminate = 216,
    BvIteWidthOne = 217,
    BvIteWidthOneNot = 218,
    BvEqXorSolve = 219,
    BvEqNotSolve = 220,
    BvUgtEliminate = 221,
    BvUgeEliminate = 222,
    BvSgtEliminate = 223,
    BvSgeEliminate = 224,
    BvSleEliminate = 225,
    BvRedorEliminate = 226,
    BvRedandEliminate = 227,
    BvUleEliminate = 228,
    BvCompEliminate = 229,
    BvRotateLeftEliminate1 = 230,
    BvRotateLeftEliminate2 = 231,
    BvRotateRightEliminate1 = 232,
    BvRotateRightEliminate2 = 233,
    BvNandEliminate = 234,
    BvNorEliminate = 235,
    BvXnorEliminate = 236,
    BvSdivEliminate = 237,
    BvZeroExtendEliminate = 238,
    BvUaddoEliminate = 239,
    BvSaddoEliminate = 240,
    BvSdivoEliminate = 241,
    BvSmodEliminate = 242,
    BvSremEliminate = 243,
    BvUsuboEliminate = 244,
    BvSsuboEliminate = 245,
    BvNegoEliminate = 246,
    BvIteEqualChildren = 247,
    BvIteConstChildren1 = 248,
    BvIteConstChildren2 = 249,
    BvIteEqualCond1 = 250,
    BvIteEqualCond2 = 251,
    BvIteEqualCond3 = 252,
    BvIteMergeThenIf = 253,
    BvIteMergeElseIf = 254,
    BvIteMergeThenElse = 255,
    BvIteMergeElseElse = 256,
    BvShlByConst0 = 257,
    BvShlByConst1 = 258,
    BvShlByConst2 = 259,
    BvLshrByConst0 = 260,
    BvLshrByConst1 = 261,
    BvLshrByConst2 = 262,
    BvAshrByConst0 = 263,
    BvAshrByConst1 = 264,
    BvAshrByConst2 = 265,
    BvAndConcatPullup = 266,
    BvOrConcatPullup = 267,
    BvXorConcatPullup = 268,
    BvAndConcatPullup2 = 269,
    BvOrConcatPullup2 = 270,
    BvXorConcatPullup2 = 271,
    BvAndConcatPullup3 = 272,
    BvOrConcatPullup3 = 273,
    BvXorConcatPullup3 = 274,
    BvXorDuplicate = 275,
    BvXorOnes = 276,
    BvXorNot = 277,
    BvNotIdemp = 278,
    BvUltZero1 = 279,
    BvUltZero2 = 280,
    BvUltSelf = 281,
    BvLtSelf = 282,
    BvUleSelf = 283,
    BvUleZero = 284,
    BvZeroUle = 285,
    BvSleSelf = 286,
    BvUleMax = 287,
    BvNotUlt = 288,
    BvMultPow21 = 289,
    BvMultPow22 = 290,
    BvMultPow22b = 291,
    BvExtractMultLeadingBit = 292,
    BvUdivPow2NotOne = 293,
    BvUdivZero = 294,
    BvUdivOne = 295,
    BvUremPow2NotOne = 296,
    BvUremOne = 297,
    BvUremSelf = 298,
    BvShlZero = 299,
    BvLshrZero = 300,
    BvAshrZero = 301,
    BvUgtUrem = 302,
    BvUltOne = 303,
    BvMergeSignExtend1 = 304,
    BvMergeSignExtend2 = 305,
    BvSignExtendEqConst1 = 306,
    BvSignExtendEqConst2 = 307,
    BvZeroExtendEqConst1 = 308,
    BvZeroExtendEqConst2 = 309,
    BvZeroExtendUltConst1 = 310,
    BvZeroExtendUltConst2 = 311,
    BvSignExtendUltConst1 = 312,
    BvSignExtendUltConst2 = 313,
    BvSignExtendUltConst3 = 314,
    BvSignExtendUltConst4 = 315,
    SetsEqSingletonEmp = 316,
    SetsMemberSingleton = 317,
    SetsMemberEmp = 318,
    SetsSubsetElim = 319,
    SetsUnionComm = 320,
    SetsInterComm = 321,
    SetsInterEmp1 = 322,
    SetsInterEmp2 = 323,
    SetsMinusEmp1 = 324,
    SetsMinusEmp2 = 325,
    SetsUnionEmp1 = 326,
    SetsUnionEmp2 = 327,
    SetsInterMember = 328,
    SetsMinusMember = 329,
    SetsUnionMember = 330,
    SetsChooseSingleton = 331,
    SetsMinusSelf = 332,
    SetsIsEmptyElim = 333,
    SetsIsSingletonElim = 334,
    StrEqCtnFalse = 335,
    StrEqCtnFullFalse1 = 336,
    StrEqCtnFullFalse2 = 337,
    StrEqLenFalse = 338,
    StrSubstrEmptyStr = 339,
    StrSubstrEmptyRange = 340,
    StrSubstrEmptyStart = 341,
    StrSubstrEmptyStartNeg = 342,
    StrSubstrSubstrStartGeqLen = 343,
    StrSubstrEqEmpty = 344,
    StrSubstrZEqEmptyLeq = 345,
    StrSubstrEqEmptyLeqLen = 346,
    StrLenReplaceInv = 347,
    StrLenReplaceAllInv = 348,
    StrLenUpdateInv = 349,
    StrUpdateInFirstConcat = 350,
    StrLenSubstrInRange = 351,
    StrConcatClash = 352,
    StrConcatClashRev = 353,
    StrConcatClash2 = 354,
    StrConcatClash2Rev = 355,
    StrConcatUnify = 356,
    StrConcatUnifyRev = 357,
    StrConcatUnifyBase = 358,
    StrConcatUnifyBaseRev = 359,
    StrPrefixofElim = 360,
    StrSuffixofElim = 361,
    StrPrefixofEq = 362,
    StrSuffixofEq = 363,
    StrPrefixofOne = 364,
    StrSuffixofOne = 365,
    StrSubstrCombine1 = 366,
    StrSubstrCombine2 = 367,
    StrSubstrCombine3 = 368,
    StrSubstrCombine4 = 369,
    StrSubstrConcat1 = 370,
    StrSubstrConcat2 = 371,
    StrSubstrReplace = 372,
    StrSubstrFull = 373,
    StrSubstrFullEq = 374,
    StrContainsRefl = 375,
    StrContainsConcatFind = 376,
    StrContainsConcatFindContra = 377,
    StrContainsSplitChar = 378,
    StrContainsLeqLenEq = 379,
    StrContainsEmp = 380,
    StrContainsChar = 381,
    StrAtElim = 382,
    StrReplaceSelf = 383,
    StrReplaceId = 384,
    StrReplacePrefix = 385,
    StrReplaceNoContains = 386,
    StrReplaceFindBase = 387,
    StrReplaceFindFirstConcat = 388,
    StrReplaceEmpty = 389,
    StrReplaceOnePre = 390,
    StrReplaceFindPre = 391,
    StrReplaceAllNoContains = 392,
    StrReplaceReNone = 393,
    StrReplaceReAllNone = 394,
    StrLenConcatRec = 395,
    StrLenEqZeroConcatRec = 396,
    StrLenEqZeroBase = 397,
    StrIndexofSelf = 398,
    StrIndexofNoContains = 399,
    StrIndexofOob = 400,
    StrIndexofOob2 = 401,
    StrIndexofContainsPre = 402,
    StrIndexofFindEmp = 403,
    StrIndexofEqIrr = 404,
    StrIndexofReNone = 405,
    StrIndexofReEmpRe = 406,
    StrToLowerConcat = 407,
    StrToUpperConcat = 408,
    StrToLowerUpper = 409,
    StrToUpperLower = 410,
    StrToLowerLen = 411,
    StrToUpperLen = 412,
    StrToLowerFromInt = 413,
    StrToUpperFromInt = 414,
    StrToIntConcatNegOne = 415,
    StrLeqEmpty = 416,
    StrLeqEmptyEq = 417,
    StrLeqConcatFalse = 418,
    StrLeqConcatTrue = 419,
    StrLeqConcatBase1 = 420,
    StrLeqConcatBase2 = 421,
    StrLtElim = 422,
    StrFromIntNoCtnNondigit = 423,
    StrSubstrCtnContra = 424,
    StrSubstrCtn = 425,
    StrReplaceDualCtn = 426,
    StrReplaceDualCtnFalse = 427,
    StrReplaceSelfCtnSimp = 428,
    StrReplaceEmpCtnSrc = 429,
    StrSubstrCharStartEqLen = 430,
    StrContainsReplChar = 431,
    StrContainsReplSelfTgtChar = 432,
    StrContainsReplSelf = 433,
    StrContainsReplTgt = 434,
    StrReplReplLenId = 435,
    StrReplReplSrcTgtNoCtn = 436,
    StrReplReplTgtSelf = 437,
    StrReplReplTgtNoCtn = 438,
    StrReplReplSrcSelf = 439,
    StrReplReplSrcInvNoCtn1 = 440,
    StrReplReplSrcInvNoCtn2 = 441,
    StrReplReplSrcInvNoCtn3 = 442,
    StrReplReplDualSelf = 443,
    StrReplReplDualIte1 = 444,
    StrReplReplDualIte2 = 445,
    StrReplReplLookaheadIdSimp = 446,
    ReAllElim = 447,
    ReOptElim = 448,
    ReDiffElim = 449,
    RePlusElim = 450,
    ReRepeatElim = 451,
    ReConcatStarSwap = 452,
    ReConcatStarRepeat = 453,
    ReConcatStarSubsume1 = 454,
    ReConcatStarSubsume2 = 455,
    ReConcatMerge = 456,
    ReUnionAll = 457,
    ReUnionConstElim = 458,
    ReInterAll = 459,
    ReStarNone = 460,
    ReStarEmp = 461,
    ReStarStar = 462,
    ReStarUnionDropEmp = 463,
    ReLoopNeg = 464,
    ReInterCstring = 465,
    ReInterCstringNeg = 466,
    StrSubstrLenInclude = 467,
    StrSubstrLenIncludePre = 468,
    StrSubstrLenNorm = 469,
    SeqLenRev = 470,
    SeqRevRev = 471,
    SeqRevConcat = 472,
    StrEqReplSelfEmp = 473,
    StrEqReplNoChange = 474,
    StrEqReplTgtEqLen = 475,
    StrEqReplLenOneEmpPrefix = 476,
    StrEqReplEmpTgtNemp = 477,
    StrEqReplNempSrcEmp = 478,
    StrEqReplSelfSrc = 479,
    SeqLenUnit = 480,
    SeqNthUnit = 481,
    SeqRevUnit = 482,
    SeqLenEmpty = 483,
    ReInEmpty = 484,
    ReInSigma = 485,
    ReInSigmaStar = 486,
    ReInCstring = 487,
    ReInComp = 488,
    StrInReUnionElim = 489,
    StrInReInterElim = 490,
    StrInReRangeElim = 491,
    StrInReContains = 492,
    StrInReFromIntNempDigRange = 493,
    StrInReFromIntDigRange = 494,
    EqRefl = 495,
    EqSymm = 496,
    EqCondDeq = 497,
    EqIteLift = 498,
    DistinctBinaryElim = 499,
    UfBv2natInt2bv = 500,
    UfBv2natInt2bvExtend = 501,
    UfBv2natInt2bvExtract = 502,
    UfInt2bvBv2nat = 503,
    UfBv2natGeqElim = 504,
    UfInt2bvBvultEquiv = 505,
    UfInt2bvBvuleEquiv = 506,
    UfSbvToIntElim = 507,
    ArithSineZero = 508,
    ArithSinePi2 = 509,
    ArithCosineElim = 510,
    ArithTangentElim = 511,
    ArithSecentElim = 512,
    ArithCosecentElim = 513,
    ArithCotangentElim = 514,
    ArithPiNotInt = 515,
    SetsCardSingleton = 516,
    SetsCardUnion = 517,
    SetsCardMinus = 518,
    SetsCardEmp = 519,
    Last = 520,
}
unsafe extern "C" {
    #[doc = " Get a string representation of a Cvc5ProofRule.\n @param rule The proof rule.\n @return The string representation."]
    #[link_name = "\u{1}cvc5_proof_rule_to_string"]
    pub fn proof_rule_to_string(rule: ProofRule) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " Hash function for Cvc5ProofRule.\n @param rule The proof rule.\n @return The hash value."]
    #[link_name = "\u{1}cvc5_proof_rule_hash"]
    pub fn proof_rule_hash(rule: ProofRule) -> usize;
}
unsafe extern "C" {
    #[doc = " Get a string representation of a Cvc5ProofRewriteRule.\n @param rule The proof rewrite rule.\n @return The string representation."]
    #[link_name = "\u{1}cvc5_proof_rewrite_rule_to_string"]
    pub fn proof_rewrite_rule_to_string(rule: ProofRewriteRule) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " Hash function for Cvc5ProofRewriteRule.\n @param rule The proof rewrite rule.\n @return The hash value."]
    #[link_name = "\u{1}cvc5_proof_rewrite_rule_hash"]
    pub fn proof_rewrite_rule_hash(rule: ProofRewriteRule) -> usize;
}
#[repr(u32)]
#[doc = " The kind of a cvc5 skolem. A skolem is a (family of) internal functions or\n constants that are introduced by cvc5. These symbols are treated as\n uninterpreted internally. We track their definition for the purposes of\n formal bookkeeping for the user of features like proofs, lemma exporting,\n simplification and so on.\n\n A skolem has an identifier and a set of \"skolem indices\". The skolem\n indices are *not* children of the skolem function, but rather should\n be seen as the way of distinguishing skolems from the same family.\n\n For example, the family of \"array diff\" skolems ``ARRAY_DEQ_DIFF`` witness\n the disequality between two arrays, which are its skolem indices.\n\n Say that skolem k witnesses the disequality between two arrays A and B\n of type ``(Array Int Int)``. Then, k is a term whose skolem identifier is\n ``ARRAY_DEQ_DIFF``, skolem indices are A and B, and whose type is ``Int``.\n\n Note the type of k is not ``(-> (Array Int Int) (Array Int Int) Int)``.\n Intuitively, this is due to the fact that cvc5 does not reason about array\n diff skolem as a function symbol. Furthermore, the array diff skolem that\n witnesses the disequality of arrays C and D is a separate skolem function k2\n from this family, also of type ``Int``, where internally k2 has no relation\n to k apart from having the same skolem identifier.\n\n In contrast, cvc5 reasons about division-by-zero using a single skolem\n function whose identifier is ``DIV_BY_ZERO``. This means its skolem indices\n are empty and the skolem has a functional type ``(-> Real Real)``.\n\n \\internal\n"]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum SkolemId {
    Internal = 0,
    Purify = 1,
    GroundTerm = 2,
    ArrayDeqDiff = 3,
    BvEmpty = 4,
    DivByZero = 5,
    IntDivByZero = 6,
    ModByZero = 7,
    TranscendentalPurify = 8,
    TranscendentalPurifyArg = 9,
    TranscendentalSinePhaseShift = 10,
    ArithVtsDelta = 11,
    ArithVtsDeltaFree = 12,
    ArithVtsInfinity = 13,
    ArithVtsInfinityFree = 14,
    SharedSelector = 15,
    HoDeqDiff = 16,
    QuantifiersSkolemize = 17,
    WitnessStringLength = 18,
    WitnessInvCondition = 19,
    StringsNumOccur = 20,
    StringsOccurIndex = 21,
    StringsNumOccurRe = 22,
    StringsOccurIndexRe = 23,
    StringsDeqDiff = 24,
    StringsReplaceAllResult = 25,
    StringsItosResult = 26,
    StringsStoiResult = 27,
    StringsStoiNonDigit = 28,
    ReUnfoldPosComponent = 29,
    BagsCardCombine = 30,
    BagsDistinctElementsUnionDisjoint = 31,
    BagsFoldCard = 32,
    BagsFoldCombine = 33,
    BagsFoldElements = 34,
    BagsFoldUnionDisjoint = 35,
    BagsChoose = 36,
    BagsDistinctElements = 37,
    BagsDistinctElementsSize = 38,
    BagsMapPreimageInjective = 39,
    BagsMapIndex = 40,
    BagsMapSum = 41,
    BagsDeqDiff = 42,
    TablesGroupPart = 43,
    TablesGroupPartElement = 44,
    RelationsGroupPart = 45,
    RelationsGroupPartElement = 46,
    SetsChoose = 47,
    SetsDeqDiff = 48,
    SetsFoldCard = 49,
    SetsFoldCombine = 50,
    SetsFoldElements = 51,
    SetsFoldUnion = 52,
    SetsMapDownElement = 53,
    FpMinZero = 54,
    FpMaxZero = 55,
    FpToUbv = 56,
    FpToSbv = 57,
    FpToReal = 58,
    BvToIntUf = 59,
    None = 60,
    Last = 61,
}
unsafe extern "C" {
    #[doc = " Get a string representation of a Cvc5SkolemId.\n @param id The skolem id.\n @return The string representation."]
    #[link_name = "\u{1}cvc5_skolem_id_to_string"]
    pub fn skolem_id_to_string(id: SkolemId) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " Hash function for Cvc5SkolemId.\n @param id The skolem id.\n @return The hash value."]
    #[link_name = "\u{1}cvc5_skolem_id_hash"]
    pub fn skolem_id_hash(id: SkolemId) -> usize;
}
#[repr(u32)]
#[doc = " The different reasons for returning an \"unknown\" result."]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum UnknownExplanation {
    RequiresFullCheck = 0,
    Incomplete = 1,
    Timeout = 2,
    Resourceout = 3,
    Memout = 4,
    Interrupted = 5,
    Unsupported = 6,
    Other = 7,
    RequiresCheckAgain = 8,
    UnknownReason = 9,
    Last = 10,
}
unsafe extern "C" {
    #[doc = " Get a string representation of a Cvc5UnknownExplanation.\n @param exp The unknown explanation.\n @return The string representation."]
    #[link_name = "\u{1}cvc5_unknown_explanation_to_string"]
    pub fn unknown_explanation_to_string(exp: UnknownExplanation) -> *const ::std::os::raw::c_char;
}
#[repr(u32)]
#[doc = " Rounding modes for floating-point numbers.\n\n For many floating-point operations, infinitely precise results may not be\n representable with the number of available bits. Thus, the results are\n rounded in a certain way to one of the representable floating-point numbers.\n\n \\verbatim embed:rst:leading-asterisk\n These rounding modes directly follow the SMT-LIB theory for floating-point\n arithmetic, which in turn is based on IEEE Standard 754 :cite:`IEEE754`.\n The rounding modes are specified in Sections 4.3.1 and 4.3.2 of the IEEE\n Standard 754.\n \\endverbatim"]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum RoundingMode {
    RoundNearestTiesToEven = 0,
    RoundTowardPositive = 1,
    RoundTowardNegative = 2,
    RoundTowardZero = 3,
    RoundNearestTiesToAway = 4,
    Last = 5,
}
unsafe extern "C" {
    #[doc = " Get a string representation of a Cvc5RoundingMode.\n @param rm The rounding mode.\n @return The string representation."]
    #[link_name = "\u{1}cvc5_rm_to_string"]
    pub fn rm_to_string(rm: RoundingMode) -> *const ::std::os::raw::c_char;
}
#[repr(u32)]
#[doc = " Mode for blocking models.\n\n Specifies how models are blocked in Solver::blockModel and\n Solver::blockModelValues."]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum BlockModelsMode {
    Literals = 0,
    Values = 1,
    Last = 2,
}
unsafe extern "C" {
    #[doc = " Get a string representation of a Cvc5BlockModelsMode.\n @param mode The mode.\n @return The string representation."]
    #[link_name = "\u{1}cvc5_modes_block_models_mode_to_string"]
    pub fn modes_block_models_mode_to_string(
        mode: BlockModelsMode,
    ) -> *const ::std::os::raw::c_char;
}
#[repr(u32)]
#[doc = " Types of learned literals.\n\n Specifies categories of literals learned for the method\n Solver::getLearnedLiterals.\n\n Note that a literal may conceptually belong to multiple categories. We\n classify literals based on the first criteria in this list that they meet."]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum LearnedLitType {
    PreprocessSolved = 0,
    Preprocess = 1,
    Input = 2,
    Solvable = 3,
    ConstantProp = 4,
    Internal = 5,
    Unknown = 6,
    Last = 7,
}
unsafe extern "C" {
    #[doc = " Get a string representation of a Cvc5LearnedLitType.\n @param type The learned literal type.\n @return The string representation."]
    #[link_name = "\u{1}cvc5_modes_learned_lit_type_to_string"]
    pub fn modes_learned_lit_type_to_string(type_: LearnedLitType)
    -> *const ::std::os::raw::c_char;
}
#[repr(u32)]
#[doc = " Components to include in a proof."]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum ProofComponent {
    RawPreprocess = 0,
    Preprocess = 1,
    Sat = 2,
    TheoryLemmas = 3,
    Full = 4,
    Last = 5,
}
unsafe extern "C" {
    #[doc = " Get a string representation of a Cvc5ProofComponent.\n @param pc The proof component.\n @return The string representation."]
    #[link_name = "\u{1}cvc5_modes_proof_component_to_string"]
    pub fn modes_proof_component_to_string(pc: ProofComponent) -> *const ::std::os::raw::c_char;
}
#[repr(u32)]
#[doc = " Proof format used for proof printing."]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum ProofFormat {
    None = 0,
    Dot = 1,
    Lfsc = 2,
    Alethe = 3,
    Cpc = 4,
    Default = 5,
    Last = 6,
}
unsafe extern "C" {
    #[doc = " Get a string representation of a Cvc5ProofFormat.\n @param format The proof format.\n @return The string representation."]
    #[link_name = "\u{1}cvc5_modes_proof_format_to_string"]
    pub fn modes_proof_format_to_string(format: ProofFormat) -> *const ::std::os::raw::c_char;
}
#[repr(u32)]
#[doc = " Find synthesis targets, used as an argument to Solver::findSynth. These\n specify various kinds of terms that can be found by this method."]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum FindSynthTarget {
    Enum = 0,
    Rewrite = 1,
    RewriteUnsound = 2,
    RewriteInput = 3,
    Query = 4,
    Last = 5,
}
unsafe extern "C" {
    #[doc = " Get a string representation of a Cvc5FindSynthTarget.\n @param target The synthesis find target.\n @return The string representation."]
    #[link_name = "\u{1}cvc5_modes_find_synth_target_to_string"]
    pub fn modes_find_synth_target_to_string(
        target: FindSynthTarget,
    ) -> *const ::std::os::raw::c_char;
}
#[repr(u32)]
#[doc = " Option category enumeration.\n Specifies the category of an option for user interface purposes."]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum OptionCategory {
    Regular = 0,
    Expert = 1,
    Common = 2,
    Undocumented = 3,
    Last = 4,
}
unsafe extern "C" {
    #[doc = " Get a string representation of a Cvc5OptionCategory.\n @param cat The option category.\n @return The string representation."]
    #[link_name = "\u{1}cvc5_modes_option_category_to_string"]
    pub fn modes_option_category_to_string(cat: OptionCategory) -> *const ::std::os::raw::c_char;
}
#[repr(u32)]
#[doc = " The different reasons for returning an \"unknown\" result."]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum InputLanguage {
    SmtLib26 = 0,
    Sygus21 = 1,
    Unknown = 2,
    Last = 3,
}
unsafe extern "C" {
    #[doc = " Get a string representation of a Cvc5InputLanguage.\n @param lang The input language.\n @return The string representation."]
    #[link_name = "\u{1}cvc5_modes_input_language_to_string"]
    pub fn modes_input_language_to_string(lang: InputLanguage) -> *const ::std::os::raw::c_char;
}
pub type char32_t = __uint_least32_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct cvc5_result_t {
    _unused: [u8; 0],
}
#[doc = " Encapsulation of a three-valued solver result, with explanations."]
pub type Result = *mut cvc5_result_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct cvc5_synth_result_t {
    _unused: [u8; 0],
}
#[doc = " Encapsulation of a solver synth result.\n\n This is the return value of the API functions:\n   - cvc5_check_synth()\n   - cvc5_check_synth_next()\n\n which we call \"synthesis queries\".  This class indicates whether the\n synthesis query has a solution, has no solution, or is unknown."]
pub type SynthResult = *mut cvc5_synth_result_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct cvc5_sort_t {
    _unused: [u8; 0],
}
#[doc = " The sort of a cvc5 term."]
pub type Sort = *mut cvc5_sort_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct cvc5_term_t {
    _unused: [u8; 0],
}
#[doc = " A cvc5 term."]
pub type Term = *mut cvc5_term_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct cvc5_op_t {
    _unused: [u8; 0],
}
#[doc = " A cvc5 operator.\n\n An operator is a term that represents certain operators, instantiated\n with its required parameters, e.g., a Term of kind\n #CVC5_KIND_BITVECTOR_EXTRACT."]
pub type Op = *mut cvc5_op_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct cvc5_dt_t {
    _unused: [u8; 0],
}
#[doc = " A cvc5 datatype."]
pub type Datatype = *mut cvc5_dt_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct cvc5_dt_sel_t {
    _unused: [u8; 0],
}
#[doc = " A cvc5 datatype selector."]
pub type DatatypeSelector = *mut cvc5_dt_sel_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct cvc5_dt_cons_t {
    _unused: [u8; 0],
}
#[doc = " A cvc5 datatype constructor."]
pub type DatatypeConstructor = *mut cvc5_dt_cons_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct cvc5_dt_cons_decl_t {
    _unused: [u8; 0],
}
#[doc = " A cvc5 datatype constructor declaration. A datatype constructor declaration\n is a specification used for creating a datatype constructor."]
pub type DatatypeConstructorDecl = *mut cvc5_dt_cons_decl_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct cvc5_dt_decl_t {
    _unused: [u8; 0],
}
#[doc = " A cvc5 datatype declaration. A datatype declaration is not itself a datatype\n (see Datatype), but a specification for creating a datatype sort.\n\n The interface for a datatype declaration coincides with the syntax for the\n SMT-LIB 2.6 command `declare-datatype`, or a single datatype within the\n `declare-datatypes` command.\n\n Datatype sorts can be constructed from a Cvc5DatatypeDecl using:\n   - cvc5_mk_datatype_sort()\n   - cvc5_mk_datatype_sorts()"]
pub type DatatypeDecl = *mut cvc5_dt_decl_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct cvc5_grammar_t {
    _unused: [u8; 0],
}
#[doc = " A Sygus Grammar. This can be used to define a context-free grammar\n of terms. Its interface coincides with the definition of grammars\n (``GrammarDef``) in the SyGuS IF 2.1 standard."]
pub type Grammar = *mut cvc5_grammar_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Solver {
    _unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct TermManager {
    _unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct cvc5_proof_t {
    _unused: [u8; 0],
}
#[doc = " A cvc5 proof."]
pub type Proof = *mut cvc5_proof_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct cvc5_stat_t {
    _unused: [u8; 0],
}
#[doc = " A cvc5 statistic."]
pub type Stat = *mut cvc5_stat_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct cvc5_stats_t {
    _unused: [u8; 0],
}
#[doc = " A cvc5 statistics instance."]
pub type Statistics = *mut cvc5_stats_t;
unsafe extern "C" {
    #[doc = " Make copy of result, increases reference counter of `result`.\n\n @param result The result to copy.\n @return The same result with its reference count increased by one.\n\n @note This step is optional and allows users to manage resources in a more\n       fine-grained manner."]
    #[link_name = "\u{1}cvc5_result_copy"]
    pub fn result_copy(result: Result) -> Result;
}
unsafe extern "C" {
    #[doc = " Release copy of result, decrements reference counter of `result`.\n\n @param result The result to release.\n\n @note This step is optional and allows users to release resources in a more\n       fine-grained manner. Further, any API function that returns a copy\n       that is owned by the callee of the function and thus, can be released."]
    #[link_name = "\u{1}cvc5_result_release"]
    pub fn result_release(result: Result);
}
unsafe extern "C" {
    #[doc = " Determine if a given result is empty (a nullary result) and not an actual\n result returned from a `cvc5_check_sat()` (and friends) query.\n @param result The result.\n @return True if the given result is a nullary result."]
    #[link_name = "\u{1}cvc5_result_is_null"]
    pub fn result_is_null(result: Result) -> bool;
}
unsafe extern "C" {
    #[doc = " Determine if given result is from a satisfiable `cvc5_check_sat()` or\n cvc5_check_sat_ssuming() query.\n @param result The result.\n @return True if result is from a satisfiable query."]
    #[link_name = "\u{1}cvc5_result_is_sat"]
    pub fn result_is_sat(result: Result) -> bool;
}
unsafe extern "C" {
    #[doc = " Determine if given result is from an unsatisfiable `cvc5_check_sat()` or\n cvc5_check_sat_assuming() query.\n @param result The result.\n @return True if result is from an unsatisfiable query."]
    #[link_name = "\u{1}cvc5_result_is_unsat"]
    pub fn result_is_unsat(result: Result) -> bool;
}
unsafe extern "C" {
    #[doc = " Determine if given result is from a `cvc5_check_sat()` or\n cvc5_check_sat_assuming() query and cvc5 was not able to determine\n (un)satisfiability.\n @param result The result.\n @return True if result is from a query where cvc5 was not able to determine\n         (un)satisfiability."]
    #[link_name = "\u{1}cvc5_result_is_unknown"]
    pub fn result_is_unknown(result: Result) -> bool;
}
unsafe extern "C" {
    #[doc = " Determine equality of two results.\n @param a The first result to compare to for equality.\n @param b The second result to compare to for equality.\n @return True if the results are equal."]
    #[link_name = "\u{1}cvc5_result_is_equal"]
    pub fn result_is_equal(a: Result, b: Result) -> bool;
}
unsafe extern "C" {
    #[doc = " Operator overloading for disequality of two results.\n @param a The first result to compare to for disequality.\n @param b The second result to compare to for disequality.\n @return True if the results are disequal."]
    #[link_name = "\u{1}cvc5_result_is_disequal"]
    pub fn result_is_disequal(a: Result, b: Result) -> bool;
}
unsafe extern "C" {
    #[doc = " Get the explanation for an unknown result.\n @param result The result.\n @return An explanation for an unknown query result."]
    #[link_name = "\u{1}cvc5_result_get_unknown_explanation"]
    pub fn result_get_unknown_explanation(result: Result) -> UnknownExplanation;
}
unsafe extern "C" {
    #[doc = " Get the string representation of a given result.\n @param result The result.\n @return The string representation.\n @note The returned char* pointer is only valid until the next call to this\n       function."]
    #[link_name = "\u{1}cvc5_result_to_string"]
    pub fn result_to_string(result: Result) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " Compute the hash value of a result.\n @param result The result.\n @return The hash value of the result."]
    #[link_name = "\u{1}cvc5_result_hash"]
    pub fn result_hash(result: Result) -> usize;
}
unsafe extern "C" {
    #[doc = " Determine if a given synthesis result is empty (a nullary result) and not an\n actual result returned from a synthesis query.\n @param result The result.\n @return True if the given result is a nullary result."]
    #[link_name = "\u{1}cvc5_synth_result_is_null"]
    pub fn synth_result_is_null(result: SynthResult) -> bool;
}
unsafe extern "C" {
    #[doc = " Determine if the given result is from a synthesis query that has a solution.\n @param result The result.\n @return True if the synthesis query has a solution."]
    #[link_name = "\u{1}cvc5_synth_result_has_solution"]
    pub fn synth_result_has_solution(result: SynthResult) -> bool;
}
unsafe extern "C" {
    #[doc = " Determine if the given result is from a synthesis query that has no solution.\n @param result The result.\n @return True if the synthesis query has no solution. In this case, it\n         was determined that there was no solution."]
    #[link_name = "\u{1}cvc5_synth_result_has_no_solution"]
    pub fn synth_result_has_no_solution(result: SynthResult) -> bool;
}
unsafe extern "C" {
    #[doc = " Determine if the given result is from a synthesis query where its result\n could not be determined.\n @param result The result.\n @return True if the result of the synthesis query could not be determined."]
    #[link_name = "\u{1}cvc5_synth_result_is_unknown"]
    pub fn synth_result_is_unknown(result: SynthResult) -> bool;
}
unsafe extern "C" {
    #[doc = " Determine equality of two synthesis results.\n @param a The first synthesis result to compare to for equality.\n @param b The second synthesis result to compare to for equality.\n @return True if the synthesis results are equal."]
    #[link_name = "\u{1}cvc5_synth_result_is_equal"]
    pub fn synth_result_is_equal(a: SynthResult, b: SynthResult) -> bool;
}
unsafe extern "C" {
    #[doc = " Operator overloading for disequality of two synthesis results.\n @param a The first synthesis result to compare to for disequality.\n @param b The second synthesis result to compare to for disequality.\n @return True if the synthesis results are disequal."]
    #[link_name = "\u{1}cvc5_synth_result_is_disequal"]
    pub fn synth_result_is_disequal(a: SynthResult, b: SynthResult) -> bool;
}
unsafe extern "C" {
    #[doc = " Get the string representation of a given result.\n @param result The result.\n @return A string representation of the given synthesis result.\n @note The returned char* pointer is only valid until the next call to this\n       function."]
    #[link_name = "\u{1}cvc5_synth_result_to_string"]
    pub fn synth_result_to_string(result: SynthResult) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " Compute the hash value of a synthesis result.\n @param result The synthesis result.\n @return The hash value of the synthesis result."]
    #[link_name = "\u{1}cvc5_synth_result_hash"]
    pub fn synth_result_hash(result: SynthResult) -> usize;
}
unsafe extern "C" {
    #[doc = " Make copy of synthesis result, increases reference counter of `result`.\n\n @param result The synthesis  result to copy.\n @return The same result with its reference count increased by one.\n\n @note This step is optional and allows users to manage resources in a more\n       fine-grained manner."]
    #[link_name = "\u{1}cvc5_synth_result_copy"]
    pub fn synth_result_copy(result: SynthResult) -> SynthResult;
}
unsafe extern "C" {
    #[doc = " Release copy of synthesis result, decrements reference counter of `result`.\n\n @param result The result to release.\n\n @note This step is optional and allows users to release resources in a more\n       fine-grained manner. Further, any API function that returns a copy\n       that is owned by the callee of the function and thus, can be released."]
    #[link_name = "\u{1}cvc5_synth_result_release"]
    pub fn synth_result_release(result: SynthResult);
}
unsafe extern "C" {
    #[doc = " Make copy of sort, increases reference counter of `sort`.\n\n @param sort The sort to copy.\n @return The same sort with its reference count increased by one.\n\n @note This step is optional and allows users to manage resources in a more\n       fine-grained manner."]
    #[link_name = "\u{1}cvc5_sort_copy"]
    pub fn sort_copy(sort: Sort) -> Sort;
}
unsafe extern "C" {
    #[doc = " Release copy of sort, decrements reference counter of `sort`.\n\n @param sort The sort to release.\n\n @note This step is optional and allows users to release resources in a more\n       fine-grained manner. Further, any API function that returns a\n       Cvc5Sort returns a copy that is owned by the callee of the function\n       and thus, can be released."]
    #[link_name = "\u{1}cvc5_sort_release"]
    pub fn sort_release(sort: Sort);
}
unsafe extern "C" {
    #[doc = " Compare two sorts for structural equality.\n @param a The first sort.\n @param b The second sort.\n @return True if the sorts are equal."]
    #[link_name = "\u{1}cvc5_sort_is_equal"]
    pub fn sort_is_equal(a: Sort, b: Sort) -> bool;
}
unsafe extern "C" {
    #[doc = " Compare two sorts for structural disequality.\n @param a The first sort.\n @param b The second sort.\n @return True if the sorts are not equal."]
    #[link_name = "\u{1}cvc5_sort_is_disequal"]
    pub fn sort_is_disequal(a: Sort, b: Sort) -> bool;
}
unsafe extern "C" {
    #[doc = " Compare two sorts for ordering.\n @param a The first sort.\n @param b The second sort.\n @return An integer value indicating the ordering: 0 if both sorts are equal,\n         `-1` if `a < b`, and `1` if `b > a`."]
    #[link_name = "\u{1}cvc5_sort_compare"]
    pub fn sort_compare(a: Sort, b: Sort) -> i64;
}
unsafe extern "C" {
    #[doc = " Get the kind of the given sort.\n @param sort The sort.\n @return The kind of the sort.\n\n @warning This function is experimental and may change in future versions."]
    #[link_name = "\u{1}cvc5_sort_get_kind"]
    pub fn sort_get_kind(sort: Sort) -> SortKind;
}
unsafe extern "C" {
    #[doc = " Determine if the given sort has a symbol (a name).\n\n For example, uninterpreted sorts and uninterpreted sort constructors have\n symbols.\n\n @param sort The sort.\n @return True if the sort has a symbol."]
    #[link_name = "\u{1}cvc5_sort_has_symbol"]
    pub fn sort_has_symbol(sort: Sort) -> bool;
}
unsafe extern "C" {
    #[doc = " Get the symbol of this Sort.\n\n @note Asserts cvc5_sort_has_symbol().\n\n The symbol of this sort is the string that was\n provided when constructing it via\n cvc5_mk_uninterpreted_sort(),\n cvc5_mk_unresolved_sort(), or\n cvc5_mk_uninterpreted_sort_constructor_sort().\n\n @param sort The sort.\n @return The raw symbol of the sort.\n @note The returned char* pointer is only valid until the next call to this\n       function."]
    #[link_name = "\u{1}cvc5_sort_get_symbol"]
    pub fn sort_get_symbol(sort: Sort) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " Determine if given sort is the Boolean sort (SMT-LIB: `Bool`).\n @param sort The sort.\n @return True if given sort is the Boolean sort."]
    #[link_name = "\u{1}cvc5_sort_is_boolean"]
    pub fn sort_is_boolean(sort: Sort) -> bool;
}
unsafe extern "C" {
    #[doc = " Determine if given sort is the integer sort (SMT-LIB: `Int`).\n @param sort The sort.\n @return True if given sort is the integer sort."]
    #[link_name = "\u{1}cvc5_sort_is_integer"]
    pub fn sort_is_integer(sort: Sort) -> bool;
}
unsafe extern "C" {
    #[doc = " Determine if given sort is the real sort (SMT-LIB: `Real`).\n @param sort The sort.\n @return True if given sort is the real sort."]
    #[link_name = "\u{1}cvc5_sort_is_real"]
    pub fn sort_is_real(sort: Sort) -> bool;
}
unsafe extern "C" {
    #[doc = " Determine if given sort is the string sort (SMT-LIB: `String`).\n @param sort The sort.\n @return True if given sort is the string sort."]
    #[link_name = "\u{1}cvc5_sort_is_string"]
    pub fn sort_is_string(sort: Sort) -> bool;
}
unsafe extern "C" {
    #[doc = " Determine if given sort is the regular expression sort (SMT-LIB: `RegLan`).\n @param sort The sort.\n @return True if given sort is the regular expression sort."]
    #[link_name = "\u{1}cvc5_sort_is_regexp"]
    pub fn sort_is_regexp(sort: Sort) -> bool;
}
unsafe extern "C" {
    #[doc = " Determine if given sort is the rounding mode sort\n (SMT-LIB: `Cvc5RoundingMode`).\n @param sort The sort.\n @return True if given sort is the rounding mode sort."]
    #[link_name = "\u{1}cvc5_sort_is_rm"]
    pub fn sort_is_rm(sort: Sort) -> bool;
}
unsafe extern "C" {
    #[doc = " Determine if given sort is a bit-vector sort (SMT-LIB: `(_ BitVec i)`).\n @param sort The sort.\n @return True if given sort is a bit-vector sort."]
    #[link_name = "\u{1}cvc5_sort_is_bv"]
    pub fn sort_is_bv(sort: Sort) -> bool;
}
unsafe extern "C" {
    #[doc = " Determine if given sort is a floatingpoint sort\n (SMT-LIB: `(_ FloatingPoint eb sb)`).\n @param sort The sort.\n @return True if given sort is a floating-point sort."]
    #[link_name = "\u{1}cvc5_sort_is_fp"]
    pub fn sort_is_fp(sort: Sort) -> bool;
}
unsafe extern "C" {
    #[doc = " Determine if given sort is a datatype sort.\n @param sort The sort.\n @return True if given sort is a datatype sort."]
    #[link_name = "\u{1}cvc5_sort_is_dt"]
    pub fn sort_is_dt(sort: Sort) -> bool;
}
unsafe extern "C" {
    #[doc = " Determine if given sort is a datatype constructor sort.\n @param sort The sort.\n @return True if given sort is a datatype constructor sort."]
    #[link_name = "\u{1}cvc5_sort_is_dt_constructor"]
    pub fn sort_is_dt_constructor(sort: Sort) -> bool;
}
unsafe extern "C" {
    #[doc = " Determine if given sort is a datatype selector sort.\n @param sort The sort.\n @return True if given sort is a datatype selector sort."]
    #[link_name = "\u{1}cvc5_sort_is_dt_selector"]
    pub fn sort_is_dt_selector(sort: Sort) -> bool;
}
unsafe extern "C" {
    #[doc = " Determine if given sort is a datatype tester sort.\n @param sort The sort.\n @return True if given sort is a datatype tester sort."]
    #[link_name = "\u{1}cvc5_sort_is_dt_tester"]
    pub fn sort_is_dt_tester(sort: Sort) -> bool;
}
unsafe extern "C" {
    #[doc = " Determine if given sort is a datatype updater sort.\n @param sort The sort.\n @return True if given sort is a datatype updater sort."]
    #[link_name = "\u{1}cvc5_sort_is_dt_updater"]
    pub fn sort_is_dt_updater(sort: Sort) -> bool;
}
unsafe extern "C" {
    #[doc = " Determine if given sort is a function sort.\n @param sort The sort.\n @return True if given sort is a function sort."]
    #[link_name = "\u{1}cvc5_sort_is_fun"]
    pub fn sort_is_fun(sort: Sort) -> bool;
}
unsafe extern "C" {
    #[doc = " Determine if given sort is a predicate sort.\n\n A predicate sort is a function sort that maps to the Boolean sort. All\n predicate sorts are also function sorts.\n\n @param sort The sort.\n @return True if given sort is a predicate sort."]
    #[link_name = "\u{1}cvc5_sort_is_predicate"]
    pub fn sort_is_predicate(sort: Sort) -> bool;
}
unsafe extern "C" {
    #[doc = " Determine if given sort is a tuple sort.\n @param sort The sort.\n @return True if given sort is a tuple sort."]
    #[link_name = "\u{1}cvc5_sort_is_tuple"]
    pub fn sort_is_tuple(sort: Sort) -> bool;
}
unsafe extern "C" {
    #[doc = " Determine if given sort is a nullable sort.\n @param sort The sort.\n @return True if given sort is a nullable sort."]
    #[link_name = "\u{1}cvc5_sort_is_nullable"]
    pub fn sort_is_nullable(sort: Sort) -> bool;
}
unsafe extern "C" {
    #[doc = " Determine if given sort is a record sort.\n @warning This function is experimental and may change in future versions.\n @param sort The sort.\n @return True if the sort is a record sort."]
    #[link_name = "\u{1}cvc5_sort_is_record"]
    pub fn sort_is_record(sort: Sort) -> bool;
}
unsafe extern "C" {
    #[doc = " Determine if given sort is an array sort.\n @param sort The sort.\n @return True if the sort is an array sort."]
    #[link_name = "\u{1}cvc5_sort_is_array"]
    pub fn sort_is_array(sort: Sort) -> bool;
}
unsafe extern "C" {
    #[doc = " Determine if given sort is a finite field sort.\n @param sort The sort.\n @return True if the sort is a finite field sort."]
    #[link_name = "\u{1}cvc5_sort_is_ff"]
    pub fn sort_is_ff(sort: Sort) -> bool;
}
unsafe extern "C" {
    #[doc = " Determine if given sort is a Set sort.\n @param sort The sort.\n @return True if the sort is a Set sort."]
    #[link_name = "\u{1}cvc5_sort_is_set"]
    pub fn sort_is_set(sort: Sort) -> bool;
}
unsafe extern "C" {
    #[doc = " Determine if given sort is a Bag sort.\n @param sort The sort.\n @return True if the sort is a Bag sort."]
    #[link_name = "\u{1}cvc5_sort_is_bag"]
    pub fn sort_is_bag(sort: Sort) -> bool;
}
unsafe extern "C" {
    #[doc = " Determine if given sort is a Sequence sort.\n @param sort The sort.\n @return True if the sort is a Sequence sort."]
    #[link_name = "\u{1}cvc5_sort_is_sequence"]
    pub fn sort_is_sequence(sort: Sort) -> bool;
}
unsafe extern "C" {
    #[doc = " Determine if given sort is an abstract sort.\n @param sort The sort.\n @return True if the sort is a abstract sort.\n\n @warning This function is experimental and may change in future versions."]
    #[link_name = "\u{1}cvc5_sort_is_abstract"]
    pub fn sort_is_abstract(sort: Sort) -> bool;
}
unsafe extern "C" {
    #[doc = " Determine if given sort is an uninterpreted sort.\n @param sort The sort.\n @return True if given sort is an uninterpreted sort."]
    #[link_name = "\u{1}cvc5_sort_is_uninterpreted_sort"]
    pub fn sort_is_uninterpreted_sort(sort: Sort) -> bool;
}
unsafe extern "C" {
    #[doc = " Determine if given sort is an uninterpreted sort constructor.\n\n An uninterpreted sort constructor has arity > 0 and can be instantiated to\n construct uninterpreted sorts with given sort parameters.\n\n @param sort The sort.\n @return True if given sort is of sort constructor kind."]
    #[link_name = "\u{1}cvc5_sort_is_uninterpreted_sort_constructor"]
    pub fn sort_is_uninterpreted_sort_constructor(sort: Sort) -> bool;
}
unsafe extern "C" {
    #[doc = " Determine if given sort is an instantiated (parametric datatype or\n uninterpreted sort constructor) sort.\n\n An instantiated sort is a sort that has been constructed from\n instantiating a sort with sort arguments (see cvc5_sort_instantiate().\n\n @param sort The sort.\n @return True if given sort is an instantiated sort."]
    #[link_name = "\u{1}cvc5_sort_is_instantiated"]
    pub fn sort_is_instantiated(sort: Sort) -> bool;
}
unsafe extern "C" {
    #[doc = " Get the associated uninterpreted sort constructor of an instantiated\n uninterpreted sort.\n\n @param sort The sort.\n @return The uninterpreted sort constructor sort."]
    #[link_name = "\u{1}cvc5_sort_get_uninterpreted_sort_constructor"]
    pub fn sort_get_uninterpreted_sort_constructor(sort: Sort) -> Sort;
}
unsafe extern "C" {
    #[doc = " Get the underlying datatype of a datatype sort.\n @param sort The sort.\n @return The underlying datatype of a datatype sort."]
    #[link_name = "\u{1}cvc5_sort_get_datatype"]
    pub fn sort_get_datatype(sort: Sort) -> Datatype;
}
unsafe extern "C" {
    #[doc = " Instantiate a parameterized datatype sort or uninterpreted sort\n constructor sort.\n\n Create sort parameters with cvc5_mk_param_sort().\n\n @param sort   The sort to instantiate.\n @param size   The number of sort parameters to instantiate with.\n @param params The list of sort parameters to instantiate with.\n @return The instantiated sort."]
    #[link_name = "\u{1}cvc5_sort_instantiate"]
    pub fn sort_instantiate(sort: Sort, size: usize, params: *const Sort) -> Sort;
}
unsafe extern "C" {
    #[doc = " Get the sorts used to instantiate the sort parameters of a given parametric\n sort (parametric datatype or uninterpreted sort constructor sort,\n see cvc5_sort_instantiate();\n\n @param sort The sort.\n @param size The size of the resulting array of sorts.\n @return The sorts used to instantiate the sort parameters of a\n         parametric sort"]
    #[link_name = "\u{1}cvc5_sort_get_instantiated_parameters"]
    pub fn sort_get_instantiated_parameters(sort: Sort, size: *mut usize) -> *const Sort;
}
unsafe extern "C" {
    #[doc = " Substitution of Sorts.\n\n Note that this replacement is applied during a pre-order traversal and\n only once to the sort. It is not run until fix point.\n\n For example,\n `(Array A B).substitute({A, C}, {(Array C D), (Array A B)})` will\n return `(Array (Array C D) B)`.\n\n @warning This function is experimental and may change in future versions.\n\n @param sort The sort.\n @param s    The subsort to be substituted within the given sort.\n @param replacement The sort replacing the substituted subsort."]
    #[link_name = "\u{1}cvc5_sort_substitute"]
    pub fn sort_substitute(sort: Sort, s: Sort, replacement: Sort) -> Sort;
}
unsafe extern "C" {
    #[doc = " Simultaneous substitution of Sorts.\n\n Note that this replacement is applied during a pre-order traversal and\n only once to the sort. It is not run until fix point. In the case that\n sorts contains duplicates, the replacement earliest in the vector takes\n priority.\n\n @warning This function is experimental and may change in future versions.\n\n @param sort The sort.\n @param sorts The subsorts to be substituted within the given sort.\n @param replacements The sort replacing the substituted subsorts.\n @param size The size of `sorts` and `replacements`."]
    #[link_name = "\u{1}cvc5_sort_substitute_sorts"]
    pub fn sort_substitute_sorts(
        sort: Sort,
        size: usize,
        sorts: *const Sort,
        replacements: *const Sort,
    ) -> Sort;
}
unsafe extern "C" {
    #[doc = " Get a string representation of a given sort.\n @param sort The sort.\n @return A string representation of the given sort.\n @note The returned char* pointer is only valid until the next call to this\n       function."]
    #[link_name = "\u{1}cvc5_sort_to_string"]
    pub fn sort_to_string(sort: Sort) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " Compute the hash value of a sort.\n @param sort The sort.\n @return The hash value of the sort."]
    #[link_name = "\u{1}cvc5_sort_hash"]
    pub fn sort_hash(sort: Sort) -> usize;
}
unsafe extern "C" {
    #[doc = " Get the arity of a datatype constructor sort.\n @param sort The sort.\n @return The arity of a datatype constructor sort."]
    #[link_name = "\u{1}cvc5_sort_dt_constructor_get_arity"]
    pub fn sort_dt_constructor_get_arity(sort: Sort) -> usize;
}
unsafe extern "C" {
    #[doc = " Get the domain sorts of a datatype constructor sort.\n @param sort The sort.\n @param size The size of the resulting array of domain sorts.\n @return The domain sorts of a datatype constructor sort."]
    #[link_name = "\u{1}cvc5_sort_dt_constructor_get_domain"]
    pub fn sort_dt_constructor_get_domain(sort: Sort, size: *mut usize) -> *const Sort;
}
unsafe extern "C" {
    #[doc = " Get the codomain sort of a datatype constructor sort.\n @param sort The sort.\n @return The codomain sort of a constructor sort."]
    #[link_name = "\u{1}cvc5_sort_dt_constructor_get_codomain"]
    pub fn sort_dt_constructor_get_codomain(sort: Sort) -> Sort;
}
unsafe extern "C" {
    #[doc = " Get the domain sort of a given datatype selector sort.\n @param sort The sort.\n @return The domain sort of a datatype selector sort."]
    #[link_name = "\u{1}cvc5_sort_dt_selector_get_domain"]
    pub fn sort_dt_selector_get_domain(sort: Sort) -> Sort;
}
unsafe extern "C" {
    #[doc = " Get the codomain sort of a given datatype selector sort.\n @param sort The sort.\n @return The codomain sort of a datatype selector sort."]
    #[link_name = "\u{1}cvc5_sort_dt_selector_get_codomain"]
    pub fn sort_dt_selector_get_codomain(sort: Sort) -> Sort;
}
unsafe extern "C" {
    #[doc = " Get the domain sort of a given datatype tester sort.\n @param sort The sort.\n @return The domain sort of a datatype tester sort."]
    #[link_name = "\u{1}cvc5_sort_dt_tester_get_domain"]
    pub fn sort_dt_tester_get_domain(sort: Sort) -> Sort;
}
unsafe extern "C" {
    #[doc = " Get the codomain dort of a given datatype tester sort (the Boolean sort).\n @param sort The sort.\n @return The codomain sort of a datatype tester sort.\n\n @note We mainly need this for the symbol table, which doesn't have\n       access to the solver object."]
    #[link_name = "\u{1}cvc5_sort_dt_tester_get_codomain"]
    pub fn sort_dt_tester_get_codomain(sort: Sort) -> Sort;
}
unsafe extern "C" {
    #[doc = " Get the aritye of a given function sort.\n @param sort The sort.\n @return The arity of a function sort."]
    #[link_name = "\u{1}cvc5_sort_fun_get_arity"]
    pub fn sort_fun_get_arity(sort: Sort) -> usize;
}
unsafe extern "C" {
    #[doc = " Get the domain of a given function sort.\n @param sort The sort.\n @param size The size of the resulting array of domain sorts.\n @return The domain sorts of a function sort."]
    #[link_name = "\u{1}cvc5_sort_fun_get_domain"]
    pub fn sort_fun_get_domain(sort: Sort, size: *mut usize) -> *const Sort;
}
unsafe extern "C" {
    #[doc = " Get the codomain of a given function sort.\n @param sort The sort.\n @return The codomain sort of a function sort."]
    #[link_name = "\u{1}cvc5_sort_fun_get_codomain"]
    pub fn sort_fun_get_codomain(sort: Sort) -> Sort;
}
unsafe extern "C" {
    #[doc = " Get the index sort of a given array sort.\n @param sort The sort.\n @return The array index sort of an array sort."]
    #[link_name = "\u{1}cvc5_sort_array_get_index_sort"]
    pub fn sort_array_get_index_sort(sort: Sort) -> Sort;
}
unsafe extern "C" {
    #[doc = " Get the element sort of a given array sort.\n @param sort The sort.\n @return The array element sort of an array sort."]
    #[link_name = "\u{1}cvc5_sort_array_get_element_sort"]
    pub fn sort_array_get_element_sort(sort: Sort) -> Sort;
}
unsafe extern "C" {
    #[doc = " Get the element sort of a given set sort.\n @param sort The sort.\n @return The element sort of a set sort."]
    #[link_name = "\u{1}cvc5_sort_set_get_element_sort"]
    pub fn sort_set_get_element_sort(sort: Sort) -> Sort;
}
unsafe extern "C" {
    #[doc = " Get the element sort of a given bag sort.\n @param sort The sort.\n @return The element sort of a bag sort."]
    #[link_name = "\u{1}cvc5_sort_bag_get_element_sort"]
    pub fn sort_bag_get_element_sort(sort: Sort) -> Sort;
}
unsafe extern "C" {
    #[doc = " Get the element sort of a sequence sort.\n @param sort The sort.\n @return The element sort of a sequence sort."]
    #[link_name = "\u{1}cvc5_sort_sequence_get_element_sort"]
    pub fn sort_sequence_get_element_sort(sort: Sort) -> Sort;
}
unsafe extern "C" {
    #[doc = " Get the kind of an abstract sort, which denotes the sort kinds that the\n abstract sort denotes.\n\n @param sort The sort.\n @return The kind of an abstract sort.\n\n @warning This function is experimental and may change in future versions."]
    #[link_name = "\u{1}cvc5_sort_abstract_get_kind"]
    pub fn sort_abstract_get_kind(sort: Sort) -> SortKind;
}
unsafe extern "C" {
    #[doc = " Get the arity of an uninterpreted sort constructor sort.\n @param sort The sort.\n @return The arity of an uninterpreted sort constructor sort."]
    #[link_name = "\u{1}cvc5_sort_uninterpreted_sort_constructor_get_arity"]
    pub fn sort_uninterpreted_sort_constructor_get_arity(sort: Sort) -> usize;
}
unsafe extern "C" {
    #[doc = " Get the size of a bit-vector sort.\n @param sort The sort.\n @return The bit-width of the bit-vector sort."]
    #[link_name = "\u{1}cvc5_sort_bv_get_size"]
    pub fn sort_bv_get_size(sort: Sort) -> u32;
}
unsafe extern "C" {
    #[doc = " Get the size of a finite field sort.\n @param sort The sort.\n @return The size of the finite field sort.\n @note The returned char* pointer is only valid until the next call to this\n       function."]
    #[link_name = "\u{1}cvc5_sort_ff_get_size"]
    pub fn sort_ff_get_size(sort: Sort) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " Get the exponent size of a floating-point sort.\n @param sort The sort.\n @return The bit-width of the exponent of the floating-point sort."]
    #[link_name = "\u{1}cvc5_sort_fp_get_exp_size"]
    pub fn sort_fp_get_exp_size(sort: Sort) -> u32;
}
unsafe extern "C" {
    #[doc = " Get the significand size of a floating-point sort.\n @param sort The sort.\n @return The width of the significand of the floating-point sort."]
    #[link_name = "\u{1}cvc5_sort_fp_get_sig_size"]
    pub fn sort_fp_get_sig_size(sort: Sort) -> u32;
}
unsafe extern "C" {
    #[doc = " Get the arity of a datatype sort, which is the number of type parameters\n if the datatype is parametric, or 0 otherwise.\n @param sort The sort.\n @return The arity of a datatype sort."]
    #[link_name = "\u{1}cvc5_sort_dt_get_arity"]
    pub fn sort_dt_get_arity(sort: Sort) -> usize;
}
unsafe extern "C" {
    #[doc = " Get the length of a tuple sort.\n @param sort The sort.\n @return The length of a tuple sort."]
    #[link_name = "\u{1}cvc5_sort_tuple_get_length"]
    pub fn sort_tuple_get_length(sort: Sort) -> usize;
}
unsafe extern "C" {
    #[doc = " Get the element sorts of a tuple sort.\n @param sort The sort.\n @param size The size of the resulting array of tuple element sorts.\n @return The element sorts of a tuple sort."]
    #[link_name = "\u{1}cvc5_sort_tuple_get_element_sorts"]
    pub fn sort_tuple_get_element_sorts(sort: Sort, size: *mut usize) -> *const Sort;
}
unsafe extern "C" {
    #[doc = " Get the element sort of a nullable sort.\n @param sort The sort.\n @return The element sort of a nullable sort."]
    #[link_name = "\u{1}cvc5_sort_nullable_get_element_sort"]
    pub fn sort_nullable_get_element_sort(sort: Sort) -> Sort;
}
unsafe extern "C" {
    #[doc = " Make copy of operator, increases reference counter of `op`.\n\n @param op The op to copy.\n @return The same op with its reference count increased by one.\n\n @note This step is optional and allows users to manage resources in a more\n       fine-grained manner."]
    #[link_name = "\u{1}cvc5_op_copy"]
    pub fn op_copy(op: Op) -> Op;
}
unsafe extern "C" {
    #[doc = " Release copy of operator, decrements reference counter of `op`.\n\n @param op The op to release.\n\n @note This step is optional and allows users to release resources in a more\n       fine-grained manner. Further, any API function that returns a\n       Cvc5Op returns a copy that is owned by the callee of the function\n       and thus, can be released."]
    #[link_name = "\u{1}cvc5_op_release"]
    pub fn op_release(op: Op);
}
unsafe extern "C" {
    #[doc = " Compare two operators for syntactic equality.\n\n @param a The first operator.\n @param b The second operator.\n @return True if both operators are syntactically identical."]
    #[link_name = "\u{1}cvc5_op_is_equal"]
    pub fn op_is_equal(a: Op, b: Op) -> bool;
}
unsafe extern "C" {
    #[doc = " Compare two operators for syntactic disequality.\n\n @param a The first operator.\n @param b The second operator.\n @return True if both operators are syntactically disequal."]
    #[link_name = "\u{1}cvc5_op_is_disequal"]
    pub fn op_is_disequal(a: Op, b: Op) -> bool;
}
unsafe extern "C" {
    #[doc = " Get the kind of a given operator.\n @param op The operator.\n @return The kind of the operator."]
    #[link_name = "\u{1}cvc5_op_get_kind"]
    pub fn op_get_kind(op: Op) -> Kind;
}
unsafe extern "C" {
    #[doc = " Determine if a given operator is indexed.\n @param op The operator.\n @return True iff the operator is indexed."]
    #[link_name = "\u{1}cvc5_op_is_indexed"]
    pub fn op_is_indexed(op: Op) -> bool;
}
unsafe extern "C" {
    #[doc = " Get the number of indices of a given operator.\n @param op The operator.\n @return The number of indices of the operator."]
    #[link_name = "\u{1}cvc5_op_get_num_indices"]
    pub fn op_get_num_indices(op: Op) -> usize;
}
unsafe extern "C" {
    #[doc = " Get the index at position `i` of an indexed operator.\n @param op The operator.\n @param i  The position of the index to return.\n @return The index at position i."]
    #[link_name = "\u{1}cvc5_op_get_index"]
    pub fn op_get_index(op: Op, i: usize) -> Term;
}
unsafe extern "C" {
    #[doc = " Get a string representation of a given operator.\n @param op The operator.\n @return A string representation of the operator.\n @note The returned char* pointer is only valid until the next call to this\n       function."]
    #[link_name = "\u{1}cvc5_op_to_string"]
    pub fn op_to_string(op: Op) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " Compute the hash value of an operator.\n @param op The operator.\n @return The hash value of the operator."]
    #[link_name = "\u{1}cvc5_op_hash"]
    pub fn op_hash(op: Op) -> usize;
}
unsafe extern "C" {
    #[doc = " Make copy of term, increases reference counter of `term`.\n\n @param term The term to copy.\n @return The same term with its reference count increased by one.\n\n @note This step is optional and allows users to manage resources in a more\n       fine-grained manner."]
    #[link_name = "\u{1}cvc5_term_copy"]
    pub fn term_copy(term: Term) -> Term;
}
unsafe extern "C" {
    #[doc = " Release copy of term, decrements reference counter of `term`.\n\n @param term The term to release.\n\n @note This step is optional and allows users to release resources in a more\n       fine-grained manner. Further, any API function that returns a copy\n       that is owned by the callee of the function and thus, can be released."]
    #[link_name = "\u{1}cvc5_term_release"]
    pub fn term_release(term: Term);
}
unsafe extern "C" {
    #[doc = " Compare two terms for syntactic equality.\n @param a The first term.\n @param b The second term.\n @return True if both term are syntactically identical."]
    #[link_name = "\u{1}cvc5_term_is_equal"]
    pub fn term_is_equal(a: Term, b: Term) -> bool;
}
unsafe extern "C" {
    #[doc = " Compare two terms for syntactic disequality.\n @param a The first term.\n @param b The second term.\n @return True if both term are syntactically disequal."]
    #[link_name = "\u{1}cvc5_term_is_disequal"]
    pub fn term_is_disequal(a: Term, b: Term) -> bool;
}
unsafe extern "C" {
    #[doc = " Compare two terms for ordering.\n @param a The first term.\n @param b The second term.\n @return An integer value indicating the ordering: 0 if both terms are equal,\n         `-1` if `a < b`, and `1` if `b > a`."]
    #[link_name = "\u{1}cvc5_term_compare"]
    pub fn term_compare(a: Term, b: Term) -> i64;
}
unsafe extern "C" {
    #[doc = " Get the number of children of a given term.\n @param term The term.\n @return The number of children of this term."]
    #[link_name = "\u{1}cvc5_term_get_num_children"]
    pub fn term_get_num_children(term: Term) -> usize;
}
unsafe extern "C" {
    #[doc = " Get the child term of a given term at a given index.\n @param term  The term.\n @param index The index of the child.\n @return The child term at the given index."]
    #[link_name = "\u{1}cvc5_term_get_child"]
    pub fn term_get_child(term: Term, index: usize) -> Term;
}
unsafe extern "C" {
    #[doc = " Get the id of a given term.\n @param term The term.\n @return The id of the term."]
    #[link_name = "\u{1}cvc5_term_get_id"]
    pub fn term_get_id(term: Term) -> u64;
}
unsafe extern "C" {
    #[doc = " Get the kind of a given term.\n @param term The term.\n @return The kind of the term."]
    #[link_name = "\u{1}cvc5_term_get_kind"]
    pub fn term_get_kind(term: Term) -> Kind;
}
unsafe extern "C" {
    #[doc = " Get the sort of a given term.\n @param term The term.\n @return The sort of the term."]
    #[link_name = "\u{1}cvc5_term_get_sort"]
    pub fn term_get_sort(term: Term) -> Sort;
}
unsafe extern "C" {
    #[doc = " Replace a given term `t` with term `replacement` in a given term.\n\n @param term        The term.\n @param t           The term to replace.\n @param replacement The term to replace it with.\n @return The result of replacing `term` with `replacement` in the term.\n\n @note This replacement is applied during a pre-order traversal and\n       only once (it is not run until fixed point)."]
    #[link_name = "\u{1}cvc5_term_substitute_term"]
    pub fn term_substitute_term(term: Term, t: Term, replacement: Term) -> Term;
}
unsafe extern "C" {
    #[doc = " Simultaneously replace given terms `terms` with terms `replacements` in a\n given term.\n\n In the case that `terms` contains duplicates, the replacement earliest in\n the vector takes priority. For example, calling substitute on `f(x,y)`\n with `terms = { x, z }`, `replacements = { g(z), w }` results in the term\n `f(g(z),y)`.\n\n @note Requires that `terms` and `replacements` are of equal size (they are\n       interpreted as 1 : 1 mapping).\n\n @note This replacement is applied during a pre-order traversal and\n       only once (it is not run until fixed point).\n\n @param term        The term.\n @param size         The size of `terms` and `replacements`.\n @param terms        The terms to replace.\n @param replacements The replacement terms.\n @return The result of simultaneously replacing `terms` with `replacements`\n         in the given term."]
    #[link_name = "\u{1}cvc5_term_substitute_terms"]
    pub fn term_substitute_terms(
        term: Term,
        size: usize,
        terms: *const Term,
        replacements: *const Term,
    ) -> Term;
}
unsafe extern "C" {
    #[doc = " Determine if a given term has an operator.\n @param term The term.\n @return True iff the term has an operator."]
    #[link_name = "\u{1}cvc5_term_has_op"]
    pub fn term_has_op(term: Term) -> bool;
}
unsafe extern "C" {
    #[doc = " Get the operator of a term with an operator.\n\n @note Requires that the term has an operator (see cvc5_term_has_op()).\n\n @param term        The term.\n @return The Op used to create the term."]
    #[link_name = "\u{1}cvc5_term_get_op"]
    pub fn term_get_op(term: Term) -> Op;
}
unsafe extern "C" {
    #[doc = " Determine if a given term has a symbol (a name).\n\n For example, free constants and variables have symbols.\n\n @param term The term.\n @return True if the term has a symbol."]
    #[link_name = "\u{1}cvc5_term_has_symbol"]
    pub fn term_has_symbol(term: Term) -> bool;
}
unsafe extern "C" {
    #[doc = " Get the symbol of a given term with a symbol.\n\n @note Requires that the term has a symbol (see cvc5_term_has_symbol()).\n\n The symbol of the term is the string that was\n provided when constructing it via cvc5_mk_const() or cvc5_mk_var().\n\n @param term The term.\n @return The raw symbol of the term.\n @note The returned char* pointer is only valid until the next call to this\n       function."]
    #[link_name = "\u{1}cvc5_term_get_symbol"]
    pub fn term_get_symbol(term: Term) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " Get a string representation of a given term.\n @param term The term.\n @return A string representation of the term.\n @note The returned char* pointer is only valid until the next call to this\n       function."]
    #[link_name = "\u{1}cvc5_term_to_string"]
    pub fn term_to_string(term: Term) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " Get the sign of a given integer or real value.\n @note Requires that given term is an integer or real value.\n @param term The value term.\n @return 0 if the term is zero, -1 if the term is a negative real or\n         integer value, 1 if the term is a positive real or integer value."]
    #[link_name = "\u{1}cvc5_term_get_real_or_integer_value_sign"]
    pub fn term_get_real_or_integer_value_sign(term: Term) -> i32;
}
unsafe extern "C" {
    #[doc = " Determine if a given term is an int32 value.\n @note This will return true for integer constants and real constants that\n       have integer value.\n @param term The term.\n @return True if the term is an integer value that fits within int32_t."]
    #[link_name = "\u{1}cvc5_term_is_int32_value"]
    pub fn term_is_int32_value(term: Term) -> bool;
}
unsafe extern "C" {
    #[doc = " Get the `int32_t` representation of a given integral value.\n @note Requires that the term is an int32 value (see\n       cvc5_term_is_int32_value()).\n @param term The term.\n @return The given term as `int32_t` value."]
    #[link_name = "\u{1}cvc5_term_get_int32_value"]
    pub fn term_get_int32_value(term: Term) -> i32;
}
unsafe extern "C" {
    #[doc = " Determine if a given term is an uint32 value.\n @note This will return true for integer constants and real constants that\n       have integral value.\n @return True if the term is an integral value and fits within uint32_t."]
    #[link_name = "\u{1}cvc5_term_is_uint32_value"]
    pub fn term_is_uint32_value(term: Term) -> bool;
}
unsafe extern "C" {
    #[doc = " Get the `uint32_t` representation of a given integral value.\n @note Requires that the term is an uint32 value (see\n       cvc5_term_is_uint32_value()).\n @param term The term.\n @return The term as `uint32_t` value."]
    #[link_name = "\u{1}cvc5_term_get_uint32_value"]
    pub fn term_get_uint32_value(term: Term) -> u32;
}
unsafe extern "C" {
    #[doc = " Determine if a given term is an int64 value.\n @note This will return true for integer constants and real constants that\n       have integral value.\n @param term The term.\n @return True if the term is an integral value that fits within int64_t."]
    #[link_name = "\u{1}cvc5_term_is_int64_value"]
    pub fn term_is_int64_value(term: Term) -> bool;
}
unsafe extern "C" {
    #[doc = " Get the `int64_t` representation of a given integral value.\n @note Requires that the term is an int64 value (see\n       cvc5_term_is_int64_value()).\n @param term The term.\n @return The term as `int64_t` value."]
    #[link_name = "\u{1}cvc5_term_get_int64_value"]
    pub fn term_get_int64_value(term: Term) -> i64;
}
unsafe extern "C" {
    #[doc = " Determine if a given term is an uint64 value.\n @note This will return true for integer constants and real constants that\n       have integral value.\n @param term The term.\n @return True if the term is an integral value that fits within uint64_t."]
    #[link_name = "\u{1}cvc5_term_is_uint64_value"]
    pub fn term_is_uint64_value(term: Term) -> bool;
}
unsafe extern "C" {
    #[doc = " Get the `uint64_t` representation of a given integral value.\n @note Requires that the term is an uint64 value (see\n       cvc5_term_is_uint64_value()).\n @param term The term.\n @return The term as `uint64_t` value."]
    #[link_name = "\u{1}cvc5_term_get_uint64_value"]
    pub fn term_get_uint64_value(term: Term) -> u64;
}
unsafe extern "C" {
    #[doc = " Determine if a given term is an integral value.\n @param term The term.\n @return True if the term is an integer constant or a real constant that\n         has an integral value."]
    #[link_name = "\u{1}cvc5_term_is_integer_value"]
    pub fn term_is_integer_value(term: Term) -> bool;
}
unsafe extern "C" {
    #[doc = " Get a string representation of a given integral value.\n @note Requires that the term is an integral value (see\n       cvc5_term_is_integer_value()).\n @param term The term.\n @return The integral term in (decimal) string representation.\n @note The returned char* pointer is only valid until the next call to this\n       function."]
    #[link_name = "\u{1}cvc5_term_get_integer_value"]
    pub fn term_get_integer_value(term: Term) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " Determine if a given term is a string value.\n @param term The term.\n @return True if the term is a string value."]
    #[link_name = "\u{1}cvc5_term_is_string_value"]
    pub fn term_is_string_value(term: Term) -> bool;
}
unsafe extern "C" {
    #[doc = " Get the native string representation of a string value.\n @note Requires that the term is a string value (see\n       cvc5_term_is_string_value()).\n @note This is not to be confused with cvc5_term_to_string(), which returns\n       some string representation of the term, whatever data it may hold.\n @param term The term.\n @return The string term as a native string value.\n\n @warning This function is deprecated and replaced by\n          cvc5_term_get_u32string_value(). It will be removed in a future\n          release."]
    #[link_name = "\u{1}cvc5_term_get_string_value"]
    pub fn term_get_string_value(term: Term) -> *const wchar_t;
}
unsafe extern "C" {
    #[doc = " Get the native UTF-32 string representation of a string value.\n @note Requires that the term is a string value (see\n       cvc5_term_is_string_value()).\n @note This is not to be confused with cvc5_term_to_string(), which returns\n       some string representation of the term, whatever data it may hold.\n @param term The term.\n @return The string term as a native UTF-32 string value."]
    #[link_name = "\u{1}cvc5_term_get_u32string_value"]
    pub fn term_get_u32string_value(term: Term) -> *const char32_t;
}
unsafe extern "C" {
    #[doc = " Determine if a given term is a rational value whose numerator fits into an\n int32 value and its denominator fits into a uint32 value.\n @param term The term.\n @return True if the term is a rational and its numerator and denominator\n         fit into 32 bit integer values."]
    #[link_name = "\u{1}cvc5_term_is_real32_value"]
    pub fn term_is_real32_value(term: Term) -> bool;
}
unsafe extern "C" {
    #[doc = " Get the 32 bit integer representations of the numerator and denominator of\n a rational value.\n @note Requires that the term is a rational value and its numerator and\n       denominator fit into 32 bit integer values (see\n       cvc5_term_is_real32_value()).\n @param term The term.\n @param num  The resulting int32_t representation of the numerator.\n @param den  The resulting uint32_t representation of the denominator."]
    #[link_name = "\u{1}cvc5_term_get_real32_value"]
    pub fn term_get_real32_value(term: Term, num: *mut i32, den: *mut u32);
}
unsafe extern "C" {
    #[doc = " Determine if a given term is a rational value whose numerator fits into an\n int64 value and its denominator fits into a uint64 value.\n @param term The term.\n @return True if the term is a rational value whose numerator and\n         denominator fit within int64_t and uint64_t, respectively."]
    #[link_name = "\u{1}cvc5_term_is_real64_value"]
    pub fn term_is_real64_value(term: Term) -> bool;
}
unsafe extern "C" {
    #[doc = " Get the 64 bit integer representations of the numerator and denominator of\n a rational value.\n @note Requires that the term is a rational value and its numerator and\n       denominator fit into 64 bit integer values (see\n       cvc5_term_is_real64_value()).\n @param term The term.\n @param num  The resulting int64_t representation of the numerator.\n @param den  The resulting uint64_t representation of the denominator."]
    #[link_name = "\u{1}cvc5_term_get_real64_value"]
    pub fn term_get_real64_value(term: Term, num: *mut i64, den: *mut u64);
}
unsafe extern "C" {
    #[doc = " Determine if a given term is a rational value.\n @note A term of kind PI is not considered to be a real value.\n @param term The term.\n @return True if the term is a rational value."]
    #[link_name = "\u{1}cvc5_term_is_real_value"]
    pub fn term_is_real_value(term: Term) -> bool;
}
unsafe extern "C" {
    #[doc = " Get a string representation of a given rational value.\n @note Requires that the term is a rational value (see\n       cvc5_term_is_real_value()).\n @param term The term.\n @return The representation of a rational value as a (rational) string.\n @note The returned char* pointer is only valid until the next call to this\n       function."]
    #[link_name = "\u{1}cvc5_term_get_real_value"]
    pub fn term_get_real_value(term: Term) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " Determine if a given term is a constant array.\n @param term The term.\n @return True if the term is a constant array."]
    #[link_name = "\u{1}cvc5_term_is_const_array"]
    pub fn term_is_const_array(term: Term) -> bool;
}
unsafe extern "C" {
    #[doc = " Determine the base (element stored at all indices) of a constant array.\n @note Requires that the term is a constant array (see isConstArray()).\n @param term The term.\n @return The base term."]
    #[link_name = "\u{1}cvc5_term_get_const_array_base"]
    pub fn term_get_const_array_base(term: Term) -> Term;
}
unsafe extern "C" {
    #[doc = " Determine if a given term is a Boolean value.\n @param term The term.\n @return True if the term is a Boolean value."]
    #[link_name = "\u{1}cvc5_term_is_boolean_value"]
    pub fn term_is_boolean_value(term: Term) -> bool;
}
unsafe extern "C" {
    #[doc = " Get the value of a Boolean term as a native Boolean value.\n @note Asserts cvc5_term_is_boolean_value().\n @param term The term.\n @return The representation of a Boolean value as a native Boolean value."]
    #[link_name = "\u{1}cvc5_term_get_boolean_value"]
    pub fn term_get_boolean_value(term: Term) -> bool;
}
unsafe extern "C" {
    #[doc = " Determine if a given term is a bit-vector value.\n @param term The term.\n @return True if the term is a bit-vector value."]
    #[link_name = "\u{1}cvc5_term_is_bv_value"]
    pub fn term_is_bv_value(term: Term) -> bool;
}
unsafe extern "C" {
    #[doc = " Get the string representation of a bit-vector value.\n @note Asserts cvc5_term_is_bv_value().\n @param term The term.\n @param base `2` for binary, `10` for decimal, and `16` for hexadecimal.\n @return The string representation of a bit-vector value.\n @note The returned char* pointer is only valid until the next call to this\n       function."]
    #[link_name = "\u{1}cvc5_term_get_bv_value"]
    pub fn term_get_bv_value(term: Term, base: u32) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " Determine if a given term is a finite field value.\n @param term The term.\n @return True if the term is a finite field value."]
    #[link_name = "\u{1}cvc5_term_is_ff_value"]
    pub fn term_is_ff_value(term: Term) -> bool;
}
unsafe extern "C" {
    #[doc = " Get the string representation of a finite field value (base 10).\n\n @note Asserts cvc5_term_is_ff_value().\n\n @note Uses the integer representative of smallest absolute value.\n\n @param term The term.\n @return The string representation of the integer representation of the\n         finite field value.\n @note The returned char* pointer is only valid until the next call to this\n       function."]
    #[link_name = "\u{1}cvc5_term_get_ff_value"]
    pub fn term_get_ff_value(term: Term) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " Determine if a given term is an uninterpreted sort value.\n @param term The term.\n @return True if the term is an abstract value."]
    #[link_name = "\u{1}cvc5_term_is_uninterpreted_sort_value"]
    pub fn term_is_uninterpreted_sort_value(term: Term) -> bool;
}
unsafe extern "C" {
    #[doc = " Get a string representation of an uninterpreted sort value.\n @note Asserts cvc5_term_is_uninterpreted_sort_value().\n @param term The term.\n @return The representation of an uninterpreted sort value as a string.\n @note The returned char* pointer is only valid until the next call to this\n       function."]
    #[link_name = "\u{1}cvc5_term_get_uninterpreted_sort_value"]
    pub fn term_get_uninterpreted_sort_value(term: Term) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " Determine if a given term is a tuple value.\n @param term The term.\n @return True if the term is a tuple value."]
    #[link_name = "\u{1}cvc5_term_is_tuple_value"]
    pub fn term_is_tuple_value(term: Term) -> bool;
}
unsafe extern "C" {
    #[doc = " Get a tuple value as an array of terms.\n @note Asserts cvc5_term_is_tuple_value().\n @param term The term.\n @param size The size of the resulting array.\n @return The representation of a tuple value as an array of terms."]
    #[link_name = "\u{1}cvc5_term_get_tuple_value"]
    pub fn term_get_tuple_value(term: Term, size: *mut usize) -> *const Term;
}
unsafe extern "C" {
    #[doc = " Determine if a given term is a floating-point rounding mode value.\n @param term The term.\n @return True if the term is a rounding mode value."]
    #[link_name = "\u{1}cvc5_term_is_rm_value"]
    pub fn term_is_rm_value(term: Term) -> bool;
}
unsafe extern "C" {
    #[doc = " Get the Cvc5RoundingMode value of a given rounding-mode value term.\n @note Asserts cvc5_term_is_rounding_mode_value().\n @param term The term.\n @return The floating-point rounding mode value of the term."]
    #[link_name = "\u{1}cvc5_term_get_rm_value"]
    pub fn term_get_rm_value(term: Term) -> RoundingMode;
}
unsafe extern "C" {
    #[doc = " Determine if a given term is a floating-point positive zero value\n (+zero).\n @param term The term.\n @return True if the term is the floating-point value for positive zero."]
    #[link_name = "\u{1}cvc5_term_is_fp_pos_zero"]
    pub fn term_is_fp_pos_zero(term: Term) -> bool;
}
unsafe extern "C" {
    #[doc = " Determine if a given term is a floating-point negative zero value (-zero).\n @param term The term.\n @return True if the term is the floating-point value for negative zero."]
    #[link_name = "\u{1}cvc5_term_is_fp_neg_zero"]
    pub fn term_is_fp_neg_zero(term: Term) -> bool;
}
unsafe extern "C" {
    #[doc = " Determine if a given term is a floating-point positive infinity value (+oo).\n @param term The term.\n @return True if the term is the floating-point value for positive.\n         infinity."]
    #[link_name = "\u{1}cvc5_term_is_fp_pos_inf"]
    pub fn term_is_fp_pos_inf(term: Term) -> bool;
}
unsafe extern "C" {
    #[doc = " Determine if a given term is a floating-point negative infinity value (-oo).\n @param term The term.\n @return True if the term is the floating-point value for negative.\n         infinity."]
    #[link_name = "\u{1}cvc5_term_is_fp_neg_inf"]
    pub fn term_is_fp_neg_inf(term: Term) -> bool;
}
unsafe extern "C" {
    #[doc = " Determine if a given term is a floating-point NaN value.\n @param term The term.\n @return True if the term is the floating-point value for not a number."]
    #[link_name = "\u{1}cvc5_term_is_fp_nan"]
    pub fn term_is_fp_nan(term: Term) -> bool;
}
unsafe extern "C" {
    #[doc = " Determine if a given term is a floating-point value.\n @param term The term.\n @return True if the term is a floating-point value."]
    #[link_name = "\u{1}cvc5_term_is_fp_value"]
    pub fn term_is_fp_value(term: Term) -> bool;
}
unsafe extern "C" {
    #[doc = " Get the representation of a floating-point value as its exponent width,\n significand width and a bit-vector value term.\n @note Asserts cvc5_term_is_fp_value().\n @param term The term.\n @param ew   The resulting exponent width.\n @param sw   The resulting significand width.\n @param val  The resulting bit-vector value term."]
    #[link_name = "\u{1}cvc5_term_get_fp_value"]
    pub fn term_get_fp_value(term: Term, ew: *mut u32, sw: *mut u32, val: *mut Term);
}
unsafe extern "C" {
    #[doc = " Determine if a given term is a set value.\n\n A term is a set value if it is considered to be a (canonical) constant set\n value.  A canonical set value is one whose AST is:\n\n \\verbatim embed:rst:leading-asterisk\n .. code:: smtlib\n\n     (union (singleton c1) ... (union (singleton c_{n-1}) (singleton c_n))))\n \\endverbatim\n\n where @f$c_1 ... c_n@f$ are values ordered by id such that\n @f$c_1 > ... > c_n@f$.\n\n @note A universe set term (kind #CVC5_KIND_SET_UNIVERSE) is not considered\n       to be a set value.\n\n @param term The term.\n @return True if the term is a set value."]
    #[link_name = "\u{1}cvc5_term_is_set_value"]
    pub fn term_is_set_value(term: Term) -> bool;
}
unsafe extern "C" {
    #[doc = " Get a set value as an array of terms.\n @note Asserts cvc5_term_is_set_value().\n @param term The term.\n @param size The size of the resulting array.\n @return The representation of a set value as an array of terms."]
    #[link_name = "\u{1}cvc5_term_get_set_value"]
    pub fn term_get_set_value(term: Term, size: *mut usize) -> *const Term;
}
unsafe extern "C" {
    #[doc = " Determine if a given term is a sequence value.\n\n A term is a sequence value if it has kind #CVC5_KIND_CONST_SEQUENCE. In\n contrast to values for the set sort (as described in isSetValue()), a\n sequence value is represented as a Term with no children.\n\n Semantically, a sequence value is a concatenation of unit sequences\n whose elements are themselves values. For example:\n\n \\verbatim embed:rst:leading-asterisk\n .. code:: smtlib\n\n     (seq.++ (seq.unit 0) (seq.unit 1))\n \\endverbatim\n\n The above term has two representations in Term. One is as the sequence\n concatenation term:\n\n \\rst\n .. code:: lisp\n\n     (SEQ_CONCAT (SEQ_UNIT 0) (SEQ_UNIT 1))\n \\endrst\n\n where 0 and 1 are the terms corresponding to the integer constants 0 and 1.\n\n Alternatively, the above term is represented as the constant sequence\n value:\n\n \\rst\n .. code:: lisp\n\n     CONST_SEQUENCE_{0,1}\n \\endrst\n\n where calling getSequenceValue() on the latter returns the vector `{0, 1}`.\n\n The former term is not a sequence value, but the latter term is.\n\n Constant sequences cannot be constructed directly via the API. They are\n returned in response to API calls such cvc5_get_value() and cvc5_simplify().\n\n @param term The term.\n @return True if the term is a sequence value."]
    #[link_name = "\u{1}cvc5_term_is_sequence_value"]
    pub fn term_is_sequence_value(term: Term) -> bool;
}
unsafe extern "C" {
    #[doc = " Get a sequence value as an array of terms.\n @note Asserts cvc5_term_is_sequence_value().\n @param term The term.\n @param size The size of the resulting array.\n @return The representation of a sequence value as a vector of terms."]
    #[link_name = "\u{1}cvc5_term_get_sequence_value"]
    pub fn term_get_sequence_value(term: Term, size: *mut usize) -> *const Term;
}
unsafe extern "C" {
    #[doc = " Determine if a given term is a cardinality constraint.\n @param term The term.\n @return True if the term is a cardinality constraint."]
    #[link_name = "\u{1}cvc5_term_is_cardinality_constraint"]
    pub fn term_is_cardinality_constraint(term: Term) -> bool;
}
unsafe extern "C" {
    #[doc = " Get a cardinality constraint as a pair of its sort and upper bound.\n @note Asserts cvc5_term_is_cardinality_constraint().\n @param term  The term.\n @param sort  The resulting sort.\n @param upper The resulting upper bound."]
    #[link_name = "\u{1}cvc5_term_get_cardinality_constraint"]
    pub fn term_get_cardinality_constraint(term: Term, sort: *mut Sort, upper: *mut u32);
}
unsafe extern "C" {
    #[doc = " Determine if a given term is a real algebraic number.\n @param term  The term.\n @return True if the term is a real algebraic number."]
    #[link_name = "\u{1}cvc5_term_is_real_algebraic_number"]
    pub fn term_is_real_algebraic_number(term: Term) -> bool;
}
unsafe extern "C" {
    #[doc = " Get the defining polynomial for a real algebraic number term, expressed in\n terms of the given variable.\n @note Asserts cvc5_term_is_real_algebraic_number().\n @param term The real algebraic number term.\n @param v    The variable over which to express the polynomial.\n @return The defining polynomial."]
    #[link_name = "\u{1}cvc5_term_get_real_algebraic_number_defining_polynomial"]
    pub fn term_get_real_algebraic_number_defining_polynomial(term: Term, v: Term) -> Term;
}
unsafe extern "C" {
    #[doc = " Get the lower bound for a real algebraic number value.\n @note Asserts cvc5_term_is_real_algebraic_number().\n @param term The real algebraic number value.\n @return The lower bound."]
    #[link_name = "\u{1}cvc5_term_get_real_algebraic_number_lower_bound"]
    pub fn term_get_real_algebraic_number_lower_bound(term: Term) -> Term;
}
unsafe extern "C" {
    #[doc = " Get the upper bound for a real algebraic number value.\n @note Asserts cvc5_term_is_real_algebraic_number().\n @param term The real algebraic number value.\n @return The upper bound."]
    #[link_name = "\u{1}cvc5_term_get_real_algebraic_number_upper_bound"]
    pub fn term_get_real_algebraic_number_upper_bound(term: Term) -> Term;
}
unsafe extern "C" {
    #[doc = " Is the given term a skolem?\n @warning This function is experimental and may change in future versions.\n @param term The skolem.\n @return True if the term is a skolem function."]
    #[link_name = "\u{1}cvc5_term_is_skolem"]
    pub fn term_is_skolem(term: Term) -> bool;
}
unsafe extern "C" {
    #[doc = " Get skolem identifier of a term.\n @note Asserts isSkolem().\n @warning This function is experimental and may change in future versions.\n @param term The skolem.\n @return The skolem identifier of the term."]
    #[link_name = "\u{1}cvc5_term_get_skolem_id"]
    pub fn term_get_skolem_id(term: Term) -> SkolemId;
}
unsafe extern "C" {
    #[doc = " Get the skolem indices of a term.\n @note Asserts isSkolem().\n @warning This function is experimental and may change in future versions.\n @param term The skolem.\n @param size The size of the resulting array.\n @return The skolem indices of the term. This is list of terms that the\n         skolem function is indexed by. For example, the array diff skolem\n         `Cvc5SkolemId::ARRAY_DEQ_DIFF` is indexed by two arrays."]
    #[link_name = "\u{1}cvc5_term_get_skolem_indices"]
    pub fn term_get_skolem_indices(term: Term, size: *mut usize) -> *const Term;
}
unsafe extern "C" {
    #[doc = " Compute the hash value of a term.\n @param term The term.\n @return The hash value of the term."]
    #[link_name = "\u{1}cvc5_term_hash"]
    pub fn term_hash(term: Term) -> usize;
}
unsafe extern "C" {
    #[doc = " Make copy of datatype constructor declaration, increases reference counter\n of `decl`.\n\n @param decl The datatype constructor declaration to copy.\n @return The same datatype constructor declaration with its reference count\n         increased by one.\n\n @note This step is optional and allows users to manage resources in a more\n       fine-grained manner."]
    #[link_name = "\u{1}cvc5_dt_cons_decl_copy"]
    pub fn dt_cons_decl_copy(decl: DatatypeConstructorDecl) -> DatatypeConstructorDecl;
}
unsafe extern "C" {
    #[doc = " Release copy of datatype constructor declaration, decrements reference\n counter of `decl`.\n\n @param decl The datatype constructor declaration to release.\n\n @note This step is optional and allows users to release resources in a more\n       fine-grained manner. Further, any API function that returns a\n       Cvc5DatatypeConstructorDecl returns a copy that is owned by the callee\n       of the function and thus, can be released."]
    #[link_name = "\u{1}cvc5_dt_cons_decl_release"]
    pub fn dt_cons_decl_release(decl: DatatypeConstructorDecl);
}
unsafe extern "C" {
    #[doc = " Compare two datatype constructor declarations for structural equality.\n @param a The first datatype constructor declaration.\n @param b The second datatype constructor declaration.\n @return True if the datatype constructor declarations are equal."]
    #[link_name = "\u{1}cvc5_dt_cons_decl_is_equal"]
    pub fn dt_cons_decl_is_equal(a: DatatypeConstructorDecl, b: DatatypeConstructorDecl) -> bool;
}
unsafe extern "C" {
    #[doc = " Add datatype selector declaration to a given constructor declaration.\n @param decl The datatype constructor declaration.\n @param name The name of the datatype selector declaration to add.\n @param sort The codomain sort of the datatype selector declaration to add."]
    #[link_name = "\u{1}cvc5_dt_cons_decl_add_selector"]
    pub fn dt_cons_decl_add_selector(
        decl: DatatypeConstructorDecl,
        name: *const ::std::os::raw::c_char,
        sort: Sort,
    );
}
unsafe extern "C" {
    #[doc = " Add datatype selector declaration whose codomain type is the datatype\n itself to a given constructor declaration.\n @param decl The datatype constructor declaration.\n @param name The name of the datatype selector declaration to add."]
    #[link_name = "\u{1}cvc5_dt_cons_decl_add_selector_self"]
    pub fn dt_cons_decl_add_selector_self(
        decl: DatatypeConstructorDecl,
        name: *const ::std::os::raw::c_char,
    );
}
unsafe extern "C" {
    #[doc = " Add datatype selector declaration whose codomain sort is an unresolved\n datatype with the given name to a given constructor declaration.\n @param decl       The datatype constructor declaration.\n @param name       The name of the datatype selector declaration to add.\n @param unres_name The name of the unresolved datatype. The codomain of the\n                   selector will be the resolved datatype with the given name."]
    #[link_name = "\u{1}cvc5_dt_cons_decl_add_selector_unresolved"]
    pub fn dt_cons_decl_add_selector_unresolved(
        decl: DatatypeConstructorDecl,
        name: *const ::std::os::raw::c_char,
        unres_name: *const ::std::os::raw::c_char,
    );
}
unsafe extern "C" {
    #[doc = " Get a string representation of a given constructor declaration.\n @param decl The datatype constructor declaration.\n @return The string representation.\n @note The returned char* pointer is only valid until the next call to this\n       function."]
    #[link_name = "\u{1}cvc5_dt_cons_decl_to_string"]
    pub fn dt_cons_decl_to_string(decl: DatatypeConstructorDecl) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " Compute the hash value of a datatype constructor declaration.\n @param decl The datatype constructor declaration.\n @return The hash value of the datatype constructor declaration."]
    #[link_name = "\u{1}cvc5_dt_cons_decl_hash"]
    pub fn dt_cons_decl_hash(decl: DatatypeConstructorDecl) -> usize;
}
unsafe extern "C" {
    #[doc = " Make copy of datatype declaration, increases reference counter of `decl`.\n\n @param decl The datatype declaration to copy.\n @return The same datatype declarationwith its reference count increased by\n         one.\n\n @note This step is optional and allows users to manage resources in a more\n       fine-grained manner."]
    #[link_name = "\u{1}cvc5_dt_decl_copy"]
    pub fn dt_decl_copy(decl: DatatypeDecl) -> DatatypeDecl;
}
unsafe extern "C" {
    #[doc = " Release copy of datatype declaration, decrements reference counter of `decl`.\n\n @param decl The datatype declaration to release.\n\n @note This step is optional and allows users to release resources in a more\n       fine-grained manner. Further, any API function that returns a\n       Cvc5DatatypeDecl returns a copy that is owned by the callee of the\n       function and thus, can be released."]
    #[link_name = "\u{1}cvc5_dt_decl_release"]
    pub fn dt_decl_release(decl: DatatypeDecl);
}
unsafe extern "C" {
    #[doc = " Compare two datatype declarations for structural equality.\n @param a The first datatype declaration.\n @param b The second datatype declaration.\n @return True if the datatype declarations are equal."]
    #[link_name = "\u{1}cvc5_dt_decl_is_equal"]
    pub fn dt_decl_is_equal(a: DatatypeDecl, b: DatatypeDecl) -> bool;
}
unsafe extern "C" {
    #[doc = " Add datatype constructor declaration.\n @param decl The datatype declaration.\n @param ctor The datatype constructor declaration to add."]
    #[link_name = "\u{1}cvc5_dt_decl_add_constructor"]
    pub fn dt_decl_add_constructor(decl: DatatypeDecl, ctor: DatatypeConstructorDecl);
}
unsafe extern "C" {
    #[doc = " Get the number of constructors for a given Datatype declaration.\n @param decl The datatype declaration.\n @return The number of constructors."]
    #[link_name = "\u{1}cvc5_dt_decl_get_num_constructors"]
    pub fn dt_decl_get_num_constructors(decl: DatatypeDecl) -> usize;
}
unsafe extern "C" {
    #[doc = " Determine if a given Datatype declaration is parametric.\n @warning This function is experimental and may change in future versions.\n @param decl The datatype declaration.\n @return True if the datatype declaration is parametric."]
    #[link_name = "\u{1}cvc5_dt_decl_is_parametric"]
    pub fn dt_decl_is_parametric(decl: DatatypeDecl) -> bool;
}
unsafe extern "C" {
    #[doc = " Determine if a given datatype declaration is resolved (has already been\n used to declare a datatype).\n @param decl The datatype declaration.\n @return True if the datatype declaration is resolved."]
    #[link_name = "\u{1}cvc5_dt_decl_is_resolved"]
    pub fn dt_decl_is_resolved(decl: DatatypeDecl) -> bool;
}
unsafe extern "C" {
    #[doc = " Get a string representation of a given datatype declaration.\n @param decl The datatype declaration.\n @return A string representation of the datatype declaration.\n @note The returned char* pointer is only valid until the next call to this\n       function."]
    #[link_name = "\u{1}cvc5_dt_decl_to_string"]
    pub fn dt_decl_to_string(decl: DatatypeDecl) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " Get the name of a given datatype declaration.\n @param decl The datatype declaration.\n @return The name of the datatype declaration.\n @note The returned char* pointer is only valid until the next call to this\n       function."]
    #[link_name = "\u{1}cvc5_dt_decl_get_name"]
    pub fn dt_decl_get_name(decl: DatatypeDecl) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " Compute the hash value of a datatype declaration.\n @param decl The datatype declaration.\n @return The hash value of the datatype declaration."]
    #[link_name = "\u{1}cvc5_dt_decl_hash"]
    pub fn dt_decl_hash(decl: DatatypeDecl) -> usize;
}
unsafe extern "C" {
    #[doc = " Make copy of datatype selector, increases reference counter of `sel`.\n\n @param sel The datatype selector to copy.\n @return The same datatype selector with its reference count increased by one.\n\n @note This step is optional and allows users to manage resources in a more\n       fine-grained manner."]
    #[link_name = "\u{1}cvc5_dt_sel_copy"]
    pub fn dt_sel_copy(sel: DatatypeSelector) -> DatatypeSelector;
}
unsafe extern "C" {
    #[doc = " Release copy of datatype selector, decrements reference counter of `sel`.\n\n @param sel The datatype selector to release.\n\n @note This step is optional and allows users to release resources in a more\n       fine-grained manner. Further, any API function that returns a\n       Cvc5DatatypeSelector returns a copy that is owned by the callee of the\n       function and thus, can be released."]
    #[link_name = "\u{1}cvc5_dt_sel_release"]
    pub fn dt_sel_release(sel: DatatypeSelector);
}
unsafe extern "C" {
    #[doc = " Compare two datatype selectors for structural equality.\n @param a The first datatype selector.\n @param b The second datatype selector.\n @return True if the datatype selectors are equal."]
    #[link_name = "\u{1}cvc5_dt_sel_is_equal"]
    pub fn dt_sel_is_equal(a: DatatypeSelector, b: DatatypeSelector) -> bool;
}
unsafe extern "C" {
    #[doc = " Get the name of a given datatype selector.\n @param sel The datatype selector.\n @return The name of the Datatype selector.\n @note The returned char* pointer is only valid until the next call to this\n       function."]
    #[link_name = "\u{1}cvc5_dt_sel_get_name"]
    pub fn dt_sel_get_name(sel: DatatypeSelector) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " Get the selector term of a given datatype selector.\n\n Selector terms are a class of function-like terms of selector\n sort (cvc5_sort_is_dt_selector()), and should be used as the first\n argument of Terms of kind #CVC5_KIND_APPLY_SELECTOR.\n\n @param sel The datatype selector.\n @return The selector term."]
    #[link_name = "\u{1}cvc5_dt_sel_get_term"]
    pub fn dt_sel_get_term(sel: DatatypeSelector) -> Term;
}
unsafe extern "C" {
    #[doc = " Get the updater term of a given datatype selector.\n\n Similar to selectors, updater terms are a class of function-like terms of\n updater Sort (cvc5_sort_is_dt_updater()), and should be used as the first\n argument of Terms of kind #CVC5_KIND_APPLY_UPDATER.\n\n @param sel The datatype selector.\n @return The updater term."]
    #[link_name = "\u{1}cvc5_dt_sel_get_updater_term"]
    pub fn dt_sel_get_updater_term(sel: DatatypeSelector) -> Term;
}
unsafe extern "C" {
    #[doc = " Get the codomain sort of a given datatype selector.\n @param sel The datatype selector.\n @return The codomain sort of the selector."]
    #[link_name = "\u{1}cvc5_dt_sel_get_codomain_sort"]
    pub fn dt_sel_get_codomain_sort(sel: DatatypeSelector) -> Sort;
}
unsafe extern "C" {
    #[doc = " Get the string representation of a given datatype selector.\n @param sel The datatype selector.\n @return The string representation.\n @note The returned char* pointer is only valid until the next call to this\n       function."]
    #[link_name = "\u{1}cvc5_dt_sel_to_string"]
    pub fn dt_sel_to_string(sel: DatatypeSelector) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " Compute the hash value of a datatype selector.\n @param sel The datatype selector.\n @return The hash value of the datatype selector."]
    #[link_name = "\u{1}cvc5_dt_sel_hash"]
    pub fn dt_sel_hash(sel: DatatypeSelector) -> usize;
}
unsafe extern "C" {
    #[doc = " Make copy of datatype constructor, increases reference counter of `cons`.\n\n @param cons The datatype constructor to copy.\n @return The same datatype constructor with its reference count increased by\n         one.\n\n @note This step is optional and allows users to manage resources in a more\n       fine-grained manner."]
    #[link_name = "\u{1}cvc5_dt_cons_copy"]
    pub fn dt_cons_copy(cons: DatatypeConstructor) -> DatatypeConstructor;
}
unsafe extern "C" {
    #[doc = " Release copy of datatype constructor, decrements reference counter of `cons`.\n\n @param cons The datatype constructor to release.\n\n @note This step is optional and allows users to release resources in a more\n       fine-grained manner. Further, any API function that returns a\n       Cvc5DatatypeConstructor returns a copy that is owned by the callee of\n       the function and thus, can be released."]
    #[link_name = "\u{1}cvc5_dt_cons_release"]
    pub fn dt_cons_release(cons: DatatypeConstructor);
}
unsafe extern "C" {
    #[doc = " Compare two datatype constructors for structural equality.\n @param a The first datatype constructor.\n @param b The second datatype constructor.\n @return True if the datatype constructors are equal."]
    #[link_name = "\u{1}cvc5_dt_cons_is_equal"]
    pub fn dt_cons_is_equal(a: DatatypeConstructor, b: DatatypeConstructor) -> bool;
}
unsafe extern "C" {
    #[doc = " Get the name of a given datatype constructor.\n @param cons The datatype constructor.\n @return The name.\n @note The returned char* pointer is only valid until the next call to this\n       function."]
    #[link_name = "\u{1}cvc5_dt_cons_get_name"]
    pub fn dt_cons_get_name(cons: DatatypeConstructor) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " Get the constructor term of a given datatype constructor.\n\n Datatype constructors are a special class of function-like terms whose sort\n is datatype constructor (cvc5_sort_is_dt_constructor()). All datatype\n constructors, including nullary ones, should be used as the\n first argument to Terms whose kind is #CVC5_KIND_APPLY_CONSTRUCTOR.\n For example, the nil list can be constructed by\n `cvc5_mk_term(CVC5_KIND_APPLY_CONSTRUCTOR, {t})`, where `t` is the term\n returned by this function.\n\n @note This function should not be used for parametric datatypes. Instead,\n       use the function cvc5_dt_cons_get_instantiated_term() below.\n\n @param cons The datatype constructor.\n @return The constructor term."]
    #[link_name = "\u{1}cvc5_dt_cons_get_term"]
    pub fn dt_cons_get_term(cons: DatatypeConstructor) -> Term;
}
unsafe extern "C" {
    #[doc = " Get the constructor term of this datatype constructor whose return\n type is `sort`.\n\n This function is intended to be used on constructors of parametric datatypes\n and can be seen as returning the constructor term that has been explicitly\n cast to the given sort.\n\n This function is required for constructors of parametric datatypes whose\n return type cannot be determined by type inference. For example, given:\n\n \\verbatim embed:rst:leading-asterisk\n .. code:: smtlib\n\n     (declare-datatype List\n         (par (T) ((nil) (cons (head T) (tail (List T))))))\n \\endverbatim\n\n The type of nil terms must be provided by the user. In SMT version 2.6,\n this is done via the syntax for qualified identifiers:\n\n \\verbatim embed:rst:leading-asterisk\n .. code:: smtlib\n\n     (as nil (List Int))\n \\endverbatim\n\n This function is equivalent of applying the above, where the\n datatype constructor is the one corresponding to `nil`, and `sort` is\n `(List Int)`.\n\n @note The returned constructor term `t` is used to construct the above\n       (nullary) application of `nil` with\n       `cvc5_mk_term(CVC5_KIND_APPLY_CONSTRUCTOR, {t})`.\n\n @warning This function is experimental and may change in future versions.\n\n @param cons The datatype constructor.\n @param sort The desired return sort of the constructor.\n @return The constructor term."]
    #[link_name = "\u{1}cvc5_dt_cons_get_instantiated_term"]
    pub fn dt_cons_get_instantiated_term(cons: DatatypeConstructor, sort: Sort) -> Term;
}
unsafe extern "C" {
    #[doc = " Get the tester term of a given datatype constructor.\n\n Similar to constructors, testers are a class of function-like terms of\n tester sort (cvc5_sort_is_dt_constructor()) which should be used as the\n first argument of Terms of kind #CVC5_KIND_APPLY_TESTER.\n\n @param cons The datatype constructor.\n @return The tester term."]
    #[link_name = "\u{1}cvc5_dt_cons_get_tester_term"]
    pub fn dt_cons_get_tester_term(cons: DatatypeConstructor) -> Term;
}
unsafe extern "C" {
    #[doc = " Get the number of selectors of a given datatype constructor.\n @param cons The datatype constructor.\n @return The number of selectors."]
    #[link_name = "\u{1}cvc5_dt_cons_get_num_selectors"]
    pub fn dt_cons_get_num_selectors(cons: DatatypeConstructor) -> usize;
}
unsafe extern "C" {
    #[doc = " Get the selector at index `i` of a given datatype constructor.\n @param cons  The datatype constructor.\n @param index The index of the selector.\n @return The i^th DatatypeSelector."]
    #[link_name = "\u{1}cvc5_dt_cons_get_selector"]
    pub fn dt_cons_get_selector(cons: DatatypeConstructor, index: usize) -> DatatypeSelector;
}
unsafe extern "C" {
    #[doc = " Get the datatype selector with the given name.\n @note This is a linear search through the selectors, so in case of\n       multiple, similarly-named selectors, the first is returned.\n @param cons The datatype constructor.\n @param name The name of the datatype selector.\n @return The first datatype selector with the given name."]
    #[link_name = "\u{1}cvc5_dt_cons_get_selector_by_name"]
    pub fn dt_cons_get_selector_by_name(
        cons: DatatypeConstructor,
        name: *const ::std::os::raw::c_char,
    ) -> DatatypeSelector;
}
unsafe extern "C" {
    #[doc = " Get a string representation of a given datatype constructor.\n @param cons The datatype constructor.\n @return The string representation.\n @note The returned char* pointer is only valid until the next call to this\n       function."]
    #[link_name = "\u{1}cvc5_dt_cons_to_string"]
    pub fn dt_cons_to_string(cons: DatatypeConstructor) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " Compute the hash value of a datatype constructor.\n @param cons The datatype constructor.\n @return The hash value of the datatype constructor."]
    #[link_name = "\u{1}cvc5_dt_cons_hash"]
    pub fn dt_cons_hash(cons: DatatypeConstructor) -> usize;
}
unsafe extern "C" {
    #[doc = " Make copy of datatype, increases reference counter of `dt`.\n\n @param dt The datatype to copy.\n @return The same datatype with its reference count increased by one.\n\n @note This step is optional and allows users to manage resources in a more\n       fine-grained manner."]
    #[link_name = "\u{1}cvc5_dt_copy"]
    pub fn dt_copy(dt: Datatype) -> Datatype;
}
unsafe extern "C" {
    #[doc = " Release copy of datatype, decrements reference counter of `dt`.\n\n @param dt The datatype to release.\n\n @note This step is optional and allows users to release resources in a more\n       fine-grained manner. Further, any API function that returns a\n       Cvc5Datatype returns a copy that is owned by the callee of the\n       function and thus, can be released."]
    #[link_name = "\u{1}cvc5_dt_release"]
    pub fn dt_release(dt: Datatype);
}
unsafe extern "C" {
    #[doc = " Compare two datatypes for structural equality.\n @param a The first datatype.\n @param b The second datatype.\n @return True if the datatypes are equal."]
    #[link_name = "\u{1}cvc5_dt_is_equal"]
    pub fn dt_is_equal(a: Datatype, b: Datatype) -> bool;
}
unsafe extern "C" {
    #[doc = " Get the datatype constructor of a given datatype at a given index.\n @param dt  The datatype.\n @param idx The index of the datatype constructor to return.\n @return The datatype constructor with the given index."]
    #[link_name = "\u{1}cvc5_dt_get_constructor"]
    pub fn dt_get_constructor(dt: Datatype, idx: usize) -> DatatypeConstructor;
}
unsafe extern "C" {
    #[doc = " Get the datatype constructor of a given datatype with the given name.\n @note This is a linear search through the constructors, so in case of\n multiple, similarly-named constructors, the first is returned.\n @param dt  The datatype.\n @param name The name of the datatype constructor.\n @return The datatype constructor with the given name."]
    #[link_name = "\u{1}cvc5_dt_get_constructor_by_name"]
    pub fn dt_get_constructor_by_name(
        dt: Datatype,
        name: *const ::std::os::raw::c_char,
    ) -> DatatypeConstructor;
}
unsafe extern "C" {
    #[doc = " Get the datatype selector of a given datatype with the given name.\n @note This is a linear search through the constructors and their selectors,\n       so in case of multiple, similarly-named selectors, the first is\n       returned.\n @param dt   The datatype.\n @param name The name of the datatype selector.\n @return The datatype selector with the given name."]
    #[link_name = "\u{1}cvc5_dt_get_selector"]
    pub fn dt_get_selector(dt: Datatype, name: *const ::std::os::raw::c_char) -> DatatypeSelector;
}
unsafe extern "C" {
    #[doc = " Get the name of a given datatype.\n @param dt   The datatype.\n @return The name.\n @note The returned char* pointer is only valid until the next call to this\n       function."]
    #[link_name = "\u{1}cvc5_dt_get_name"]
    pub fn dt_get_name(dt: Datatype) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " Get the number of constructors of a given datatype.\n @param dt   The datatype.\n @return The number of constructors."]
    #[link_name = "\u{1}cvc5_dt_get_num_constructors"]
    pub fn dt_get_num_constructors(dt: Datatype) -> usize;
}
unsafe extern "C" {
    #[doc = " Get the parameters of a given datatype, if it is parametric.\n @note Asserts that this datatype is parametric.\n @warning This function is experimental and may change in future versions.\n @param dt The datatype.\n @param size The size of the resulting array.\n @return The parameters of this datatype."]
    #[link_name = "\u{1}cvc5_dt_get_parameters"]
    pub fn dt_get_parameters(dt: Datatype, size: *mut usize) -> *const Sort;
}
unsafe extern "C" {
    #[doc = " Determine if a given datatype is parametric.\n @warning This function is experimental and may change in future versions.\n @param dt The datatype.\n @return True if the datatype is parametric."]
    #[link_name = "\u{1}cvc5_dt_is_parametric"]
    pub fn dt_is_parametric(dt: Datatype) -> bool;
}
unsafe extern "C" {
    #[doc = " Determine if a given datatype corresponds to a co-datatype.\n @param dt The datatype.\n @return True if the datatype corresponds to a co-datatype."]
    #[link_name = "\u{1}cvc5_dt_is_codatatype"]
    pub fn dt_is_codatatype(dt: Datatype) -> bool;
}
unsafe extern "C" {
    #[doc = " Determine if a given datatype corresponds to a tuple.\n @param dt The datatype.\n @return True if this datatype corresponds to a tuple."]
    #[link_name = "\u{1}cvc5_dt_is_tuple"]
    pub fn dt_is_tuple(dt: Datatype) -> bool;
}
unsafe extern "C" {
    #[doc = " Determine if a given datatype corresponds to a record.\n @warning This function is experimental and may change in future versions.\n @param dt The datatype.\n @return True if the datatype corresponds to a record."]
    #[link_name = "\u{1}cvc5_dt_is_record"]
    pub fn dt_is_record(dt: Datatype) -> bool;
}
unsafe extern "C" {
    #[doc = " Determine if a given datatype is finite.\n @param dt The datatype.\n @return True if the datatype is finite."]
    #[link_name = "\u{1}cvc5_dt_is_finite"]
    pub fn dt_is_finite(dt: Datatype) -> bool;
}
unsafe extern "C" {
    #[doc = " Determine if a given datatype is well-founded.\n\n If the datatype is not a codatatype, this returns false if there are no\n values of the datatype that are of finite size.\n\n @param dt The datatype.\n @return True if the datatype is well-founded."]
    #[link_name = "\u{1}cvc5_dt_is_well_founded"]
    pub fn dt_is_well_founded(dt: Datatype) -> bool;
}
unsafe extern "C" {
    #[doc = " Get a string representation of a given datatype.\n @return The string representation.\n @note The returned char* pointer is only valid until the next call to this\n       function."]
    #[link_name = "\u{1}cvc5_dt_to_string"]
    pub fn dt_to_string(dt: Datatype) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " Compute the hash value of a datatype.\n @param dt The datatype.\n @return The hash value of the datatype."]
    #[link_name = "\u{1}cvc5_dt_hash"]
    pub fn dt_hash(dt: Datatype) -> usize;
}
unsafe extern "C" {
    #[doc = " Add `rule` to the set of rules corresponding to `symbol` of a given grammar.\n @param grammar The grammar.\n @param symbol  The non-terminal to which the rule is added.\n @param rule The rule to add."]
    #[link_name = "\u{1}cvc5_grammar_add_rule"]
    pub fn grammar_add_rule(grammar: Grammar, symbol: Term, rule: Term);
}
unsafe extern "C" {
    #[doc = " Add `rules` to the set of rules corresponding to `symbol` of a given grammar.\n @param grammar The grammar.\n @param symbol The non-terminal to which the rules are added.\n @param size   The number of rules to add.\n @param rules The rules to add."]
    #[link_name = "\u{1}cvc5_grammar_add_rules"]
    pub fn grammar_add_rules(grammar: Grammar, symbol: Term, size: usize, rules: *const Term);
}
unsafe extern "C" {
    #[doc = " Allow `symbol` to be an arbitrary constant of a given grammar.\n @param grammar The grammar.\n @param symbol The non-terminal allowed to be any constant."]
    #[link_name = "\u{1}cvc5_grammar_add_any_constant"]
    pub fn grammar_add_any_constant(grammar: Grammar, symbol: Term);
}
unsafe extern "C" {
    #[doc = " Allow `symbol` to be any input variable of a given grammar to corresponding\n synth-fun/synth-inv with the same sort as `symbol`.\n @param grammar The grammar.\n @param symbol The non-terminal allowed to be any input variable."]
    #[link_name = "\u{1}cvc5_grammar_add_any_variable"]
    pub fn grammar_add_any_variable(grammar: Grammar, symbol: Term);
}
unsafe extern "C" {
    #[doc = " Get a string representation of a given grammar.\n @param grammar The grammar.\n @return A string representation of the grammar.\n @note The returned char* pointer is only valid until the next call to this\n       function."]
    #[link_name = "\u{1}cvc5_grammar_to_string"]
    pub fn grammar_to_string(grammar: Grammar) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " Compare two grammars for referential equality.\n @param a The first grammar.\n @param b The second grammar.\n @return  True if both grammar pointers point to the same internal grammar\n          object."]
    #[link_name = "\u{1}cvc5_grammar_is_equal"]
    pub fn grammar_is_equal(a: Grammar, b: Grammar) -> bool;
}
unsafe extern "C" {
    #[doc = " Compare two grammars for referential disequality.\n @param a The first grammar.\n @param b The second grammar.\n @return  True if both grammar pointers point to different internal grammar\n          objects."]
    #[link_name = "\u{1}cvc5_grammar_is_disequal"]
    pub fn grammar_is_disequal(a: Grammar, b: Grammar) -> bool;
}
unsafe extern "C" {
    #[doc = " Compute the hash value of a grammar.\n @param grammar The grammar.\n @return The hash value of the grammar."]
    #[link_name = "\u{1}cvc5_grammar_hash"]
    pub fn grammar_hash(grammar: Grammar) -> usize;
}
unsafe extern "C" {
    #[doc = " Make copy of grammar, increases reference counter of `grammar`.\n\n @param grammar The grammar to copy.\n @return The same grammar with its reference count increased by one.\n\n @note This step is optional and allows users to manage resources in a more\n       fine-grained manner."]
    #[link_name = "\u{1}cvc5_grammar_copy"]
    pub fn grammar_copy(grammar: Grammar) -> Grammar;
}
unsafe extern "C" {
    #[doc = " Release copy of grammar, decrements reference counter of `grammar`.\n\n @param grammar The grammar to release.\n\n @note This step is optional and allows users to release resources in a more\n       fine-grained manner. Further, any API function that returns a copy\n       that is owned by the callee of the function and thus, can be released."]
    #[link_name = "\u{1}cvc5_grammar_release"]
    pub fn grammar_release(grammar: Grammar);
}
unsafe extern "C" {
    #[doc = " Construct a new instance of a cvc5 term manager.\n @return The cvc5 term manager."]
    #[link_name = "\u{1}cvc5_term_manager_new"]
    pub fn term_manager_new() -> *mut TermManager;
}
unsafe extern "C" {
    #[doc = " Delete a cvc5 term manager instance.\n @param tm The term manager instance."]
    #[link_name = "\u{1}cvc5_term_manager_delete"]
    pub fn term_manager_delete(tm: *mut TermManager);
}
unsafe extern "C" {
    #[doc = " Release all managed references.\n\n This will free all memory used by any managed objects allocated by the\n term manager.\n\n @note This invalidates all managed objects created by the term manager.\n\n @param tm The term manager instance."]
    #[link_name = "\u{1}cvc5_term_manager_release"]
    pub fn term_manager_release(tm: *mut TermManager);
}
unsafe extern "C" {
    #[doc = " Print the term manager statistics to the given file descriptor, suitable for\n usage in signal handlers.\n @param tm The term manager instance.\n @param fd The file descriptor."]
    #[link_name = "\u{1}cvc5_term_manager_print_stats_safe"]
    pub fn term_manager_print_stats_safe(tm: *mut TermManager, fd: ::std::os::raw::c_int);
}
unsafe extern "C" {
    #[doc = " Get a snapshot of the current state of the statistic values of this term\n manager. The returned object is completely decoupled from the term manager\n and will not change when the term manager is used again.\n @param tm The term manager instance.\n @return A snapshot of the current state of the statistic values."]
    #[link_name = "\u{1}cvc5_term_manager_get_statistics"]
    pub fn term_manager_get_statistics(tm: *mut TermManager) -> Statistics;
}
unsafe extern "C" {
    #[doc = " Get the Boolean sort.\n @param tm The term manager instance.\n @return Sort Boolean."]
    #[link_name = "\u{1}cvc5_get_boolean_sort"]
    pub fn get_boolean_sort(tm: *mut TermManager) -> Sort;
}
unsafe extern "C" {
    #[doc = " Get the Integer sort.\n @param tm The term manager instance.\n @return Sort Integer."]
    #[link_name = "\u{1}cvc5_get_integer_sort"]
    pub fn get_integer_sort(tm: *mut TermManager) -> Sort;
}
unsafe extern "C" {
    #[doc = " Get the Real sort.\n @param tm The term manager instance.\n @return Sort Real."]
    #[link_name = "\u{1}cvc5_get_real_sort"]
    pub fn get_real_sort(tm: *mut TermManager) -> Sort;
}
unsafe extern "C" {
    #[doc = " Get the regular expression sort.\n @param tm The term manager instance.\n @return Sort RegExp."]
    #[link_name = "\u{1}cvc5_get_regexp_sort"]
    pub fn get_regexp_sort(tm: *mut TermManager) -> Sort;
}
unsafe extern "C" {
    #[doc = " Get the rounding mode sort.\n @param tm The term manager instance.\n @return The rounding mode sort."]
    #[link_name = "\u{1}cvc5_get_rm_sort"]
    pub fn get_rm_sort(tm: *mut TermManager) -> Sort;
}
unsafe extern "C" {
    #[doc = " Get the string sort.\n @param tm The term manager instance.\n @return Sort String."]
    #[link_name = "\u{1}cvc5_get_string_sort"]
    pub fn get_string_sort(tm: *mut TermManager) -> Sort;
}
unsafe extern "C" {
    #[doc = " Create an array sort.\n @param tm The term manager instance.\n @param index The array index sort.\n @param elem  The array element sort.\n @return The array sort."]
    #[link_name = "\u{1}cvc5_mk_array_sort"]
    pub fn mk_array_sort(tm: *mut TermManager, index: Sort, elem: Sort) -> Sort;
}
unsafe extern "C" {
    #[doc = " Create a bit-vector sort.\n @param tm The term manager instance.\n @param size The bit-width of the bit-vector sort.\n @return The bit-vector sort."]
    #[link_name = "\u{1}cvc5_mk_bv_sort"]
    pub fn mk_bv_sort(tm: *mut TermManager, size: u32) -> Sort;
}
unsafe extern "C" {
    #[doc = " Create a floating-point sort.\n @param tm The term manager instance.\n @param exp The bit-width of the exponent of the floating-point sort.\n @param sig The bit-width of the significand of the floating-point sort."]
    #[link_name = "\u{1}cvc5_mk_fp_sort"]
    pub fn mk_fp_sort(tm: *mut TermManager, exp: u32, sig: u32) -> Sort;
}
unsafe extern "C" {
    #[doc = " Create a finite-field sort from a given string of\n base n.\n\n @param tm The term manager instance.\n @param size The modulus of the field. Must be prime.\n @param base The base of the string representation of `size`.\n @return The finite-field sort."]
    #[link_name = "\u{1}cvc5_mk_ff_sort"]
    pub fn mk_ff_sort(tm: *mut TermManager, size: *const ::std::os::raw::c_char, base: u32)
    -> Sort;
}
unsafe extern "C" {
    #[doc = " Create a datatype sort.\n @param tm   The term manager instance.\n @param decl The datatype declaration from which the sort is created.\n @return The datatype sort."]
    #[link_name = "\u{1}cvc5_mk_dt_sort"]
    pub fn mk_dt_sort(tm: *mut TermManager, decl: DatatypeDecl) -> Sort;
}
unsafe extern "C" {
    #[doc = " Create a vector of datatype sorts.\n @note The names of the datatype declarations must be distinct.\n @param tm    The term manager instance.\n @param size  The number of datatype declarations.\n @param decls The datatype declarations from which the sort is created.\n @return The datatype sorts."]
    #[link_name = "\u{1}cvc5_mk_dt_sorts"]
    pub fn mk_dt_sorts(
        tm: *mut TermManager,
        size: usize,
        decls: *const DatatypeDecl,
    ) -> *const Sort;
}
unsafe extern "C" {
    #[doc = " Create function sort.\n @param tm    The term manager instance.\n @param size  The number of domain sorts.\n @param sorts The sort of the function arguments (the domain sorts).\n @param codomain The sort of the function return value.\n @return The function sort."]
    #[link_name = "\u{1}cvc5_mk_fun_sort"]
    pub fn mk_fun_sort(
        tm: *mut TermManager,
        size: usize,
        sorts: *const Sort,
        codomain: Sort,
    ) -> Sort;
}
unsafe extern "C" {
    #[doc = " Create a sort parameter.\n @warning This function is experimental and may change in future versions.\n @param tm     The term manager instance.\n @param symbol The name of the sort, may be NULL.\n @return The sort parameter."]
    #[link_name = "\u{1}cvc5_mk_param_sort"]
    pub fn mk_param_sort(tm: *mut TermManager, symbol: *const ::std::os::raw::c_char) -> Sort;
}
unsafe extern "C" {
    #[doc = " Create a predicate sort.\n @note This is equivalent to calling mkFunctionSort() with the Boolean sort\n as the codomain.\n @param tm    The term manager instance.\n @param size  The number of sorts.\n @param sorts The list of sorts of the predicate.\n @return The predicate sort."]
    #[link_name = "\u{1}cvc5_mk_predicate_sort"]
    pub fn mk_predicate_sort(tm: *mut TermManager, size: usize, sorts: *const Sort) -> Sort;
}
unsafe extern "C" {
    #[doc = " Create a record sort\n @warning This function is experimental and may change in future versions.\n @param tm    The term manager instance.\n @param size  The number of fields of the record.\n @param names The names of the fields of the record.\n @param sorts The sorts of the fields of the record.\n @return The record sort."]
    #[link_name = "\u{1}cvc5_mk_record_sort"]
    pub fn mk_record_sort(
        tm: *mut TermManager,
        size: usize,
        names: *mut *const ::std::os::raw::c_char,
        sorts: *const Sort,
    ) -> Sort;
}
unsafe extern "C" {
    #[doc = " Create a set sort.\n @param tm   The term manager instance.\n @param sort The sort of the set elements.\n @return The set sort."]
    #[link_name = "\u{1}cvc5_mk_set_sort"]
    pub fn mk_set_sort(tm: *mut TermManager, sort: Sort) -> Sort;
}
unsafe extern "C" {
    #[doc = " Create a bag sort.\n @param tm   The term manager instance.\n @param sort The sort of the bag elements.\n @return The bag sort."]
    #[link_name = "\u{1}cvc5_mk_bag_sort"]
    pub fn mk_bag_sort(tm: *mut TermManager, sort: Sort) -> Sort;
}
unsafe extern "C" {
    #[doc = " Create a sequence sort.\n @param tm   The term manager instance.\n @param sort The sort of the sequence elements.\n @return The sequence sort."]
    #[link_name = "\u{1}cvc5_mk_sequence_sort"]
    pub fn mk_sequence_sort(tm: *mut TermManager, sort: Sort) -> Sort;
}
unsafe extern "C" {
    #[doc = " Create an abstract sort. An abstract sort represents a sort for a given\n kind whose parameters and arguments are unspecified.\n\n The kind `k` must be the kind of a sort that can be abstracted, i.e., a\n sort that has indices or argument sorts. For example,\n #CVC5_SORT_KIND_ARRAY_SORT and #CVC5_SORT_KIND_BITVECTOR_SORT can be passed\n as the kind `k` to this function, while #CVC5_SORT_KIND_INTEGER_SORT and\n #CVC5_SORT_KIND_STRING_SORT cannot.\n\n @note Providing the kind #CVC5_SORT_KIND_ABSTRACT_SORT as an argument to\n       this function returns the (fully) unspecified sort, denoted `?`.\n\n @note Providing a kind `k` that has no indices and a fixed arity\n       of argument sorts will return the sort of kind `k` whose arguments are\n       the unspecified sort. For example,\n       `cvc5_mk_abstract_sort(tm, CVC5_SORT_KIND_ARRAY_SORT)` will return the\n       sort `(ARRAY_SORT ? ?)` instead of the abstract sort whose abstract\n       kind is #CVC5_SORT_KIND_ARRAY_SORT.\n\n @warning This function is experimental and may change in future versions.\n\n @param tm The term manager instance.\n @param k The kind of the abstract sort\n @return The abstract sort."]
    #[link_name = "\u{1}cvc5_mk_abstract_sort"]
    pub fn mk_abstract_sort(tm: *mut TermManager, k: SortKind) -> Sort;
}
unsafe extern "C" {
    #[doc = " Create an uninterpreted sort.\n @param tm The term manager instance.\n @param symbol The name of the sort, may be NULL.\n @return The uninterpreted sort."]
    #[link_name = "\u{1}cvc5_mk_uninterpreted_sort"]
    pub fn mk_uninterpreted_sort(
        tm: *mut TermManager,
        symbol: *const ::std::os::raw::c_char,
    ) -> Sort;
}
unsafe extern "C" {
    #[doc = " Create an unresolved datatype sort.\n\n This is for creating yet unresolved sort placeholders for mutually\n recursive parametric datatypes.\n\n @param tm The term manager instance.\n @param symbol The symbol of the sort.\n @param arity The number of sort parameters of the sort.\n @return The unresolved sort.\n\n @warning This function is experimental and may change in future versions."]
    #[link_name = "\u{1}cvc5_mk_unresolved_dt_sort"]
    pub fn mk_unresolved_dt_sort(
        tm: *mut TermManager,
        symbol: *const ::std::os::raw::c_char,
        arity: usize,
    ) -> Sort;
}
unsafe extern "C" {
    #[doc = " Create an uninterpreted sort constructor sort.\n\n An uninterpreted sort constructor is an uninterpreted sort with arity > 0.\n\n @param tm The term manager instance.\n @param symbol The symbol of the sort.\n @param arity The arity of the sort (must be > 0)\n @return The uninterpreted sort constructor sort."]
    #[link_name = "\u{1}cvc5_mk_uninterpreted_sort_constructor_sort"]
    pub fn mk_uninterpreted_sort_constructor_sort(
        tm: *mut TermManager,
        arity: usize,
        symbol: *const ::std::os::raw::c_char,
    ) -> Sort;
}
unsafe extern "C" {
    #[doc = " Create a tuple sort.\n @param tm The term manager instance.\n @param size The number of sorts.\n @param sorts The sorts of f the elements of the tuple.\n @return The tuple sort."]
    #[link_name = "\u{1}cvc5_mk_tuple_sort"]
    pub fn mk_tuple_sort(tm: *mut TermManager, size: usize, sorts: *const Sort) -> Sort;
}
unsafe extern "C" {
    #[doc = " Create a nullable sort.\n @param tm The term manager instance.\n @param sort The sort of the element of the nullable.\n @return The nullable sort."]
    #[link_name = "\u{1}cvc5_mk_nullable_sort"]
    pub fn mk_nullable_sort(tm: *mut TermManager, sort: Sort) -> Sort;
}
unsafe extern "C" {
    #[doc = " Create operator of Kind:\n   - #CVC5_KIND_BITVECTOR_EXTRACT\n   - #CVC5_KIND_BITVECTOR_REPEAT\n   - #CVC5_KIND_BITVECTOR_ROTATE_LEFT\n   - #CVC5_KIND_BITVECTOR_ROTATE_RIGHT\n   - #CVC5_KIND_BITVECTOR_SIGN_EXTEND\n   - #CVC5_KIND_BITVECTOR_ZERO_EXTEND\n   - #CVC5_KIND_DIVISIBLE\n   - #CVC5_KIND_FLOATINGPOINT_TO_FP_FROM_FP\n   - #CVC5_KIND_FLOATINGPOINT_TO_FP_FROM_IEEE_BV\n   - #CVC5_KIND_FLOATINGPOINT_TO_FP_FROM_REAL\n   - #CVC5_KIND_FLOATINGPOINT_TO_FP_FROM_SBV\n   - #CVC5_KIND_FLOATINGPOINT_TO_FP_FROM_UBV\n   - #CVC5_KIND_FLOATINGPOINT_TO_SBV\n   - #CVC5_KIND_FLOATINGPOINT_TO_UBV\n   - #CVC5_KIND_INT_TO_BITVECTOR\n   - #CVC5_KIND_TUPLE_PROJECT\n\n See `Cvc5Kind` for a description of the parameters.\n\n @param tm The term manager instance.\n @param kind The kind of the operator.\n @param size The number of indices of the operator.\n @param idxs The indices.\n\n @note If `idxs` is empty, the Cvc5Op simply wraps the Cvc5Kind. The Cvc5Kind\n can be used in cvc5_mk_term directly without creating a Cvc5Op first."]
    #[link_name = "\u{1}cvc5_mk_op"]
    pub fn mk_op(tm: *mut TermManager, kind: Kind, size: usize, idxs: *const u32) -> Op;
}
unsafe extern "C" {
    #[doc = " Create operator of kind:\n   - #CVC5_KIND_DIVISIBLE (to support arbitrary precision integers)\n\n See CKind for a description of the parameters.\n\n @param tm The term manager instance.\n @param kind The kind of the operator.\n @param arg The string argument to this operator."]
    #[link_name = "\u{1}cvc5_mk_op_from_str"]
    pub fn mk_op_from_str(
        tm: *mut TermManager,
        kind: Kind,
        arg: *const ::std::os::raw::c_char,
    ) -> Op;
}
unsafe extern "C" {
    #[doc = " Create n-ary term of given kind.\n @param tm The term manager instance.\n @param kind The kind of the term.\n @param size The number of childrens.\n @param children The children of the term.\n @return The Term"]
    #[link_name = "\u{1}cvc5_mk_term"]
    pub fn mk_term(tm: *mut TermManager, kind: Kind, size: usize, children: *const Term) -> Term;
}
unsafe extern "C" {
    #[doc = " Create n-ary term of given kind from a given operator.\n Create operators with `cvc5_mk_op()` and `cvc5_mk_op_from_str()`.\n @param tm The term manager instance.\n @param op The operator.\n @param size The number of children.\n @param children The children of the term.\n @return The Term."]
    #[link_name = "\u{1}cvc5_mk_term_from_op"]
    pub fn mk_term_from_op(
        tm: *mut TermManager,
        op: Op,
        size: usize,
        children: *const Term,
    ) -> Term;
}
unsafe extern "C" {
    #[doc = " Create a tuple term.\n @param tm The term manager instance.\n @param size The number of elements in the tuple.\n @param terms The elements.\n @return The tuple Term."]
    #[link_name = "\u{1}cvc5_mk_tuple"]
    pub fn mk_tuple(tm: *mut TermManager, size: usize, terms: *const Term) -> Term;
}
unsafe extern "C" {
    #[doc = " Create a nullable some term.\n @param tm The term manager instance.\n @param term The element value.\n @return the Element value wrapped in some constructor."]
    #[link_name = "\u{1}cvc5_mk_nullable_some"]
    pub fn mk_nullable_some(tm: *mut TermManager, term: Term) -> Term;
}
unsafe extern "C" {
    #[doc = " Create a selector for nullable term.\n @param tm The term manager instance.\n @param term A nullable term.\n @return The element value of the nullable term."]
    #[link_name = "\u{1}cvc5_mk_nullable_val"]
    pub fn mk_nullable_val(tm: *mut TermManager, term: Term) -> Term;
}
unsafe extern "C" {
    #[doc = " Create a null tester for a nullable term.\n @param tm The term manager instance.\n @param term A nullable term.\n @return A tester whether term is null."]
    #[link_name = "\u{1}cvc5_mk_nullable_is_null"]
    pub fn mk_nullable_is_null(tm: *mut TermManager, term: Term) -> Term;
}
unsafe extern "C" {
    #[doc = " Create a some tester for a nullable term.\n @param tm The term manager instance.\n @param term A nullable term.\n @return A tester whether term is some."]
    #[link_name = "\u{1}cvc5_mk_nullable_is_some"]
    pub fn mk_nullable_is_some(tm: *mut TermManager, term: Term) -> Term;
}
unsafe extern "C" {
    #[doc = " Create a constant representing an null of the given sort.\n @param tm The term manager instance.\n @param sort The sort of the Nullable element.\n @return The null constant."]
    #[link_name = "\u{1}cvc5_mk_nullable_null"]
    pub fn mk_nullable_null(tm: *mut TermManager, sort: Sort) -> Term;
}
unsafe extern "C" {
    #[doc = " Create a term that lifts kind to nullable terms.\n\n Example:\n If we have the term ((_ nullable.lift +) x y),\n where x, y of type (Nullable Int), then\n kind would be ADD, and args would be [x, y].\n This function would return\n (nullable.lift (lambda ((a Int) (b Int)) (+ a b)) x y)\n\n @param tm The term manager instance.\n @param kind The lifted operator.\n @param size The number of arguments of the lifted operator.\n @param args The arguments of the lifted operator.\n @return A term of kind #CVC5_KIND_NULLABLE_LIFT where the first child\n         is a lambda expression, and the remaining children are\n         the original arguments."]
    #[link_name = "\u{1}cvc5_mk_nullable_lift"]
    pub fn mk_nullable_lift(
        tm: *mut TermManager,
        kind: Kind,
        size: usize,
        args: *const Term,
    ) -> Term;
}
unsafe extern "C" {
    #[doc = " Create a skolem.\n @param tm      The term manager instance.\n @param id      The skolem identifier.\n @param size    The number of arguments of the lifted operator.\n @param indices The indices of the skolem.\n @return The skolem."]
    #[link_name = "\u{1}cvc5_mk_skolem"]
    pub fn mk_skolem(tm: *mut TermManager, id: SkolemId, size: usize, indices: *const Term)
    -> Term;
}
unsafe extern "C" {
    #[doc = " Get the number of indices for a skolem id.\n @param tm The term manager instance.\n @param id The skolem id.\n @return The number of indices for the skolem id."]
    #[link_name = "\u{1}cvc5_get_num_idxs_for_skolem_id"]
    pub fn get_num_idxs_for_skolem_id(tm: *mut TermManager, id: SkolemId) -> usize;
}
unsafe extern "C" {
    #[doc = " Create a Boolean true constant.\n @param tm The term manager instance.\n @return The true constant."]
    #[link_name = "\u{1}cvc5_mk_true"]
    pub fn mk_true(tm: *mut TermManager) -> Term;
}
unsafe extern "C" {
    #[doc = " Create a Boolean false constant.\n @param tm The term manager instance.\n @return The false constant."]
    #[link_name = "\u{1}cvc5_mk_false"]
    pub fn mk_false(tm: *mut TermManager) -> Term;
}
unsafe extern "C" {
    #[doc = " Create a Boolean constant.\n @param tm The term manager instance.\n @return The Boolean constant.\n @param val The value of the constant."]
    #[link_name = "\u{1}cvc5_mk_boolean"]
    pub fn mk_boolean(tm: *mut TermManager, val: bool) -> Term;
}
unsafe extern "C" {
    #[doc = " Create a constant representing the number Pi.\n @param tm The term manager instance.\n @return A constant representing Pi."]
    #[link_name = "\u{1}cvc5_mk_pi"]
    pub fn mk_pi(tm: *mut TermManager) -> Term;
}
unsafe extern "C" {
    #[doc = " Create an integer constant from a string.\n @param tm The term manager instance.\n @param s The string representation of the constant, may represent an\n          integer (e.g., \"123\").\n @return A constant of sort Integer assuming `s` represents an integer)"]
    #[link_name = "\u{1}cvc5_mk_integer"]
    pub fn mk_integer(tm: *mut TermManager, s: *const ::std::os::raw::c_char) -> Term;
}
unsafe extern "C" {
    #[doc = " Create an integer constant from a c++ int.\n @param tm The term manager instance.\n @param val The value of the constant.\n @return A constant of sort Integer."]
    #[link_name = "\u{1}cvc5_mk_integer_int64"]
    pub fn mk_integer_int64(tm: *mut TermManager, val: i64) -> Term;
}
unsafe extern "C" {
    #[doc = " Create a real constant from a string.\n @param tm The term manager instance.\n @param s The string representation of the constant, may represent an\n          integer (e.g., \"123\") or real constant (e.g., \"12.34\" or \"12/34\").\n @return A constant of sort Real."]
    #[link_name = "\u{1}cvc5_mk_real"]
    pub fn mk_real(tm: *mut TermManager, s: *const ::std::os::raw::c_char) -> Term;
}
unsafe extern "C" {
    #[doc = " Create a real constant from an integer.\n @param tm The term manager instance.\n @param val The value of the constant.\n @return A constant of sort Integer."]
    #[link_name = "\u{1}cvc5_mk_real_int64"]
    pub fn mk_real_int64(tm: *mut TermManager, val: i64) -> Term;
}
unsafe extern "C" {
    #[doc = " Create a real constant from a rational.\n @param tm The term manager instance.\n @param num The value of the numerator.\n @param den The value of the denominator.\n @return A constant of sort Real."]
    #[link_name = "\u{1}cvc5_mk_real_num_den"]
    pub fn mk_real_num_den(tm: *mut TermManager, num: i64, den: i64) -> Term;
}
unsafe extern "C" {
    #[doc = " Create a regular expression all (re.all) term.\n @param tm The term manager instance.\n @return The all term."]
    #[link_name = "\u{1}cvc5_mk_regexp_all"]
    pub fn mk_regexp_all(tm: *mut TermManager) -> Term;
}
unsafe extern "C" {
    #[doc = " Create a regular expression allchar (re.allchar) term.\n @param tm The term manager instance.\n @return The allchar term."]
    #[link_name = "\u{1}cvc5_mk_regexp_allchar"]
    pub fn mk_regexp_allchar(tm: *mut TermManager) -> Term;
}
unsafe extern "C" {
    #[doc = " Create a regular expression none (re.none) term.\n @param tm The term manager instance.\n @return The none term."]
    #[link_name = "\u{1}cvc5_mk_regexp_none"]
    pub fn mk_regexp_none(tm: *mut TermManager) -> Term;
}
unsafe extern "C" {
    #[doc = " Create a constant representing an empty set of the given sort.\n @param tm The term manager instance.\n @param sort The sort of the set elements.\n @return The empty set constant."]
    #[link_name = "\u{1}cvc5_mk_empty_set"]
    pub fn mk_empty_set(tm: *mut TermManager, sort: Sort) -> Term;
}
unsafe extern "C" {
    #[doc = " Create a constant representing an empty bag of the given sort.\n @param tm The term manager instance.\n @param sort The sort of the bag elements.\n @return The empty bag constant."]
    #[link_name = "\u{1}cvc5_mk_empty_bag"]
    pub fn mk_empty_bag(tm: *mut TermManager, sort: Sort) -> Term;
}
unsafe extern "C" {
    #[doc = " Create a separation logic empty term.\n\n @warning This function is experimental and may change in future versions.\n\n @param tm The term manager instance.\n @return The separation logic empty term."]
    #[link_name = "\u{1}cvc5_mk_sep_emp"]
    pub fn mk_sep_emp(tm: *mut TermManager) -> Term;
}
unsafe extern "C" {
    #[doc = " Create a separation logic nil term.\n\n @warning This function is experimental and may change in future versions.\n\n @param tm The term manager instance.\n @param sort The sort of the nil term.\n @return The separation logic nil term."]
    #[link_name = "\u{1}cvc5_mk_sep_nil"]
    pub fn mk_sep_nil(tm: *mut TermManager, sort: Sort) -> Term;
}
unsafe extern "C" {
    #[doc = " Create a String constant from a regular character string which may contain\n SMT-LIB compatible escape sequences like `\\u1234` to encode unicode\n characters.\n @param tm The term manager instance.\n @param s The string this constant represents.\n @param use_esc_seq Determines whether escape sequences in `s` should.\n be converted to the corresponding unicode character\n @return The String constant."]
    #[link_name = "\u{1}cvc5_mk_string"]
    pub fn mk_string(
        tm: *mut TermManager,
        s: *const ::std::os::raw::c_char,
        use_esc_seq: bool,
    ) -> Term;
}
unsafe extern "C" {
    #[doc = " Create a String constant from a wide character string.\n This function does not support escape sequences as wide character already\n supports unicode characters.\n @param tm The term manager instance.\n @param s The string this constant represents.\n @return The String constant.\n\n @warning This function is deprecated and replaced by\n          cvc5_mk_string_from_char32(). It will be removed in a future\n          release."]
    #[link_name = "\u{1}cvc5_mk_string_from_wchar"]
    pub fn mk_string_from_wchar(tm: *mut TermManager, s: *const wchar_t) -> Term;
}
unsafe extern "C" {
    #[doc = " Create a String constant from a UTF-32 string.\n This function does not support escape sequences as wide character already\n supports unicode characters.\n @param tm The term manager instance.\n @param s The UTF-32 string this constant represents.\n @return The String constant."]
    #[link_name = "\u{1}cvc5_mk_string_from_char32"]
    pub fn mk_string_from_char32(tm: *mut TermManager, s: *const char32_t) -> Term;
}
unsafe extern "C" {
    #[doc = " Create an empty sequence of the given element sort.\n @param tm The term manager instance.\n @param sort The element sort of the sequence.\n @return The empty sequence with given element sort."]
    #[link_name = "\u{1}cvc5_mk_empty_sequence"]
    pub fn mk_empty_sequence(tm: *mut TermManager, sort: Sort) -> Term;
}
unsafe extern "C" {
    #[doc = " Create a universe set of the given sort.\n @param tm The term manager instance.\n @param sort The sort of the set elements.\n @return The universe set constant."]
    #[link_name = "\u{1}cvc5_mk_universe_set"]
    pub fn mk_universe_set(tm: *mut TermManager, sort: Sort) -> Term;
}
unsafe extern "C" {
    #[doc = " Create a bit-vector constant of given size and value.\n\n @note The given value must fit into a bit-vector of the given size.\n\n @param tm The term manager instance.\n @param size The bit-width of the bit-vector sort.\n @param val The value of the constant.\n @return The bit-vector constant."]
    #[link_name = "\u{1}cvc5_mk_bv_uint64"]
    pub fn mk_bv_uint64(tm: *mut TermManager, size: u32, val: u64) -> Term;
}
unsafe extern "C" {
    #[doc = " Create a bit-vector constant of a given bit-width from a given string of\n base 2, 10 or 16.\n\n @note The given value must fit into a bit-vector of the given size.\n\n @param tm The term manager instance.\n @param size The bit-width of the constant.\n @param s The string representation of the constant.\n @param base The base of the string representation (`2` for binary, `10` for\n decimal, and `16` for hexadecimal).\n @return The bit-vector constant."]
    #[link_name = "\u{1}cvc5_mk_bv"]
    pub fn mk_bv(
        tm: *mut TermManager,
        size: u32,
        s: *const ::std::os::raw::c_char,
        base: u32,
    ) -> Term;
}
unsafe extern "C" {
    #[doc = " Create a finite field constant in a given field from a given string\n of base n.\n\n @param tm    The term manager instance.\n @param value The string representation of the constant.\n @param sort  The field sort.\n @param base  The base of the string representation of `value`.\n\n If `size` is the field size, the constant needs not be in the range\n [0,size). If it is outside this range, it will be reduced modulo size\n before being constructed.\n"]
    #[link_name = "\u{1}cvc5_mk_ff_elem"]
    pub fn mk_ff_elem(
        tm: *mut TermManager,
        value: *const ::std::os::raw::c_char,
        sort: Sort,
        base: u32,
    ) -> Term;
}
unsafe extern "C" {
    #[doc = " Create a constant array with the provided constant value stored at every\n index.\n @param tm The term manager instance.\n @param sort The sort of the constant array (must be an array sort).\n @param val The constant value to store (must match the sort's element sort).\n @return The constant array term."]
    #[link_name = "\u{1}cvc5_mk_const_array"]
    pub fn mk_const_array(tm: *mut TermManager, sort: Sort, val: Term) -> Term;
}
unsafe extern "C" {
    #[doc = " Create a positive infinity floating-point constant (SMT-LIB: `+oo`).\n @param tm The term manager instance.\n @param exp Number of bits in the exponent.\n @param sig Number of bits in the significand.\n @return The floating-point constant."]
    #[link_name = "\u{1}cvc5_mk_fp_pos_inf"]
    pub fn mk_fp_pos_inf(tm: *mut TermManager, exp: u32, sig: u32) -> Term;
}
unsafe extern "C" {
    #[doc = " Create a negative infinity floating-point constant (SMT-LIB: `-oo`).\n @param tm The term manager instance.\n @param exp Number of bits in the exponent.\n @param sig Number of bits in the significand.\n @return The floating-point constant."]
    #[link_name = "\u{1}cvc5_mk_fp_neg_inf"]
    pub fn mk_fp_neg_inf(tm: *mut TermManager, exp: u32, sig: u32) -> Term;
}
unsafe extern "C" {
    #[doc = " Create a not-a-number floating-point constant (Cvc5TermManager* tm, SMT-LIB:\n `NaN`).\n @param tm The term manager instance.\n @param exp Number of bits in the exponent.\n @param sig Number of bits in the significand.\n @return The floating-point constant."]
    #[link_name = "\u{1}cvc5_mk_fp_nan"]
    pub fn mk_fp_nan(tm: *mut TermManager, exp: u32, sig: u32) -> Term;
}
unsafe extern "C" {
    #[doc = " Create a positive zero floating-point constant (Cvc5TermManager* tm, SMT-LIB:\n +zero).\n @param tm The term manager instance.\n @param exp Number of bits in the exponent.\n @param sig Number of bits in the significand.\n @return The floating-point constant."]
    #[link_name = "\u{1}cvc5_mk_fp_pos_zero"]
    pub fn mk_fp_pos_zero(tm: *mut TermManager, exp: u32, sig: u32) -> Term;
}
unsafe extern "C" {
    #[doc = " Create a negative zero floating-point constant (Cvc5TermManager* tm, SMT-LIB:\n -zero).\n @param tm The term manager instance.\n @param exp Number of bits in the exponent.\n @param sig Number of bits in the significand.\n @return The floating-point constant."]
    #[link_name = "\u{1}cvc5_mk_fp_neg_zero"]
    pub fn mk_fp_neg_zero(tm: *mut TermManager, exp: u32, sig: u32) -> Term;
}
unsafe extern "C" {
    #[doc = " Create a rounding mode value.\n @param tm The term manager instance.\n @param rm The floating point rounding mode this constant represents.\n @return The rounding mode value."]
    #[link_name = "\u{1}cvc5_mk_rm"]
    pub fn mk_rm(tm: *mut TermManager, rm: RoundingMode) -> Term;
}
unsafe extern "C" {
    #[doc = " Create a floating-point value from a bit-vector given in IEEE-754 format.\n @param tm The term manager instance.\n @param exp Size of the exponent.\n @param sig Size of the significand.\n @param val Value of the floating-point constant as a bit-vector term.\n @return The floating-point value."]
    #[link_name = "\u{1}cvc5_mk_fp"]
    pub fn mk_fp(tm: *mut TermManager, exp: u32, sig: u32, val: Term) -> Term;
}
unsafe extern "C" {
    #[doc = " Create a floating-point value from its three IEEE-754 bit-vector\n value components (sign bit, exponent, significand).\n @param tm The term manager instance.\n @param sign The sign bit.\n @param exp  The bit-vector representing the exponent.\n @param sig The bit-vector representing the significand.\n @return The floating-point value."]
    #[link_name = "\u{1}cvc5_mk_fp_from_ieee"]
    pub fn mk_fp_from_ieee(tm: *mut TermManager, sign: Term, exp: Term, sig: Term) -> Term;
}
unsafe extern "C" {
    #[doc = " Create a cardinality constraint for an uninterpreted sort.\n\n @warning This function is experimental and may change in future versions.\n\n @param tm The term manager instance.\n @param sort The sort the cardinality constraint is for.\n @param upperBound The upper bound on the cardinality of the sort.\n @return The cardinality constraint."]
    #[link_name = "\u{1}cvc5_mk_cardinality_constraint"]
    pub fn mk_cardinality_constraint(tm: *mut TermManager, sort: Sort, upperBound: u32) -> Term;
}
unsafe extern "C" {
    #[doc = " Create a free constant.\n\n SMT-LIB:\n\n \\verbatim embed:rst:leading-asterisk\n .. code:: smtlib\n\n     (declare-const <symbol> <sort>)\n     (declare-fun <symbol> () <sort>)\n \\endverbatim\n\n @param tm The term manager instance.\n @param sort The sort of the constant.\n @param symbol The name of the constant, may be NULL.\n @return The constant."]
    #[link_name = "\u{1}cvc5_mk_const"]
    pub fn mk_const(
        tm: *mut TermManager,
        sort: Sort,
        symbol: *const ::std::os::raw::c_char,
    ) -> Term;
}
unsafe extern "C" {
    #[doc = " Create a bound variable to be used in a binder (i.e., a quantifier, a\n lambda, or a witness binder).\n @param tm The term manager instance.\n @param sort The sort of the variable.\n @param symbol The name of the variable, may be NULL.\n @return The variable."]
    #[link_name = "\u{1}cvc5_mk_var"]
    pub fn mk_var(tm: *mut TermManager, sort: Sort, symbol: *const ::std::os::raw::c_char) -> Term;
}
unsafe extern "C" {
    #[doc = " Create a datatype constructor declaration.\n @param tm The term manager instance.\n @param name The name of the datatype constructor.\n @return The DatatypeConstructorDecl."]
    #[link_name = "\u{1}cvc5_mk_dt_cons_decl"]
    pub fn mk_dt_cons_decl(
        tm: *mut TermManager,
        name: *const ::std::os::raw::c_char,
    ) -> DatatypeConstructorDecl;
}
unsafe extern "C" {
    #[doc = " Create a datatype declaration.\n @param tm The term manager instance.\n @param name The name of the datatype.\n @param is_codt True if a codatatype is to be constructed.\n @return The Cvc5DatatypeDecl."]
    #[link_name = "\u{1}cvc5_mk_dt_decl"]
    pub fn mk_dt_decl(
        tm: *mut TermManager,
        name: *const ::std::os::raw::c_char,
        is_codt: bool,
    ) -> DatatypeDecl;
}
unsafe extern "C" {
    #[doc = " Create a datatype declaration.\n Create sorts parameter with `cvc5_mk_param_sort()`.\n\n @warning This function is experimental and may change in future versions.\n\n @param tm The term manager instance.\n @param name The name of the datatype.\n @param size The number of sort parameters.\n @param params A list of sort parameters.\n @param is_codt True if a codatatype is to be constructed.\n @return The Cvc5DatatypeDecl."]
    #[link_name = "\u{1}cvc5_mk_dt_decl_with_params"]
    pub fn mk_dt_decl_with_params(
        tm: *mut TermManager,
        name: *const ::std::os::raw::c_char,
        size: usize,
        params: *const Sort,
        is_codt: bool,
    ) -> DatatypeDecl;
}
#[repr(u32)]
#[doc = " @}"]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum OptionInfoKind {
    #[doc = " The empty option info, does not hold value information."]
    Void = 0,
    #[doc = " Information for option with boolean option value."]
    Bool = 1,
    #[doc = " Information for option with string option value."]
    Str = 2,
    #[doc = " Information for option with int64 option value."]
    Int64 = 3,
    #[doc = " Information for option with uint64 option value."]
    Uint64 = 4,
    #[doc = " Information for option with double value."]
    Double = 5,
    #[doc = " Information for option with option modes."]
    Modes = 6,
}
#[doc = " \\verbatim embed:rst:leading-asterisk\n Holds information about a specific option, including its name, its\n aliases, whether the option was explicitly set by the user, and information\n concerning its value.\n It can be obtained via :cpp:func:`cvc5_get_option_info()` and allows for a\n more detailed inspection of options than :cpp:func:`cvc5_get_option()`.\n Union member ``info`` holds any of the following alternatives:\n\n - Neither of the following if the option holds no value (or the value has no\n   native type). In that case, the kind of the option will be denoted as\n   #CVC5_OPTION_INFO_VOID.\n - Struct ``BoolInfo`` if the option is of type ``bool``. It holds the current\n   value and the default value of the option. Option kind is denoted as\n   #CVC5_OPTION_INFO_BOOL.\n - Struct ``StringInfo`` if the option is of type ``const char*``. It holds\n   the current value and the default value of the option. Option kind is\n   denoted as #CVC5_OPTION_INFO_STR.\n - Struct ``IntInfo`` if the option is of type ``int64_t``. It holds the\n   current, default, minimum and maximum value of the option. Option kind is\n   denoted as #CVC5_OPTION_INFO_INT64.\n - Struct ``UIntInfo`` if the option is of type ``uint64_t``. It holds the\n   current, default, minimum and maximum value of the option. Option kind is\n   denoted as #CVC5_OPTION_INFO_UINT64.\n - Struct ``DoubleInfo`` if the option is of type ``double``. It holds the\n   current, default, minimum and maximum value of the option. Option kind is\n   denoted as #CVC5_OPTION_INFO_DOUBLE.\n - Struct ``ModeInfo`` if the option has modes. It holds the current and\n   default valuesof the option, as well as a list of valid modes. Option kind\n   is denoted as #CVC5_OPTION_INFO_MODES.\n\n \\endverbatim\n\n  @note A typedef alias with the same name is also available for convenience."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OptionInfo {
    #[doc = " The kind of the option info."]
    pub kind: OptionInfoKind,
    #[doc = " The option name"]
    pub name: *const ::std::os::raw::c_char,
    #[doc = " The number of option name aliases"]
    pub num_aliases: usize,
    #[doc = " The option name aliases"]
    pub aliases: *mut *const ::std::os::raw::c_char,
    #[doc = " The number of unsupported features"]
    pub num_no_supports: usize,
    #[doc = " The unsupported features"]
    pub no_supports: *mut *const ::std::os::raw::c_char,
    #[doc = " True if the option was explicitly set by the user"]
    pub is_set_by_user: bool,
    #[doc = " True if the option is an expert option\n @warning This field is deprecated and replaced by `category`. It will be\n          removed in a future release."]
    pub is_expert: bool,
    #[doc = " True if the option is a regular option\n @warning This field is deprecated and replaced by `category`. It will be\n          removed in a future release."]
    pub is_regular: bool,
    #[doc = " The category of this option."]
    pub category: OptionCategory,
    pub info_bool: OptionInfo_BoolInfo,
    pub info_str: OptionInfo_StringInfo,
    pub info_int: OptionInfo_IntInfo,
    pub info_uint: OptionInfo_UIntInfo,
    pub info_double: OptionInfo_DoubleInfo,
    pub info_mode: OptionInfo_ModeInfo,
    #[doc = " The associated C++ info. For internal use, only."]
    pub d_cpp_info: *mut ::std::os::raw::c_void,
}
#[doc = " Information for boolean option values."]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct OptionInfo_BoolInfo {
    #[doc = " The default value."]
    pub dflt: bool,
    #[doc = " The current value."]
    pub cur: bool,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of OptionInfo_BoolInfo"][::std::mem::size_of::<OptionInfo_BoolInfo>() - 2usize];
    ["Alignment of OptionInfo_BoolInfo"][::std::mem::align_of::<OptionInfo_BoolInfo>() - 1usize];
    ["Offset of field: OptionInfo_BoolInfo::dflt"]
        [::std::mem::offset_of!(OptionInfo_BoolInfo, dflt) - 0usize];
    ["Offset of field: OptionInfo_BoolInfo::cur"]
        [::std::mem::offset_of!(OptionInfo_BoolInfo, cur) - 1usize];
};
#[doc = " Information for string option values."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OptionInfo_StringInfo {
    #[doc = " The default value."]
    pub dflt: *const ::std::os::raw::c_char,
    #[doc = " The current value."]
    pub cur: *const ::std::os::raw::c_char,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of OptionInfo_StringInfo"][::std::mem::size_of::<OptionInfo_StringInfo>() - 16usize];
    ["Alignment of OptionInfo_StringInfo"]
        [::std::mem::align_of::<OptionInfo_StringInfo>() - 8usize];
    ["Offset of field: OptionInfo_StringInfo::dflt"]
        [::std::mem::offset_of!(OptionInfo_StringInfo, dflt) - 0usize];
    ["Offset of field: OptionInfo_StringInfo::cur"]
        [::std::mem::offset_of!(OptionInfo_StringInfo, cur) - 8usize];
};
impl Default for OptionInfo_StringInfo {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[doc = " Information for int64 values."]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct OptionInfo_IntInfo {
    #[doc = " The default value."]
    pub dflt: i64,
    #[doc = " The current value."]
    pub cur: i64,
    #[doc = " The minimum value."]
    pub min: i64,
    #[doc = " The maximum value."]
    pub max: i64,
    #[doc = " True if option has a minimum value."]
    pub has_min: bool,
    #[doc = " True if option has a maximum value."]
    pub has_max: bool,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of OptionInfo_IntInfo"][::std::mem::size_of::<OptionInfo_IntInfo>() - 40usize];
    ["Alignment of OptionInfo_IntInfo"][::std::mem::align_of::<OptionInfo_IntInfo>() - 8usize];
    ["Offset of field: OptionInfo_IntInfo::dflt"]
        [::std::mem::offset_of!(OptionInfo_IntInfo, dflt) - 0usize];
    ["Offset of field: OptionInfo_IntInfo::cur"]
        [::std::mem::offset_of!(OptionInfo_IntInfo, cur) - 8usize];
    ["Offset of field: OptionInfo_IntInfo::min"]
        [::std::mem::offset_of!(OptionInfo_IntInfo, min) - 16usize];
    ["Offset of field: OptionInfo_IntInfo::max"]
        [::std::mem::offset_of!(OptionInfo_IntInfo, max) - 24usize];
    ["Offset of field: OptionInfo_IntInfo::has_min"]
        [::std::mem::offset_of!(OptionInfo_IntInfo, has_min) - 32usize];
    ["Offset of field: OptionInfo_IntInfo::has_max"]
        [::std::mem::offset_of!(OptionInfo_IntInfo, has_max) - 33usize];
};
#[doc = " Information for uint64 values."]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct OptionInfo_UIntInfo {
    #[doc = " The default value."]
    pub dflt: u64,
    #[doc = " The current value."]
    pub cur: u64,
    #[doc = " The minimum value."]
    pub min: u64,
    #[doc = " The maximum value."]
    pub max: u64,
    #[doc = " True if option has a minimum value."]
    pub has_min: bool,
    #[doc = " True if option has a maximum value."]
    pub has_max: bool,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of OptionInfo_UIntInfo"][::std::mem::size_of::<OptionInfo_UIntInfo>() - 40usize];
    ["Alignment of OptionInfo_UIntInfo"][::std::mem::align_of::<OptionInfo_UIntInfo>() - 8usize];
    ["Offset of field: OptionInfo_UIntInfo::dflt"]
        [::std::mem::offset_of!(OptionInfo_UIntInfo, dflt) - 0usize];
    ["Offset of field: OptionInfo_UIntInfo::cur"]
        [::std::mem::offset_of!(OptionInfo_UIntInfo, cur) - 8usize];
    ["Offset of field: OptionInfo_UIntInfo::min"]
        [::std::mem::offset_of!(OptionInfo_UIntInfo, min) - 16usize];
    ["Offset of field: OptionInfo_UIntInfo::max"]
        [::std::mem::offset_of!(OptionInfo_UIntInfo, max) - 24usize];
    ["Offset of field: OptionInfo_UIntInfo::has_min"]
        [::std::mem::offset_of!(OptionInfo_UIntInfo, has_min) - 32usize];
    ["Offset of field: OptionInfo_UIntInfo::has_max"]
        [::std::mem::offset_of!(OptionInfo_UIntInfo, has_max) - 33usize];
};
#[doc = " Information for double values."]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct OptionInfo_DoubleInfo {
    #[doc = " The default value."]
    pub dflt: f64,
    #[doc = " The current value."]
    pub cur: f64,
    #[doc = " The minimum value."]
    pub min: f64,
    #[doc = " The maximum value."]
    pub max: f64,
    #[doc = " True if option has a minimum value."]
    pub has_min: bool,
    #[doc = " True if option has a maximum value."]
    pub has_max: bool,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of OptionInfo_DoubleInfo"][::std::mem::size_of::<OptionInfo_DoubleInfo>() - 40usize];
    ["Alignment of OptionInfo_DoubleInfo"]
        [::std::mem::align_of::<OptionInfo_DoubleInfo>() - 8usize];
    ["Offset of field: OptionInfo_DoubleInfo::dflt"]
        [::std::mem::offset_of!(OptionInfo_DoubleInfo, dflt) - 0usize];
    ["Offset of field: OptionInfo_DoubleInfo::cur"]
        [::std::mem::offset_of!(OptionInfo_DoubleInfo, cur) - 8usize];
    ["Offset of field: OptionInfo_DoubleInfo::min"]
        [::std::mem::offset_of!(OptionInfo_DoubleInfo, min) - 16usize];
    ["Offset of field: OptionInfo_DoubleInfo::max"]
        [::std::mem::offset_of!(OptionInfo_DoubleInfo, max) - 24usize];
    ["Offset of field: OptionInfo_DoubleInfo::has_min"]
        [::std::mem::offset_of!(OptionInfo_DoubleInfo, has_min) - 32usize];
    ["Offset of field: OptionInfo_DoubleInfo::has_max"]
        [::std::mem::offset_of!(OptionInfo_DoubleInfo, has_max) - 33usize];
};
#[doc = " Information for mode option values."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OptionInfo_ModeInfo {
    #[doc = " The default value."]
    pub dflt: *const ::std::os::raw::c_char,
    #[doc = " The current value."]
    pub cur: *const ::std::os::raw::c_char,
    #[doc = " The number of possible modes."]
    pub num_modes: usize,
    #[doc = " The possible modes."]
    pub modes: *mut *const ::std::os::raw::c_char,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of OptionInfo_ModeInfo"][::std::mem::size_of::<OptionInfo_ModeInfo>() - 32usize];
    ["Alignment of OptionInfo_ModeInfo"][::std::mem::align_of::<OptionInfo_ModeInfo>() - 8usize];
    ["Offset of field: OptionInfo_ModeInfo::dflt"]
        [::std::mem::offset_of!(OptionInfo_ModeInfo, dflt) - 0usize];
    ["Offset of field: OptionInfo_ModeInfo::cur"]
        [::std::mem::offset_of!(OptionInfo_ModeInfo, cur) - 8usize];
    ["Offset of field: OptionInfo_ModeInfo::num_modes"]
        [::std::mem::offset_of!(OptionInfo_ModeInfo, num_modes) - 16usize];
    ["Offset of field: OptionInfo_ModeInfo::modes"]
        [::std::mem::offset_of!(OptionInfo_ModeInfo, modes) - 24usize];
};
impl Default for OptionInfo_ModeInfo {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of OptionInfo"][::std::mem::size_of::<OptionInfo>() - 240usize];
    ["Alignment of OptionInfo"][::std::mem::align_of::<OptionInfo>() - 8usize];
    ["Offset of field: OptionInfo::kind"][::std::mem::offset_of!(OptionInfo, kind) - 0usize];
    ["Offset of field: OptionInfo::name"][::std::mem::offset_of!(OptionInfo, name) - 8usize];
    ["Offset of field: OptionInfo::num_aliases"]
        [::std::mem::offset_of!(OptionInfo, num_aliases) - 16usize];
    ["Offset of field: OptionInfo::aliases"][::std::mem::offset_of!(OptionInfo, aliases) - 24usize];
    ["Offset of field: OptionInfo::num_no_supports"]
        [::std::mem::offset_of!(OptionInfo, num_no_supports) - 32usize];
    ["Offset of field: OptionInfo::no_supports"]
        [::std::mem::offset_of!(OptionInfo, no_supports) - 40usize];
    ["Offset of field: OptionInfo::is_set_by_user"]
        [::std::mem::offset_of!(OptionInfo, is_set_by_user) - 48usize];
    ["Offset of field: OptionInfo::is_expert"]
        [::std::mem::offset_of!(OptionInfo, is_expert) - 49usize];
    ["Offset of field: OptionInfo::is_regular"]
        [::std::mem::offset_of!(OptionInfo, is_regular) - 50usize];
    ["Offset of field: OptionInfo::category"]
        [::std::mem::offset_of!(OptionInfo, category) - 52usize];
    ["Offset of field: OptionInfo::info_bool"]
        [::std::mem::offset_of!(OptionInfo, info_bool) - 56usize];
    ["Offset of field: OptionInfo::info_str"]
        [::std::mem::offset_of!(OptionInfo, info_str) - 64usize];
    ["Offset of field: OptionInfo::info_int"]
        [::std::mem::offset_of!(OptionInfo, info_int) - 80usize];
    ["Offset of field: OptionInfo::info_uint"]
        [::std::mem::offset_of!(OptionInfo, info_uint) - 120usize];
    ["Offset of field: OptionInfo::info_double"]
        [::std::mem::offset_of!(OptionInfo, info_double) - 160usize];
    ["Offset of field: OptionInfo::info_mode"]
        [::std::mem::offset_of!(OptionInfo, info_mode) - 200usize];
    ["Offset of field: OptionInfo::d_cpp_info"]
        [::std::mem::offset_of!(OptionInfo, d_cpp_info) - 232usize];
};
impl Default for OptionInfo {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
unsafe extern "C" {
    #[doc = " Get a string representation of a given option info.\n @param info The option info.\n @return The string representation.\n @note The returned char* pointer is only valid until the next call to this\n       function."]
    #[link_name = "\u{1}cvc5_option_info_to_string"]
    pub fn option_info_to_string(info: *const OptionInfo) -> *const ::std::os::raw::c_char;
}
#[doc = " A cvc5 plugin.\n\n @note A typedef alias with the same name is also available for convenience."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Plugin {
    #[doc = " Call to check, return list of lemmas to add to the SAT solver.\n This method is called periodically, roughly at every SAT decision.\n @param size  The size of the returned array of lemmas.\n @param state The state data for the function, may be NULL.\n @return The vector of lemmas to add to the SAT solver.\n @note This function pointer may be NULL to use the default implementation."]
    pub check: ::std::option::Option<
        unsafe extern "C" fn(size: *mut usize, state: *mut ::std::os::raw::c_void) -> *const Term,
    >,
    #[doc = " Notify SAT clause, called when `clause` is learned by the SAT solver.\n @param clause The learned clause.\n @param state The state data for the function, may be NULL.\n @note This function pointer may be NULL to use the default implementation."]
    pub notify_sat_clause: ::std::option::Option<
        unsafe extern "C" fn(clause: Term, state: *mut ::std::os::raw::c_void),
    >,
    #[doc = " Notify theory lemma, called when `lemma` is sent by a theory solver.\n @param lemma The theory lemma.\n @param state The state data for the function, may be NULL.\n @note This function pointer may be NULL to use the default implementation."]
    pub notify_theory_lemma: ::std::option::Option<
        unsafe extern "C" fn(lemma: Term, state: *mut ::std::os::raw::c_void),
    >,
    #[doc = " Get the name of the plugin (for debugging).\n @return The name of the plugin.\n @note This function pointer may NOT be NULL."]
    pub get_name: ::std::option::Option<unsafe extern "C" fn() -> *const ::std::os::raw::c_char>,
    #[doc = " The state to pass into `check`."]
    pub d_check_state: *mut ::std::os::raw::c_void,
    #[doc = " The state to pass into `notify_sat_clause`."]
    pub d_notify_sat_clause_state: *mut ::std::os::raw::c_void,
    #[doc = " The state to pass into `notify_theory_lemma`."]
    pub d_notify_theory_lemma_state: *mut ::std::os::raw::c_void,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of Plugin"][::std::mem::size_of::<Plugin>() - 56usize];
    ["Alignment of Plugin"][::std::mem::align_of::<Plugin>() - 8usize];
    ["Offset of field: Plugin::check"][::std::mem::offset_of!(Plugin, check) - 0usize];
    ["Offset of field: Plugin::notify_sat_clause"]
        [::std::mem::offset_of!(Plugin, notify_sat_clause) - 8usize];
    ["Offset of field: Plugin::notify_theory_lemma"]
        [::std::mem::offset_of!(Plugin, notify_theory_lemma) - 16usize];
    ["Offset of field: Plugin::get_name"][::std::mem::offset_of!(Plugin, get_name) - 24usize];
    ["Offset of field: Plugin::d_check_state"]
        [::std::mem::offset_of!(Plugin, d_check_state) - 32usize];
    ["Offset of field: Plugin::d_notify_sat_clause_state"]
        [::std::mem::offset_of!(Plugin, d_notify_sat_clause_state) - 40usize];
    ["Offset of field: Plugin::d_notify_theory_lemma_state"]
        [::std::mem::offset_of!(Plugin, d_notify_theory_lemma_state) - 48usize];
};
impl Default for Plugin {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
unsafe extern "C" {
    #[doc = " Get the proof rule used by the root step of a given proof.\n @return The proof rule."]
    #[link_name = "\u{1}cvc5_proof_get_rule"]
    pub fn proof_get_rule(proof: Proof) -> ProofRule;
}
unsafe extern "C" {
    #[doc = " Get the proof rewrite rule used  by the root step of the proof.\n\n Requires that `cvc5_proof_get_rule()` does not return\n #CVC5_PROOF_RULE_DSL_REWRITE or #CVC5_PROOF_RULE_THEORY_REWRITE.\n\n @param proof The proof.\n @return The proof rewrite rule."]
    #[link_name = "\u{1}cvc5_proof_get_rewrite_rule"]
    pub fn proof_get_rewrite_rule(proof: Proof) -> ProofRewriteRule;
}
unsafe extern "C" {
    #[doc = " Get the conclusion of the root step of a given proof.\n @param proof The proof.\n @return The conclusion term."]
    #[link_name = "\u{1}cvc5_proof_get_result"]
    pub fn proof_get_result(proof: Proof) -> Term;
}
unsafe extern "C" {
    #[doc = " Get the premises of the root step of a given proof.\n @param proof The proof.\n @param size  Output parameter to store the number of resulting premise\n              proofs.\n @return The premise proofs.\n @note The returned Cvc5Proof array pointer is only valid until the next call\n       to this function."]
    #[link_name = "\u{1}cvc5_proof_get_children"]
    pub fn proof_get_children(proof: Proof, size: *mut usize) -> *const Proof;
}
unsafe extern "C" {
    #[doc = " Get the arguments of the root step of a given proof.\n @param proof The proof.\n @param size  Output parameter to store the number of resulting argument\n              terms.\n @return The argument terms."]
    #[link_name = "\u{1}cvc5_proof_get_arguments"]
    pub fn proof_get_arguments(proof: Proof, size: *mut usize) -> *const Term;
}
unsafe extern "C" {
    #[doc = " Compare two proofs for referential equality.\n @param a The first proof.\n @param b The second proof.\n @return  True if both proof pointers point to the same internal proof object."]
    #[link_name = "\u{1}cvc5_proof_is_equal"]
    pub fn proof_is_equal(a: Proof, b: Proof) -> bool;
}
unsafe extern "C" {
    #[doc = " Compare two proofs for referential disequality.\n @param a The first proof.\n @param b The second proof.\n @return  True if both proof pointers point to different internal proof\n          objects."]
    #[link_name = "\u{1}cvc5_proof_is_disequal"]
    pub fn proof_is_disequal(a: Proof, b: Proof) -> bool;
}
unsafe extern "C" {
    #[doc = " Compute the hash value of a proof.\n @param proof The proof.\n @return The hash value of the proof."]
    #[link_name = "\u{1}cvc5_proof_hash"]
    pub fn proof_hash(proof: Proof) -> usize;
}
unsafe extern "C" {
    #[doc = " Make copy of proof, increases reference counter of `proof`.\n\n @param proof The proof to copy.\n @return The same proof with its reference count increased by one.\n\n @note This step is optional and allows users to manage resources in a more\n       fine-grained manner."]
    #[link_name = "\u{1}cvc5_proof_copy"]
    pub fn proof_copy(proof: Proof) -> Proof;
}
unsafe extern "C" {
    #[doc = " Release copy of proof, decrements reference counter of `proof`.\n\n @param proof The proof to release.\n\n @note This step is optional and allows users to release resources in a more\n       fine-grained manner. Further, any API function that returns a copy\n       that is owned by the callee of the function and thus, can be released."]
    #[link_name = "\u{1}cvc5_proof_release"]
    pub fn proof_release(proof: Proof);
}
unsafe extern "C" {
    #[doc = " Determine if a given statistic is intended for internal use only.\n @param stat The statistic.\n @return True if this is an internal statistic."]
    #[link_name = "\u{1}cvc5_stat_is_internal"]
    pub fn stat_is_internal(stat: Stat) -> bool;
}
unsafe extern "C" {
    #[doc = " Determine if a given statistics statistic holds the default value.\n @param stat The statistic.\n @return True if this is a defaulted statistic."]
    #[link_name = "\u{1}cvc5_stat_is_default"]
    pub fn stat_is_default(stat: Stat) -> bool;
}
unsafe extern "C" {
    #[doc = " Determine if a given statistic holds an integer value.\n @param stat The statistic.\n @return True if this value is an integer."]
    #[link_name = "\u{1}cvc5_stat_is_int"]
    pub fn stat_is_int(stat: Stat) -> bool;
}
unsafe extern "C" {
    #[doc = " Get the value of an integer statistic.\n @param stat The statistic.\n @return The integer value."]
    #[link_name = "\u{1}cvc5_stat_get_int"]
    pub fn stat_get_int(stat: Stat) -> i64;
}
unsafe extern "C" {
    #[doc = " Determine if a given statistic holds a double value.\n @param stat The statistic.\n @return True if this value is a double."]
    #[link_name = "\u{1}cvc5_stat_is_double"]
    pub fn stat_is_double(stat: Stat) -> bool;
}
unsafe extern "C" {
    #[doc = " Get the value of a double statistic.\n @param stat The statistic.\n @return The double value."]
    #[link_name = "\u{1}cvc5_stat_get_double"]
    pub fn stat_get_double(stat: Stat) -> f64;
}
unsafe extern "C" {
    #[doc = " Determine if a given statistic holds a string value.\n @param stat The statistic.\n @return True if this value is a string."]
    #[link_name = "\u{1}cvc5_stat_is_string"]
    pub fn stat_is_string(stat: Stat) -> bool;
}
unsafe extern "C" {
    #[doc = " Get value of a string statistic.\n @param stat The statistic.\n @return The string value.\n @note The returned char pointer is only valid until the next call\n       to this function."]
    #[link_name = "\u{1}cvc5_stat_get_string"]
    pub fn stat_get_string(stat: Stat) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " Determine if a given statistic holds a histogram.\n @param stat The statistic.\n @return True if this value is a histogram."]
    #[link_name = "\u{1}cvc5_stat_is_histogram"]
    pub fn stat_is_histogram(stat: Stat) -> bool;
}
unsafe extern "C" {
    #[doc = " Get the value of a histogram statistic.\n @param stat   The statistic.\n @param keys   The resulting arrays with the keys of the statistic, map to the\n               values given in the resulting `values` array..\n @param values The resulting arrays with the values of the statistic.\n @param size   The size of the resulting keys/values arrays."]
    #[link_name = "\u{1}cvc5_stat_get_histogram"]
    pub fn stat_get_histogram(
        stat: Stat,
        keys: *mut *mut *const ::std::os::raw::c_char,
        values: *mut *mut u64,
        size: *mut usize,
    );
}
unsafe extern "C" {
    #[doc = " Get a string representation of a given statistic.\n @param stat The statistic.\n @return The string representation.\n @note The returned char* pointer is only valid until the next call to this\n       function."]
    #[link_name = "\u{1}cvc5_stat_to_string"]
    pub fn stat_to_string(stat: Stat) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " Initialize iteration over the statistics values.\n By default, only entries that are public and have been set\n are visible while the others are skipped.\n @param stat The statistics.\n @param internal If set to true, internal statistics are shown as well.\n @param dflt     If set to true, defaulted statistics are shown as well."]
    #[link_name = "\u{1}cvc5_stats_iter_init"]
    pub fn stats_iter_init(stat: Statistics, internal: bool, dflt: bool);
}
unsafe extern "C" {
    #[doc = " Determine if statistics iterator has more statitics to query.\n @note Requires that iterator was initialized with `cvc5_stats_iter_init()`.\n @param stat The statistics.\n @return True if the iterator has more statistics to query."]
    #[link_name = "\u{1}cvc5_stats_iter_has_next"]
    pub fn stats_iter_has_next(stat: Statistics) -> bool;
}
unsafe extern "C" {
    #[doc = " Get next statistic and increment iterator.\n @note Requires that iterator was initialized with `cvc5_stats_iter_init()`\n       and that `cvc5_stats_iter_has_next()`.\n @param stat The statistics.\n @param name The output parameter for the name of the returned statistic.\n             May be NULL to ignore.\n @note       The returned char* pointer are only valid until the next call to\n             this function.\n @return The next statistic."]
    #[link_name = "\u{1}cvc5_stats_iter_next"]
    pub fn stats_iter_next(stat: Statistics, name: *mut *const ::std::os::raw::c_char) -> Stat;
}
unsafe extern "C" {
    #[doc = " Retrieve the statistic with the given name.\n @note Requires that a statistic with the given name actually exists.\n @param stat The statistics.\n @param name The name of the statistic.\n @return The statistic with the given name."]
    #[link_name = "\u{1}cvc5_stats_get"]
    pub fn stats_get(stat: Statistics, name: *const ::std::os::raw::c_char) -> Stat;
}
unsafe extern "C" {
    #[doc = " Get a string representation of a given statistics object.\n @param stat The statistics.\n @return The string representation.\n @note The returned char* pointer is only valid until the next call to this\n       function."]
    #[link_name = "\u{1}cvc5_stats_to_string"]
    pub fn stats_to_string(stat: Statistics) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " Construct a new instance of a cvc5 solver.\n @param tm The associated term manager instance.\n @return The cvc5 solver instance."]
    #[link_name = "\u{1}cvc5_new"]
    pub fn new(tm: *mut TermManager) -> *mut Solver;
}
unsafe extern "C" {
    #[doc = " Delete a cvc5 solver instance.\n @param cvc5 The solver instance."]
    #[link_name = "\u{1}cvc5_delete"]
    pub fn delete(cvc5: *mut Solver);
}
unsafe extern "C" {
    #[doc = " Get the associated term manager of a cvc5 solver instance.\n @param cvc5 The solver instance.\n @return The term manager."]
    #[link_name = "\u{1}cvc5_get_tm"]
    pub fn get_tm(cvc5: *mut Solver) -> *mut TermManager;
}
unsafe extern "C" {
    #[doc = " Create datatype sort.\n\n SMT-LIB:\n\n \\verbatim embed:rst:leading-asterisk\n .. code:: smtlib\n\n     (declare-datatype <symbol> <datatype_decl>)\n \\endverbatim\n\n @param cvc5   The solver instance.\n @param symbol The name of the datatype sort.\n @param size The number of constructor declarations of the datatype sort.\n @param ctors The constructor declarations.\n @return The datatype sort."]
    #[link_name = "\u{1}cvc5_declare_dt"]
    pub fn declare_dt(
        cvc5: *mut Solver,
        symbol: *const ::std::os::raw::c_char,
        size: usize,
        ctors: *const DatatypeConstructorDecl,
    ) -> Sort;
}
unsafe extern "C" {
    #[doc = " Declare n-ary function symbol.\n\n SMT-LIB:\n\n \\verbatim embed:rst:leading-asterisk\n .. code:: smtlib\n\n     (declare-fun <symbol> ( <sort>* ) <sort>)\n \\endverbatim\n\n @param cvc5   The solver instance.\n @param symbol The name of the function.\n @param size   The number of domain sorts of the function.\n @param sorts  The domain sorts of the function.\n @param sort   The codomain sort of the function.\n @param fresh  If true, then this method always returns a new Term. Otherwise,\n               this method will always return the same Term for each call with\n               the given sorts and symbol where fresh is false.\n @return The function."]
    #[link_name = "\u{1}cvc5_declare_fun"]
    pub fn declare_fun(
        cvc5: *mut Solver,
        symbol: *const ::std::os::raw::c_char,
        size: usize,
        sorts: *const Sort,
        sort: Sort,
        fresh: bool,
    ) -> Term;
}
unsafe extern "C" {
    #[doc = " Declare uninterpreted sort.\n\n SMT-LIB:\n\n \\verbatim embed:rst:leading-asterisk\n .. code:: smtlib\n\n     (declare-sort <symbol> <numeral>)\n \\endverbatim\n\n @note This corresponds to\n       `cvc5_mk_uninterpreted_sort()` if arity = 0, and to\n       `cvc5_mk_uninterpreted_sort_constructor_sort()` if arity > 0.\n\n @param cvc5   The solver instance.\n @param symbol The name of the sort.\n @param arity  The arity of the sort.\n @param fresh  If true, then this method always returns a new Sort.\n @return The sort."]
    #[link_name = "\u{1}cvc5_declare_sort"]
    pub fn declare_sort(
        cvc5: *mut Solver,
        symbol: *const ::std::os::raw::c_char,
        arity: u32,
        fresh: bool,
    ) -> Sort;
}
unsafe extern "C" {
    #[doc = " Define n-ary function.\n\n SMT-LIB:\n\n \\verbatim embed:rst:leading-asterisk\n .. code:: smtlib\n\n     (define-fun <function_def>)\n \\endverbatim\n\n @param cvc5   The cvc5 solver instance.\n @param symbol The name of the function.\n @param size   The number of parameters of the function.\n @param vars   The parameters.\n @param sort   The sort of the return value of this function.\n @param term   The function body.\n @param global Determines whether this definition is global (i.e., persists\n               when popping the context).\n @return The function."]
    #[link_name = "\u{1}cvc5_define_fun"]
    pub fn define_fun(
        cvc5: *mut Solver,
        symbol: *const ::std::os::raw::c_char,
        size: usize,
        vars: *const Term,
        sort: Sort,
        term: Term,
        global: bool,
    ) -> Term;
}
unsafe extern "C" {
    #[doc = " Define recursive function.\n\n SMT-LIB:\n\n \\verbatim embed:rst:leading-asterisk\n .. code:: smtlib\n\n     (define-fun-rec <function_def>)\n \\endverbatim\n\n @param cvc5   The cvc5 solver instance.\n @param symbol The name of the function.\n @param size   The number of parameters of the function.\n @param vars   The parameters to this function.\n @param sort   The sort of the return value of this function.\n @param term   The function body.\n @param global Determines whether this definition is global (i.e., persists\n               when popping the context).\n @return The function."]
    #[link_name = "\u{1}cvc5_define_fun_rec"]
    pub fn define_fun_rec(
        cvc5: *mut Solver,
        symbol: *const ::std::os::raw::c_char,
        size: usize,
        vars: *const Term,
        sort: Sort,
        term: Term,
        global: bool,
    ) -> Term;
}
unsafe extern "C" {
    #[doc = " Define recursive function.\n\n SMT-LIB:\n\n \\verbatim embed:rst:leading-asterisk\n .. code:: smtlib\n\n     (define-fun-rec <function_def>)\n \\endverbatim\n\n Create parameter `fun` with mkConst().\n\n @param cvc5   The cvc5 solver instance.\n @param fun    The sorted function.\n @param size   The number of parameters of the function.\n @param vars   The parameters to this function.\n @param term   The function body.\n @param global Determines whether this definition is global (i.e., persists\n               when popping the context).\n @return The function."]
    #[link_name = "\u{1}cvc5_define_fun_rec_from_const"]
    pub fn define_fun_rec_from_const(
        cvc5: *mut Solver,
        fun: Term,
        size: usize,
        vars: *const Term,
        term: Term,
        global: bool,
    ) -> Term;
}
unsafe extern "C" {
    #[doc = " Define recursive functions.\n\n SMT-LIB:\n\n \\verbatim embed:rst:leading-asterisk\n .. code:: smtlib\n\n     (define-funs-rec\n         ( <function_decl>_1 ... <function_decl>_n )\n         ( <term>_1 ... <term>_n )\n     )\n \\endverbatim\n\n Create elements of parameter `funs` with `cvc5_mk_const()`.\n\n @param cvc5   The cvc5 solver instance.\n @param nfuns  The number of sorted functions.\n @param funs   The sorted functions.\n @param nvars  The numbers of parameters for each function.\n @param vars   The list of parameters to the functions.\n @param terms  The list of function bodies of the functions.\n @param global Determines whether this definition is global (i.e., persists\n               when popping the context)."]
    #[link_name = "\u{1}cvc5_define_funs_rec"]
    pub fn define_funs_rec(
        cvc5: *mut Solver,
        nfuns: usize,
        funs: *const Term,
        nvars: *mut usize,
        vars: *mut *const Term,
        terms: *const Term,
        global: bool,
    );
}
unsafe extern "C" {
    #[doc = " Simplify a formula without doing \"much\" work.\n\n Does not involve the SAT Engine in the simplification, but uses the\n current definitions, and assertions.  It also involves theory\n normalization.\n\n @warning This function is experimental and may change in future versions.\n\n @param cvc5       The solver instance.\n @param term       The formula to simplify.\n @param apply_subs True to apply substitutions for solved variables.\n @return The simplified formula."]
    #[link_name = "\u{1}cvc5_simplify"]
    pub fn simplify(cvc5: *mut Solver, term: Term, apply_subs: bool) -> Term;
}
unsafe extern "C" {
    #[doc = " Assert a formula.\n\n SMT-LIB:\n\n \\verbatim embed:rst:leading-asterisk\n .. code:: smtlib\n\n     (assert <term>)\n \\endverbatim\n\n @param cvc5 The solver instance.\n @param term The formula to assert."]
    #[link_name = "\u{1}cvc5_assert_formula"]
    pub fn assert_formula(cvc5: *mut Solver, term: Term);
}
unsafe extern "C" {
    #[doc = " Check satisfiability.\n\n SMT-LIB:\n\n \\verbatim embed:rst:leading-asterisk\n .. code:: smtlib\n\n     (check-sat)\n \\endverbatim\n\n @param cvc5 The solver instance.\n @return The result of the satisfiability check."]
    #[link_name = "\u{1}cvc5_check_sat"]
    pub fn check_sat(cvc5: *mut Solver) -> Result;
}
unsafe extern "C" {
    #[doc = " Check satisfiability assuming the given formulas.\n\n SMT-LIB:\n\n \\verbatim embed:rst:leading-asterisk\n .. code:: smtlib\n\n     (check-sat-assuming ( <prop_literal>+ ))\n \\endverbatim\n\n @param cvc5 The solver instance.\n @param size The number of assumptions.\n @param assumptions The formulas to assume.\n @return The result of the satisfiability check."]
    #[link_name = "\u{1}cvc5_check_sat_assuming"]
    pub fn check_sat_assuming(cvc5: *mut Solver, size: usize, assumptions: *const Term) -> Result;
}
unsafe extern "C" {
    #[doc = " Get the list of asserted formulas.\n\n SMT-LIB:\n\n \\verbatim embed:rst:leading-asterisk\n .. code:: smtlib\n\n     (get-assertions)\n \\endverbatim\n\n @param cvc5 The solver instance.\n @param size The size of the resulting assertions array.\n @return The list of asserted formulas.\n @note The returned Cvc5Term array pointer is only valid until the next call\n       to this function."]
    #[link_name = "\u{1}cvc5_get_assertions"]
    pub fn get_assertions(cvc5: *mut Solver, size: *mut usize) -> *const Term;
}
unsafe extern "C" {
    #[doc = " Get info from the solver.\n\n SMT-LIB:\n\n \\verbatim embed:rst:leading-asterisk\n .. code:: smtlib\n\n     (get-info <info_flag>)\n \\endverbatim\n\n @param cvc5 The solver instance.\n @param flag The info flag.\n @return The info.\n @note The returned char* pointer is only valid until the next call to this\n       function."]
    #[link_name = "\u{1}cvc5_get_info"]
    pub fn get_info(
        cvc5: *mut Solver,
        flag: *const ::std::os::raw::c_char,
    ) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " Get the value of a given option.\n\n SMT-LIB:\n\n \\verbatim embed:rst:leading-asterisk\n .. code:: smtlib\n\n     (get-option <keyword>)\n \\endverbatim\n\n @param cvc5 The solver instance.\n @param option The option for which the value is queried.\n @return A string representation of the option value.\n @note The returned char* pointer is only valid until the next call to this\n       function."]
    #[link_name = "\u{1}cvc5_get_option"]
    pub fn get_option(
        cvc5: *mut Solver,
        option: *const ::std::os::raw::c_char,
    ) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " Get all option names that can be used with `cvc5_set_option()`,\n `cvc5_get_option()` and `cvc5_get_option_info()`.\n @param cvc5 The solver instance.\n @param size The size of the resulting option names array.\n @return All option names.\n @note The returned char* pointer is only valid until the next call to this\n       function."]
    #[link_name = "\u{1}cvc5_get_option_names"]
    pub fn get_option_names(
        cvc5: *mut Solver,
        size: *mut usize,
    ) -> *mut *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " Get some information about a given option.\n See struct Cvc5OptionInfo for more details on which information is available.\n @param cvc5   The solver instance.\n @param option The option for which the info is queried.\n @param info   The output parameter for the queried info.\n @note The returned Cvc5OptionInfo data is only valid until the next call\n       to this function."]
    #[link_name = "\u{1}cvc5_get_option_info"]
    pub fn get_option_info(
        cvc5: *mut Solver,
        option: *const ::std::os::raw::c_char,
        info: *mut OptionInfo,
    );
}
unsafe extern "C" {
    #[doc = " Get the set of unsat (\"failed\") assumptions.\n\n SMT-LIB:\n\n \\verbatim embed:rst:leading-asterisk\n .. code:: smtlib\n\n     (get-unsat-assumptions)\n\n Requires to enable option\n :ref:`produce-unsat-assumptions <lbl-option-produce-unsat-assumptions>`.\n \\endverbatim\n\n @note The returned Cvc5Term array pointer is only valid until the next call\n       to this function.\n\n @param cvc5 The solver instance.\n @param size The number of the resulting unsat assumptions.\n @return The set of unsat assumptions."]
    #[link_name = "\u{1}cvc5_get_unsat_assumptions"]
    pub fn get_unsat_assumptions(cvc5: *mut Solver, size: *mut usize) -> *const Term;
}
unsafe extern "C" {
    #[doc = " Get the unsatisfiable core.\n\n SMT-LIB:\n\n \\verbatim embed:rst:leading-asterisk\n .. code:: smtlib\n\n     (get-unsat-core)\n\n Requires to enable option\n :ref:`produce-unsat-cores <lbl-option-produce-unsat-cores>`.\n\n .. note::\n   In contrast to SMT-LIB, cvc5's API does not distinguish between named\n   and unnamed assertions when producing an unsatisfiable core.\n   Additionally, the API allows this option to be called after a check with\n   assumptions. A subset of those assumptions may be included in the\n   unsatisfiable core returned by this function.\n \\endverbatim\n\n @note The returned Cvc5Term array pointer is only valid until the next call\n       to this function.\n\n @param cvc5 The solver instance.\n @param size The size of the resulting unsat core.\n @return A set of terms representing the unsatisfiable core."]
    #[link_name = "\u{1}cvc5_get_unsat_core"]
    pub fn get_unsat_core(cvc5: *mut Solver, size: *mut usize) -> *const Term;
}
unsafe extern "C" {
    #[doc = " Get the lemmas used to derive unsatisfiability.\n\n SMT-LIB:\n\n \\verbatim embed:rst:leading-asterisk\n .. code:: smtlib\n\n     (get-unsat-core-lemmas)\n\n Requires the SAT proof unsat core mode, so to enable option\n :ref:`unsat-cores-mode=sat-proof <lbl-option-unsat-cores-mode>`.\n\n \\endverbatim\n\n @warning This function is experimental and may change in future versions.\n\n @note The returned Cvc5Term array pointer is only valid until the next call\n       to this function.\n\n @param cvc5 The solver instance.\n @param size The size of the resulting unsat core.\n @return A set of terms representing the lemmas used to derive\n         unsatisfiability."]
    #[link_name = "\u{1}cvc5_get_unsat_core_lemmas"]
    pub fn get_unsat_core_lemmas(cvc5: *mut Solver, size: *mut usize) -> *const Term;
}
unsafe extern "C" {
    #[doc = " Get a difficulty estimate for an asserted formula. This function is\n intended to be called immediately after any response to a checkSat.\n\n @warning This function is experimental and may change in future versions.\n\n @note The resulting mapping from `inputs` (which is a subset of the inputs)\n to real `values` is an estimate of how difficult each assertion was to solve.\n Unmentioned assertions can be assumed to have zero difficulty.\n\n @param cvc5   The solver instance.\n @param size   The resulting size of `inputs` and `values`.\n @param inputs The resulting inputs that are mapped to the resulting `values`.\n @param values The resulting real values.\n\n @note The resulting `inputs` and `values` array pointers are only valid\n       until the next call to this function."]
    #[link_name = "\u{1}cvc5_get_difficulty"]
    pub fn get_difficulty(
        cvc5: *mut Solver,
        size: *mut usize,
        inputs: *mut *mut Term,
        values: *mut *mut Term,
    );
}
unsafe extern "C" {
    #[doc = " Get a timeout core.\n\n \\verbatim embed:rst:leading-asterisk\n This function computes a subset of the current assertions that cause a\n timeout. It may make multiple checks for satisfiability internally, each\n limited by the timeout value given by\n :ref:`timeout-core-timeout <lbl-option-timeout-core-timeout>`.\n\n If the result is unknown and the reason is timeout, then the list of\n formulas correspond to a subset of the current assertions that cause a\n timeout in the specified time :ref:`timeout-core-timeout\n <lbl-option-timeout-core-timeout>`. If the result is unsat, then the list of\n formulas correspond to an unsat core for the current assertions. Otherwise,\n the result is sat, indicating that the current assertions are satisfiable,\n and the returned set of assertions is empty.\n \\endverbatim\n\n @note This command  does not require being preceeded by a call to\n       `cvc5_check_sat()`.\n\n\n SMT-LIB:\n\n \\verbatim embed:rst:leading-asterisk\n .. code:: smtlib\n\n     (get-timeout-core)\n \\endverbatim\n\n @warning This function is experimental and may change in future versions.\n\n @param cvc5   The solver instance.\n @param result The resulting result.\n @param size   The resulting size of the timeout core.\n\n @return The list of assertions determined to be the timeout core. The\n         resulting result is stored in `result`.\n\n @note The resulting `result` and term array pointer are only valid\n       until the next call to this function."]
    #[link_name = "\u{1}cvc5_get_timeout_core"]
    pub fn get_timeout_core(
        cvc5: *mut Solver,
        result: *mut Result,
        size: *mut usize,
    ) -> *const Term;
}
unsafe extern "C" {
    #[doc = " Get a timeout core of the given assumptions.\n\n This function computes a subset of the given assumptions that cause a\n timeout when added to the current assertions.\n\n \\verbatim embed:rst:leading-asterisk\n If the result is unknown and the reason is timeout, then the set of\n assumptions corresponds to a subset of the given assumptions that cause a\n timeout when added to the current assertions in the specified time\n :ref:`timeout-core-timeout <lbl-option-timeout-core-timeout>`. If the result\n is unsat, then the set of assumptions together with the current assertions\n correspond to an unsat core for the current assertions. Otherwise, the\n result is sat, indicating that the given assumptions plus the current\n assertions are satisfiable, and the returned set of assumptions is empty.\n \\endverbatim\n\n @note This command does not require being preceeded by a call to\n       `cvc5_check_sat()`.\n\n SMT-LIB:\n\n \\verbatim embed:rst:leading-asterisk\n .. code:: smtlib\n\n     (get-timeout-core (<assert>*))\n \\endverbatim\n\n @warning This function is experimental and may change in future versions.\n\n @param cvc5        The solver instance.\n @param size        The number of assumptions.\n @param assumptions The (non-empty) set of formulas to assume.\n @param result      The resulting result.\n @param rsize       The resulting size of the timeout core.\n\n @return The list of assumptions determined to be the timeout core. The\n         resulting result is stored in `result`.\n\n @note The resulting `result` and term array pointer are only valid\n       until the next call to this function."]
    #[link_name = "\u{1}cvc5_get_timeout_core_assuming"]
    pub fn get_timeout_core_assuming(
        cvc5: *mut Solver,
        size: usize,
        assumptions: *const Term,
        result: *mut Result,
        rsize: *mut usize,
    ) -> *const Term;
}
unsafe extern "C" {
    #[doc = " Get a proof associated with the most recent call to checkSat.\n\n SMT-LIB:\n\n \\verbatim embed:rst:leading-asterisk\n .. code:: smtlib\n\n     (get-proof :c)\n\n Requires to enable option\n :ref:`produce-proofs <lbl-option-produce-proofs>`.\n The string representation depends on the value of option\n :ref:`produce-proofs <lbl-option-proof-format-mode>`.\n \\endverbatim\n\n @warning This function is experimental and may change in future versions.\n\n @param cvc5 The solver instance.\n @param c    The component of the proof to return\n @param size The size of the resulting array of proofs.\n @return An array of proofs.\n\n @note The returned Cvc5Proof array pointer is only valid until the next call\n       to this function."]
    #[link_name = "\u{1}cvc5_get_proof"]
    pub fn get_proof(cvc5: *mut Solver, c: ProofComponent, size: *mut usize) -> *const Proof;
}
unsafe extern "C" {
    #[doc = " Get a list of learned literals that are entailed by the current set of\n assertions.\n\n @warning This function is experimental and may change in future versions.\n\n @param cvc5 The solver instance.\n @param type The type of learned literalsjto return\n @param size The size of the resulting list of literals.\n @return A list of literals that were learned at top-level.\n\n @note The resulting Cvc5Term array pointer is only valid until the next call\n       to this function."]
    #[link_name = "\u{1}cvc5_get_learned_literals"]
    pub fn get_learned_literals(
        cvc5: *mut Solver,
        type_: LearnedLitType,
        size: *mut usize,
    ) -> *const Term;
}
unsafe extern "C" {
    #[doc = " Get the value of the given term in the current model.\n\n SMT-LIB:\n\n \\verbatim embed:rst:leading-asterisk\n .. code:: smtlib\n\n     (get-value ( <term> ))\n \\endverbatim\n\n @param cvc5 The solver instance.\n @param term The term for which the value is queried.\n @return The value of the given term."]
    #[link_name = "\u{1}cvc5_get_value"]
    pub fn get_value(cvc5: *mut Solver, term: Term) -> Term;
}
unsafe extern "C" {
    #[doc = " Get the values of the given terms in the current model.\n\n SMT-LIB:\n\n \\verbatim embed:rst:leading-asterisk\n .. code:: smtlib\n\n     (get-value ( <term>* ))\n \\endverbatim\n\n @param cvc5  The solver instance.\n @param size  The number of terms for which the value is queried.\n @param terms The terms.\n @param rsize The resulting size of the timeout core.\n @return The values of the given terms."]
    #[link_name = "\u{1}cvc5_get_values"]
    pub fn get_values(
        cvc5: *mut Solver,
        size: usize,
        terms: *const Term,
        rsize: *mut usize,
    ) -> *const Term;
}
unsafe extern "C" {
    #[doc = " Get the domain elements of uninterpreted sort s in the current model. The\n current model interprets s as the finite sort whose domain elements are\n given in the return value of this function.\n\n @param cvc5 The solver instance.\n @param sort The uninterpreted sort in question.\n @param size The size of the resulting domain elements array.\n @return The domain elements of s in the current model."]
    #[link_name = "\u{1}cvc5_get_model_domain_elements"]
    pub fn get_model_domain_elements(
        cvc5: *mut Solver,
        sort: Sort,
        size: *mut usize,
    ) -> *const Term;
}
unsafe extern "C" {
    #[doc = " Determine if the model value of the given free constant was essential for\n showing satisfiability of the last `cvc5_check_sat()` query based on the\n current model.\n\n For any free constant `v`, this will only return false if\n \\verbatim embed:rst:inline :ref:`model-cores\n <lbl-option-model-cores>`\\endverbatim\n has been set to true.\n\n @warning This function is experimental and may change in future versions.\n\n @param cvc5 The solver instance.\n @param v The term in question.\n @return True if `v` was essential and is thus a model core symbol."]
    #[link_name = "\u{1}cvc5_is_model_core_symbol"]
    pub fn is_model_core_symbol(cvc5: *mut Solver, v: Term) -> bool;
}
unsafe extern "C" {
    #[doc = " Get the model\n\n SMT-LIB:\n\n \\verbatim embed:rst:leading-asterisk\n .. code:: smtlib\n\n     (get-model)\n\n Requires to enable option\n :ref:`produce-models <lbl-option-produce-models>`.\n \\endverbatim\n\n @warning This function is experimental and may change in future versions.\n\n @param cvc5 The solver instance.\n @param nsorts The number of uninterpreted sorts that should be printed in\n              the model.\n @param sorts The list of uninterpreted sorts.\n @param nconsts The size of the list of free constants that should be printed\n                in the model.\n @param consts The list of free constants that should be printed in the\n             model. A subset of these may be printed based on\n             isModelCoreSymbol().\n @return A string representing the model.\n @note The returned char* pointer is only valid until the next call to this\n       function."]
    #[link_name = "\u{1}cvc5_get_model"]
    pub fn get_model(
        cvc5: *mut Solver,
        nsorts: usize,
        sorts: *const Sort,
        nconsts: usize,
        consts: *const Term,
    ) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " Do quantifier elimination.\n\n SMT-LIB:\n\n \\verbatim embed:rst:leading-asterisk\n .. code:: smtlib\n\n     (get-qe <q>)\n \\endverbatim\n\n @note Quantifier Elimination is is only complete for logics such as LRA,\n       LIA and BV.\n\n @warning This function is experimental and may change in future versions.\n\n @param cvc5 The solver instance.\n @param q A quantified formula of the form\n          @f$Q\\bar{x}_1... Q\\bar{x}_n. P( x_1...x_i, y_1...y_j)@f$\n          where\n          @f$Q\\bar{x}@f$ is a set of quantified variables of the form\n          @f$Q x_1...x_k@f$ and\n          @f$P( x_1...x_i, y_1...y_j )@f$ is a quantifier-free formula\n @return A formula @f$\\phi@f$  such that, given the current set of formulas\n         @f$A@f$ asserted to this solver:\n         - @f$(A \\wedge q)@f$ and @f$(A \\wedge \\phi)@f$ are equivalent\n         - @f$\\phi@f$ is quantifier-free formula containing only free\n           variables in @f$y_1...y_n@f$."]
    #[link_name = "\u{1}cvc5_get_quantifier_elimination"]
    pub fn get_quantifier_elimination(cvc5: *mut Solver, q: Term) -> Term;
}
unsafe extern "C" {
    #[doc = " Do partial quantifier elimination, which can be used for incrementally\n computing the result of a quantifier elimination.\n\n SMT-LIB:\n\n \\verbatim embed:rst:leading-asterisk\n .. code:: smtlib\n\n     (get-qe-disjunct <q>)\n \\endverbatim\n\n @note Quantifier Elimination is is only complete for logics such as LRA,\n LIA and BV.\n\n @warning This function is experimental and may change in future versions.\n\n @param cvc5 The solver instance.\n @param q A quantified formula of the form\n          @f$Q\\bar{x}_1... Q\\bar{x}_n. P( x_1...x_i, y_1...y_j)@f$\n          where\n          @f$Q\\bar{x}@f$ is a set of quantified variables of the form\n          @f$Q x_1...x_k@f$ and\n          @f$P( x_1...x_i, y_1...y_j )@f$ is a quantifier-free formula\n @return A formula @f$\\phi@f$ such that, given the current set of formulas\n         @f$A@f$ asserted to this solver:\n         - @f$(A \\wedge q \\implies A \\wedge \\phi)@f$ if @f$Q@f$ is\n           @f$\\forall@f$, and @f$(A \\wedge \\phi \\implies A \\wedge q)@f$ if\n           @f$Q@f$ is @f$\\exists@f$\n         - @f$\\phi@f$ is quantifier-free formula containing only free\n           variables in @f$y_1...y_n@f$\n         - If @f$Q@f$ is @f$\\exists@f$, let @f$(A \\wedge Q_n)@f$ be the\n           formula\n           @f$(A \\wedge \\neg (\\phi \\wedge Q_1) \\wedge ... \\wedge\n           \\neg (\\phi \\wedge Q_n))@f$\n           where for each @f$i = 1...n@f$,\n           formula @f$(\\phi \\wedge Q_i)@f$ is the result of calling\n           cvc5_get_quantifier_elimination_disjunct() for @f$q@f$ with the\n           set of assertions @f$(A \\wedge Q_{i-1})@f$.\n           Similarly, if @f$Q@f$ is @f$\\forall@f$, then let\n           @f$(A \\wedge Q_n)@f$ be\n           @f$(A \\wedge (\\phi \\wedge Q_1) \\wedge ... \\wedge (\\phi \\wedge\n           Q_n))@f$\n           where @f$(\\phi \\wedge Q_i)@f$ is the same as above.\n           In either case, we have that @f$(\\phi \\wedge Q_j)@f$ will\n           eventually be true or false, for some finite j."]
    #[link_name = "\u{1}cvc5_get_quantifier_elimination_disjunct"]
    pub fn get_quantifier_elimination_disjunct(cvc5: *mut Solver, q: Term) -> Term;
}
unsafe extern "C" {
    #[doc = " When using separation logic, this sets the location sort and the\n datatype sort to the given ones. This function should be invoked exactly\n once, before any separation logic constraints are provided.\n\n @warning This function is experimental and may change in future versions.\n\n @param cvc5 The solver instance.\n @param loc The location sort of the heap.\n @param data The data sort of the heap."]
    #[link_name = "\u{1}cvc5_declare_sep_heap"]
    pub fn declare_sep_heap(cvc5: *mut Solver, loc: Sort, data: Sort);
}
unsafe extern "C" {
    #[doc = " When using separation logic, obtain the term for the heap.\n\n @warning This function is experimental and may change in future versions.\n\n @param cvc5 The solver instance.\n @return The term for the heap."]
    #[link_name = "\u{1}cvc5_get_value_sep_heap"]
    pub fn get_value_sep_heap(cvc5: *mut Solver) -> Term;
}
unsafe extern "C" {
    #[doc = " When using separation logic, obtain the term for nil.\n\n @warning This function is experimental and may change in future versions.\n\n @param cvc5 The solver instance.\n @return The term for nil."]
    #[link_name = "\u{1}cvc5_get_value_sep_nil"]
    pub fn get_value_sep_nil(cvc5: *mut Solver) -> Term;
}
unsafe extern "C" {
    #[doc = " Declare a symbolic pool of terms with the given initial value.\n\n For details on how pools are used to specify instructions for quantifier\n instantiation, see documentation for the #CVC5_KIND_INST_POOL kind.\n\n SMT-LIB:\n\n \\verbatim embed:rst:leading-asterisk\n .. code:: smtlib\n\n     (declare-pool <symbol> <sort> ( <term>* ))\n \\endverbatim\n\n @warning This function is experimental and may change in future versions.\n\n @param cvc5 The solver instance.\n @param symbol The name of the pool.\n @param sort The sort of the elements of the pool.\n @param size The number of initial values of the pool.\n @param init_value The initial value of the pool.\n @return The pool symbol."]
    #[link_name = "\u{1}cvc5_declare_pool"]
    pub fn declare_pool(
        cvc5: *mut Solver,
        symbol: *const ::std::os::raw::c_char,
        sort: Sort,
        size: usize,
        init_value: *const Term,
    ) -> Term;
}
unsafe extern "C" {
    #[doc = " Declare an oracle function with reference to an implementation.\n\n Oracle functions have a different semantics with respect to ordinary\n declared functions. In particular, for an input to be satisfiable,\n its oracle functions are implicitly universally quantified.\n\n This function is used in part for implementing this command:\n\n \\verbatim embed:rst:leading-asterisk\n .. code:: smtlib\n\n     (declare-oracle-fun <sym> (<sort>*) <sort> <sym>)\n \\endverbatim\n\n In particular, the above command is implemented by constructing a\n function over terms that wraps a call to binary sym via a text interface.\n\n @warning This function is experimental and may change in future versions.\n\n @param cvc5   The solver instance.\n @param symbol The name of the oracle\n @param size   The number of domain sorts of the oracle function.\n @param sorts  The domain sorts.\n @param sort   The sort of the return value of this function.\n @param state  The state data for the oracle function, may be NULL.\n @param fun    The function that implements the oracle function, taking a\n               an array of term arguments and its size and a void pointer\n               to optionally capture any state data the function may need.\n @return The oracle function."]
    #[link_name = "\u{1}cvc5_declare_oracle_fun"]
    pub fn declare_oracle_fun(
        cvc5: *mut Solver,
        symbol: *const ::std::os::raw::c_char,
        size: usize,
        sorts: *const Sort,
        sort: Sort,
        state: *mut ::std::os::raw::c_void,
        fun: ::std::option::Option<
            unsafe extern "C" fn(
                arg1: usize,
                arg2: *const Term,
                arg3: *mut ::std::os::raw::c_void,
            ) -> Term,
        >,
    ) -> Term;
}
unsafe extern "C" {
    #[doc = " Add plugin to this solver. Its callbacks will be called throughout the\n lifetime of this solver.\n @warning This function is experimental and may change in future versions.\n @param cvc5   The solver instance.\n @param plugin The plugin to add to this solver."]
    #[link_name = "\u{1}cvc5_add_plugin"]
    pub fn add_plugin(cvc5: *mut Solver, plugin: *mut Plugin);
}
unsafe extern "C" {
    #[doc = " Get an interpolant.\n\n Given that @f$A \\rightarrow B@f$ is valid,\n this function determines a term @f$I@f$\n over the shared variables of @f$A@f$ and @f$B@f$,\n such that @f$A \\rightarrow I@f$ and\n @f$I \\rightarrow B@f$ are valid, if such a term exits. @f$A@f$ is the\n current set of assertions and @f$B@f$ is the conjecture, given as `conj`.\n\n SMT-LIB:\n\n \\verbatim embed:rst:leading-asterisk\n .. code:: smtlib\n\n     (get-interpolant <symbol> <conj>)\n\n .. note:: In SMT-LIB, `<symbol>` assigns a symbol to the interpolant.\n\n .. note:: Requires option\n          :ref:`produce-interpolants <lbl-option-produce-interpolants>` to\n          be set to a mode different from `none`.\n \\endverbatim\n\n @warning This function is experimental and may change in future versions.\n\n @param cvc5 The solver instance.\n @param conj The conjecture term.\n @return The interpolant, if an interpolant exists, else the null term."]
    #[link_name = "\u{1}cvc5_get_interpolant"]
    pub fn get_interpolant(cvc5: *mut Solver, conj: Term) -> Term;
}
unsafe extern "C" {
    #[doc = " Get an interpolant\n\n Given that @f$A \\rightarrow B@f$ is valid,\n this function determines a term @f$I@f$\n over the shared variables of @f$A@f$ and @f$B@f$,\n with respect to a given grammar, such that\n @f$A \\rightarrow I@f$ and @f$I \\rightarrow B@f$ are valid, if such a term\n exits. @f$A@f$ is the current set of assertions and @f$B@f$ is the\n conjecture, given as `conj`.\n\n SMT-LIB:\n\n \\verbatim embed:rst:leading-asterisk\n .. code:: smtlib\n\n     (get-interpolant <symbol> <conj> <grammar>)\n\n .. note:: In SMT-LIB, `<symbol>` assigns a symbol to the interpolant.\n\n .. note:: Requires option\n          :ref:`produce-interpolants <lbl-option-produce-interpolants>` to\n          be set to a mode different from `none`.\n \\endverbatim\n\n @warning This function is experimental and may change in future versions.\n\n @param cvc5 The solver instance.\n @param conj The conjecture term.\n @param grammar The grammar for the interpolant I.\n @return The interpolant, if an interpolant exists, else the null term."]
    #[link_name = "\u{1}cvc5_get_interpolant_with_grammar"]
    pub fn get_interpolant_with_grammar(cvc5: *mut Solver, conj: Term, grammar: Grammar) -> Term;
}
unsafe extern "C" {
    #[doc = " Get the next interpolant. Can only be called immediately after a successful\n call to get-interpolant or get-interpolant-next. Is guaranteed to produce a\n syntactically different interpolant wrt the last returned interpolant if\n successful.\n\n SMT-LIB:\n\n \\verbatim embed:rst:leading-asterisk\n .. code:: smtlib\n\n     (get-interpolant-next)\n\n Requires to enable incremental mode, and option\n :ref:`produce-interpolants <lbl-option-produce-interpolants>` to be set to\n a mode different from `none`. \\endverbatim\n\n @warning This function is experimental and may change in future versions.\n\n @param cvc5 The solver instance.\n @return A Term @f$I@f$ such that @f$A \\rightarrow I@f$ and\n         @f$I \\rightarrow B@f$ are valid, where @f$A@f$ is the\n         current set of assertions and @f$B@f$ is given in the input by\n         `conj`, or the null term if such a term cannot be found."]
    #[link_name = "\u{1}cvc5_get_interpolant_next"]
    pub fn get_interpolant_next(cvc5: *mut Solver) -> Term;
}
unsafe extern "C" {
    #[doc = " Get an abduct.\n\n SMT-LIB:\n\n \\verbatim embed:rst:leading-asterisk\n .. code:: smtlib\n\n     (get-abduct <conj>)\n\n Requires to enable option\n :ref:`produce-abducts <lbl-option-produce-abducts>`.\n \\endverbatim\n\n @warning This function is experimental and may change in future versions.\n\n @param cvc5 The solver instance.\n @param conj The conjecture term.\n @return A term @f$C@f$ such that @f$(A \\wedge C)@f$ is satisfiable,\n         and @f$(A \\wedge \\neg B \\wedge C)@f$ is unsatisfiable, where\n         @f$A@f$ is the current set of assertions and @f$B@f$ is\n         given in the input by ``conj``, or the null term if such a term\n         cannot be found."]
    #[link_name = "\u{1}cvc5_get_abduct"]
    pub fn get_abduct(cvc5: *mut Solver, conj: Term) -> Term;
}
unsafe extern "C" {
    #[doc = " Get an abduct.\n\n SMT-LIB:\n\n \\verbatim embed:rst:leading-asterisk\n .. code:: smtlib\n\n     (get-abduct <conj> <grammar>)\n\n Requires to enable option\n :ref:`produce-abducts <lbl-option-produce-abducts>`.\n \\endverbatim\n\n @warning This function is experimental and may change in future versions.\n\n @param cvc5 The solver instance.\n @param conj The conjecture term.\n @param grammar The grammar for the abduct @f$C@f$\n @return A term C such that @f$(A \\wedge C)@f$ is satisfiable, and\n        @f$(A \\wedge \\neg B \\wedge C)@f$ is unsatisfiable, where @f$A@f$ is\n        the current set of assertions and @f$B@f$ is given in the input by\n        `conj`, or the null term if such a term cannot be found."]
    #[link_name = "\u{1}cvc5_get_abduct_with_grammar"]
    pub fn get_abduct_with_grammar(cvc5: *mut Solver, conj: Term, grammar: Grammar) -> Term;
}
unsafe extern "C" {
    #[doc = " Get the next abduct. Can only be called immediately after a successful\n call to get-abduct or get-abduct-next. Is guaranteed to produce a\n syntactically different abduct wrt the last returned abduct if successful.\n\n SMT-LIB:\n\n \\verbatim embed:rst:leading-asterisk\n .. code:: smtlib\n\n     (get-abduct-next)\n\n Requires to enable incremental mode, and option\n :ref:`produce-abducts <lbl-option-produce-abducts>`.\n \\endverbatim\n\n @warning This function is experimental and may change in future versions.\n\n @param cvc5 The solver instance.\n @return A term C such that @f$(A \\wedge C)@f$ is satisfiable, and\n        @f$(A \\wedge \\neg B \\wedge C)@f$ is unsatisfiable, where @f$A@f$ is\n        the current set of assertions and @f$B@f$ is given in the input by\n        the last call to getAbduct(), or the null term if such a term\n        cannot be found."]
    #[link_name = "\u{1}cvc5_get_abduct_next"]
    pub fn get_abduct_next(cvc5: *mut Solver) -> Term;
}
unsafe extern "C" {
    #[doc = " Block the current model. Can be called only if immediately preceded by a\n SAT or INVALID query.\n\n SMT-LIB:\n\n \\verbatim embed:rst:leading-asterisk\n .. code:: smtlib\n\n     (block-model)\n\n Requires enabling option\n :ref:`produce-models <lbl-option-produce-models>`.\n \\endverbatim\n\n @warning This function is experimental and may change in future versions.\n\n @param cvc5 The solver instance.\n @param mode The mode to use for blocking."]
    #[link_name = "\u{1}cvc5_block_model"]
    pub fn block_model(cvc5: *mut Solver, mode: BlockModelsMode);
}
unsafe extern "C" {
    #[doc = " Block the current model values of (at least) the values in terms. Can be\n called only if immediately preceded by a SAT query.\n\n SMT-LIB:\n\n \\verbatim embed:rst:leading-asterisk\n .. code:: smtlib\n\n     (block-model-values ( <terms>+ ))\n\n Requires enabling option\n :ref:`produce-models <lbl-option-produce-models>`.\n \\endverbatim\n\n @warning This function is experimental and may change in future versions.\n @param cvc5 The solver instance.\n @param size The number of values to block.\n @param terms The values to block."]
    #[link_name = "\u{1}cvc5_block_model_values"]
    pub fn block_model_values(cvc5: *mut Solver, size: usize, terms: *const Term);
}
unsafe extern "C" {
    #[doc = " @warning This function is experimental and may change in future versions.\n\n @param cvc5 The solver instance.\n @return A string that contains information about all instantiations made\n         by the quantifiers module.\n @note The returned char* pointer is only valid until the next call to this\n       function."]
    #[link_name = "\u{1}cvc5_get_instantiations"]
    pub fn get_instantiations(cvc5: *mut Solver) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " Push (a) level(s) to the assertion stack.\n\n SMT-LIB:\n\n \\verbatim embed:rst:leading-asterisk\n .. code:: smtlib\n\n     (push <numeral>)\n \\endverbatim\n\n @param cvc5 The solver instance.\n @param nscopes The number of levels to push."]
    #[link_name = "\u{1}cvc5_push"]
    pub fn push(cvc5: *mut Solver, nscopes: u32);
}
unsafe extern "C" {
    #[doc = " Pop (a) level(s) from the assertion stack.\n\n SMT-LIB:\n\n \\verbatim embed:rst:leading-asterisk\n .. code:: smtlib\n\n     (pop <numeral>)\n \\endverbatim\n\n @param cvc5 The solver instance.\n @param nscopes The number of levels to pop."]
    #[link_name = "\u{1}cvc5_pop"]
    pub fn pop(cvc5: *mut Solver, nscopes: u32);
}
unsafe extern "C" {
    #[doc = " Remove all assertions.\n\n SMT-LIB:\n\n \\verbatim embed:rst:leading-asterisk\n .. code:: smtlib\n\n     (reset-assertions)\n \\endverbatim\n\n @param cvc5 The solver instance."]
    #[link_name = "\u{1}cvc5_reset_assertions"]
    pub fn reset_assertions(cvc5: *mut Solver);
}
unsafe extern "C" {
    #[doc = " Set info.\n\n SMT-LIB:\n\n \\verbatim embed:rst:leading-asterisk\n .. code:: smtlib\n\n     (set-info <attribute>)\n \\endverbatim\n\n @param cvc5 The solver instance.\n @param keyword The info flag.\n @param value The value of the info flag."]
    #[link_name = "\u{1}cvc5_set_info"]
    pub fn set_info(
        cvc5: *mut Solver,
        keyword: *const ::std::os::raw::c_char,
        value: *const ::std::os::raw::c_char,
    );
}
unsafe extern "C" {
    #[doc = " Set logic.\n\n SMT-LIB:\n\n \\verbatim embed:rst:leading-asterisk\n .. code:: smtlib\n\n     (set-logic <symbol>)\n \\endverbatim\n\n @param cvc5 The solver instance.\n @param logic The logic to set."]
    #[link_name = "\u{1}cvc5_set_logic"]
    pub fn set_logic(cvc5: *mut Solver, logic: *const ::std::os::raw::c_char);
}
unsafe extern "C" {
    #[doc = " Determine if `cvc5_set_logic()` has been called.\n\n @return True if `setLogic()` has already been called for the given solver\n         instance."]
    #[link_name = "\u{1}cvc5_is_logic_set"]
    pub fn is_logic_set(cvc5: *mut Solver) -> bool;
}
unsafe extern "C" {
    #[doc = " Get the logic set the solver.\n @note Asserts `cvc5_is_logic_set()1.\n @return The logic used by the solver.\n @note The returned char* pointer is only valid until the next call to this\n       function."]
    #[link_name = "\u{1}cvc5_get_logic"]
    pub fn get_logic(cvc5: *mut Solver) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " Set option.\n\n SMT-LIB:\n\n \\verbatim embed:rst:leading-asterisk\n .. code:: smtlib\n\n     (set-option :<option> <value>)\n \\endverbatim\n\n @param cvc5 The solver instance.\n @param option The option name.\n @param value The option value."]
    #[link_name = "\u{1}cvc5_set_option"]
    pub fn set_option(
        cvc5: *mut Solver,
        option: *const ::std::os::raw::c_char,
        value: *const ::std::os::raw::c_char,
    );
}
unsafe extern "C" {
    #[doc = " Append \\p symbol to the current list of universal variables.\n\n SyGuS v2:\n\n \\verbatim embed:rst:leading-asterisk\n .. code:: smtlib\n\n     (declare-var <symbol> <sort>)\n \\endverbatim\n\n @param cvc5 The solver instance.\n @param sort The sort of the universal variable.\n @param symbol The name of the universal variable.\n @return The universal variable."]
    #[link_name = "\u{1}cvc5_declare_sygus_var"]
    pub fn declare_sygus_var(
        cvc5: *mut Solver,
        symbol: *const ::std::os::raw::c_char,
        sort: Sort,
    ) -> Term;
}
unsafe extern "C" {
    #[doc = " Create a Sygus grammar. The first non-terminal is treated as the starting\n non-terminal, so the order of non-terminals matters.\n\n @param cvc5        The solver instance.\n @param nbound_vars The number of bound variabls.\n @param bound_vars  The parameters to corresponding synth-fun/synth-inv.\n @param nsymbols    The number of symbols.\n @param symbols     The pre-declaration of the non-terminal symbols.\n @return The grammar."]
    #[link_name = "\u{1}cvc5_mk_grammar"]
    pub fn mk_grammar(
        cvc5: *mut Solver,
        nbound_vars: usize,
        bound_vars: *const Term,
        nsymbols: usize,
        symbols: *const Term,
    ) -> Grammar;
}
unsafe extern "C" {
    #[doc = " Synthesize n-ary function.\n\n SyGuS v2:\n\n \\verbatim embed:rst:leading-asterisk\n .. code:: smtlib\n\n     (synth-fun <symbol> ( <boundVars>* ) <sort>)\n \\endverbatim\n\n @param cvc5 The solver instance.\n @param symbol The name of the function.\n @param size The number of parameters.\n @param bound_vars The parameters to this function.\n @param sort The sort of the return value of this function.\n @return The function."]
    #[link_name = "\u{1}cvc5_synth_fun"]
    pub fn synth_fun(
        cvc5: *mut Solver,
        symbol: *const ::std::os::raw::c_char,
        size: usize,
        bound_vars: *const Term,
        sort: Sort,
    ) -> Term;
}
unsafe extern "C" {
    #[doc = " Synthesize n-ary function following specified syntactic constraints.\n\n SyGuS v2:\n\n \\verbatim embed:rst:leading-asterisk\n .. code:: smtlib\n\n     (synth-fun <symbol> ( <boundVars>* ) <sort> <grammar>)\n \\endverbatim\n\n @param cvc5 The solver instance.\n @param symbol The name of the function.\n @param size The number of parameters.\n @param bound_vars The parameters to this function.\n @param sort The sort of the return value of this function.\n @param grammar The syntactic constraints.\n @return The function."]
    #[link_name = "\u{1}cvc5_synth_fun_with_grammar"]
    pub fn synth_fun_with_grammar(
        cvc5: *mut Solver,
        symbol: *const ::std::os::raw::c_char,
        size: usize,
        bound_vars: *const Term,
        sort: Sort,
        grammar: Grammar,
    ) -> Term;
}
unsafe extern "C" {
    #[doc = " Add a forumla to the set of Sygus constraints.\n\n SyGuS v2:\n\n \\verbatim embed:rst:leading-asterisk\n .. code:: smtlib\n\n     (constraint <term>)\n \\endverbatim\n\n @param cvc5 The solver instance.\n @param term The formula to add as a constraint."]
    #[link_name = "\u{1}cvc5_add_sygus_constraint"]
    pub fn add_sygus_constraint(cvc5: *mut Solver, term: Term);
}
unsafe extern "C" {
    #[doc = " Get the list of sygus constraints.\n\n @param cvc5 The solver instance.\n @param size The size of the resulting list of sygus constraints.\n @return The list of sygus constraints."]
    #[link_name = "\u{1}cvc5_get_sygus_constraints"]
    pub fn get_sygus_constraints(cvc5: *mut Solver, size: *mut usize) -> *const Term;
}
unsafe extern "C" {
    #[doc = " Add a forumla to the set of Sygus assumptions.\n\n SyGuS v2:\n\n \\verbatim embed:rst:leading-asterisk\n .. code:: smtlib\n\n     (assume <term>)\n \\endverbatim\n\n @param cvc5 The solver instance.\n @param term The formula to add as an assumption."]
    #[link_name = "\u{1}cvc5_add_sygus_assume"]
    pub fn add_sygus_assume(cvc5: *mut Solver, term: Term);
}
unsafe extern "C" {
    #[doc = " Get the list of sygus assumptions.\n\n @param cvc5 The solver instance.\n @param size The size of the resulting list of sygus assumptions.\n @return The list of sygus assumptions."]
    #[link_name = "\u{1}cvc5_get_sygus_assumptions"]
    pub fn get_sygus_assumptions(cvc5: *mut Solver, size: *mut usize) -> *const Term;
}
unsafe extern "C" {
    #[doc = " Add a set of Sygus constraints to the current state that correspond to an\n invariant synthesis problem.\n\n SyGuS v2:\n\n \\verbatim embed:rst:leading-asterisk\n .. code:: smtlib\n\n     (inv-constraint <inv> <pre> <trans> <post>)\n \\endverbatim\n\n @param cvc5 The solver instance.\n @param inv The function-to-synthesize.\n @param pre The pre-condition.\n @param trans The transition relation.\n @param post The post-condition."]
    #[link_name = "\u{1}cvc5_add_sygus_inv_constraint"]
    pub fn add_sygus_inv_constraint(
        cvc5: *mut Solver,
        inv: Term,
        pre: Term,
        trans: Term,
        post: Term,
    );
}
unsafe extern "C" {
    #[doc = " Try to find a solution for the synthesis conjecture corresponding to the\n current list of functions-to-synthesize, universal variables and\n constraints.\n\n SyGuS v2:\n\n \\verbatim embed:rst:leading-asterisk\n .. code:: smtlib\n\n     (check-synth)\n \\endverbatim\n\n @param cvc5 The solver instance.\n @return The result of the check, which is \"solution\" if the check found a\n         solution in which case solutions are available via\n         getSynthSolutions, \"no solution\" if it was determined there is no\n         solution, or \"unknown\" otherwise."]
    #[link_name = "\u{1}cvc5_check_synth"]
    pub fn check_synth(cvc5: *mut Solver) -> SynthResult;
}
unsafe extern "C" {
    #[doc = " Try to find a next solution for the synthesis conjecture corresponding to\n the current list of functions-to-synthesize, universal variables and\n constraints. Must be called immediately after a successful call to\n check-synth or check-synth-next.\n\n @note Requires incremental mode.\n\n SyGuS v2:\n\n \\verbatim embed:rst:leading-asterisk\n .. code:: smtlib\n\n     (check-synth-next)\n \\endverbatim\n\n @param cvc5 The solver instance.\n @return The result of the check, which is \"solution\" if the check found a\n         solution in which case solutions are available via\n         getSynthSolutions, \"no solution\" if it was determined there is no\n         solution, or \"unknown\" otherwise."]
    #[link_name = "\u{1}cvc5_check_synth_next"]
    pub fn check_synth_next(cvc5: *mut Solver) -> SynthResult;
}
unsafe extern "C" {
    #[doc = " Get the synthesis solution of the given term. This function should be\n called immediately after the solver answers unsat for sygus input.\n @param cvc5 The solver instance.\n @param term The term for which the synthesis solution is queried.\n @return The synthesis solution of the given term."]
    #[link_name = "\u{1}cvc5_get_synth_solution"]
    pub fn get_synth_solution(cvc5: *mut Solver, term: Term) -> Term;
}
unsafe extern "C" {
    #[doc = " Get the synthesis solutions of the given terms. This function should be\n called immediately after the solver answers unsat for sygus input.\n @param cvc5  The solver instance.\n @param size  The size of the terms array.\n @param terms The terms for which the synthesis solutions is queried.\n @return The synthesis solutions of the given terms."]
    #[link_name = "\u{1}cvc5_get_synth_solutions"]
    pub fn get_synth_solutions(cvc5: *mut Solver, size: usize, terms: *const Term) -> *const Term;
}
unsafe extern "C" {
    #[doc = " Find a target term of interest using sygus enumeration, with no provided\n grammar.\n\n The solver will infer which grammar to use in this call, which by default\n will be the grammars specified by the function(s)-to-synthesize in the\n current context.\n\n SyGuS v2:\n\n \\verbatim embed:rst:leading-asterisk\n .. code:: smtlib\n\n     (find-synth :target)\n \\endverbatim\n\n @param cvc5   The solver instance.\n @param target The identifier specifying what kind of term to find\n @return The result of the find, which is the null term if this call failed.\n\n @warning This function is experimental and may change in future versions."]
    #[link_name = "\u{1}cvc5_find_synth"]
    pub fn find_synth(cvc5: *mut Solver, target: FindSynthTarget) -> Term;
}
unsafe extern "C" {
    #[doc = " Find a target term of interest using sygus enumeration with a provided\n grammar.\n\n SyGuS v2:\n\n \\verbatim embed:rst:leading-asterisk\n .. code:: smtlib\n\n     (find-synth :target G)\n \\endverbatim\n\n @param cvc5    The solver instance.\n @param target  The identifier specifying what kind of term to find\n @param grammar The grammar for the term\n @return The result of the find, which is the null term if this call failed.\n\n @warning This function is experimental and may change in future versions."]
    #[link_name = "\u{1}cvc5_find_synth_with_grammar"]
    pub fn find_synth_with_grammar(
        cvc5: *mut Solver,
        target: FindSynthTarget,
        grammar: Grammar,
    ) -> Term;
}
unsafe extern "C" {
    #[doc = " Try to find a next target term of interest using sygus enumeration. Must\n be called immediately after a successful call to find-synth or\n find-synth-next.\n\n SyGuS v2:\n\n \\verbatim embed:rst:leading-asterisk\n .. code:: smtlib\n\n     (find-synth-next)\n \\endverbatim\n\n @param cvc5 The solver instance.\n @return The result of the find, which is the null term if this call failed.\n\n @warning This function is experimental and may change in future versions."]
    #[link_name = "\u{1}cvc5_find_synth_next"]
    pub fn find_synth_next(cvc5: *mut Solver) -> Term;
}
unsafe extern "C" {
    #[doc = " Get a snapshot of the current state of the statistic values of this\n solver. The returned object is completely decoupled from the solver and\n will not change when the solver is used again.\n @param cvc5 The solver instance.\n @return A snapshot of the current state of the statistic values."]
    #[link_name = "\u{1}cvc5_get_statistics"]
    pub fn get_statistics(cvc5: *mut Solver) -> Statistics;
}
unsafe extern "C" {
    #[doc = " Print the statistics to the given file descriptor, suitable for usage in\n signal handlers.\n @param cvc5 The solver instance.\n @param fd The file descriptor."]
    #[link_name = "\u{1}cvc5_print_stats_safe"]
    pub fn print_stats_safe(cvc5: *mut Solver, fd: ::std::os::raw::c_int);
}
unsafe extern "C" {
    #[doc = " Determines if the output stream for the given tag is enabled. Tags can be\n enabled with the `output` option (and `-o <tag>` on the command line).\n\n @note Requires that a valid tag is given.\n\n @param cvc5 The solver instance.\n @param tag  The output tag.\n @return True if the given tag is enabled."]
    #[link_name = "\u{1}cvc5_is_output_on"]
    pub fn is_output_on(cvc5: *mut Solver, tag: *const ::std::os::raw::c_char) -> bool;
}
unsafe extern "C" {
    #[doc = " Configure a file to write the output for a given tag.\n\n Tags can be enabled with the `output` option (and `-o <tag>` on the command\n line). Requires that the given tag is valid.\n\n @note Close file `filename` before reading via `cvc5_close_output()`.\n\n @warning This function is experimental and may change in future versions.\n\n @param cvc5     The solver instance.\n @param tag      The output tag.\n @param filename The file to write the output to. Use `<stdout>` to configure\n                 to write to stdout."]
    #[link_name = "\u{1}cvc5_get_output"]
    pub fn get_output(
        cvc5: *mut Solver,
        tag: *const ::std::os::raw::c_char,
        filename: *const ::std::os::raw::c_char,
    );
}
unsafe extern "C" {
    #[doc = " Close output file configured for an output tag via `cvc5_get_output()`.\n\n @note This is required before reading the file.\n\n @warning This function is experimental and may change in future versions.\n\n @param cvc5     The solver instance.\n @param filename The file to close."]
    #[link_name = "\u{1}cvc5_close_output"]
    pub fn close_output(cvc5: *mut Solver, filename: *const ::std::os::raw::c_char);
}
unsafe extern "C" {
    #[doc = " Get a string representation of the version of this solver.\n @param cvc5 The solver instance.\n @return The version string.\n @note The returned char* pointer is only valid until the next call to this\n       function."]
    #[link_name = "\u{1}cvc5_get_version"]
    pub fn get_version(cvc5: *mut Solver) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " Prints a proof as a string in a selected proof format mode.\n Other aspects of printing are taken from the solver options.\n\n @warning This function is experimental and may change in future versions.\n\n @param cvc5       The solver instance.\n @param proof      A proof, usually obtained from Solver::getProof().\n @param format     The proof format used to print the proof.  Must be\n                   `modes::ProofFormat::NONE` if the proof is from a component\n                   other than `modes::ProofComponent::FULL`.\n @param size       The number of assertions to names mappings given.\n @param assertions The list of assertions that are mapped to\n                   `assertions_names`. May be NULL if `assertions_size` is 0.\n @param names      The names of the `assertions` (1:1 mapping). May by NULL\n                   if `assertions` is NULL.\n\n @return The string representation of the proof in the given format.\n\n @note The returned char* pointer is only valid until the next call to this\n       function."]
    #[link_name = "\u{1}cvc5_proof_to_string"]
    pub fn proof_to_string(
        cvc5: *mut Solver,
        proof: Proof,
        format: ProofFormat,
        size: usize,
        assertions: *const Term,
        names: *mut *const ::std::os::raw::c_char,
    ) -> *const ::std::os::raw::c_char;
}