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
/* automatically generated by rust-bindgen 0.69.4 */

pub const _STDINT_H: u32 = 1;
pub const _FEATURES_H: u32 = 1;
pub const _DEFAULT_SOURCE: u32 = 1;
pub const __GLIBC_USE_ISOC2X: u32 = 0;
pub const __USE_ISOC11: u32 = 1;
pub const __USE_ISOC99: u32 = 1;
pub const __USE_ISOC95: u32 = 1;
pub const __USE_POSIX_IMPLICITLY: u32 = 1;
pub const _POSIX_SOURCE: u32 = 1;
pub const _POSIX_C_SOURCE: u32 = 200809;
pub const __USE_POSIX: u32 = 1;
pub const __USE_POSIX2: u32 = 1;
pub const __USE_POSIX199309: u32 = 1;
pub const __USE_POSIX199506: u32 = 1;
pub const __USE_XOPEN2K: u32 = 1;
pub const __USE_XOPEN2K8: u32 = 1;
pub const _ATFILE_SOURCE: u32 = 1;
pub const __WORDSIZE: u32 = 64;
pub const __WORDSIZE_TIME64_COMPAT32: u32 = 1;
pub const __SYSCALL_WORDSIZE: u32 = 64;
pub const __TIMESIZE: u32 = 64;
pub const __USE_MISC: u32 = 1;
pub const __USE_ATFILE: u32 = 1;
pub const __USE_FORTIFY_LEVEL: u32 = 0;
pub const __GLIBC_USE_DEPRECATED_GETS: u32 = 0;
pub const __GLIBC_USE_DEPRECATED_SCANF: u32 = 0;
pub const _STDC_PREDEF_H: u32 = 1;
pub const __STDC_IEC_559__: u32 = 1;
pub const __STDC_IEC_60559_BFP__: u32 = 201404;
pub const __STDC_IEC_559_COMPLEX__: u32 = 1;
pub const __STDC_IEC_60559_COMPLEX__: u32 = 201404;
pub const __STDC_ISO_10646__: u32 = 201706;
pub const __GNU_LIBRARY__: u32 = 6;
pub const __GLIBC__: u32 = 2;
pub const __GLIBC_MINOR__: u32 = 35;
pub const _SYS_CDEFS_H: u32 = 1;
pub const __glibc_c99_flexarr_available: u32 = 1;
pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI: u32 = 0;
pub const __HAVE_GENERIC_SELECTION: u32 = 1;
pub const __GLIBC_USE_LIB_EXT2: u32 = 0;
pub const __GLIBC_USE_IEC_60559_BFP_EXT: u32 = 0;
pub const __GLIBC_USE_IEC_60559_BFP_EXT_C2X: u32 = 0;
pub const __GLIBC_USE_IEC_60559_EXT: u32 = 0;
pub const __GLIBC_USE_IEC_60559_FUNCS_EXT: u32 = 0;
pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C2X: u32 = 0;
pub const __GLIBC_USE_IEC_60559_TYPES_EXT: u32 = 0;
pub const _BITS_TYPES_H: u32 = 1;
pub const _BITS_TYPESIZES_H: u32 = 1;
pub const __OFF_T_MATCHES_OFF64_T: u32 = 1;
pub const __INO_T_MATCHES_INO64_T: u32 = 1;
pub const __RLIM_T_MATCHES_RLIM64_T: u32 = 1;
pub const __STATFS_MATCHES_STATFS64: u32 = 1;
pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64: u32 = 1;
pub const __FD_SETSIZE: u32 = 1024;
pub const _BITS_TIME64_H: u32 = 1;
pub const _BITS_WCHAR_H: u32 = 1;
pub const _BITS_STDINT_INTN_H: u32 = 1;
pub const _BITS_STDINT_UINTN_H: u32 = 1;
pub const INT8_MIN: i32 = -128;
pub const INT16_MIN: i32 = -32768;
pub const INT32_MIN: i32 = -2147483648;
pub const INT8_MAX: u32 = 127;
pub const INT16_MAX: u32 = 32767;
pub const INT32_MAX: u32 = 2147483647;
pub const UINT8_MAX: u32 = 255;
pub const UINT16_MAX: u32 = 65535;
pub const UINT32_MAX: u32 = 4294967295;
pub const INT_LEAST8_MIN: i32 = -128;
pub const INT_LEAST16_MIN: i32 = -32768;
pub const INT_LEAST32_MIN: i32 = -2147483648;
pub const INT_LEAST8_MAX: u32 = 127;
pub const INT_LEAST16_MAX: u32 = 32767;
pub const INT_LEAST32_MAX: u32 = 2147483647;
pub const UINT_LEAST8_MAX: u32 = 255;
pub const UINT_LEAST16_MAX: u32 = 65535;
pub const UINT_LEAST32_MAX: u32 = 4294967295;
pub const INT_FAST8_MIN: i32 = -128;
pub const INT_FAST16_MIN: i64 = -9223372036854775808;
pub const INT_FAST32_MIN: i64 = -9223372036854775808;
pub const INT_FAST8_MAX: u32 = 127;
pub const INT_FAST16_MAX: u64 = 9223372036854775807;
pub const INT_FAST32_MAX: u64 = 9223372036854775807;
pub const UINT_FAST8_MAX: u32 = 255;
pub const UINT_FAST16_MAX: i32 = -1;
pub const UINT_FAST32_MAX: i32 = -1;
pub const INTPTR_MIN: i64 = -9223372036854775808;
pub const INTPTR_MAX: u64 = 9223372036854775807;
pub const UINTPTR_MAX: i32 = -1;
pub const PTRDIFF_MIN: i64 = -9223372036854775808;
pub const PTRDIFF_MAX: u64 = 9223372036854775807;
pub const SIG_ATOMIC_MIN: i32 = -2147483648;
pub const SIG_ATOMIC_MAX: u32 = 2147483647;
pub const SIZE_MAX: i32 = -1;
pub const WINT_MIN: u32 = 0;
pub const WINT_MAX: u32 = 4294967295;
pub const _INTTYPES_H: u32 = 1;
pub const ____gwchar_t_defined: u32 = 1;
pub const __PRI64_PREFIX: &[u8; 2] = b"l\0";
pub const __PRIPTR_PREFIX: &[u8; 2] = b"l\0";
pub const PRId8: &[u8; 2] = b"d\0";
pub const PRId16: &[u8; 2] = b"d\0";
pub const PRId32: &[u8; 2] = b"d\0";
pub const PRId64: &[u8; 3] = b"ld\0";
pub const PRIdLEAST8: &[u8; 2] = b"d\0";
pub const PRIdLEAST16: &[u8; 2] = b"d\0";
pub const PRIdLEAST32: &[u8; 2] = b"d\0";
pub const PRIdLEAST64: &[u8; 3] = b"ld\0";
pub const PRIdFAST8: &[u8; 2] = b"d\0";
pub const PRIdFAST16: &[u8; 3] = b"ld\0";
pub const PRIdFAST32: &[u8; 3] = b"ld\0";
pub const PRIdFAST64: &[u8; 3] = b"ld\0";
pub const PRIi8: &[u8; 2] = b"i\0";
pub const PRIi16: &[u8; 2] = b"i\0";
pub const PRIi32: &[u8; 2] = b"i\0";
pub const PRIi64: &[u8; 3] = b"li\0";
pub const PRIiLEAST8: &[u8; 2] = b"i\0";
pub const PRIiLEAST16: &[u8; 2] = b"i\0";
pub const PRIiLEAST32: &[u8; 2] = b"i\0";
pub const PRIiLEAST64: &[u8; 3] = b"li\0";
pub const PRIiFAST8: &[u8; 2] = b"i\0";
pub const PRIiFAST16: &[u8; 3] = b"li\0";
pub const PRIiFAST32: &[u8; 3] = b"li\0";
pub const PRIiFAST64: &[u8; 3] = b"li\0";
pub const PRIo8: &[u8; 2] = b"o\0";
pub const PRIo16: &[u8; 2] = b"o\0";
pub const PRIo32: &[u8; 2] = b"o\0";
pub const PRIo64: &[u8; 3] = b"lo\0";
pub const PRIoLEAST8: &[u8; 2] = b"o\0";
pub const PRIoLEAST16: &[u8; 2] = b"o\0";
pub const PRIoLEAST32: &[u8; 2] = b"o\0";
pub const PRIoLEAST64: &[u8; 3] = b"lo\0";
pub const PRIoFAST8: &[u8; 2] = b"o\0";
pub const PRIoFAST16: &[u8; 3] = b"lo\0";
pub const PRIoFAST32: &[u8; 3] = b"lo\0";
pub const PRIoFAST64: &[u8; 3] = b"lo\0";
pub const PRIu8: &[u8; 2] = b"u\0";
pub const PRIu16: &[u8; 2] = b"u\0";
pub const PRIu32: &[u8; 2] = b"u\0";
pub const PRIu64: &[u8; 3] = b"lu\0";
pub const PRIuLEAST8: &[u8; 2] = b"u\0";
pub const PRIuLEAST16: &[u8; 2] = b"u\0";
pub const PRIuLEAST32: &[u8; 2] = b"u\0";
pub const PRIuLEAST64: &[u8; 3] = b"lu\0";
pub const PRIuFAST8: &[u8; 2] = b"u\0";
pub const PRIuFAST16: &[u8; 3] = b"lu\0";
pub const PRIuFAST32: &[u8; 3] = b"lu\0";
pub const PRIuFAST64: &[u8; 3] = b"lu\0";
pub const PRIx8: &[u8; 2] = b"x\0";
pub const PRIx16: &[u8; 2] = b"x\0";
pub const PRIx32: &[u8; 2] = b"x\0";
pub const PRIx64: &[u8; 3] = b"lx\0";
pub const PRIxLEAST8: &[u8; 2] = b"x\0";
pub const PRIxLEAST16: &[u8; 2] = b"x\0";
pub const PRIxLEAST32: &[u8; 2] = b"x\0";
pub const PRIxLEAST64: &[u8; 3] = b"lx\0";
pub const PRIxFAST8: &[u8; 2] = b"x\0";
pub const PRIxFAST16: &[u8; 3] = b"lx\0";
pub const PRIxFAST32: &[u8; 3] = b"lx\0";
pub const PRIxFAST64: &[u8; 3] = b"lx\0";
pub const PRIX8: &[u8; 2] = b"X\0";
pub const PRIX16: &[u8; 2] = b"X\0";
pub const PRIX32: &[u8; 2] = b"X\0";
pub const PRIX64: &[u8; 3] = b"lX\0";
pub const PRIXLEAST8: &[u8; 2] = b"X\0";
pub const PRIXLEAST16: &[u8; 2] = b"X\0";
pub const PRIXLEAST32: &[u8; 2] = b"X\0";
pub const PRIXLEAST64: &[u8; 3] = b"lX\0";
pub const PRIXFAST8: &[u8; 2] = b"X\0";
pub const PRIXFAST16: &[u8; 3] = b"lX\0";
pub const PRIXFAST32: &[u8; 3] = b"lX\0";
pub const PRIXFAST64: &[u8; 3] = b"lX\0";
pub const PRIdMAX: &[u8; 3] = b"ld\0";
pub const PRIiMAX: &[u8; 3] = b"li\0";
pub const PRIoMAX: &[u8; 3] = b"lo\0";
pub const PRIuMAX: &[u8; 3] = b"lu\0";
pub const PRIxMAX: &[u8; 3] = b"lx\0";
pub const PRIXMAX: &[u8; 3] = b"lX\0";
pub const PRIdPTR: &[u8; 3] = b"ld\0";
pub const PRIiPTR: &[u8; 3] = b"li\0";
pub const PRIoPTR: &[u8; 3] = b"lo\0";
pub const PRIuPTR: &[u8; 3] = b"lu\0";
pub const PRIxPTR: &[u8; 3] = b"lx\0";
pub const PRIXPTR: &[u8; 3] = b"lX\0";
pub const SCNd8: &[u8; 4] = b"hhd\0";
pub const SCNd16: &[u8; 3] = b"hd\0";
pub const SCNd32: &[u8; 2] = b"d\0";
pub const SCNd64: &[u8; 3] = b"ld\0";
pub const SCNdLEAST8: &[u8; 4] = b"hhd\0";
pub const SCNdLEAST16: &[u8; 3] = b"hd\0";
pub const SCNdLEAST32: &[u8; 2] = b"d\0";
pub const SCNdLEAST64: &[u8; 3] = b"ld\0";
pub const SCNdFAST8: &[u8; 4] = b"hhd\0";
pub const SCNdFAST16: &[u8; 3] = b"ld\0";
pub const SCNdFAST32: &[u8; 3] = b"ld\0";
pub const SCNdFAST64: &[u8; 3] = b"ld\0";
pub const SCNi8: &[u8; 4] = b"hhi\0";
pub const SCNi16: &[u8; 3] = b"hi\0";
pub const SCNi32: &[u8; 2] = b"i\0";
pub const SCNi64: &[u8; 3] = b"li\0";
pub const SCNiLEAST8: &[u8; 4] = b"hhi\0";
pub const SCNiLEAST16: &[u8; 3] = b"hi\0";
pub const SCNiLEAST32: &[u8; 2] = b"i\0";
pub const SCNiLEAST64: &[u8; 3] = b"li\0";
pub const SCNiFAST8: &[u8; 4] = b"hhi\0";
pub const SCNiFAST16: &[u8; 3] = b"li\0";
pub const SCNiFAST32: &[u8; 3] = b"li\0";
pub const SCNiFAST64: &[u8; 3] = b"li\0";
pub const SCNu8: &[u8; 4] = b"hhu\0";
pub const SCNu16: &[u8; 3] = b"hu\0";
pub const SCNu32: &[u8; 2] = b"u\0";
pub const SCNu64: &[u8; 3] = b"lu\0";
pub const SCNuLEAST8: &[u8; 4] = b"hhu\0";
pub const SCNuLEAST16: &[u8; 3] = b"hu\0";
pub const SCNuLEAST32: &[u8; 2] = b"u\0";
pub const SCNuLEAST64: &[u8; 3] = b"lu\0";
pub const SCNuFAST8: &[u8; 4] = b"hhu\0";
pub const SCNuFAST16: &[u8; 3] = b"lu\0";
pub const SCNuFAST32: &[u8; 3] = b"lu\0";
pub const SCNuFAST64: &[u8; 3] = b"lu\0";
pub const SCNo8: &[u8; 4] = b"hho\0";
pub const SCNo16: &[u8; 3] = b"ho\0";
pub const SCNo32: &[u8; 2] = b"o\0";
pub const SCNo64: &[u8; 3] = b"lo\0";
pub const SCNoLEAST8: &[u8; 4] = b"hho\0";
pub const SCNoLEAST16: &[u8; 3] = b"ho\0";
pub const SCNoLEAST32: &[u8; 2] = b"o\0";
pub const SCNoLEAST64: &[u8; 3] = b"lo\0";
pub const SCNoFAST8: &[u8; 4] = b"hho\0";
pub const SCNoFAST16: &[u8; 3] = b"lo\0";
pub const SCNoFAST32: &[u8; 3] = b"lo\0";
pub const SCNoFAST64: &[u8; 3] = b"lo\0";
pub const SCNx8: &[u8; 4] = b"hhx\0";
pub const SCNx16: &[u8; 3] = b"hx\0";
pub const SCNx32: &[u8; 2] = b"x\0";
pub const SCNx64: &[u8; 3] = b"lx\0";
pub const SCNxLEAST8: &[u8; 4] = b"hhx\0";
pub const SCNxLEAST16: &[u8; 3] = b"hx\0";
pub const SCNxLEAST32: &[u8; 2] = b"x\0";
pub const SCNxLEAST64: &[u8; 3] = b"lx\0";
pub const SCNxFAST8: &[u8; 4] = b"hhx\0";
pub const SCNxFAST16: &[u8; 3] = b"lx\0";
pub const SCNxFAST32: &[u8; 3] = b"lx\0";
pub const SCNxFAST64: &[u8; 3] = b"lx\0";
pub const SCNdMAX: &[u8; 3] = b"ld\0";
pub const SCNiMAX: &[u8; 3] = b"li\0";
pub const SCNoMAX: &[u8; 3] = b"lo\0";
pub const SCNuMAX: &[u8; 3] = b"lu\0";
pub const SCNxMAX: &[u8; 3] = b"lx\0";
pub const SCNdPTR: &[u8; 3] = b"ld\0";
pub const SCNiPTR: &[u8; 3] = b"li\0";
pub const SCNoPTR: &[u8; 3] = b"lo\0";
pub const SCNuPTR: &[u8; 3] = b"lu\0";
pub const SCNxPTR: &[u8; 3] = b"lx\0";
pub const CMAKE_BUILD_TYPE: &[u8; 8] = b"Release\0";
pub const CMAKE_INSTALL_PREFIX: &[u8; 89] =
    b"/opt/rustwide/target/x86_64-unknown-linux-gnu/debug/build/highs-sys-56e4d6216c8c21c5/out\0";
pub const HIGHS_GITHASH: &[u8; 4] = b"n/a\0";
pub const HIGHS_COMPILATION_DATE: &[u8; 11] = b"2024-02-21\0";
pub const HIGHS_VERSION_MAJOR: u32 = 1;
pub const HIGHS_VERSION_MINOR: u32 = 6;
pub const HIGHS_VERSION_PATCH: u32 = 0;
pub const HIGHS_DIR: &[u8; 28] = b"/opt/rustwide/workdir/HiGHS\0";
pub const HIGHSINT_FORMAT: &[u8; 2] = b"d\0";
pub type __u_char = ::std::os::raw::c_uchar;
pub type __u_short = ::std::os::raw::c_ushort;
pub type __u_int = ::std::os::raw::c_uint;
pub type __u_long = ::std::os::raw::c_ulong;
pub type __int8_t = ::std::os::raw::c_schar;
pub type __uint8_t = ::std::os::raw::c_uchar;
pub type __int16_t = ::std::os::raw::c_short;
pub type __uint16_t = ::std::os::raw::c_ushort;
pub type __int32_t = ::std::os::raw::c_int;
pub type __uint32_t = ::std::os::raw::c_uint;
pub type __int64_t = ::std::os::raw::c_long;
pub type __uint64_t = ::std::os::raw::c_ulong;
pub type __int_least8_t = __int8_t;
pub type __uint_least8_t = __uint8_t;
pub type __int_least16_t = __int16_t;
pub type __uint_least16_t = __uint16_t;
pub type __int_least32_t = __int32_t;
pub type __uint_least32_t = __uint32_t;
pub type __int_least64_t = __int64_t;
pub type __uint_least64_t = __uint64_t;
pub type __quad_t = ::std::os::raw::c_long;
pub type __u_quad_t = ::std::os::raw::c_ulong;
pub type __intmax_t = ::std::os::raw::c_long;
pub type __uintmax_t = ::std::os::raw::c_ulong;
pub type __dev_t = ::std::os::raw::c_ulong;
pub type __uid_t = ::std::os::raw::c_uint;
pub type __gid_t = ::std::os::raw::c_uint;
pub type __ino_t = ::std::os::raw::c_ulong;
pub type __ino64_t = ::std::os::raw::c_ulong;
pub type __mode_t = ::std::os::raw::c_uint;
pub type __nlink_t = ::std::os::raw::c_ulong;
pub type __off_t = ::std::os::raw::c_long;
pub type __off64_t = ::std::os::raw::c_long;
pub type __pid_t = ::std::os::raw::c_int;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __fsid_t {
    pub __val: [::std::os::raw::c_int; 2usize],
}
#[test]
fn bindgen_test_layout___fsid_t() {
    const UNINIT: ::std::mem::MaybeUninit<__fsid_t> = ::std::mem::MaybeUninit::uninit();
    let ptr = UNINIT.as_ptr();
    assert_eq!(
        ::std::mem::size_of::<__fsid_t>(),
        8usize,
        concat!("Size of: ", stringify!(__fsid_t))
    );
    assert_eq!(
        ::std::mem::align_of::<__fsid_t>(),
        4usize,
        concat!("Alignment of ", stringify!(__fsid_t))
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).__val) as usize - ptr as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__fsid_t),
            "::",
            stringify!(__val)
        )
    );
}
pub type __clock_t = ::std::os::raw::c_long;
pub type __rlim_t = ::std::os::raw::c_ulong;
pub type __rlim64_t = ::std::os::raw::c_ulong;
pub type __id_t = ::std::os::raw::c_uint;
pub type __time_t = ::std::os::raw::c_long;
pub type __useconds_t = ::std::os::raw::c_uint;
pub type __suseconds_t = ::std::os::raw::c_long;
pub type __suseconds64_t = ::std::os::raw::c_long;
pub type __daddr_t = ::std::os::raw::c_int;
pub type __key_t = ::std::os::raw::c_int;
pub type __clockid_t = ::std::os::raw::c_int;
pub type __timer_t = *mut ::std::os::raw::c_void;
pub type __blksize_t = ::std::os::raw::c_long;
pub type __blkcnt_t = ::std::os::raw::c_long;
pub type __blkcnt64_t = ::std::os::raw::c_long;
pub type __fsblkcnt_t = ::std::os::raw::c_ulong;
pub type __fsblkcnt64_t = ::std::os::raw::c_ulong;
pub type __fsfilcnt_t = ::std::os::raw::c_ulong;
pub type __fsfilcnt64_t = ::std::os::raw::c_ulong;
pub type __fsword_t = ::std::os::raw::c_long;
pub type __ssize_t = ::std::os::raw::c_long;
pub type __syscall_slong_t = ::std::os::raw::c_long;
pub type __syscall_ulong_t = ::std::os::raw::c_ulong;
pub type __loff_t = __off64_t;
pub type __caddr_t = *mut ::std::os::raw::c_char;
pub type __intptr_t = ::std::os::raw::c_long;
pub type __socklen_t = ::std::os::raw::c_uint;
pub type __sig_atomic_t = ::std::os::raw::c_int;
pub type int_least8_t = __int_least8_t;
pub type int_least16_t = __int_least16_t;
pub type int_least32_t = __int_least32_t;
pub type int_least64_t = __int_least64_t;
pub type uint_least8_t = __uint_least8_t;
pub type uint_least16_t = __uint_least16_t;
pub type uint_least32_t = __uint_least32_t;
pub type uint_least64_t = __uint_least64_t;
pub type int_fast8_t = ::std::os::raw::c_schar;
pub type int_fast16_t = ::std::os::raw::c_long;
pub type int_fast32_t = ::std::os::raw::c_long;
pub type int_fast64_t = ::std::os::raw::c_long;
pub type uint_fast8_t = ::std::os::raw::c_uchar;
pub type uint_fast16_t = ::std::os::raw::c_ulong;
pub type uint_fast32_t = ::std::os::raw::c_ulong;
pub type uint_fast64_t = ::std::os::raw::c_ulong;
pub type intmax_t = __intmax_t;
pub type uintmax_t = __uintmax_t;
pub type __gwchar_t = ::std::os::raw::c_int;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct imaxdiv_t {
    pub quot: ::std::os::raw::c_long,
    pub rem: ::std::os::raw::c_long,
}
#[test]
fn bindgen_test_layout_imaxdiv_t() {
    const UNINIT: ::std::mem::MaybeUninit<imaxdiv_t> = ::std::mem::MaybeUninit::uninit();
    let ptr = UNINIT.as_ptr();
    assert_eq!(
        ::std::mem::size_of::<imaxdiv_t>(),
        16usize,
        concat!("Size of: ", stringify!(imaxdiv_t))
    );
    assert_eq!(
        ::std::mem::align_of::<imaxdiv_t>(),
        8usize,
        concat!("Alignment of ", stringify!(imaxdiv_t))
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).quot) as usize - ptr as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(imaxdiv_t),
            "::",
            stringify!(quot)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).rem) as usize - ptr as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(imaxdiv_t),
            "::",
            stringify!(rem)
        )
    );
}
extern "C" {
    pub fn imaxabs(__n: intmax_t) -> intmax_t;
}
extern "C" {
    pub fn imaxdiv(__numer: intmax_t, __denom: intmax_t) -> imaxdiv_t;
}
extern "C" {
    pub fn strtoimax(
        __nptr: *const ::std::os::raw::c_char,
        __endptr: *mut *mut ::std::os::raw::c_char,
        __base: ::std::os::raw::c_int,
    ) -> intmax_t;
}
extern "C" {
    pub fn strtoumax(
        __nptr: *const ::std::os::raw::c_char,
        __endptr: *mut *mut ::std::os::raw::c_char,
        __base: ::std::os::raw::c_int,
    ) -> uintmax_t;
}
extern "C" {
    pub fn wcstoimax(
        __nptr: *const __gwchar_t,
        __endptr: *mut *mut __gwchar_t,
        __base: ::std::os::raw::c_int,
    ) -> intmax_t;
}
extern "C" {
    pub fn wcstoumax(
        __nptr: *const __gwchar_t,
        __endptr: *mut *mut __gwchar_t,
        __base: ::std::os::raw::c_int,
    ) -> uintmax_t;
}
pub type HighsInt = ::std::os::raw::c_int;
pub type HighsUInt = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct HighsCallbackDataOut {
    pub log_type: ::std::os::raw::c_int,
    pub running_time: f64,
    pub simplex_iteration_count: HighsInt,
    pub ipm_iteration_count: HighsInt,
    pub objective_function_value: f64,
    pub mip_node_count: i64,
    pub mip_primal_bound: f64,
    pub mip_dual_bound: f64,
    pub mip_gap: f64,
    pub mip_solution: *mut f64,
}
#[test]
fn bindgen_test_layout_HighsCallbackDataOut() {
    const UNINIT: ::std::mem::MaybeUninit<HighsCallbackDataOut> = ::std::mem::MaybeUninit::uninit();
    let ptr = UNINIT.as_ptr();
    assert_eq!(
        ::std::mem::size_of::<HighsCallbackDataOut>(),
        72usize,
        concat!("Size of: ", stringify!(HighsCallbackDataOut))
    );
    assert_eq!(
        ::std::mem::align_of::<HighsCallbackDataOut>(),
        8usize,
        concat!("Alignment of ", stringify!(HighsCallbackDataOut))
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).log_type) as usize - ptr as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(HighsCallbackDataOut),
            "::",
            stringify!(log_type)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).running_time) as usize - ptr as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(HighsCallbackDataOut),
            "::",
            stringify!(running_time)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).simplex_iteration_count) as usize - ptr as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(HighsCallbackDataOut),
            "::",
            stringify!(simplex_iteration_count)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).ipm_iteration_count) as usize - ptr as usize },
        20usize,
        concat!(
            "Offset of field: ",
            stringify!(HighsCallbackDataOut),
            "::",
            stringify!(ipm_iteration_count)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).objective_function_value) as usize - ptr as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(HighsCallbackDataOut),
            "::",
            stringify!(objective_function_value)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).mip_node_count) as usize - ptr as usize },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(HighsCallbackDataOut),
            "::",
            stringify!(mip_node_count)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).mip_primal_bound) as usize - ptr as usize },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(HighsCallbackDataOut),
            "::",
            stringify!(mip_primal_bound)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).mip_dual_bound) as usize - ptr as usize },
        48usize,
        concat!(
            "Offset of field: ",
            stringify!(HighsCallbackDataOut),
            "::",
            stringify!(mip_dual_bound)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).mip_gap) as usize - ptr as usize },
        56usize,
        concat!(
            "Offset of field: ",
            stringify!(HighsCallbackDataOut),
            "::",
            stringify!(mip_gap)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).mip_solution) as usize - ptr as usize },
        64usize,
        concat!(
            "Offset of field: ",
            stringify!(HighsCallbackDataOut),
            "::",
            stringify!(mip_solution)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct HighsCallbackDataIn {
    pub user_interrupt: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_HighsCallbackDataIn() {
    const UNINIT: ::std::mem::MaybeUninit<HighsCallbackDataIn> = ::std::mem::MaybeUninit::uninit();
    let ptr = UNINIT.as_ptr();
    assert_eq!(
        ::std::mem::size_of::<HighsCallbackDataIn>(),
        4usize,
        concat!("Size of: ", stringify!(HighsCallbackDataIn))
    );
    assert_eq!(
        ::std::mem::align_of::<HighsCallbackDataIn>(),
        4usize,
        concat!("Alignment of ", stringify!(HighsCallbackDataIn))
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).user_interrupt) as usize - ptr as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(HighsCallbackDataIn),
            "::",
            stringify!(user_interrupt)
        )
    );
}
pub const kHighsMaximumStringLength: HighsInt = 512;
pub const kHighsStatusError: HighsInt = -1;
pub const kHighsStatusOk: HighsInt = 0;
pub const kHighsStatusWarning: HighsInt = 1;
pub const kHighsVarTypeContinuous: HighsInt = 0;
pub const kHighsVarTypeInteger: HighsInt = 1;
pub const kHighsVarTypeSemiContinuous: HighsInt = 2;
pub const kHighsVarTypeSemiInteger: HighsInt = 3;
pub const kHighsVarTypeImplicitInteger: HighsInt = 4;
pub const kHighsOptionTypeBool: HighsInt = 0;
pub const kHighsOptionTypeInt: HighsInt = 1;
pub const kHighsOptionTypeDouble: HighsInt = 2;
pub const kHighsOptionTypeString: HighsInt = 3;
pub const kHighsInfoTypeInt64: HighsInt = -1;
pub const kHighsInfoTypeInt: HighsInt = 1;
pub const kHighsInfoTypeDouble: HighsInt = 2;
pub const kHighsObjSenseMinimize: HighsInt = 1;
pub const kHighsObjSenseMaximize: HighsInt = -1;
pub const kHighsMatrixFormatColwise: HighsInt = 1;
pub const kHighsMatrixFormatRowwise: HighsInt = 2;
pub const kHighsHessianFormatTriangular: HighsInt = 1;
pub const kHighsHessianFormatSquare: HighsInt = 2;
pub const kHighsSolutionStatusNone: HighsInt = 0;
pub const kHighsSolutionStatusInfeasible: HighsInt = 1;
pub const kHighsSolutionStatusFeasible: HighsInt = 2;
pub const kHighsBasisValidityInvalid: HighsInt = 0;
pub const kHighsBasisValidityValid: HighsInt = 1;
pub const kHighsPresolveStatusNotPresolved: HighsInt = -1;
pub const kHighsPresolveStatusNotReduced: HighsInt = 0;
pub const kHighsPresolveStatusInfeasible: HighsInt = 1;
pub const kHighsPresolveStatusUnboundedOrInfeasible: HighsInt = 2;
pub const kHighsPresolveStatusReduced: HighsInt = 3;
pub const kHighsPresolveStatusReducedToEmpty: HighsInt = 4;
pub const kHighsPresolveStatusTimeout: HighsInt = 5;
pub const kHighsPresolveStatusNullError: HighsInt = 6;
pub const kHighsPresolveStatusOptionsError: HighsInt = 7;
pub const kHighsModelStatusNotset: HighsInt = 0;
pub const kHighsModelStatusLoadError: HighsInt = 1;
pub const kHighsModelStatusModelError: HighsInt = 2;
pub const kHighsModelStatusPresolveError: HighsInt = 3;
pub const kHighsModelStatusSolveError: HighsInt = 4;
pub const kHighsModelStatusPostsolveError: HighsInt = 5;
pub const kHighsModelStatusModelEmpty: HighsInt = 6;
pub const kHighsModelStatusOptimal: HighsInt = 7;
pub const kHighsModelStatusInfeasible: HighsInt = 8;
pub const kHighsModelStatusUnboundedOrInfeasible: HighsInt = 9;
pub const kHighsModelStatusUnbounded: HighsInt = 10;
pub const kHighsModelStatusObjectiveBound: HighsInt = 11;
pub const kHighsModelStatusObjectiveTarget: HighsInt = 12;
pub const kHighsModelStatusTimeLimit: HighsInt = 13;
pub const kHighsModelStatusIterationLimit: HighsInt = 14;
pub const kHighsModelStatusUnknown: HighsInt = 15;
pub const kHighsModelStatusSolutionLimit: HighsInt = 16;
pub const kHighsModelStatusInterrupt: HighsInt = 17;
pub const kHighsBasisStatusLower: HighsInt = 0;
pub const kHighsBasisStatusBasic: HighsInt = 1;
pub const kHighsBasisStatusUpper: HighsInt = 2;
pub const kHighsBasisStatusZero: HighsInt = 3;
pub const kHighsBasisStatusNonbasic: HighsInt = 4;
pub const kHighsCallbackLogging: HighsInt = 0;
pub const kHighsCallbackSimplexInterrupt: HighsInt = 1;
pub const kHighsCallbackIpmInterrupt: HighsInt = 2;
pub const kHighsCallbackMipImprovingSolution: HighsInt = 3;
pub const kHighsCallbackMipLogging: HighsInt = 4;
pub const kHighsCallbackMipInterrupt: HighsInt = 5;
extern "C" {
    #[doc = " Formulate and solve a linear program using HiGHS.\n\n @param num_col   The number of columns.\n @param num_row   The number of rows.\n @param num_nz    The number of nonzeros in the constraint matrix.\n @param a_format  The format of the constraint matrix as a\n                  `kHighsMatrixFormat` constant.\n @param sense     The optimization sense as a `kHighsObjSense` constant.\n @param offset    The objective constant.\n @param col_cost  An array of length [num_col] with the column costs.\n @param col_lower An array of length [num_col] with the column lower bounds.\n @param col_upper An array of length [num_col] with the column upper bounds.\n @param row_lower An array of length [num_row] with the row lower bounds.\n @param row_upper An array of length [num_row] with the row upper bounds.\n @param a_start   The constraint matrix is provided to HiGHS in compressed\n                  sparse column form (if `a_format` is\n                  `kHighsMatrixFormatColwise`, otherwise compressed sparse row\n                  form). The sparse matrix consists of three arrays,\n                  `a_start`, `a_index`, and `a_value`. `a_start` is an array\n                  of length [num_col] containing the starting index of each\n                  column in `a_index`. If `a_format` is\n                  `kHighsMatrixFormatRowwise` the array is of length [num_row]\n                  corresponding to each row.\n @param a_index   An array of length [num_nz] with indices of matrix entries.\n @param a_value   An array of length [num_nz] with values of matrix entries.\n\n @param col_value      An array of length [num_col], to be filled with the\n                       primal column solution.\n @param col_dual       An array of length [num_col], to be filled with the\n                       dual column solution.\n @param row_value      An array of length [num_row], to be filled with the\n                       primal row solution.\n @param row_dual       An array of length [num_row], to be filled with the\n                       dual row solution.\n @param col_basis_status  An array of length [num_col], to be filled with the\n                          basis status of the columns in the form of a\n                          `kHighsBasisStatus` constant.\n @param row_basis_status  An array of length [num_row], to be filled with the\n                          basis status of the rows in the form of a\n                          `kHighsBasisStatus` constant.\n @param model_status      The location in which to place the termination\n                          status of the model after the solve in the form of a\n                          `kHighsModelStatus` constant.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_lpCall(
        num_col: HighsInt,
        num_row: HighsInt,
        num_nz: HighsInt,
        a_format: HighsInt,
        sense: HighsInt,
        offset: f64,
        col_cost: *const f64,
        col_lower: *const f64,
        col_upper: *const f64,
        row_lower: *const f64,
        row_upper: *const f64,
        a_start: *const HighsInt,
        a_index: *const HighsInt,
        a_value: *const f64,
        col_value: *mut f64,
        col_dual: *mut f64,
        row_value: *mut f64,
        row_dual: *mut f64,
        col_basis_status: *mut HighsInt,
        row_basis_status: *mut HighsInt,
        model_status: *mut HighsInt,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Formulate and solve a mixed-integer linear program using HiGHS.\n\n The signature of this method is identical to `Highs_lpCall`, except that it\n has an additional `integrality` argument, and that it is missing the\n `col_dual`, `row_dual`, `col_basis_status` and `row_basis_status` arguments.\n\n @param integrality   An array of length [num_col], containing a\n                      `kHighsVarType` constant for each column.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_mipCall(
        num_col: HighsInt,
        num_row: HighsInt,
        num_nz: HighsInt,
        a_format: HighsInt,
        sense: HighsInt,
        offset: f64,
        col_cost: *const f64,
        col_lower: *const f64,
        col_upper: *const f64,
        row_lower: *const f64,
        row_upper: *const f64,
        a_start: *const HighsInt,
        a_index: *const HighsInt,
        a_value: *const f64,
        integrality: *const HighsInt,
        col_value: *mut f64,
        row_value: *mut f64,
        model_status: *mut HighsInt,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Formulate and solve a quadratic program using HiGHS.\n\n The signature of this method is identical to `Highs_lpCall`, except that it\n has additional arguments for specifying the Hessian matrix.\n\n @param q_num_nz  The number of nonzeros in the Hessian matrix.\n @param q_format  The format of the Hessian matrix in the form of a\n                  `kHighsHessianStatus` constant. If q_num_nz > 0, this must\n                  be `kHighsHessianFormatTriangular`.\n @param q_start   The Hessian matrix is provided in the same format as the\n                  constraint matrix, using `q_start`, `q_index`, and `q_value`\n                  in the place of `a_start`, `a_index`, and `a_value`.\n @param q_index   An array of length [q_num_nz] with indices of matrix\n                  sentries.\n @param q_value   An array of length [q_num_nz] with values of matrix entries.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_qpCall(
        num_col: HighsInt,
        num_row: HighsInt,
        num_nz: HighsInt,
        q_num_nz: HighsInt,
        a_format: HighsInt,
        q_format: HighsInt,
        sense: HighsInt,
        offset: f64,
        col_cost: *const f64,
        col_lower: *const f64,
        col_upper: *const f64,
        row_lower: *const f64,
        row_upper: *const f64,
        a_start: *const HighsInt,
        a_index: *const HighsInt,
        a_value: *const f64,
        q_start: *const HighsInt,
        q_index: *const HighsInt,
        q_value: *const f64,
        col_value: *mut f64,
        col_dual: *mut f64,
        row_value: *mut f64,
        row_dual: *mut f64,
        col_basis_status: *mut HighsInt,
        row_basis_status: *mut HighsInt,
        model_status: *mut HighsInt,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Create a Highs instance and return the reference.\n\n Call `Highs_destroy` on the returned reference to clean up allocated memory.\n\n @returns A pointer to the Highs instance."]
    pub fn Highs_create() -> *mut ::std::os::raw::c_void;
}
extern "C" {
    #[doc = " Destroy the model `highs` created by `Highs_create` and free all\n corresponding memory. Future calls using `highs` are not allowed.\n\n To empty a model without invalidating `highs`, see `Highs_clearModel`.\n\n @param highs     A pointer to the Highs instance."]
    pub fn Highs_destroy(highs: *mut ::std::os::raw::c_void);
}
extern "C" {
    #[doc = " Return the HiGHS version number as a string of the form \"vX.Y.Z\".\n\n @returns The HiGHS version as a `char*`."]
    pub fn Highs_version() -> *const ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " Return the HiGHS major version number.\n\n @returns The HiGHS major version number."]
    pub fn Highs_versionMajor() -> HighsInt;
}
extern "C" {
    #[doc = " Return the HiGHS minor version number.\n\n @returns The HiGHS minor version number."]
    pub fn Highs_versionMinor() -> HighsInt;
}
extern "C" {
    #[doc = " Return the HiGHS patch version number.\n\n @returns The HiGHS patch version number."]
    pub fn Highs_versionPatch() -> HighsInt;
}
extern "C" {
    #[doc = " Return the HiGHS githash.\n\n @returns The HiGHS githash."]
    pub fn Highs_githash() -> *const ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " Return the HiGHS compilation date.\n\n @returns Thse HiGHS compilation date."]
    pub fn Highs_compilationDate() -> *const ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " Read a model from `filename` into `highs`.\n\n @param highs     A pointer to the Highs instance.\n @param filename  The filename to read.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_readModel(
        highs: *mut ::std::os::raw::c_void,
        filename: *const ::std::os::raw::c_char,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Write the model in `highs` to `filename`.\n\n @param highs     A pointer to the Highs instance.\n @param filename  The filename to write.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_writeModel(
        highs: *mut ::std::os::raw::c_void,
        filename: *const ::std::os::raw::c_char,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Reset the options and then call `clearModel`.\n\n See `Highs_destroy` to free all associated memory.\n\n @param highs     A pointer to the Highs instance.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_clear(highs: *mut ::std::os::raw::c_void) -> HighsInt;
}
extern "C" {
    #[doc = " Remove all variables and constraints from the model `highs`, but do not\n invalidate the pointer `highs`. Future calls (for example, adding new\n variables and constraints) are allowed.\n\n @param highs     A pointer to the Highs instance.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_clearModel(highs: *mut ::std::os::raw::c_void) -> HighsInt;
}
extern "C" {
    #[doc = " Clear all solution data associated with the model.\n\n See `Highs_destroy` to clear the model and free all associated memory.\n\n @param highs     A pointer to the Highs instance.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_clearSolver(highs: *mut ::std::os::raw::c_void) -> HighsInt;
}
extern "C" {
    #[doc = " Optimize a model. The algorithm used by HiGHS depends on the options that\n have been set.\n\n @param highs     A pointer to the Highs instance.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_run(highs: *mut ::std::os::raw::c_void) -> HighsInt;
}
extern "C" {
    #[doc = " Write the solution information (including dual and basis status, if\n available) to a file.\n\n See also: `Highs_writeSolutionPretty`.\n\n @param highs     A pointer to the Highs instance.\n @param filename  The name of the file to write the results to.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_writeSolution(
        highs: *const ::std::os::raw::c_void,
        filename: *const ::std::os::raw::c_char,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Write the solution information (including dual and basis status, if\n available) to a file in a human-readable format.\n\n The method identical to `Highs_writeSolution`, except that the\n printout is in a human-readiable format.\n\n @param highs     A pointer to the Highs instance.\n @param filename  The name of the file to write the results to.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_writeSolutionPretty(
        highs: *const ::std::os::raw::c_void,
        filename: *const ::std::os::raw::c_char,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Pass a linear program (LP) to HiGHS in a single function call.\n\n The signature of this function is identical to `Highs_passModel`, without the\n arguments for passing the Hessian matrix of a quadratic program and the\n integrality vector.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_passLp(
        highs: *mut ::std::os::raw::c_void,
        num_col: HighsInt,
        num_row: HighsInt,
        num_nz: HighsInt,
        a_format: HighsInt,
        sense: HighsInt,
        offset: f64,
        col_cost: *const f64,
        col_lower: *const f64,
        col_upper: *const f64,
        row_lower: *const f64,
        row_upper: *const f64,
        a_start: *const HighsInt,
        a_index: *const HighsInt,
        a_value: *const f64,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Pass a mixed-integer linear program (MILP) to HiGHS in a single function\n call.\n\n The signature of function is identical to `Highs_passModel`, without the\n arguments for passing the Hessian matrix of a quadratic program.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_passMip(
        highs: *mut ::std::os::raw::c_void,
        num_col: HighsInt,
        num_row: HighsInt,
        num_nz: HighsInt,
        a_format: HighsInt,
        sense: HighsInt,
        offset: f64,
        col_cost: *const f64,
        col_lower: *const f64,
        col_upper: *const f64,
        row_lower: *const f64,
        row_upper: *const f64,
        a_start: *const HighsInt,
        a_index: *const HighsInt,
        a_value: *const f64,
        integrality: *const HighsInt,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Pass a model to HiGHS in a single function call. This is faster than\n constructing the model using `Highs_addRow` and `Highs_addCol`.\n\n @param highs       A pointer to the Highs instance.\n @param num_col     The number of columns.\n @param num_row     The number of rows.\n @param num_nz      The number of elements in the constraint matrix.\n @param q_num_nz    The number of elements in the Hessian matrix.\n @param a_format    The format of the constraint matrix to use in the form of\n                    a `kHighsMatrixFormat` constant.\n @param q_format    The format of the Hessian matrix to use in the form of a\n                    `kHighsHessianFormat` constant.\n @param sense       The optimization sense in the form of a `kHighsObjSense`\n                    constant.\n @param offset      The constant term in the objective function.\n @param col_cost    An array of length [num_col] with the objective\n                    coefficients.\n @param col_lower   An array of length [num_col] with the lower column bounds.\n @param col_upper   An array of length [num_col] with the upper column bounds.\n @param row_lower   An array of length [num_row] with the upper row bounds.\n @param row_upper   An array of length [num_row] with the upper row bounds.\n @param a_start     The constraint matrix is provided to HiGHS in compressed\n                    sparse column form (if `a_format` is\n                    `kHighsMatrixFormatColwise`, otherwise compressed sparse\n                    row form). The sparse matrix consists of three arrays,\n                    `a_start`, `a_index`, and `a_value`. `a_start` is an array\n                    of length [num_col] containing the starting index of each\n                    column in `a_index`. If `a_format` is\n                    `kHighsMatrixFormatRowwise` the array is of length\n                    [num_row] corresponding to each row.\n @param a_index     An array of length [num_nz] with indices of matrix\n                    entries.\n @param a_value     An array of length [num_nz] with values of matrix entries.\n @param q_start     The Hessian matrix is provided in the same format as the\n                    constraint matrix, using `q_start`, `q_index`, and\n                    `q_value` in the place of `a_start`, `a_index`, and\n                    `a_value`. If the model is linear, pass NULL.\n @param q_index     An array of length [q_num_nz] with indices of matrix\n                    entries. If the model is linear, pass NULL.\n @param q_value     An array of length [q_num_nz] with values of matrix\n                     entries. If the model is linear, pass NULL.\n @param integrality An array of length [num_col] containing a `kHighsVarType`\n                    consatnt for each column.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_passModel(
        highs: *mut ::std::os::raw::c_void,
        num_col: HighsInt,
        num_row: HighsInt,
        num_nz: HighsInt,
        q_num_nz: HighsInt,
        a_format: HighsInt,
        q_format: HighsInt,
        sense: HighsInt,
        offset: f64,
        col_cost: *const f64,
        col_lower: *const f64,
        col_upper: *const f64,
        row_lower: *const f64,
        row_upper: *const f64,
        a_start: *const HighsInt,
        a_index: *const HighsInt,
        a_value: *const f64,
        q_start: *const HighsInt,
        q_index: *const HighsInt,
        q_value: *const f64,
        integrality: *const HighsInt,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Set the Hessian matrix for a quadratic objective.\n\n @param highs     A pointer to the Highs instance.\n @param dim       The dimension of the Hessian matrix. Should be [num_col].\n @param num_nz    The number of non-zero elements in the Hessian matrix.\n @param format    The format of the Hessian matrix as a `kHighsHessianFormat`\n                  constant. This must be `kHighsHessianFormatTriangular`.\n @param start     The Hessian matrix is provided to HiGHS as the upper\n                  triangular component in compressed sparse column form. The\n                  sparse matrix consists of three arrays, `start`, `index`,\n                  and `value`. `start` is an array of length [num_col]\n                  containing the starting index of each column in `index`.\n @param index     An array of length [num_nz] with indices of matrix entries.\n @param value     An array of length [num_nz] with values of matrix entries.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_passHessian(
        highs: *mut ::std::os::raw::c_void,
        dim: HighsInt,
        num_nz: HighsInt,
        format: HighsInt,
        start: *const HighsInt,
        index: *const HighsInt,
        value: *const f64,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Pass the name of a row.\n\n @param highs A pointer to the Highs instance.\n @param row   The row for which the name is supplied.\n @param name  The name of the row.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_passRowName(
        highs: *const ::std::os::raw::c_void,
        row: HighsInt,
        name: *const ::std::os::raw::c_char,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Pass the name of a column.\n\n @param highs A pointer to the Highs instance.\n @param col   The column for which the name is supplied.\n @param name  The name of the column.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_passColName(
        highs: *const ::std::os::raw::c_void,
        col: HighsInt,
        name: *const ::std::os::raw::c_char,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Read the option values from file.\n\n @param highs     A pointer to the Highs instance.\n @param filename  The filename from which to read the option values.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_readOptions(
        highs: *const ::std::os::raw::c_void,
        filename: *const ::std::os::raw::c_char,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Set a boolean-valued option.\n\n @param highs     A pointer to the Highs instance.\n @param option    The name of the option.\n @param value     The new value of the option.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_setBoolOptionValue(
        highs: *mut ::std::os::raw::c_void,
        option: *const ::std::os::raw::c_char,
        value: HighsInt,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Set an int-valued option.\n\n @param highs     A pointer to the Highs instance.\n @param option    The name of the option.\n @param value     The new value of the option.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_setIntOptionValue(
        highs: *mut ::std::os::raw::c_void,
        option: *const ::std::os::raw::c_char,
        value: HighsInt,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Set a double-valued option.\n\n @param highs     A pointer to the Highs instance.\n @param option    The name of the option.\n @param value     The new value of the option.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_setDoubleOptionValue(
        highs: *mut ::std::os::raw::c_void,
        option: *const ::std::os::raw::c_char,
        value: f64,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Set a string-valued option.\n\n @param highs     A pointer to the Highs instance.\n @param option    The name of the option.\n @param value     The new value of the option.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_setStringOptionValue(
        highs: *mut ::std::os::raw::c_void,
        option: *const ::std::os::raw::c_char,
        value: *const ::std::os::raw::c_char,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Get a boolean-valued option.\n\n @param highs     A pointer to the Highs instance.\n @param option    The name of the option.\n @param value     The location in which the current value of the option should\n                  be placed.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_getBoolOptionValue(
        highs: *const ::std::os::raw::c_void,
        option: *const ::std::os::raw::c_char,
        value: *mut HighsInt,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Get an int-valued option.\n\n @param highs     A pointer to the Highs instance.\n @param option    The name of the option.\n @param value     The location in which the current value of the option should\n                  be placed.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_getIntOptionValue(
        highs: *const ::std::os::raw::c_void,
        option: *const ::std::os::raw::c_char,
        value: *mut HighsInt,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Get a double-valued option.\n\n @param highs     A pointer to the Highs instance.\n @param option    The name of the option.\n @param value     The location in which the current value of the option should\n                  be placed.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_getDoubleOptionValue(
        highs: *const ::std::os::raw::c_void,
        option: *const ::std::os::raw::c_char,
        value: *mut f64,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Get a string-valued option.\n\n @param highs     A pointer to the Highs instance.\n @param option    The name of the option.\n @param value     A pointer to allocated memory (of at least\n                  `kMaximumStringLength`) to store the current value of the\n                  option.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_getStringOptionValue(
        highs: *const ::std::os::raw::c_void,
        option: *const ::std::os::raw::c_char,
        value: *mut ::std::os::raw::c_char,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Get the type expected by an option.\n\n @param highs     A pointer to the Highs instance.\n @param option    The name of the option.\n @param type      An int in which the corresponding `kHighsOptionType`\n                  constant should be placed.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_getOptionType(
        highs: *const ::std::os::raw::c_void,
        option: *const ::std::os::raw::c_char,
        type_: *mut HighsInt,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Reset all options to their default value.\n\n @param highs     A pointer to the Highs instance.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_resetOptions(highs: *mut ::std::os::raw::c_void) -> HighsInt;
}
extern "C" {
    #[doc = " Write the current options to file.\n\n @param highs     A pointer to the Highs instance.\n @param filename  The filename to write the options to.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_writeOptions(
        highs: *const ::std::os::raw::c_void,
        filename: *const ::std::os::raw::c_char,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Write the value of non-default options to file.\n\n This is similar to `Highs_writeOptions`, except only options with\n non-default value are written to `filename`.\n\n @param highs     A pointer to the Highs instance.\n @param filename  The filename to write the options to.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_writeOptionsDeviations(
        highs: *const ::std::os::raw::c_void,
        filename: *const ::std::os::raw::c_char,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Return the number of options\n\n @param highs     A pointer to the Highs instance."]
    pub fn Highs_getNumOptions(highs: *const ::std::os::raw::c_void) -> HighsInt;
}
extern "C" {
    #[doc = " Get the name of an option identified by index\n\n @param highs     A pointer to the Highs instance.\n @param index     The index of the option.\n @param name      The name of the option.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_getOptionName(
        highs: *const ::std::os::raw::c_void,
        index: HighsInt,
        name: *mut *mut ::std::os::raw::c_char,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Get the current and default values of a bool option\n\n @param highs         A pointer to the Highs instance.\n @param current_value A pointer to the current value of the option.\n @param default_value A pointer to the default value of the option.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_getBoolOptionValues(
        highs: *const ::std::os::raw::c_void,
        option: *const ::std::os::raw::c_char,
        current_value: *mut HighsInt,
        default_value: *mut HighsInt,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Get the current and default values of an int option\n\n @param highs         A pointer to the Highs instance.\n @param current_value A pointer to the current value of the option.\n @param min_value     A pointer to the minimum value of the option.\n @param max_value     A pointer to the maximum value of the option.\n @param default_value A pointer to the default value of the option.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_getIntOptionValues(
        highs: *const ::std::os::raw::c_void,
        option: *const ::std::os::raw::c_char,
        current_value: *mut HighsInt,
        min_value: *mut HighsInt,
        max_value: *mut HighsInt,
        default_value: *mut HighsInt,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Get the current and default values of a double option\n\n @param highs         A pointer to the Highs instance.\n @param current_value A pointer to the current value of the option.\n @param min_value     A pointer to the minimum value of the option.\n @param max_value     A pointer to the maximum value of the option.\n @param default_value A pointer to the default value of the option.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_getDoubleOptionValues(
        highs: *const ::std::os::raw::c_void,
        option: *const ::std::os::raw::c_char,
        current_value: *mut f64,
        min_value: *mut f64,
        max_value: *mut f64,
        default_value: *mut f64,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Get the current and default values of a string option\n\n @param highs         A pointer to the Highs instance.\n @param current_value A pointer to the current value of the option.\n @param default_value A pointer to the default value of the option.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_getStringOptionValues(
        highs: *const ::std::os::raw::c_void,
        option: *const ::std::os::raw::c_char,
        current_value: *mut ::std::os::raw::c_char,
        default_value: *mut ::std::os::raw::c_char,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Get an int-valued info value.\n\n @param highs     A pointer to the Highs instance.\n @param info      The name of the info item.\n @param value     A reference to an integer that the result will be stored in.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_getIntInfoValue(
        highs: *const ::std::os::raw::c_void,
        info: *const ::std::os::raw::c_char,
        value: *mut HighsInt,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Get a double-valued info value.\n\n @param highs     A pointer to the Highs instance.\n @param info      The name of the info item.\n @param value     A reference to a double that the result will be stored in.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_getDoubleInfoValue(
        highs: *const ::std::os::raw::c_void,
        info: *const ::std::os::raw::c_char,
        value: *mut f64,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Get an int64-valued info value.\n\n @param highs     A pointer to the Highs instance.\n @param info      The name of the info item.\n @param value     A reference to an int64 that the result will be stored in.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_getInt64InfoValue(
        highs: *const ::std::os::raw::c_void,
        info: *const ::std::os::raw::c_char,
        value: *mut i64,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Get the type expected by an info item.\n\n @param highs     A pointer to the Highs instance.\n @param info      The name of the info item.\n @param type      An int in which the corresponding `kHighsOptionType`\n                  constant is stored.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_getInfoType(
        highs: *const ::std::os::raw::c_void,
        info: *const ::std::os::raw::c_char,
        type_: *mut HighsInt,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Get the primal and dual solution from an optimized model.\n\n @param highs      A pointer to the Highs instance.\n @param col_value  An array of length [num_col], to be filled with primal\n                   column values.\n @param col_dual   An array of length [num_col], to be filled with dual column\n                   values.\n @param row_value  An array of length [num_row], to be filled with primal row\n                   values.\n @param row_dual   An array of length [num_row], to be filled with dual row\n                   values.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_getSolution(
        highs: *const ::std::os::raw::c_void,
        col_value: *mut f64,
        col_dual: *mut f64,
        row_value: *mut f64,
        row_dual: *mut f64,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Given a linear program with a basic feasible solution, get the column and row\n basis statuses.\n\n @param highs       A pointer to the Highs instance.\n @param col_status  An array of length [num_col], to be filled with the column\n                    basis statuses in the form of a `kHighsBasisStatus`\n                    constant.\n @param row_status  An array of length [num_row], to be filled with the row\n                    basis statuses in the form of a `kHighsBasisStatus`\n                    constant.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_getBasis(
        highs: *const ::std::os::raw::c_void,
        col_status: *mut HighsInt,
        row_status: *mut HighsInt,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Return the optimization status of the model in the form of a\n `kHighsModelStatus` constant.\n\n @param highs     A pointer to the Highs instance.\n\n @returns An integer corresponding to the `kHighsModelStatus` constant"]
    pub fn Highs_getModelStatus(highs: *const ::std::os::raw::c_void) -> HighsInt;
}
extern "C" {
    #[doc = " Get an unbounded dual ray that is a certificate of primal infeasibility.\n\n @param highs             A pointer to the Highs instance.\n @param has_dual_ray      A pointer to an int to store 1 if the dual ray\n                          exists.\n @param dual_ray_value    An array of length [num_row] filled with the\n                          unbounded ray.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_getDualRay(
        highs: *const ::std::os::raw::c_void,
        has_dual_ray: *mut HighsInt,
        dual_ray_value: *mut f64,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Get an unbounded primal ray that is a certificate of dual infeasibility.\n\n @param highs             A pointer to the Highs instance.\n @param has_primal_ray    A pointer to an int to store 1 if the primal ray\n                          exists.\n @param primal_ray_value  An array of length [num_col] filled with the\n                          unbounded ray.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_getPrimalRay(
        highs: *const ::std::os::raw::c_void,
        has_primal_ray: *mut HighsInt,
        primal_ray_value: *mut f64,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Get the primal objective function value.\n\n @param highs     A pointer to the Highs instance.\n\n @returns The primal objective function value"]
    pub fn Highs_getObjectiveValue(highs: *const ::std::os::raw::c_void) -> f64;
}
extern "C" {
    #[doc = " Get the indices of the rows and columns that make up the basis matrix ``B``\n of a basic feasible solution.\n\n Non-negative entries are indices of columns, and negative entries are\n `-row_index - 1`. For example, `{1, -1}` would be the second column and first\n row.\n\n The order of these rows and columns is important for calls to the functions:\n\n  - `Highs_getBasisInverseRow`\n  - `Highs_getBasisInverseCol`\n  - `Highs_getBasisSolve`\n  - `Highs_getBasisTransposeSolve`\n  - `Highs_getReducedRow`\n  - `Highs_getReducedColumn`\n\n @param highs             A pointer to the Highs instance.\n @param basic_variables   An array of size [num_rows], filled with the indices\n                          of the basic variables.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_getBasicVariables(
        highs: *const ::std::os::raw::c_void,
        basic_variables: *mut HighsInt,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Get a row of the inverse basis matrix ``B^{-1}``.\n\n See `Highs_getBasicVariables` for a description of the ``B`` matrix.\n\n The arrays `row_vector` and `row_index` must have an allocated length of\n [num_row]. However, check `row_num_nz` to see how many non-zero elements are\n actually stored.\n\n @param highs         A pointer to the Highs instance.\n @param row           The index of the row to compute.\n @param row_vector    An array of length [num_row] in which to store the\n                      values of the non-zero elements.\n @param row_num_nz    The number of non-zeros in the row.\n @param row_index     An array of length [num_row] in which to store the\n                      indices of the non-zero elements.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_getBasisInverseRow(
        highs: *const ::std::os::raw::c_void,
        row: HighsInt,
        row_vector: *mut f64,
        row_num_nz: *mut HighsInt,
        row_index: *mut HighsInt,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Get a column of the inverse basis matrix ``B^{-1}``.\n\n See `Highs_getBasicVariables` for a description of the ``B`` matrix.\n\n The arrays `col_vector` and `col_index` must have an allocated length of\n [num_row]. However, check `col_num_nz` to see how many non-zero elements are\n actually stored.\n\n @param highs         A pointer to the Highs instance.\n @param col           The index of the column to compute.\n @param col_vector    An array of length [num_row] in which to store the\n                      values of the non-zero elements.\n @param col_num_nz    The number of non-zeros in the column.\n @param col_index     An array of length [num_row] in which to store the\n                      indices of the non-zero elements.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_getBasisInverseCol(
        highs: *const ::std::os::raw::c_void,
        col: HighsInt,
        col_vector: *mut f64,
        col_num_nz: *mut HighsInt,
        col_index: *mut HighsInt,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Compute ``\\mathbf{x}=B^{-1}\\mathbf{b}`` for a given vector\n ``\\mathbf{b}``.\n\n See `Highs_getBasicVariables` for a description of the ``B`` matrix.\n\n The arrays `solution_vector` and `solution_index` must have an allocated\n length of [num_row]. However, check `solution_num_nz` to see how many\n non-zero elements are actually stored.\n\n @param highs             A pointer to the Highs instance.\n @param rhs               The right-hand side vector ``b``.\n @param solution_vector   An array of length [num_row] in which to store the\n                          values of the non-zero elements.\n @param solution_num_nz   The number of non-zeros in the solution.\n @param solution_index    An array of length [num_row] in which to store the\n                          indices of the non-zero elements.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_getBasisSolve(
        highs: *const ::std::os::raw::c_void,
        rhs: *const f64,
        solution_vector: *mut f64,
        solution_num_nz: *mut HighsInt,
        solution_index: *mut HighsInt,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Compute ``\\mathbf{x}=B^{-T}\\mathbf{b}`` for a given vector\n ``\\mathbf{b}``.\n\n See `Highs_getBasicVariables` for a description of the ``B`` matrix.\n\n The arrays `solution_vector` and `solution_index` must have an allocated\n length of [num_row]. However, check `solution_num_nz` to see how many\n non-zero elements are actually stored.\n\n @param highs             A pointer to the Highs instance.\n @param rhs               The right-hand side vector ``b``\n @param solution_vector   An array of length [num_row] in whcih to store the\n                          values of the non-zero elements.\n @param solution_num_nz   The number of non-zeros in the solution.\n @param solution_index    An array of length [num_row] in whcih to store the\n                          indices of the non-zero elements.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_getBasisTransposeSolve(
        highs: *const ::std::os::raw::c_void,
        rhs: *const f64,
        solution_vector: *mut f64,
        solution_nz: *mut HighsInt,
        solution_index: *mut HighsInt,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Compute a row of ``B^{-1}A``.\n\n See `Highs_getBasicVariables` for a description of the ``B`` matrix.\n\n The arrays `row_vector` and `row_index` must have an allocated length of\n [num_row]. However, check `row_num_nz` to see how many non-zero elements are\n actually stored.\n\n @param highs         A pointer to the Highs instance.\n @param row           The index of the row to compute.\n @param row_vector    An array of length [num_row] in which to store the\n                      values of the non-zero elements.\n @param row_num_nz    The number of non-zeros in the row.\n @param row_index     An array of length [num_row] in which to store the\n                      indices of the non-zero elements.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_getReducedRow(
        highs: *const ::std::os::raw::c_void,
        row: HighsInt,
        row_vector: *mut f64,
        row_num_nz: *mut HighsInt,
        row_index: *mut HighsInt,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Compute a column of ``B^{-1}A``.\n\n See `Highs_getBasicVariables` for a description of the ``B`` matrix.\n\n The arrays `col_vector` and `col_index` must have an allocated length of\n [num_row]. However, check `col_num_nz` to see how many non-zero elements are\n actually stored.\n\n @param highs         A pointer to the Highs instance.\n @param col           The index of the column to compute.\n @param col_vector    An array of length [num_row] in which to store the\n                       values of the non-zero elements.\n @param col_num_nz    The number of non-zeros in the column.\n @param col_index     An array of length [num_row] in which to store the\n                       indices of the non-zero elements.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_getReducedColumn(
        highs: *const ::std::os::raw::c_void,
        col: HighsInt,
        col_vector: *mut f64,
        col_num_nz: *mut HighsInt,
        col_index: *mut HighsInt,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Set a basic feasible solution by passing the column and row basis statuses to\n the model.\n\n @param highs       A pointer to the Highs instance.\n @param col_status  an array of length [num_col] with the column basis status\n                    in the form of `kHighsBasisStatus` constants\n @param row_status  an array of length [num_row] with the row basis status\n                    in the form of `kHighsBasisStatus` constants\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_setBasis(
        highs: *mut ::std::os::raw::c_void,
        col_status: *const HighsInt,
        row_status: *const HighsInt,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Set a logical basis in the model.\n\n @param highs     A pointer to the Highs instance.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_setLogicalBasis(highs: *mut ::std::os::raw::c_void) -> HighsInt;
}
extern "C" {
    #[doc = " Set a solution by passing the column and row primal and dual solution values.\n\n For any values that are unavailable, pass NULL.\n\n @param highs       A pointer to the Highs instance.\n @param col_value   An array of length [num_col] with the column solution\n                    values.\n @param row_value   An array of length [num_row] with the row solution\n                    values.\n @param col_dual    An array of length [num_col] with the column dual values.\n @param row_dual    An array of length [num_row] with the row dual values.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_setSolution(
        highs: *mut ::std::os::raw::c_void,
        col_value: *const f64,
        row_value: *const f64,
        col_dual: *const f64,
        row_dual: *const f64,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Set the callback method to use for HiGHS\n\n @param highs              A pointer to the Highs instance.\n @param user_callback      A pointer to the user callback\n @param user_callback_data A pointer to the user callback data\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_setCallback(
        highs: *mut ::std::os::raw::c_void,
        user_callback: ::std::option::Option<
            unsafe extern "C" fn(
                arg1: ::std::os::raw::c_int,
                arg2: *const ::std::os::raw::c_char,
                arg3: *const HighsCallbackDataOut,
                arg4: *mut HighsCallbackDataIn,
                arg5: *mut ::std::os::raw::c_void,
            ),
        >,
        user_callback_data: *mut ::std::os::raw::c_void,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Start callback of given type\n\n @param highs         A pointer to the Highs instance.\n @param callback_type The type of callback to be started\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_startCallback(
        highs: *mut ::std::os::raw::c_void,
        callback_type: ::std::os::raw::c_int,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Stop callback of given type\n\n @param highs         A pointer to the Highs instance.\n @param callback_type The type of callback to be stopped\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_stopCallback(
        highs: *mut ::std::os::raw::c_void,
        callback_type: ::std::os::raw::c_int,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Return the cumulative wall-clock time spent in `Highs_run`.\n\n @param highs     A pointer to the Highs instance.\n\n @returns The cumulative wall-clock time spent in `Highs_run`"]
    pub fn Highs_getRunTime(highs: *const ::std::os::raw::c_void) -> f64;
}
extern "C" {
    #[doc = " Reset the clocks in a `highs` model.\n\n Each `highs` model contains a single instance of clock that records how much\n time is spent in various parts of the algorithm. This clock is not reset on\n entry to `Highs_run`, so repeated calls to `Highs_run` report the cumulative\n time spent in the algorithm. A side-effect is that this will trigger a time\n limit termination once the cumulative run time exceeds the time limit, rather\n than the run time of each individual call to `Highs_run`.\n\n As a work-around, call `Highs_zeroAllClocks` before each call to `Highs_run`.\n\n @param highs     A pointer to the Highs instance.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_zeroAllClocks(highs: *const ::std::os::raw::c_void) -> HighsInt;
}
extern "C" {
    #[doc = " Add a new column (variable) to the model.\n\n @param highs         A pointer to the Highs instance.\n @param cost          The objective coefficient of the column.\n @param lower         The lower bound of the column.\n @param upper         The upper bound of the column.\n @param num_new_nz    The number of non-zeros in the column.\n @param index         An array of size [num_new_nz] with the row indices.\n @param value         An array of size [num_new_nz] with row values.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_addCol(
        highs: *mut ::std::os::raw::c_void,
        cost: f64,
        lower: f64,
        upper: f64,
        num_new_nz: HighsInt,
        index: *const HighsInt,
        value: *const f64,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Add multiple columns (variables) to the model.\n\n @param highs         A pointer to the Highs instance.\n @param num_new_col   The number of new columns to add.\n @param costs         An array of size [num_new_col] with objective\n                      coefficients.\n @param lower         An array of size [num_new_col] with lower bounds.\n @param upper         An array of size [num_new_col] with upper bounds.\n @param num_new_nz    The number of new nonzeros in the constraint matrix.\n @param starts        The constraint coefficients are given as a matrix in\n                      compressed sparse column form by the arrays `starts`,\n                      `index`, and `value`. `starts` is an array of size\n                      [num_new_cols] with the start index of each row in\n                      indices and values.\n @param index         An array of size [num_new_nz] with row indices.\n @param value         An array of size [num_new_nz] with row values.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_addCols(
        highs: *mut ::std::os::raw::c_void,
        num_new_col: HighsInt,
        costs: *const f64,
        lower: *const f64,
        upper: *const f64,
        num_new_nz: HighsInt,
        starts: *const HighsInt,
        index: *const HighsInt,
        value: *const f64,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Add a new variable to the model.\n\n @param highs         A pointer to the Highs instance.\n @param lower         The lower bound of the column.\n @param upper         The upper bound of the column.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_addVar(highs: *mut ::std::os::raw::c_void, lower: f64, upper: f64) -> HighsInt;
}
extern "C" {
    #[doc = " Add multiple variables to the model.\n\n @param highs         A pointer to the Highs instance.\n @param num_new_var   The number of new variables to add.\n @param lower         An array of size [num_new_var] with lower bounds.\n @param upper         An array of size [num_new_var] with upper bounds.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_addVars(
        highs: *mut ::std::os::raw::c_void,
        num_new_var: HighsInt,
        lower: *const f64,
        upper: *const f64,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Add a new row (a linear constraint) to the model.\n\n @param highs         A pointer to the Highs instance.\n @param lower         The lower bound of the row.\n @param upper         The upper bound of the row.\n @param num_new_nz    The number of non-zeros in the row\n @param index         An array of size [num_new_nz] with column indices.\n @param value         An array of size [num_new_nz] with column values.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_addRow(
        highs: *mut ::std::os::raw::c_void,
        lower: f64,
        upper: f64,
        num_new_nz: HighsInt,
        index: *const HighsInt,
        value: *const f64,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Add multiple rows (linear constraints) to the model.\n\n @param highs         A pointer to the Highs instance.\n @param num_new_row   The number of new rows to add\n @param lower         An array of size [num_new_row] with the lower bounds of\n                      the rows.\n @param upper         An array of size [num_new_row] with the upper bounds of\n                      the rows.\n @param num_new_nz    The number of non-zeros in the rows.\n @param starts        The constraint coefficients are given as a matrix in\n                      compressed sparse row form by the arrays `starts`,\n                      `index`, and `value`. `starts` is an array of size\n                      [num_new_rows] with the start index of each row in\n                      indices and values.\n @param index         An array of size [num_new_nz] with column indices.\n @param value         An array of size [num_new_nz] with column values.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_addRows(
        highs: *mut ::std::os::raw::c_void,
        num_new_row: HighsInt,
        lower: *const f64,
        upper: *const f64,
        num_new_nz: HighsInt,
        starts: *const HighsInt,
        index: *const HighsInt,
        value: *const f64,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Change the objective sense of the model.\n\n @param highs     A pointer to the Highs instance.\n @param sense     The new optimization sense in the form of a `kHighsObjSense`\n                  constant.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_changeObjectiveSense(
        highs: *mut ::std::os::raw::c_void,
        sense: HighsInt,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Change the objective offset of the model.\n\n @param highs     A pointer to the Highs instance.\n @param offset    The new objective offset.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_changeObjectiveOffset(highs: *mut ::std::os::raw::c_void, offset: f64)
        -> HighsInt;
}
extern "C" {
    #[doc = " Change the integrality of a column.\n\n @param highs         A pointer to the Highs instance.\n @param col           The column index to change.\n @param integrality   The new integrality of the column in the form of a\n                      `kHighsVarType` constant.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_changeColIntegrality(
        highs: *mut ::std::os::raw::c_void,
        col: HighsInt,
        integrality: HighsInt,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Change the integrality of multiple adjacent columns.\n\n @param highs         A pointer to the Highs instance.\n @param from_col      The index of the first column whose integrality changes.\n @param to_col        The index of the last column whose integrality\n                      changes.\n @param integrality   An array of length [to_col - from_col + 1] with the new\n                      integralities of the columns in the form of\n                      `kHighsVarType` constants.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_changeColsIntegralityByRange(
        highs: *mut ::std::os::raw::c_void,
        from_col: HighsInt,
        to_col: HighsInt,
        integrality: *const HighsInt,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Change the integrality of multiple columns given by an array of indices.\n\n @param highs             A pointer to the Highs instance.\n @param num_set_entries   The number of columns to change.\n @param set               An array of size [num_set_entries] with the indices\n                          of the columns to change.\n @param integrality       An array of length [num_set_entries] with the new\n                          integralities of the columns in the form of\n                          `kHighsVarType` constants.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_changeColsIntegralityBySet(
        highs: *mut ::std::os::raw::c_void,
        num_set_entries: HighsInt,
        set: *const HighsInt,
        integrality: *const HighsInt,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Change the integrality of multiple columns given by a mask.\n\n @param highs         A pointer to the Highs instance.\n @param mask          An array of length [num_col] with 1 if the column\n                      integrality should be changed and 0 otherwise.\n @param integrality   An array of length [num_col] with the new\n                      integralities of the columns in the form of\n                      `kHighsVarType` constants.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_changeColsIntegralityByMask(
        highs: *mut ::std::os::raw::c_void,
        mask: *const HighsInt,
        integrality: *const HighsInt,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Change the objective coefficient of a column.\n\n @param highs     A pointer to the Highs instance.\n @param col       The index of the column fo change.\n @param cost      The new objective coefficient.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_changeColCost(
        highs: *mut ::std::os::raw::c_void,
        col: HighsInt,
        cost: f64,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Change the cost coefficients of multiple adjacent columns.\n\n @param highs     A pointer to the Highs instance.\n @param from_col  The index of the first column whose cost changes.\n @param to_col    The index of the last column whose cost changes.\n @param cost      An array of length [to_col - from_col + 1] with the new\n                  objective coefficients.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_changeColsCostByRange(
        highs: *mut ::std::os::raw::c_void,
        from_col: HighsInt,
        to_col: HighsInt,
        cost: *const f64,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Change the cost of multiple columns given by an array of indices.\n\n @param highs             A pointer to the Highs instance.\n @param num_set_entries   The number of columns to change.\n @param set               An array of size [num_set_entries] with the indices\n                          of the columns to change.\n @param cost              An array of length [num_set_entries] with the new\n                          costs of the columns.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_changeColsCostBySet(
        highs: *mut ::std::os::raw::c_void,
        num_set_entries: HighsInt,
        set: *const HighsInt,
        cost: *const f64,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Change the cost of multiple columns given by a mask.\n\n @param highs     A pointer to the Highs instance.\n @param mask      An array of length [num_col] with 1 if the column\n                  cost should be changed and 0 otherwise.\n @param cost      An array of length [num_col] with the new costs.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_changeColsCostByMask(
        highs: *mut ::std::os::raw::c_void,
        mask: *const HighsInt,
        cost: *const f64,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Change the variable bounds of a column.\n\n @param highs     A pointer to the Highs instance.\n @param col       The index of the column whose bounds are to change.\n @param lower     The new lower bound.\n @param upper     The new upper bound.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_changeColBounds(
        highs: *mut ::std::os::raw::c_void,
        col: HighsInt,
        lower: f64,
        upper: f64,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Change the variable bounds of multiple adjacent columns.\n\n @param highs     A pointer to the Highs instance.\n @param from_col  The index of the first column whose bound changes.\n @param to_col    The index of the last column whose bound changes.\n @param lower     An array of length [to_col - from_col + 1] with the new\n                  lower bounds.\n @param upper     An array of length [to_col - from_col + 1] with the new\n                  upper bounds.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_changeColsBoundsByRange(
        highs: *mut ::std::os::raw::c_void,
        from_col: HighsInt,
        to_col: HighsInt,
        lower: *const f64,
        upper: *const f64,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Change the bounds of multiple columns given by an array of indices.\n\n @param highs             A pointer to the Highs instance.\n @param num_set_entries   The number of columns to change.\n @param set               An array of size [num_set_entries] with the indices\n                          of the columns to change.\n @param lower             An array of length [num_set_entries] with the new\n                          lower bounds.\n @param upper             An array of length [num_set_entries] with the new\n                          upper bounds.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_changeColsBoundsBySet(
        highs: *mut ::std::os::raw::c_void,
        num_set_entries: HighsInt,
        set: *const HighsInt,
        lower: *const f64,
        upper: *const f64,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Change the variable bounds of multiple columns given by a mask.\n\n @param highs     A pointer to the Highs instance.\n @param mask      An array of length [num_col] with 1 if the column\n                  bounds should be changed and 0 otherwise.\n @param lower     An array of length [num_col] with the new lower bounds.\n @param upper     An array of length [num_col] with the new upper bounds.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_changeColsBoundsByMask(
        highs: *mut ::std::os::raw::c_void,
        mask: *const HighsInt,
        lower: *const f64,
        upper: *const f64,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Change the bounds of a row.\n\n @param highs     A pointer to the Highs instance.\n @param row       The index of the row whose bounds are to change.\n @param lower     The new lower bound.\n @param upper     The new upper bound.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_changeRowBounds(
        highs: *mut ::std::os::raw::c_void,
        row: HighsInt,
        lower: f64,
        upper: f64,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Change the bounds of multiple rows given by an array of indices.\n\n @param highs             A pointer to the Highs instance.\n @param num_set_entries   The number of rows to change.\n @param set               An array of size [num_set_entries] with the indices\n                          of the rows to change.\n @param lower             An array of length [num_set_entries] with the new\n                          lower bounds.\n @param upper             An array of length [num_set_entries] with the new\n                          upper bounds.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_changeRowsBoundsBySet(
        highs: *mut ::std::os::raw::c_void,
        num_set_entries: HighsInt,
        set: *const HighsInt,
        lower: *const f64,
        upper: *const f64,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Change the bounds of multiple rows given by a mask.\n\n @param highs     A pointer to the Highs instance.\n @param mask      An array of length [num_row] with 1 if the row\n                  bounds should be changed and 0 otherwise.\n @param lower     An array of length [num_row] with the new lower bounds.\n @param upper     An array of length [num_row] with the new upper bounds.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_changeRowsBoundsByMask(
        highs: *mut ::std::os::raw::c_void,
        mask: *const HighsInt,
        lower: *const f64,
        upper: *const f64,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Change a coefficient in the constraint matrix.\n\n @param highs     A pointer to the Highs instance.\n @param row       The index of the row to change.\n @param col       The index of the column to change.\n @param value     The new constraint coefficient.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_changeCoeff(
        highs: *mut ::std::os::raw::c_void,
        row: HighsInt,
        col: HighsInt,
        value: f64,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Get the objective sense.\n\n @param highs     A pointer to the Highs instance.\n @param sense     The location in which the current objective sense should be\n                  placed. The sense is a `kHighsObjSense` constant.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_getObjectiveSense(
        highs: *const ::std::os::raw::c_void,
        sense: *mut HighsInt,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Get the objective offset.\n\n @param highs     A pointer to the Highs instance.\n @param offset    The location in which the current objective offset should be\n                  placed.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_getObjectiveOffset(
        highs: *const ::std::os::raw::c_void,
        offset: *mut f64,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Get data associated with multiple adjacent columns from the model.\n\n To query the constraint coefficients, this function should be called twice.\n\n First, call this function with `matrix_start`, `matrix_index`, and\n `matrix_value` as `NULL`. This call will populate `num_nz` with the number of\n nonzero elements in the corresponding section of the constraint matrix.\n\n Second, allocate new `matrix_index` and `matrix_value` arrays of length\n `num_nz` and call this function again to populate the new arrays with their\n contents.\n\n @param highs         A pointer to the Highs instance.\n @param from_col      The first column for which to query data for.\n @param to_col        The last column (inclusive) for which to query data for.\n @param num_col       An integer populated with the number of columns got from\n                      the model (this should equal `to_col - from_col + 1`).\n @param costs         An array of size [to_col - from_col + 1] for the column\n                      cost coefficients.\n @param lower         An array of size [to_col - from_col + 1] for the column\n                      lower bounds.\n @param upper         An array of size [to_col - from_col + 1] for the column\n                      upper bounds.\n @param num_nz        An integer to be populated with the number of non-zero\n                      elements in the constraint matrix.\n @param matrix_start  An array of size [to_col - from_col + 1] with the start\n                      indices of each column in `matrix_index` and\n                      `matrix_value`.\n @param matrix_index  An array of size [num_nz] with the row indices of each\n                      element in the constraint matrix.\n @param matrix_value  An array of size [num_nz] with the non-zero elements of\n                      the constraint matrix.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_getColsByRange(
        highs: *const ::std::os::raw::c_void,
        from_col: HighsInt,
        to_col: HighsInt,
        num_col: *mut HighsInt,
        costs: *mut f64,
        lower: *mut f64,
        upper: *mut f64,
        num_nz: *mut HighsInt,
        matrix_start: *mut HighsInt,
        matrix_index: *mut HighsInt,
        matrix_value: *mut f64,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Get data associated with multiple columns given by an array.\n\n This function is identical to `Highs_getColsByRange`, except for how the\n columns are specified.\n\n @param num_set_indices   The number of indices in `set`.\n @param set               An array of size [num_set_entries] with the column\n                          indices to get.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_getColsBySet(
        highs: *const ::std::os::raw::c_void,
        num_set_entries: HighsInt,
        set: *const HighsInt,
        num_col: *mut HighsInt,
        costs: *mut f64,
        lower: *mut f64,
        upper: *mut f64,
        num_nz: *mut HighsInt,
        matrix_start: *mut HighsInt,
        matrix_index: *mut HighsInt,
        matrix_value: *mut f64,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Get data associated with multiple columns given by a mask.\n\n This function is identical to `Highs_getColsByRange`, except for how the\n columns are specified.\n\n @param mask  An array of length [num_col] containing a `1` to get the column\n              and `0` otherwise.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_getColsByMask(
        highs: *const ::std::os::raw::c_void,
        mask: *const HighsInt,
        num_col: *mut HighsInt,
        costs: *mut f64,
        lower: *mut f64,
        upper: *mut f64,
        num_nz: *mut HighsInt,
        matrix_start: *mut HighsInt,
        matrix_index: *mut HighsInt,
        matrix_value: *mut f64,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Get data associated with multiple adjacent rows from the model.\n\n To query the constraint coefficients, this function should be called twice.\n\n First, call this function with `matrix_start`, `matrix_index`, and\n `matrix_value` as `NULL`. This call will populate `num_nz` with the number of\n nonzero elements in the corresponding section of the constraint matrix.\n\n Second, allocate new `matrix_index` and `matrix_value` arrays of length\n `num_nz` and call this function again to populate the new arrays with their\n contents.\n\n @param highs         A pointer to the Highs instance.\n @param from_row      The first row for which to query data for.\n @param to_row        The last row (inclusive) for which to query data for.\n @param num_row       An integer to be populated with the number of rows got\n                      from the smodel.\n @param lower         An array of size [to_row - from_row + 1] for the row\n                      lower bounds.\n @param upper         An array of size [to_row - from_row + 1] for the row\n                      upper bounds.\n @param num_nz        An integer to be populated with the number of non-zero\n                      elements in the constraint matrix.\n @param matrix_start  An array of size [to_row - from_row + 1] with the start\n                      indices of each row in `matrix_index` and\n                      `matrix_value`.\n @param matrix_index  An array of size [num_nz] with the column indices of\n                      each element in the constraint matrix.\n @param matrix_value  An array of size [num_nz] with the non-zero elements of\n                      the constraint matrix.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_getRowsByRange(
        highs: *const ::std::os::raw::c_void,
        from_row: HighsInt,
        to_row: HighsInt,
        num_row: *mut HighsInt,
        lower: *mut f64,
        upper: *mut f64,
        num_nz: *mut HighsInt,
        matrix_start: *mut HighsInt,
        matrix_index: *mut HighsInt,
        matrix_value: *mut f64,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Get data associated with multiple rows given by an array.\n\n This function is identical to `Highs_getRowsByRange`, except for how the\n rows are specified.\n\n @param num_set_indices   The number of indices in `set`.\n @param set               An array of size [num_set_entries] containing the\n                          row indices to get.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_getRowsBySet(
        highs: *const ::std::os::raw::c_void,
        num_set_entries: HighsInt,
        set: *const HighsInt,
        num_row: *mut HighsInt,
        lower: *mut f64,
        upper: *mut f64,
        num_nz: *mut HighsInt,
        matrix_start: *mut HighsInt,
        matrix_index: *mut HighsInt,
        matrix_value: *mut f64,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Get data associated with multiple rows given by a mask.\n\n This function is identical to `Highs_getRowsByRange`, except for how the\n rows are specified.\n\n @param mask  An array of length [num_row] containing a `1` to get the row and\n              `0` otherwise.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_getRowsByMask(
        highs: *const ::std::os::raw::c_void,
        mask: *const HighsInt,
        num_row: *mut HighsInt,
        lower: *mut f64,
        upper: *mut f64,
        num_nz: *mut HighsInt,
        matrix_start: *mut HighsInt,
        matrix_index: *mut HighsInt,
        matrix_value: *mut f64,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Get the name of a row.\n\n @param row   The index of the row to query.\n @param name  A pointer in which to store the name of the row. This must have\n              length `kHighsMaximumStringLength`.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_getRowName(
        highs: *const ::std::os::raw::c_void,
        row: HighsInt,
        name: *mut ::std::os::raw::c_char,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Get the index of a row from its name.\n\n If multiple rows have the same name, or if no row exists with `name`, this\n function returns `kHighsStatusError`.\n\n @param name A pointer of the name of the row to query.\n @param row  A pointer in which to store the index of the row\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_getRowByName(
        highs: *const ::std::os::raw::c_void,
        name: *const ::std::os::raw::c_char,
        row: *mut HighsInt,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Get the name of a column.\n\n @param col   The index of the column to query.\n @param name  A pointer in which to store the name of the column. This must\n              have length `kHighsMaximumStringLength`.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_getColName(
        highs: *const ::std::os::raw::c_void,
        col: HighsInt,
        name: *mut ::std::os::raw::c_char,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Get the index of a column from its name.\n\n If multiple columns have the same name, or if no column exists with `name`,\n this function returns `kHighsStatusError`.\n\n @param name A pointer of the name of the column to query.\n @param col  A pointer in which to store the index of the column\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_getColByName(
        highs: *const ::std::os::raw::c_void,
        name: *const ::std::os::raw::c_char,
        col: *mut HighsInt,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Get the integrality of a column.\n\n @param col          The index of the column to query.\n @param integrality  An integer in which the integrality of the column should\n                     be placed. The integer is one of the `kHighsVarTypeXXX`\n                     constants.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_getColIntegrality(
        highs: *const ::std::os::raw::c_void,
        col: HighsInt,
        integrality: *mut HighsInt,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Delete multiple adjacent columns.\n\n @param highs     A pointer to the Highs instance.\n @param from_col  The index of the first column to delete.\n @param to_col    The index of the last column to delete.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_deleteColsByRange(
        highs: *mut ::std::os::raw::c_void,
        from_col: HighsInt,
        to_col: HighsInt,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Delete multiple columns given by an array of indices.\n\n @param highs             A pointer to the Highs instance.\n @param num_set_entries   The number of columns to delete.\n @param set               An array of size [num_set_entries] with the indices\n                          of the columns to delete.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_deleteColsBySet(
        highs: *mut ::std::os::raw::c_void,
        num_set_entries: HighsInt,
        set: *const HighsInt,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Delete multiple columns given by a mask.\n\n @param highs     A pointer to the Highs instance.\n @param mask      An array of length [num_col] with 1 if the column\n                  should be deleted and 0 otherwise.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_deleteColsByMask(
        highs: *mut ::std::os::raw::c_void,
        mask: *mut HighsInt,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Delete multiple adjacent rows.\n\n @param highs     A pointer to the Highs instance.\n @param from_row  The index of the first row to delete.\n @param to_row    The index of the last row to delete.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_deleteRowsByRange(
        highs: *mut ::std::os::raw::c_void,
        from_row: ::std::os::raw::c_int,
        to_row: HighsInt,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Delete multiple rows given by an array of indices.\n\n @param highs             A pointer to the Highs instance.\n @param num_set_entries   The number of rows to delete.\n @param set               An array of size [num_set_entries] with the indices\n                          of the rows to delete.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_deleteRowsBySet(
        highs: *mut ::std::os::raw::c_void,
        num_set_entries: HighsInt,
        set: *const HighsInt,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Delete multiple rows given by a mask.\n\n @param highs     A pointer to the Highs instance.\n @param mask      An array of length [num_row] with `1` if the row should be\n                  deleted and `0` otherwise. The new index of any column not\n                  deleted is stored in place of the value `0`.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_deleteRowsByMask(
        highs: *mut ::std::os::raw::c_void,
        mask: *mut HighsInt,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Scale a column by a constant.\n\n Scaling a column modifies the elements in the constraint matrix, the variable\n bounds, and the objective coefficient.\n\n @param highs     A pointer to the Highs instance.\n @param col       The index of the column to scale.\n @param scaleval  The value by which to scale the column. If `scaleval < 0`,\n                  the variable bounds flipped.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_scaleCol(
        highs: *mut ::std::os::raw::c_void,
        col: HighsInt,
        scaleval: f64,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Scale a row by a constant.\n\n @param highs     A pointer to the Highs instance.\n @param row       The index of the row to scale.\n @param scaleval  The value by which to scale the row. If `scaleval < 0`, the\n                  row bounds are flipped.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_scaleRow(
        highs: *mut ::std::os::raw::c_void,
        row: HighsInt,
        scaleval: f64,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Return the value of infinity used by HiGHS.\n\n @param highs     A pointer to the Highs instance.\n\n @returns The value of infinity used by HiGHS."]
    pub fn Highs_getInfinity(highs: *const ::std::os::raw::c_void) -> f64;
}
extern "C" {
    #[doc = " Return the number of columns in the model.\n\n @param highs     A pointer to the Highs instance.\n\n @returns The number of columns in the model."]
    pub fn Highs_getNumCol(highs: *const ::std::os::raw::c_void) -> HighsInt;
}
extern "C" {
    #[doc = " Return the number of rows in the model.\n\n @param highs     A pointer to the Highs instance.\n\n @returns The number of rows in the model."]
    pub fn Highs_getNumRow(highs: *const ::std::os::raw::c_void) -> HighsInt;
}
extern "C" {
    #[doc = " Return the number of nonzeros in the constraint matrix of the model.\n\n @param highs     A pointer to the Highs instance.\n\n @returns The number of nonzeros in the constraint matrix of the model."]
    pub fn Highs_getNumNz(highs: *const ::std::os::raw::c_void) -> HighsInt;
}
extern "C" {
    #[doc = " Return the number of nonzeroes in the Hessian matrix of the model.\n\n @param highs     A pointer to the Highs instance.\n\n @returns The number of nonzeroes in the Hessian matrix of the model."]
    pub fn Highs_getHessianNumNz(highs: *const ::std::os::raw::c_void) -> HighsInt;
}
extern "C" {
    #[doc = " Get the data from a HiGHS model.\n\n The input arguments have the same meaning (in a different order) to those\n used in `Highs_passModel`.\n\n Note that all arrays must be pre-allocated to the correct size before calling\n `Highs_getModel`. Use the following query methods to check the appropriate\n size:\n  - `Highs_getNumCol`\n  - `Highs_getNumRow`\n  - `Highs_getNumNz`\n  - `Highs_getHessianNumNz`\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_getModel(
        highs: *const ::std::os::raw::c_void,
        a_format: HighsInt,
        q_format: HighsInt,
        num_col: *mut HighsInt,
        num_row: *mut HighsInt,
        num_nz: *mut HighsInt,
        hessian_num_nz: *mut HighsInt,
        sense: *mut HighsInt,
        offset: *mut f64,
        col_cost: *mut f64,
        col_lower: *mut f64,
        col_upper: *mut f64,
        row_lower: *mut f64,
        row_upper: *mut f64,
        a_start: *mut HighsInt,
        a_index: *mut HighsInt,
        a_value: *mut f64,
        q_start: *mut HighsInt,
        q_index: *mut HighsInt,
        q_value: *mut f64,
        integrality: *mut HighsInt,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Set a primal (and possibly dual) solution as a starting point, then run\n crossover to compute a basic feasible solution.\n\n @param highs      A pointer to the Highs instance.\n @param num_col    The number of variables.\n @param num_row    The number of rows.\n @param col_value  An array of length [num_col] with optimal primal solution\n                   for each column.\n @param col_dual   An array of length [num_col] with optimal dual solution for\n                   each column. May be `NULL`, in which case no dual solution\n                   is passed.\n @param row_dual   An array of length [num_row] with optimal dual solution for\n                   each row. . May be `NULL`, in which case no dual solution\n                   is passed.\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_crossover(
        highs: *mut ::std::os::raw::c_void,
        num_col: ::std::os::raw::c_int,
        num_row: ::std::os::raw::c_int,
        col_value: *const f64,
        col_dual: *const f64,
        row_dual: *const f64,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Compute the ranging information for all costs and bounds. For\n nonbasic variables the ranging informaiton is relative to the\n active bound. For basic variables the ranging information relates\n to...\n\n For any values that are not required, pass NULL.\n\n @param highs                  A pointer to the Highs instance.\n @param col_cost_up_value      The upper range of the cost value\n @param col_cost_up_objective  The objective at the upper cost range\n @param col_cost_up_in_var     The variable entering the basis at the upper\n                               cost range\n @param col_cost_up_ou_var     The variable leaving the basis at the upper\n                               cost range\n @param col_cost_dn_value      The lower range of the cost value\n @param col_cost_dn_objective  The objective at the lower cost range\n @param col_cost_dn_in_var     The variable entering the basis at the lower\n                               cost range\n @param col_cost_dn_ou_var     The variable leaving the basis at the lower\n                               cost range\n @param col_bound_up_value     The upper range of the column bound value\n @param col_bound_up_objective The objective at the upper column bound range\n @param col_bound_up_in_var    The variable entering the basis at the upper\n                               column bound range\n @param col_bound_up_ou_var    The variable leaving the basis at the upper\n                               column bound range\n @param col_bound_dn_value     The lower range of the column bound value\n @param col_bound_dn_objective The objective at the lower column bound range\n @param col_bound_dn_in_var    The variable entering the basis at the lower\n                               column bound range\n @param col_bound_dn_ou_var    The variable leaving the basis at the lower\n                               column bound range\n @param row_bound_up_value     The upper range of the row bound value\n @param row_bound_up_objective The objective at the upper row bound range\n @param row_bound_up_in_var    The variable entering the basis at the upper\n                               row bound range\n @param row_bound_up_ou_var    The variable leaving the basis at the upper row\n                               bound range\n @param row_bound_dn_value     The lower range of the row bound value\n @param row_bound_dn_objective The objective at the lower row bound range\n @param row_bound_dn_in_var    The variable entering the basis at the lower\n                               row bound range\n @param row_bound_dn_ou_var    The variable leaving the basis at the lower row\n                               bound range\n\n @returns A `kHighsStatus` constant indicating whether the call succeeded."]
    pub fn Highs_getRanging(
        highs: *mut ::std::os::raw::c_void,
        col_cost_up_value: *mut f64,
        col_cost_up_objective: *mut f64,
        col_cost_up_in_var: *mut HighsInt,
        col_cost_up_ou_var: *mut HighsInt,
        col_cost_dn_value: *mut f64,
        col_cost_dn_objective: *mut f64,
        col_cost_dn_in_var: *mut HighsInt,
        col_cost_dn_ou_var: *mut HighsInt,
        col_bound_up_value: *mut f64,
        col_bound_up_objective: *mut f64,
        col_bound_up_in_var: *mut HighsInt,
        col_bound_up_ou_var: *mut HighsInt,
        col_bound_dn_value: *mut f64,
        col_bound_dn_objective: *mut f64,
        col_bound_dn_in_var: *mut HighsInt,
        col_bound_dn_ou_var: *mut HighsInt,
        row_bound_up_value: *mut f64,
        row_bound_up_objective: *mut f64,
        row_bound_up_in_var: *mut HighsInt,
        row_bound_up_ou_var: *mut HighsInt,
        row_bound_dn_value: *mut f64,
        row_bound_dn_objective: *mut f64,
        row_bound_dn_in_var: *mut HighsInt,
        row_bound_dn_ou_var: *mut HighsInt,
    ) -> HighsInt;
}
extern "C" {
    #[doc = " Releases all resources held by the global scheduler instance.\n\n It is not thread-safe to call this function while calling `Highs_run` or one\n of the `Highs_XXXcall` methods on any other Highs instance in any thread.\n\n After this function has terminated, it is guaranteed that eventually all\n previously created scheduler threads will terminate and allocated memory will\n be released.\n\n After this function has returned, the option value for the number of threads\n may be altered to a new value before the next call to `Highs_run` or one of\n the `Highs_XXXcall` methods.\n\n @param blocking   If the `blocking` parameter has a nonzero value, then this\n                   function will not return until all memory is freed, which\n                   might be desirable when debugging heap memory, but it\n                   requires the calling thread to wait for all scheduler\n                   threads to wake-up which is usually not necessary.\n\n @returns No status is returned since the function call cannot fail. Calling\n this function while any Highs instance is in use on any thread is\n undefined behavior and may cause crashes, but cannot be detected and hence\n is fully in the callers responsibility."]
    pub fn Highs_resetGlobalScheduler(blocking: HighsInt);
}
pub const HighsStatuskError: HighsInt = -1;
pub const HighsStatuskOk: HighsInt = 0;
pub const HighsStatuskWarning: HighsInt = 1;
extern "C" {
    pub fn Highs_call(
        num_col: HighsInt,
        num_row: HighsInt,
        num_nz: HighsInt,
        col_cost: *const f64,
        col_lower: *const f64,
        col_upper: *const f64,
        row_lower: *const f64,
        row_upper: *const f64,
        a_start: *const HighsInt,
        a_index: *const HighsInt,
        a_value: *const f64,
        col_value: *mut f64,
        col_dual: *mut f64,
        row_value: *mut f64,
        row_dual: *mut f64,
        col_basis_status: *mut HighsInt,
        row_basis_status: *mut HighsInt,
        model_status: *mut HighsInt,
    ) -> HighsInt;
}
extern "C" {
    pub fn Highs_runQuiet(highs: *mut ::std::os::raw::c_void) -> HighsInt;
}
extern "C" {
    pub fn Highs_setHighsLogfile(
        highs: *mut ::std::os::raw::c_void,
        logfile: *const ::std::os::raw::c_void,
    ) -> HighsInt;
}
extern "C" {
    pub fn Highs_setHighsOutput(
        highs: *mut ::std::os::raw::c_void,
        outputfile: *const ::std::os::raw::c_void,
    ) -> HighsInt;
}
extern "C" {
    pub fn Highs_getIterationCount(highs: *const ::std::os::raw::c_void) -> HighsInt;
}
extern "C" {
    pub fn Highs_getSimplexIterationCount(highs: *const ::std::os::raw::c_void) -> HighsInt;
}
extern "C" {
    pub fn Highs_setHighsBoolOptionValue(
        highs: *mut ::std::os::raw::c_void,
        option: *const ::std::os::raw::c_char,
        value: HighsInt,
    ) -> HighsInt;
}
extern "C" {
    pub fn Highs_setHighsIntOptionValue(
        highs: *mut ::std::os::raw::c_void,
        option: *const ::std::os::raw::c_char,
        value: HighsInt,
    ) -> HighsInt;
}
extern "C" {
    pub fn Highs_setHighsDoubleOptionValue(
        highs: *mut ::std::os::raw::c_void,
        option: *const ::std::os::raw::c_char,
        value: f64,
    ) -> HighsInt;
}
extern "C" {
    pub fn Highs_setHighsStringOptionValue(
        highs: *mut ::std::os::raw::c_void,
        option: *const ::std::os::raw::c_char,
        value: *const ::std::os::raw::c_char,
    ) -> HighsInt;
}
extern "C" {
    pub fn Highs_setHighsOptionValue(
        highs: *mut ::std::os::raw::c_void,
        option: *const ::std::os::raw::c_char,
        value: *const ::std::os::raw::c_char,
    ) -> HighsInt;
}
extern "C" {
    pub fn Highs_getHighsBoolOptionValue(
        highs: *const ::std::os::raw::c_void,
        option: *const ::std::os::raw::c_char,
        value: *mut HighsInt,
    ) -> HighsInt;
}
extern "C" {
    pub fn Highs_getHighsIntOptionValue(
        highs: *const ::std::os::raw::c_void,
        option: *const ::std::os::raw::c_char,
        value: *mut HighsInt,
    ) -> HighsInt;
}
extern "C" {
    pub fn Highs_getHighsDoubleOptionValue(
        highs: *const ::std::os::raw::c_void,
        option: *const ::std::os::raw::c_char,
        value: *mut f64,
    ) -> HighsInt;
}
extern "C" {
    pub fn Highs_getHighsStringOptionValue(
        highs: *const ::std::os::raw::c_void,
        option: *const ::std::os::raw::c_char,
        value: *mut ::std::os::raw::c_char,
    ) -> HighsInt;
}
extern "C" {
    pub fn Highs_getHighsOptionType(
        highs: *const ::std::os::raw::c_void,
        option: *const ::std::os::raw::c_char,
        type_: *mut HighsInt,
    ) -> HighsInt;
}
extern "C" {
    pub fn Highs_resetHighsOptions(highs: *mut ::std::os::raw::c_void) -> HighsInt;
}
extern "C" {
    pub fn Highs_getHighsIntInfoValue(
        highs: *const ::std::os::raw::c_void,
        info: *const ::std::os::raw::c_char,
        value: *mut HighsInt,
    ) -> HighsInt;
}
extern "C" {
    pub fn Highs_getHighsDoubleInfoValue(
        highs: *const ::std::os::raw::c_void,
        info: *const ::std::os::raw::c_char,
        value: *mut f64,
    ) -> HighsInt;
}
extern "C" {
    pub fn Highs_getNumCols(highs: *const ::std::os::raw::c_void) -> HighsInt;
}
extern "C" {
    pub fn Highs_getNumRows(highs: *const ::std::os::raw::c_void) -> HighsInt;
}
extern "C" {
    pub fn Highs_getHighsInfinity(highs: *const ::std::os::raw::c_void) -> f64;
}
extern "C" {
    pub fn Highs_getHighsRunTime(highs: *const ::std::os::raw::c_void) -> f64;
}
extern "C" {
    pub fn Highs_setOptionValue(
        highs: *mut ::std::os::raw::c_void,
        option: *const ::std::os::raw::c_char,
        value: *const ::std::os::raw::c_char,
    ) -> HighsInt;
}
extern "C" {
    pub fn Highs_getScaledModelStatus(highs: *const ::std::os::raw::c_void) -> HighsInt;
}