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

extern crate libc;

pub type lprec = Struct__lprec;
pub enum Struct__INVrec { }
pub type INVrec = Struct__INVrec;
pub enum Union_QSORTrec { }
#[repr(C)]
#[derive(Copy)]
pub struct Struct__B4rec {
    pub B4_var: *mut libc::c_int,
    pub var_B4: *mut libc::c_int,
    pub B4_row: *mut libc::c_int,
    pub row_B4: *mut libc::c_int,
    pub wcol: *mut libc::c_double,
    pub nzwcol: *mut libc::c_int,
}
impl ::core::clone::Clone for Struct__B4rec {
    fn clone(&self) -> Self { *self }
}
impl ::core::default::Default for Struct__B4rec {
    fn default() -> Self { unsafe { ::core::mem::zeroed() } }
}
pub type B4rec = Struct__B4rec;
#[repr(C)]
#[derive(Copy)]
pub struct Struct__OBJmonrec {
    pub lp: *mut lprec,
    pub oldpivstrategy: libc::c_int,
    pub oldpivrule: libc::c_int,
    pub pivrule: libc::c_int,
    pub ruleswitches: libc::c_int,
    pub limitstall: [libc::c_int; 2usize],
    pub limitruleswitches: libc::c_int,
    pub idxstep: [libc::c_int; 5usize],
    pub countstep: libc::c_int,
    pub startstep: libc::c_int,
    pub currentstep: libc::c_int,
    pub Rcycle: libc::c_int,
    pub Ccycle: libc::c_int,
    pub Ncycle: libc::c_int,
    pub Mcycle: libc::c_int,
    pub Icount: libc::c_int,
    pub thisobj: libc::c_double,
    pub prevobj: libc::c_double,
    pub objstep: [libc::c_double; 5usize],
    pub thisinfeas: libc::c_double,
    pub previnfeas: libc::c_double,
    pub epsvalue: libc::c_double,
    pub spxfunc: [libc::c_char; 10usize],
    pub pivdynamic: libc::c_uchar,
    pub isdual: libc::c_uchar,
    pub active: libc::c_uchar,
}
impl ::core::clone::Clone for Struct__OBJmonrec {
    fn clone(&self) -> Self { *self }
}
impl ::core::default::Default for Struct__OBJmonrec {
    fn default() -> Self { unsafe { ::core::mem::zeroed() } }
}
pub type OBJmonrec = Struct__OBJmonrec;
#[repr(C)]
#[derive(Copy)]
pub struct Struct__edgerec {
    pub edgeVector: *mut libc::c_double,
}
impl ::core::clone::Clone for Struct__edgerec {
    fn clone(&self) -> Self { *self }
}
impl ::core::default::Default for Struct__edgerec {
    fn default() -> Self { unsafe { ::core::mem::zeroed() } }
}
pub type edgerec = Struct__edgerec;
#[repr(C)]
#[derive(Copy)]
pub struct Struct__pricerec {
    pub theta: libc::c_double,
    pub pivot: libc::c_double,
    pub epspivot: libc::c_double,
    pub varno: libc::c_int,
    pub lp: *mut lprec,
    pub isdual: libc::c_uchar,
}
impl ::core::clone::Clone for Struct__pricerec {
    fn clone(&self) -> Self { *self }
}
impl ::core::default::Default for Struct__pricerec {
    fn default() -> Self { unsafe { ::core::mem::zeroed() } }
}
pub type pricerec = Struct__pricerec;
#[repr(C)]
#[derive(Copy)]
pub struct Struct__multirec {
    pub lp: *mut lprec,
    pub size: libc::c_int,
    pub used: libc::c_int,
    pub limit: libc::c_int,
    pub items: *mut pricerec,
    pub freeList: *mut libc::c_int,
    pub sortedList: *mut Union_QSORTrec,
    pub stepList: *mut libc::c_double,
    pub valueList: *mut libc::c_double,
    pub indexSet: *mut libc::c_int,
    pub active: libc::c_int,
    pub retries: libc::c_int,
    pub step_base: libc::c_double,
    pub step_last: libc::c_double,
    pub obj_base: libc::c_double,
    pub obj_last: libc::c_double,
    pub epszero: libc::c_double,
    pub maxpivot: libc::c_double,
    pub maxbound: libc::c_double,
    pub sorted: libc::c_uchar,
    pub truncinf: libc::c_uchar,
    pub objcheck: libc::c_uchar,
    pub dirty: libc::c_uchar,
}
impl ::core::clone::Clone for Struct__multirec {
    fn clone(&self) -> Self { *self }
}
impl ::core::default::Default for Struct__multirec {
    fn default() -> Self { unsafe { ::core::mem::zeroed() } }
}
pub type multirec = Struct__multirec;
#[repr(C)]
#[derive(Copy)]
pub struct Struct__workarraysrec {
    pub lp: *mut lprec,
    pub size: libc::c_int,
    pub count: libc::c_int,
    pub vectorarray: *mut *mut libc::c_char,
    pub vectorsize: *mut libc::c_int,
}
impl ::core::clone::Clone for Struct__workarraysrec {
    fn clone(&self) -> Self { *self }
}
impl ::core::default::Default for Struct__workarraysrec {
    fn default() -> Self { unsafe { ::core::mem::zeroed() } }
}
pub type workarraysrec = Struct__workarraysrec;
#[repr(C)]
#[derive(Copy)]
pub struct Struct__LLrec {
    pub size: libc::c_int,
    pub count: libc::c_int,
    pub firstitem: libc::c_int,
    pub lastitem: libc::c_int,
    pub map: *mut libc::c_int,
}
impl ::core::clone::Clone for Struct__LLrec {
    fn clone(&self) -> Self { *self }
}
impl ::core::default::Default for Struct__LLrec {
    fn default() -> Self { unsafe { ::core::mem::zeroed() } }
}
pub type LLrec = Struct__LLrec;
#[repr(C)]
#[derive(Copy)]
pub struct Struct__PVrec {
    pub count: libc::c_int,
    pub startpos: *mut libc::c_int,
    pub value: *mut libc::c_double,
    pub parent: *mut Struct__PVrec,
}
impl ::core::clone::Clone for Struct__PVrec {
    fn clone(&self) -> Self { *self }
}
impl ::core::default::Default for Struct__PVrec {
    fn default() -> Self { unsafe { ::core::mem::zeroed() } }
}
pub type PVrec = Struct__PVrec;
#[repr(C)]
#[derive(Copy)]
pub struct Struct__hashelem {
    pub name: *mut libc::c_char,
    pub index: libc::c_int,
    pub next: *mut Struct__hashelem,
    pub nextelem: *mut Struct__hashelem,
}
impl ::core::clone::Clone for Struct__hashelem {
    fn clone(&self) -> Self { *self }
}
impl ::core::default::Default for Struct__hashelem {
    fn default() -> Self { unsafe { ::core::mem::zeroed() } }
}
pub type hashelem = Struct__hashelem;
#[repr(C)]
#[derive(Copy)]
pub struct Struct_Unnamed1 {
    pub table: *mut *mut hashelem,
    pub size: libc::c_int,
    pub base: libc::c_int,
    pub count: libc::c_int,
    pub first: *mut Struct__hashelem,
    pub last: *mut Struct__hashelem,
}
impl ::core::clone::Clone for Struct_Unnamed1 {
    fn clone(&self) -> Self { *self }
}
impl ::core::default::Default for Struct_Unnamed1 {
    fn default() -> Self { unsafe { ::core::mem::zeroed() } }
}
pub type hashtable = Struct_Unnamed1;
#[repr(C)]
#[derive(Copy)]
pub struct Struct__MATitem {
    pub rownr: libc::c_int,
    pub colnr: libc::c_int,
    pub value: libc::c_double,
}
impl ::core::clone::Clone for Struct__MATitem {
    fn clone(&self) -> Self { *self }
}
impl ::core::default::Default for Struct__MATitem {
    fn default() -> Self { unsafe { ::core::mem::zeroed() } }
}
pub type MATitem = Struct__MATitem;
#[repr(C)]
#[derive(Copy)]
pub struct Struct__MATrec {
    pub lp: *mut lprec,
    pub rows: libc::c_int,
    pub columns: libc::c_int,
    pub rows_alloc: libc::c_int,
    pub columns_alloc: libc::c_int,
    pub mat_alloc: libc::c_int,
    pub col_mat_colnr: *mut libc::c_int,
    pub col_mat_rownr: *mut libc::c_int,
    pub col_mat_value: *mut libc::c_double,
    pub col_end: *mut libc::c_int,
    pub col_tag: *mut libc::c_int,
    pub row_mat: *mut libc::c_int,
    pub row_end: *mut libc::c_int,
    pub row_tag: *mut libc::c_int,
    pub colmax: *mut libc::c_double,
    pub rowmax: *mut libc::c_double,
    pub epsvalue: libc::c_double,
    pub infnorm: libc::c_double,
    pub dynrange: libc::c_double,
    pub row_end_valid: libc::c_uchar,
    pub is_roworder: libc::c_uchar,
}
impl ::core::clone::Clone for Struct__MATrec {
    fn clone(&self) -> Self { *self }
}
impl ::core::default::Default for Struct__MATrec {
    fn default() -> Self { unsafe { ::core::mem::zeroed() } }
}
pub type MATrec = Struct__MATrec;
#[repr(C)]
#[derive(Copy)]
pub struct Struct__DeltaVrec {
    pub lp: *mut lprec,
    pub activelevel: libc::c_int,
    pub tracker: *mut MATrec,
}
impl ::core::clone::Clone for Struct__DeltaVrec {
    fn clone(&self) -> Self { *self }
}
impl ::core::default::Default for Struct__DeltaVrec {
    fn default() -> Self { unsafe { ::core::mem::zeroed() } }
}
pub type DeltaVrec = Struct__DeltaVrec;
#[repr(C)]
#[derive(Copy)]
pub struct Struct__basisrec {
    pub level: libc::c_int,
    pub var_basic: *mut libc::c_int,
    pub is_basic: *mut libc::c_uchar,
    pub is_lower: *mut libc::c_uchar,
    pub pivots: libc::c_int,
    pub previous: *mut Struct__basisrec,
}
impl ::core::clone::Clone for Struct__basisrec {
    fn clone(&self) -> Self { *self }
}
impl ::core::default::Default for Struct__basisrec {
    fn default() -> Self { unsafe { ::core::mem::zeroed() } }
}
pub type basisrec = Struct__basisrec;
#[repr(C)]
#[derive(Copy)]
pub struct Struct__presolveundorec {
    pub lp: *mut lprec,
    pub orig_rows: libc::c_int,
    pub orig_columns: libc::c_int,
    pub orig_sum: libc::c_int,
    pub var_to_orig: *mut libc::c_int,
    pub orig_to_var: *mut libc::c_int,
    pub fixed_rhs: *mut libc::c_double,
    pub fixed_obj: *mut libc::c_double,
    pub deletedA: *mut DeltaVrec,
    pub primalundo: *mut DeltaVrec,
    pub dualundo: *mut DeltaVrec,
    pub OFcolsdeleted: libc::c_uchar,
}
impl ::core::clone::Clone for Struct__presolveundorec {
    fn clone(&self) -> Self { *self }
}
impl ::core::default::Default for Struct__presolveundorec {
    fn default() -> Self { unsafe { ::core::mem::zeroed() } }
}
pub type presolveundorec = Struct__presolveundorec;
#[repr(C)]
#[derive(Copy)]
pub struct Struct__BBPSrec {
    pub lp: *mut lprec,
    pub pseodotype: libc::c_int,
    pub updatelimit: libc::c_int,
    pub updatesfinished: libc::c_int,
    pub restartlimit: libc::c_double,
    pub UPcost: *mut MATitem,
    pub LOcost: *mut MATitem,
    pub secondary: *mut Struct__BBPSrec,
}
impl ::core::clone::Clone for Struct__BBPSrec {
    fn clone(&self) -> Self { *self }
}
impl ::core::default::Default for Struct__BBPSrec {
    fn default() -> Self { unsafe { ::core::mem::zeroed() } }
}
pub type BBPSrec = Struct__BBPSrec;
#[repr(C)]
#[derive(Copy)]
pub struct Struct__BBrec {
    pub parent: *mut Struct__BBrec,
    pub child: *mut Struct__BBrec,
    pub lp: *mut lprec,
    pub varno: libc::c_int,
    pub vartype: libc::c_int,
    pub lastvarcus: libc::c_int,
    pub lastrcf: libc::c_int,
    pub nodesleft: libc::c_int,
    pub nodessolved: libc::c_int,
    pub nodestatus: libc::c_int,
    pub noderesult: libc::c_double,
    pub lastsolution: libc::c_double,
    pub sc_bound: libc::c_double,
    pub upbo: *mut libc::c_double,
    pub lowbo: *mut libc::c_double,
    pub UPbound: libc::c_double,
    pub LObound: libc::c_double,
    pub UBtrack: libc::c_int,
    pub LBtrack: libc::c_int,
    pub contentmode: libc::c_uchar,
    pub sc_canset: libc::c_uchar,
    pub isSOS: libc::c_uchar,
    pub isGUB: libc::c_uchar,
    pub varmanaged: *mut libc::c_int,
    pub isfloor: libc::c_uchar,
    pub UBzerobased: libc::c_uchar,
}
impl ::core::clone::Clone for Struct__BBrec {
    fn clone(&self) -> Self { *self }
}
impl ::core::default::Default for Struct__BBrec {
    fn default() -> Self { unsafe { ::core::mem::zeroed() } }
}
pub type BBrec = Struct__BBrec;
#[repr(C)]
#[derive(Copy)]
pub struct Struct__partialrec {
    pub lp: *mut lprec,
    pub blockcount: libc::c_int,
    pub blocknow: libc::c_int,
    pub blockend: *mut libc::c_int,
    pub blockpos: *mut libc::c_int,
    pub isrow: libc::c_uchar,
}
impl ::core::clone::Clone for Struct__partialrec {
    fn clone(&self) -> Self { *self }
}
impl ::core::default::Default for Struct__partialrec {
    fn default() -> Self { unsafe { ::core::mem::zeroed() } }
}
pub type partialrec = Struct__partialrec;
pub type SOSgroup = Struct__SOSgroup;
#[repr(C)]
#[derive(Copy)]
pub struct Struct__SOSrec {
    pub parent: *mut SOSgroup,
    pub tagorder: libc::c_int,
    pub name: *mut libc::c_char,
    pub _type: libc::c_int,
    pub isGUB: libc::c_uchar,
    pub size: libc::c_int,
    pub priority: libc::c_int,
    pub members: *mut libc::c_int,
    pub weights: *mut libc::c_double,
    pub membersSorted: *mut libc::c_int,
    pub membersMapped: *mut libc::c_int,
}
impl ::core::clone::Clone for Struct__SOSrec {
    fn clone(&self) -> Self { *self }
}
impl ::core::default::Default for Struct__SOSrec {
    fn default() -> Self { unsafe { ::core::mem::zeroed() } }
}
pub type SOSrec = Struct__SOSrec;
#[repr(C)]
#[derive(Copy)]
pub struct Struct__SOSgroup {
    pub lp: *mut lprec,
    pub sos_list: *mut *mut SOSrec,
    pub sos_alloc: libc::c_int,
    pub sos_count: libc::c_int,
    pub maxorder: libc::c_int,
    pub sos1_count: libc::c_int,
    pub membership: *mut libc::c_int,
    pub memberpos: *mut libc::c_int,
}
impl ::core::clone::Clone for Struct__SOSgroup {
    fn clone(&self) -> Self { *self }
}
impl ::core::default::Default for Struct__SOSgroup {
    fn default() -> Self { unsafe { ::core::mem::zeroed() } }
}
pub type lphandle_intfunc =
    unsafe extern "C" fn(lp: *mut lprec,
                         userhandle: *mut libc::c_void)
        -> libc::c_int;
pub type lphandlestr_func =
    unsafe extern "C" fn(lp: *mut lprec,
                         userhandle: *mut libc::c_void,
                         buf: *mut libc::c_char);
pub type lphandleint_func =
    unsafe extern "C" fn(lp: *mut lprec,
                         userhandle: *mut libc::c_void,
                         message: libc::c_int);
pub type lphandleint_intfunc =
    unsafe extern "C" fn(lp: *mut lprec,
                         userhandle: *mut libc::c_void,
                         message: libc::c_int)
        -> libc::c_int;
pub type add_column_func =
    unsafe extern "C" fn(lp: *mut lprec,
                         column: *mut libc::c_double)
        -> libc::c_uchar;
pub type add_columnex_func =
    unsafe extern "C" fn(lp: *mut lprec, count: libc::c_int,
                         column: *mut libc::c_double,
                         rowno: *mut libc::c_int)
        -> libc::c_uchar;
pub type add_constraint_func =
    unsafe extern "C" fn(lp: *mut lprec, row: *mut libc::c_double,
                         constr_type: libc::c_int,
                         rh: libc::c_double)
        -> libc::c_uchar;
pub type add_constraintex_func =
    unsafe extern "C" fn(lp: *mut lprec, count: libc::c_int,
                         row: *mut libc::c_double,
                         colno: *mut libc::c_int,
                         constr_type: libc::c_int,
                         rh: libc::c_double)
        -> libc::c_uchar;
pub type add_lag_con_func =
    unsafe extern "C" fn(lp: *mut lprec, row: *mut libc::c_double,
                         con_type: libc::c_int,
                         rhs: libc::c_double)
        -> libc::c_uchar;
pub type add_SOS_func =
    unsafe extern "C" fn(lp: *mut lprec, name: *mut libc::c_char,
                         sostype: libc::c_int,
                         priority: libc::c_int,
                         count: libc::c_int,
                         sosvars: *mut libc::c_int,
                         weights: *mut libc::c_double)
        -> libc::c_int;
pub type column_in_lp_func =
    unsafe extern "C" fn(lp: *mut lprec,
                         column: *mut libc::c_double)
        -> libc::c_int;
pub type copy_lp_func =
    unsafe extern "C" fn(lp: *mut lprec) -> *mut Struct__lprec;
pub type default_basis_func = unsafe extern "C" fn(lp: *mut lprec);
pub type del_column_func =
    unsafe extern "C" fn(lp: *mut lprec, colnr: libc::c_int)
        -> libc::c_uchar;
pub type del_constraint_func =
    unsafe extern "C" fn(lp: *mut lprec, rownr: libc::c_int)
        -> libc::c_uchar;
pub type delete_lp_func = unsafe extern "C" fn(lp: *mut lprec);
pub type dualize_lp_func =
    unsafe extern "C" fn(lp: *mut lprec) -> libc::c_uchar;
pub type free_lp_func = unsafe extern "C" fn(plp: *mut *mut lprec);
pub type get_anti_degen_func =
    unsafe extern "C" fn(lp: *mut lprec) -> libc::c_int;
pub type get_basis_func =
    unsafe extern "C" fn(lp: *mut lprec,
                         bascolumn: *mut libc::c_int,
                         nonbasic: libc::c_uchar)
        -> libc::c_uchar;
pub type get_basiscrash_func =
    unsafe extern "C" fn(lp: *mut lprec) -> libc::c_int;
pub type get_bb_depthlimit_func =
    unsafe extern "C" fn(lp: *mut lprec) -> libc::c_int;
pub type get_bb_floorfirst_func =
    unsafe extern "C" fn(lp: *mut lprec) -> libc::c_int;
pub type get_bb_rule_func =
    unsafe extern "C" fn(lp: *mut lprec) -> libc::c_int;
pub type get_bounds_tighter_func =
    unsafe extern "C" fn(lp: *mut lprec) -> libc::c_uchar;
pub type get_break_at_value_func =
    unsafe extern "C" fn(lp: *mut lprec) -> libc::c_double;
pub type get_col_name_func =
    unsafe extern "C" fn(lp: *mut lprec, colnr: libc::c_int)
        -> *mut libc::c_char;
pub type get_column_func =
    unsafe extern "C" fn(lp: *mut lprec, colnr: libc::c_int,
                         column: *mut libc::c_double)
        -> libc::c_uchar;
pub type get_columnex_func =
    unsafe extern "C" fn(lp: *mut lprec, colnr: libc::c_int,
                         column: *mut libc::c_double,
                         nzrow: *mut libc::c_int)
        -> libc::c_int;
pub type get_constr_type_func =
    unsafe extern "C" fn(lp: *mut lprec, rownr: libc::c_int)
        -> libc::c_int;
pub type get_constr_value_func =
    unsafe extern "C" fn(lp: *mut lprec, rownr: libc::c_int,
                         count: libc::c_int,
                         primsolution: *mut libc::c_double,
                         nzindex: *mut libc::c_int)
        -> libc::c_double;
pub type get_constraints_func =
    unsafe extern "C" fn(lp: *mut lprec,
                         constr: *mut libc::c_double)
        -> libc::c_uchar;
pub type get_dual_solution_func =
    unsafe extern "C" fn(lp: *mut lprec, rc: *mut libc::c_double)
        -> libc::c_uchar;
pub type get_epsb_func =
    unsafe extern "C" fn(lp: *mut lprec) -> libc::c_double;
pub type get_epsd_func =
    unsafe extern "C" fn(lp: *mut lprec) -> libc::c_double;
pub type get_epsel_func =
    unsafe extern "C" fn(lp: *mut lprec) -> libc::c_double;
pub type get_epsint_func =
    unsafe extern "C" fn(lp: *mut lprec) -> libc::c_double;
pub type get_epsperturb_func =
    unsafe extern "C" fn(lp: *mut lprec) -> libc::c_double;
pub type get_epspivot_func =
    unsafe extern "C" fn(lp: *mut lprec) -> libc::c_double;
pub type get_improve_func =
    unsafe extern "C" fn(lp: *mut lprec) -> libc::c_int;
pub type get_infinite_func =
    unsafe extern "C" fn(lp: *mut lprec) -> libc::c_double;
pub type get_lambda_func =
    unsafe extern "C" fn(lp: *mut lprec,
                         lambda: *mut libc::c_double)
        -> libc::c_uchar;
pub type get_lowbo_func =
    unsafe extern "C" fn(lp: *mut lprec, colnr: libc::c_int)
        -> libc::c_double;
pub type get_lp_index_func =
    unsafe extern "C" fn(lp: *mut lprec, orig_index: libc::c_int)
        -> libc::c_int;
pub type get_lp_name_func =
    unsafe extern "C" fn(lp: *mut lprec) -> *mut libc::c_char;
pub type get_Lrows_func =
    unsafe extern "C" fn(lp: *mut lprec) -> libc::c_int;
pub type get_mat_func =
    unsafe extern "C" fn(lp: *mut lprec, rownr: libc::c_int,
                         colnr: libc::c_int)
        -> libc::c_double;
pub type get_mat_byindex_func =
    unsafe extern "C" fn(lp: *mut lprec, matindex: libc::c_int,
                         isrow: libc::c_uchar,
                         adjustsign: libc::c_uchar)
        -> libc::c_double;
pub type get_max_level_func =
    unsafe extern "C" fn(lp: *mut lprec) -> libc::c_int;
pub type get_maxpivot_func =
    unsafe extern "C" fn(lp: *mut lprec) -> libc::c_int;
pub type get_mip_gap_func =
    unsafe extern "C" fn(lp: *mut lprec, absolute: libc::c_uchar)
        -> libc::c_double;
pub type get_multiprice_func =
    unsafe extern "C" fn(lp: *mut lprec, getabssize: libc::c_uchar)
        -> libc::c_int;
pub type is_use_names_func =
    unsafe extern "C" fn(lp: *mut lprec, isrow: libc::c_uchar)
        -> libc::c_uchar;
pub type set_use_names_func =
    unsafe extern "C" fn(lp: *mut lprec, isrow: libc::c_uchar,
                         use_names: libc::c_uchar);
pub type get_nameindex_func =
    unsafe extern "C" fn(lp: *mut lprec, varname: *mut libc::c_char,
                         isrow: libc::c_uchar)
        -> libc::c_int;
pub type get_Ncolumns_func =
    unsafe extern "C" fn(lp: *mut lprec) -> libc::c_int;
pub type get_negrange_func =
    unsafe extern "C" fn(lp: *mut lprec) -> libc::c_double;
pub type get_nz_func =
    unsafe extern "C" fn(lp: *mut lprec) -> libc::c_int;
pub type get_Norig_columns_func =
    unsafe extern "C" fn(lp: *mut lprec) -> libc::c_int;
pub type get_Norig_rows_func =
    unsafe extern "C" fn(lp: *mut lprec) -> libc::c_int;
pub type get_Nrows_func =
    unsafe extern "C" fn(lp: *mut lprec) -> libc::c_int;
pub type get_obj_bound_func =
    unsafe extern "C" fn(lp: *mut lprec) -> libc::c_double;
pub type get_objective_func =
    unsafe extern "C" fn(lp: *mut lprec) -> libc::c_double;
pub type get_orig_index_func =
    unsafe extern "C" fn(lp: *mut lprec, lp_index: libc::c_int)
        -> libc::c_int;
pub type get_origcol_name_func =
    unsafe extern "C" fn(lp: *mut lprec, colnr: libc::c_int)
        -> *mut libc::c_char;
pub type get_origrow_name_func =
    unsafe extern "C" fn(lp: *mut lprec, rownr: libc::c_int)
        -> *mut libc::c_char;
pub type get_partialprice_func =
    unsafe extern "C" fn(lp: *mut lprec,
                         blockcount: *mut libc::c_int,
                         blockstart: *mut libc::c_int,
                         isrow: libc::c_uchar);
pub type get_pivoting_func =
    unsafe extern "C" fn(lp: *mut lprec) -> libc::c_int;
pub type get_presolve_func =
    unsafe extern "C" fn(lp: *mut lprec) -> libc::c_int;
pub type get_presolveloops_func =
    unsafe extern "C" fn(lp: *mut lprec) -> libc::c_int;
pub type get_primal_solution_func =
    unsafe extern "C" fn(lp: *mut lprec, pv: *mut libc::c_double)
        -> libc::c_uchar;
pub type get_print_sol_func =
    unsafe extern "C" fn(lp: *mut lprec) -> libc::c_int;
pub type get_pseudocosts_func =
    unsafe extern "C" fn(lp: *mut lprec,
                         clower: *mut libc::c_double,
                         cupper: *mut libc::c_double,
                         updatelimit: *mut libc::c_int)
        -> libc::c_uchar;
pub type get_ptr_constraints_func =
    unsafe extern "C" fn(lp: *mut lprec,
                         constr: *mut *mut libc::c_double)
        -> libc::c_uchar;
pub type get_ptr_dual_solution_func =
    unsafe extern "C" fn(lp: *mut lprec,
                         rc: *mut *mut libc::c_double)
        -> libc::c_uchar;
pub type get_ptr_lambda_func =
    unsafe extern "C" fn(lp: *mut lprec,
                         lambda: *mut *mut libc::c_double)
        -> libc::c_uchar;
pub type get_ptr_primal_solution_func =
    unsafe extern "C" fn(lp: *mut lprec,
                         pv: *mut *mut libc::c_double)
        -> libc::c_uchar;
pub type get_ptr_sensitivity_obj_func =
    unsafe extern "C" fn(lp: *mut lprec,
                         objfrom: *mut *mut libc::c_double,
                         objtill: *mut *mut libc::c_double)
        -> libc::c_uchar;
pub type get_ptr_sensitivity_objex_func =
    unsafe extern "C" fn(lp: *mut lprec,
                         objfrom: *mut *mut libc::c_double,
                         objtill: *mut *mut libc::c_double,
                         objfromvalue: *mut *mut libc::c_double,
                         objtillvalue: *mut *mut libc::c_double)
        -> libc::c_uchar;
pub type get_ptr_sensitivity_rhs_func =
    unsafe extern "C" fn(lp: *mut lprec,
                         duals: *mut *mut libc::c_double,
                         dualsfrom: *mut *mut libc::c_double,
                         dualstill: *mut *mut libc::c_double)
        -> libc::c_uchar;
pub type get_ptr_variables_func =
    unsafe extern "C" fn(lp: *mut lprec,
                         var: *mut *mut libc::c_double)
        -> libc::c_uchar;
pub type get_rh_func =
    unsafe extern "C" fn(lp: *mut lprec, rownr: libc::c_int)
        -> libc::c_double;
pub type get_rh_range_func =
    unsafe extern "C" fn(lp: *mut lprec, rownr: libc::c_int)
        -> libc::c_double;
pub type get_rowex_func =
    unsafe extern "C" fn(lp: *mut lprec, rownr: libc::c_int,
                         row: *mut libc::c_double,
                         colno: *mut libc::c_int)
        -> libc::c_int;
pub type get_row_func =
    unsafe extern "C" fn(lp: *mut lprec, rownr: libc::c_int,
                         row: *mut libc::c_double)
        -> libc::c_uchar;
pub type get_row_name_func =
    unsafe extern "C" fn(lp: *mut lprec, rownr: libc::c_int)
        -> *mut libc::c_char;
pub type get_scalelimit_func =
    unsafe extern "C" fn(lp: *mut lprec) -> libc::c_double;
pub type get_scaling_func =
    unsafe extern "C" fn(lp: *mut lprec) -> libc::c_int;
pub type get_sensitivity_obj_func =
    unsafe extern "C" fn(lp: *mut lprec,
                         objfrom: *mut libc::c_double,
                         objtill: *mut libc::c_double)
        -> libc::c_uchar;
pub type get_sensitivity_objex_func =
    unsafe extern "C" fn(lp: *mut lprec,
                         objfrom: *mut libc::c_double,
                         objtill: *mut libc::c_double,
                         objfromvalue: *mut libc::c_double,
                         objtillvalue: *mut libc::c_double)
        -> libc::c_uchar;
pub type get_sensitivity_rhs_func =
    unsafe extern "C" fn(lp: *mut lprec, duals: *mut libc::c_double,
                         dualsfrom: *mut libc::c_double,
                         dualstill: *mut libc::c_double)
        -> libc::c_uchar;
pub type get_simplextype_func =
    unsafe extern "C" fn(lp: *mut lprec) -> libc::c_int;
pub type get_solutioncount_func =
    unsafe extern "C" fn(lp: *mut lprec) -> libc::c_int;
pub type get_solutionlimit_func =
    unsafe extern "C" fn(lp: *mut lprec) -> libc::c_int;
pub type get_status_func =
    unsafe extern "C" fn(lp: *mut lprec) -> libc::c_int;
pub type get_statustext_func =
    unsafe extern "C" fn(lp: *mut lprec, statuscode: libc::c_int)
        -> *mut libc::c_char;
pub type get_timeout_func =
    unsafe extern "C" fn(lp: *mut lprec) -> libc::c_long;
pub type get_total_iter_func =
    unsafe extern "C" fn(lp: *mut lprec) -> libc::c_longlong;
pub type get_total_nodes_func =
    unsafe extern "C" fn(lp: *mut lprec) -> libc::c_longlong;
pub type get_upbo_func =
    unsafe extern "C" fn(lp: *mut lprec, colnr: libc::c_int)
        -> libc::c_double;
pub type get_var_branch_func =
    unsafe extern "C" fn(lp: *mut lprec, colnr: libc::c_int)
        -> libc::c_int;
pub type get_var_dualresult_func =
    unsafe extern "C" fn(lp: *mut lprec, index: libc::c_int)
        -> libc::c_double;
pub type get_var_primalresult_func =
    unsafe extern "C" fn(lp: *mut lprec, index: libc::c_int)
        -> libc::c_double;
pub type get_var_priority_func =
    unsafe extern "C" fn(lp: *mut lprec, colnr: libc::c_int)
        -> libc::c_int;
pub type get_variables_func =
    unsafe extern "C" fn(lp: *mut lprec, var: *mut libc::c_double)
        -> libc::c_uchar;
pub type get_verbose_func =
    unsafe extern "C" fn(lp: *mut lprec) -> libc::c_int;
pub type guess_basis_func =
    unsafe extern "C" fn(lp: *mut lprec,
                         guessvector: *mut libc::c_double,
                         basisvector: *mut libc::c_int)
        -> libc::c_uchar;
pub type get_working_objective_func =
    unsafe extern "C" fn(lp: *mut lprec) -> libc::c_double;
pub type has_BFP_func =
    unsafe extern "C" fn(lp: *mut lprec) -> libc::c_uchar;
pub type has_XLI_func =
    unsafe extern "C" fn(lp: *mut lprec) -> libc::c_uchar;
pub type is_add_rowmode_func =
    unsafe extern "C" fn(lp: *mut lprec) -> libc::c_uchar;
pub type is_anti_degen_func =
    unsafe extern "C" fn(lp: *mut lprec, testmask: libc::c_int)
        -> libc::c_uchar;
pub type is_binary_func =
    unsafe extern "C" fn(lp: *mut lprec, colnr: libc::c_int)
        -> libc::c_uchar;
pub type is_break_at_first_func =
    unsafe extern "C" fn(lp: *mut lprec) -> libc::c_uchar;
pub type is_constr_type_func =
    unsafe extern "C" fn(lp: *mut lprec, rownr: libc::c_int,
                         mask: libc::c_int)
        -> libc::c_uchar;
pub type is_debug_func =
    unsafe extern "C" fn(lp: *mut lprec) -> libc::c_uchar;
pub type is_feasible_func =
    unsafe extern "C" fn(lp: *mut lprec,
                         values: *mut libc::c_double,
                         threshold: libc::c_double)
        -> libc::c_uchar;
pub type is_unbounded_func =
    unsafe extern "C" fn(lp: *mut lprec, colnr: libc::c_int)
        -> libc::c_uchar;
pub type is_infinite_func =
    unsafe extern "C" fn(lp: *mut lprec, value: libc::c_double)
        -> libc::c_uchar;
pub type is_int_func =
    unsafe extern "C" fn(lp: *mut lprec, column: libc::c_int)
        -> libc::c_uchar;
pub type is_integerscaling_func =
    unsafe extern "C" fn(lp: *mut lprec) -> libc::c_uchar;
pub type is_lag_trace_func =
    unsafe extern "C" fn(lp: *mut lprec) -> libc::c_uchar;
pub type is_maxim_func =
    unsafe extern "C" fn(lp: *mut lprec) -> libc::c_uchar;
pub type is_nativeBFP_func =
    unsafe extern "C" fn(lp: *mut lprec) -> libc::c_uchar;
pub type is_nativeXLI_func =
    unsafe extern "C" fn(lp: *mut lprec) -> libc::c_uchar;
pub type is_negative_func =
    unsafe extern "C" fn(lp: *mut lprec, colnr: libc::c_int)
        -> libc::c_uchar;
pub type is_obj_in_basis_func =
    unsafe extern "C" fn(lp: *mut lprec) -> libc::c_uchar;
pub type is_piv_mode_func =
    unsafe extern "C" fn(lp: *mut lprec, testmask: libc::c_int)
        -> libc::c_uchar;
pub type is_piv_rule_func =
    unsafe extern "C" fn(lp: *mut lprec, rule: libc::c_int)
        -> libc::c_uchar;
pub type is_presolve_func =
    unsafe extern "C" fn(lp: *mut lprec, testmask: libc::c_int)
        -> libc::c_uchar;
pub type is_scalemode_func =
    unsafe extern "C" fn(lp: *mut lprec, testmask: libc::c_int)
        -> libc::c_uchar;
pub type is_scaletype_func =
    unsafe extern "C" fn(lp: *mut lprec, scaletype: libc::c_int)
        -> libc::c_uchar;
pub type is_semicont_func =
    unsafe extern "C" fn(lp: *mut lprec, colnr: libc::c_int)
        -> libc::c_uchar;
pub type is_SOS_var_func =
    unsafe extern "C" fn(lp: *mut lprec, colnr: libc::c_int)
        -> libc::c_uchar;
pub type is_trace_func =
    unsafe extern "C" fn(lp: *mut lprec) -> libc::c_uchar;
pub type lp_solve_version_func =
    unsafe extern "C" fn(majorversion: *mut libc::c_int,
                         minorversion: *mut libc::c_int,
                         release: *mut libc::c_int,
                         build: *mut libc::c_int);
pub type make_lp_func =
    extern "C" fn(rows: libc::c_int, columns: libc::c_int)
        -> *mut Struct__lprec;
pub type print_constraints_func =
    unsafe extern "C" fn(lp: *mut lprec, columns: libc::c_int);
pub type print_debugdump_func =
    unsafe extern "C" fn(lp: *mut lprec,
                         filename: *mut libc::c_char)
        -> libc::c_uchar;
pub type print_duals_func = unsafe extern "C" fn(lp: *mut lprec);
pub type print_lp_func = unsafe extern "C" fn(lp: *mut lprec);
pub type print_objective_func = unsafe extern "C" fn(lp: *mut lprec);
pub type print_scales_func = unsafe extern "C" fn(lp: *mut lprec);
pub type print_solution_func =
    unsafe extern "C" fn(lp: *mut lprec, columns: libc::c_int);
pub type print_str_func =
    unsafe extern "C" fn(lp: *mut lprec, str: *mut libc::c_char);
pub type print_tableau_func = unsafe extern "C" fn(lp: *mut lprec);
pub type put_abortfunc_func =
    unsafe extern "C" fn(lp: *mut lprec, newctrlc: lphandle_intfunc,
                         ctrlchandle: *mut libc::c_void);
pub type put_bb_nodefunc_func =
    unsafe extern "C" fn(lp: *mut lprec, newnode: lphandleint_intfunc,
                         bbnodehandle: *mut libc::c_void);
pub type put_bb_branchfunc_func =
    unsafe extern "C" fn(lp: *mut lprec, newbranch: lphandleint_intfunc,
                         bbbranchhandle: *mut libc::c_void);
pub type put_logfunc_func =
    unsafe extern "C" fn(lp: *mut lprec, newlog: lphandlestr_func,
                         loghandle: *mut libc::c_void);
pub type put_msgfunc_func =
    unsafe extern "C" fn(lp: *mut lprec, newmsg: lphandleint_func,
                         msghandle: *mut libc::c_void,
                         mask: libc::c_int);
pub type read_LP_func =
    unsafe extern "C" fn(filename: *mut libc::c_char,
                         verbose: libc::c_int,
                         lp_name: *mut libc::c_char)
        -> *mut Struct__lprec;
pub type read_MPS_func =
    unsafe extern "C" fn(filename: *mut libc::c_char,
                         options: libc::c_int)
        -> *mut Struct__lprec;
pub type read_XLI_func =
    unsafe extern "C" fn(xliname: *mut libc::c_char,
                         modelname: *mut libc::c_char,
                         dataname: *mut libc::c_char,
                         options: *mut libc::c_char,
                         verbose: libc::c_int)
        -> *mut Struct__lprec;
pub type read_basis_func =
    unsafe extern "C" fn(lp: *mut lprec,
                         filename: *mut libc::c_char,
                         info: *mut libc::c_char)
        -> libc::c_uchar;
pub type reset_basis_func = unsafe extern "C" fn(lp: *mut lprec);
pub type read_params_func =
    unsafe extern "C" fn(lp: *mut lprec,
                         filename: *mut libc::c_char,
                         options: *mut libc::c_char)
        -> libc::c_uchar;
pub type reset_params_func = unsafe extern "C" fn(lp: *mut lprec);
pub type resize_lp_func =
    unsafe extern "C" fn(lp: *mut lprec, rows: libc::c_int,
                         columns: libc::c_int)
        -> libc::c_uchar;
pub type set_add_rowmode_func =
    unsafe extern "C" fn(lp: *mut lprec, turnon: libc::c_uchar)
        -> libc::c_uchar;
pub type set_anti_degen_func =
    unsafe extern "C" fn(lp: *mut lprec, anti_degen: libc::c_int);
pub type set_basisvar_func =
    unsafe extern "C" fn(lp: *mut lprec, basisPos: libc::c_int,
                         enteringCol: libc::c_int)
        -> libc::c_int;
pub type set_basis_func =
    unsafe extern "C" fn(lp: *mut lprec,
                         bascolumn: *mut libc::c_int,
                         nonbasic: libc::c_uchar)
        -> libc::c_uchar;
pub type set_basiscrash_func =
    unsafe extern "C" fn(lp: *mut lprec, mode: libc::c_int);
pub type set_bb_depthlimit_func =
    unsafe extern "C" fn(lp: *mut lprec, bb_maxlevel: libc::c_int);
pub type set_bb_floorfirst_func =
    unsafe extern "C" fn(lp: *mut lprec,
                         bb_floorfirst: libc::c_int);
pub type set_bb_rule_func =
    unsafe extern "C" fn(lp: *mut lprec, bb_rule: libc::c_int);
pub type set_BFP_func =
    unsafe extern "C" fn(lp: *mut lprec,
                         filename: *mut libc::c_char)
        -> libc::c_uchar;
pub type set_binary_func =
    unsafe extern "C" fn(lp: *mut lprec, colnr: libc::c_int,
                         must_be_bin: libc::c_uchar)
        -> libc::c_uchar;
pub type set_bounds_func =
    unsafe extern "C" fn(lp: *mut lprec, colnr: libc::c_int,
                         lower: libc::c_double,
                         upper: libc::c_double)
        -> libc::c_uchar;
pub type set_bounds_tighter_func =
    unsafe extern "C" fn(lp: *mut lprec, tighten: libc::c_uchar);
pub type set_break_at_first_func =
    unsafe extern "C" fn(lp: *mut lprec,
                         break_at_first: libc::c_uchar);
pub type set_break_at_value_func =
    unsafe extern "C" fn(lp: *mut lprec,
                         break_at_value: libc::c_double);
pub type set_column_func =
    unsafe extern "C" fn(lp: *mut lprec, colnr: libc::c_int,
                         column: *mut libc::c_double)
        -> libc::c_uchar;
pub type set_columnex_func =
    unsafe extern "C" fn(lp: *mut lprec, colnr: libc::c_int,
                         count: libc::c_int,
                         column: *mut libc::c_double,
                         rowno: *mut libc::c_int)
        -> libc::c_uchar;
pub type set_col_name_func =
    unsafe extern "C" fn(lp: *mut lprec, colnr: libc::c_int,
                         new_name: *mut libc::c_char)
        -> libc::c_uchar;
pub type set_constr_type_func =
    unsafe extern "C" fn(lp: *mut lprec, rownr: libc::c_int,
                         con_type: libc::c_int)
        -> libc::c_uchar;
pub type set_debug_func =
    unsafe extern "C" fn(lp: *mut lprec, debug: libc::c_uchar);
pub type set_epsb_func =
    unsafe extern "C" fn(lp: *mut lprec, epsb: libc::c_double);
pub type set_epsd_func =
    unsafe extern "C" fn(lp: *mut lprec, epsd: libc::c_double);
pub type set_epsel_func =
    unsafe extern "C" fn(lp: *mut lprec, epsel: libc::c_double);
pub type set_epsint_func =
    unsafe extern "C" fn(lp: *mut lprec, epsint: libc::c_double);
pub type set_epslevel_func =
    unsafe extern "C" fn(lp: *mut lprec, epslevel: libc::c_int)
        -> libc::c_uchar;
pub type set_epsperturb_func =
    unsafe extern "C" fn(lp: *mut lprec,
                         epsperturb: libc::c_double);
pub type set_epspivot_func =
    unsafe extern "C" fn(lp: *mut lprec, epspivot: libc::c_double);
pub type set_unbounded_func =
    unsafe extern "C" fn(lp: *mut lprec, colnr: libc::c_int)
        -> libc::c_uchar;
pub type set_improve_func =
    unsafe extern "C" fn(lp: *mut lprec, improve: libc::c_int);
pub type set_infinite_func =
    unsafe extern "C" fn(lp: *mut lprec, infinite: libc::c_double);
pub type set_int_func =
    unsafe extern "C" fn(lp: *mut lprec, colnr: libc::c_int,
                         must_be_int: libc::c_uchar)
        -> libc::c_uchar;
pub type set_lag_trace_func =
    unsafe extern "C" fn(lp: *mut lprec, lag_trace: libc::c_uchar);
pub type set_lowbo_func =
    unsafe extern "C" fn(lp: *mut lprec, colnr: libc::c_int,
                         value: libc::c_double)
        -> libc::c_uchar;
pub type set_lp_name_func =
    unsafe extern "C" fn(lp: *mut lprec, lpname: *mut libc::c_char)
        -> libc::c_uchar;
pub type set_mat_func =
    unsafe extern "C" fn(lp: *mut lprec, row: libc::c_int,
                         column: libc::c_int,
                         value: libc::c_double)
        -> libc::c_uchar;
pub type set_maxim_func = unsafe extern "C" fn(lp: *mut lprec);
pub type set_maxpivot_func =
    unsafe extern "C" fn(lp: *mut lprec, max_num_inv: libc::c_int);
pub type set_minim_func = unsafe extern "C" fn(lp: *mut lprec);
pub type set_mip_gap_func =
    unsafe extern "C" fn(lp: *mut lprec, absolute: libc::c_uchar,
                         mip_gap: libc::c_double);
pub type set_multiprice_func =
    unsafe extern "C" fn(lp: *mut lprec, multiblockdiv: libc::c_int)
        -> libc::c_uchar;
pub type set_negrange_func =
    unsafe extern "C" fn(lp: *mut lprec, negrange: libc::c_double);
pub type set_obj_func =
    unsafe extern "C" fn(lp: *mut lprec, colnr: libc::c_int,
                         value: libc::c_double)
        -> libc::c_uchar;
pub type set_obj_bound_func =
    unsafe extern "C" fn(lp: *mut lprec, obj_bound: libc::c_double);
pub type set_obj_fn_func =
    unsafe extern "C" fn(lp: *mut lprec, row: *mut libc::c_double)
        -> libc::c_uchar;
pub type set_obj_fnex_func =
    unsafe extern "C" fn(lp: *mut lprec, count: libc::c_int,
                         row: *mut libc::c_double,
                         colno: *mut libc::c_int)
        -> libc::c_uchar;
pub type set_obj_in_basis_func =
    unsafe extern "C" fn(lp: *mut lprec,
                         obj_in_basis: libc::c_uchar);
pub type set_outputfile_func =
    unsafe extern "C" fn(lp: *mut lprec,
                         filename: *mut libc::c_char)
        -> libc::c_uchar;
pub type set_outputstream_func =
    unsafe extern "C" fn(lp: *mut lprec, stream: *mut libc::FILE);
pub type set_partialprice_func =
    unsafe extern "C" fn(lp: *mut lprec, blockcount: libc::c_int,
                         blockstart: *mut libc::c_int,
                         isrow: libc::c_uchar)
        -> libc::c_uchar;
pub type set_pivoting_func =
    unsafe extern "C" fn(lp: *mut lprec, piv_rule: libc::c_int);
pub type set_preferdual_func =
    unsafe extern "C" fn(lp: *mut lprec, dodual: libc::c_uchar);
pub type set_presolve_func =
    unsafe extern "C" fn(lp: *mut lprec, presolvemode: libc::c_int,
                         maxloops: libc::c_int);
pub type set_print_sol_func =
    unsafe extern "C" fn(lp: *mut lprec, print_sol: libc::c_int);
pub type set_pseudocosts_func =
    unsafe extern "C" fn(lp: *mut lprec,
                         clower: *mut libc::c_double,
                         cupper: *mut libc::c_double,
                         updatelimit: *mut libc::c_int)
        -> libc::c_uchar;
pub type set_rh_func =
    unsafe extern "C" fn(lp: *mut lprec, rownr: libc::c_int,
                         value: libc::c_double)
        -> libc::c_uchar;
pub type set_rh_range_func =
    unsafe extern "C" fn(lp: *mut lprec, rownr: libc::c_int,
                         deltavalue: libc::c_double)
        -> libc::c_uchar;
pub type set_rh_vec_func =
    unsafe extern "C" fn(lp: *mut lprec, rh: *mut libc::c_double);
pub type set_row_func =
    unsafe extern "C" fn(lp: *mut lprec, rownr: libc::c_int,
                         row: *mut libc::c_double)
        -> libc::c_uchar;
pub type set_rowex_func =
    unsafe extern "C" fn(lp: *mut lprec, rownr: libc::c_int,
                         count: libc::c_int,
                         row: *mut libc::c_double,
                         colno: *mut libc::c_int)
        -> libc::c_uchar;
pub type set_row_name_func =
    unsafe extern "C" fn(lp: *mut lprec, rownr: libc::c_int,
                         new_name: *mut libc::c_char)
        -> libc::c_uchar;
pub type set_scalelimit_func =
    unsafe extern "C" fn(lp: *mut lprec,
                         scalelimit: libc::c_double);
pub type set_scaling_func =
    unsafe extern "C" fn(lp: *mut lprec, scalemode: libc::c_int);
pub type set_semicont_func =
    unsafe extern "C" fn(lp: *mut lprec, colnr: libc::c_int,
                         must_be_sc: libc::c_uchar)
        -> libc::c_uchar;
pub type set_sense_func =
    unsafe extern "C" fn(lp: *mut lprec, maximize: libc::c_uchar);
pub type set_simplextype_func =
    unsafe extern "C" fn(lp: *mut lprec, simplextype: libc::c_int);
pub type set_solutionlimit_func =
    unsafe extern "C" fn(lp: *mut lprec, limit: libc::c_int);
pub type set_timeout_func =
    unsafe extern "C" fn(lp: *mut lprec, sectimeout: libc::c_long);
pub type set_trace_func =
    unsafe extern "C" fn(lp: *mut lprec, trace: libc::c_uchar);
pub type set_upbo_func =
    unsafe extern "C" fn(lp: *mut lprec, colnr: libc::c_int,
                         value: libc::c_double)
        -> libc::c_uchar;
pub type set_var_branch_func =
    unsafe extern "C" fn(lp: *mut lprec, colnr: libc::c_int,
                         branch_mode: libc::c_int)
        -> libc::c_uchar;
pub type set_var_weights_func =
    unsafe extern "C" fn(lp: *mut lprec,
                         weights: *mut libc::c_double)
        -> libc::c_uchar;
pub type set_verbose_func =
    unsafe extern "C" fn(lp: *mut lprec, verbose: libc::c_int);
pub type set_XLI_func =
    unsafe extern "C" fn(lp: *mut lprec,
                         filename: *mut libc::c_char)
        -> libc::c_uchar;
pub type solve_func =
    unsafe extern "C" fn(lp: *mut lprec) -> libc::c_int;
pub type str_add_column_func =
    unsafe extern "C" fn(lp: *mut lprec,
                         col_string: *mut libc::c_char)
        -> libc::c_uchar;
pub type str_add_constraint_func =
    unsafe extern "C" fn(lp: *mut lprec,
                         row_string: *mut libc::c_char,
                         constr_type: libc::c_int,
                         rh: libc::c_double)
        -> libc::c_uchar;
pub type str_add_lag_con_func =
    unsafe extern "C" fn(lp: *mut lprec,
                         row_string: *mut libc::c_char,
                         con_type: libc::c_int,
                         rhs: libc::c_double)
        -> libc::c_uchar;
pub type str_set_obj_fn_func =
    unsafe extern "C" fn(lp: *mut lprec,
                         row_string: *mut libc::c_char)
        -> libc::c_uchar;
pub type str_set_rh_vec_func =
    unsafe extern "C" fn(lp: *mut lprec,
                         rh_string: *mut libc::c_char)
        -> libc::c_uchar;
pub type time_elapsed_func =
    unsafe extern "C" fn(lp: *mut lprec) -> libc::c_double;
pub type unscale_func = unsafe extern "C" fn(lp: *mut lprec);
pub type write_lp_func =
    unsafe extern "C" fn(lp: *mut lprec,
                         filename: *mut libc::c_char)
        -> libc::c_uchar;
pub type write_LP_func =
    unsafe extern "C" fn(lp: *mut lprec, output: *mut libc::FILE)
        -> libc::c_uchar;
pub type write_mps_func =
    unsafe extern "C" fn(lp: *mut lprec,
                         filename: *mut libc::c_char)
        -> libc::c_uchar;
pub type write_MPS_func =
    unsafe extern "C" fn(lp: *mut lprec, output: *mut libc::FILE)
        -> libc::c_uchar;
pub type write_freemps_func =
    unsafe extern "C" fn(lp: *mut lprec,
                         filename: *mut libc::c_char)
        -> libc::c_uchar;
pub type write_freeMPS_func =
    unsafe extern "C" fn(lp: *mut lprec, output: *mut libc::FILE)
        -> libc::c_uchar;
pub type write_XLI_func =
    unsafe extern "C" fn(lp: *mut lprec,
                         filename: *mut libc::c_char,
                         options: *mut libc::c_char,
                         results: libc::c_uchar)
        -> libc::c_uchar;
pub type write_basis_func =
    unsafe extern "C" fn(lp: *mut lprec,
                         filename: *mut libc::c_char)
        -> libc::c_uchar;
pub type write_params_func =
    unsafe extern "C" fn(lp: *mut lprec,
                         filename: *mut libc::c_char,
                         options: *mut libc::c_char)
        -> libc::c_uchar;
pub type userabortfunc =
    unsafe extern "C" fn(lp: *mut lprec, level: libc::c_int)
        -> libc::c_uchar;
pub type reportfunc =
    unsafe extern "C" fn(lp: *mut lprec, level: libc::c_int,
                         format: *mut libc::c_char, ...);
pub type explainfunc =
    unsafe extern "C" fn(lp: *mut lprec,
                         format: *mut libc::c_char, ...)
        -> *mut libc::c_char;
pub type getvectorfunc =
    unsafe extern "C" fn(lp: *mut lprec, varin: libc::c_int,
                         pcol: *mut libc::c_double,
                         nzlist: *mut libc::c_int,
                         maxabs: *mut libc::c_int)
        -> libc::c_int;
pub type getpackedfunc =
    unsafe extern "C" fn(lp: *mut lprec, j: libc::c_int,
                         rn: *mut libc::c_int,
                         bj: *mut libc::c_double)
        -> libc::c_int;
pub type get_OF_activefunc =
    unsafe extern "C" fn(lp: *mut lprec, varnr: libc::c_int,
                         mult: libc::c_double)
        -> libc::c_double;
pub type getMDOfunc =
    unsafe extern "C" fn(lp: *mut lprec,
                         usedpos: *mut libc::c_uchar,
                         colorder: *mut libc::c_int,
                         size: *mut libc::c_int,
                         symmetric: libc::c_uchar)
        -> libc::c_int;
pub type invertfunc =
    unsafe extern "C" fn(lp: *mut lprec, shiftbounds: libc::c_uchar,
                         _final: libc::c_uchar)
        -> libc::c_uchar;
pub type set_actionfunc =
    unsafe extern "C" fn(actionvar: *mut libc::c_int,
                         actionmask: libc::c_int);
pub type is_actionfunc =
    extern "C" fn(actionvar: libc::c_int,
                  testmask: libc::c_int) -> libc::c_uchar;
pub type clear_actionfunc =
    unsafe extern "C" fn(actionvar: *mut libc::c_int,
                         actionmask: libc::c_int);
pub type BFPchar = extern "C" fn() -> *mut libc::c_char;
pub type BFP_lp = unsafe extern "C" fn(lp: *mut lprec);
pub type BFP_lpint =
    unsafe extern "C" fn(lp: *mut lprec, newsize: libc::c_int);
pub type BFPint_lp =
    unsafe extern "C" fn(lp: *mut lprec) -> libc::c_int;
pub type BFPint_lpint =
    unsafe extern "C" fn(lp: *mut lprec, kind: libc::c_int)
        -> libc::c_int;
pub type BFPreal_lp =
    unsafe extern "C" fn(lp: *mut lprec) -> libc::c_double;
pub type BFPrealp_lp =
    unsafe extern "C" fn(lp: *mut lprec) -> *mut libc::c_double;
pub type BFP_lpbool =
    unsafe extern "C" fn(lp: *mut lprec, maximum: libc::c_uchar);
pub type BFPint_lpbool =
    unsafe extern "C" fn(lp: *mut lprec, maximum: libc::c_uchar)
        -> libc::c_int;
pub type BFPint_lpintintboolbool =
    unsafe extern "C" fn(lp: *mut lprec, uservars: libc::c_int,
                         Bsize: libc::c_int,
                         usedpos: *mut libc::c_uchar,
                         _final: libc::c_uchar)
        -> libc::c_int;
pub type BFP_lprealint =
    unsafe extern "C" fn(lp: *mut lprec, pcol: *mut libc::c_double,
                         nzidx: *mut libc::c_int);
pub type BFP_lprealintrealint =
    unsafe extern "C" fn(lp: *mut lprec, prow: *mut libc::c_double,
                         pnzidx: *mut libc::c_int,
                         drow: *mut libc::c_double,
                         dnzidx: *mut libc::c_int);
pub type BFPbool_lp =
    unsafe extern "C" fn(lp: *mut lprec) -> libc::c_uchar;
pub type BFPbool_lpbool =
    unsafe extern "C" fn(lp: *mut lprec, changesign: libc::c_uchar)
        -> libc::c_uchar;
pub type BFPbool_lpint =
    unsafe extern "C" fn(lp: *mut lprec, size: libc::c_int)
        -> libc::c_uchar;
pub type BFPbool_lpintintchar =
    unsafe extern "C" fn(lp: *mut lprec, size: libc::c_int,
                         deltasize: libc::c_int,
                         options: *mut libc::c_char)
        -> libc::c_uchar;
pub type BFPbool_lpintintint =
    unsafe extern "C" fn(lp: *mut lprec, size: libc::c_int,
                         deltasize: libc::c_int,
                         sizeofvar: libc::c_int)
        -> libc::c_uchar;
pub type BFPlreal_lpintintreal =
    unsafe extern "C" fn(lp: *mut lprec, row_nr: libc::c_int,
                         col_nr: libc::c_int,
                         pcol: *mut libc::c_double)
        -> libc::c_double;
pub type BFPreal_lplrealreal =
    unsafe extern "C" fn(lp: *mut lprec, theta: libc::c_double,
                         pcol: *mut libc::c_double)
        -> libc::c_double;
pub type getcolumnex_func =
    unsafe extern "C" fn(lp: *mut lprec, colnr: libc::c_int,
                         nzvalues: *mut libc::c_double,
                         nzrows: *mut libc::c_int,
                         mapin: *mut libc::c_int)
        -> libc::c_int;
pub type BFPint_lpintrealcbintint =
    unsafe extern "C" fn(lp: *mut lprec, items: libc::c_int,
                         cb: getcolumnex_func,
                         maprow: *mut libc::c_int,
                         mapcol: *mut libc::c_int)
        -> libc::c_int;
pub type XLIchar = extern "C" fn() -> *mut libc::c_char;
pub type XLIbool_lpintintint =
    unsafe extern "C" fn(lp: *mut lprec, size: libc::c_int,
                         deltasize: libc::c_int,
                         sizevar: libc::c_int)
        -> libc::c_uchar;
pub type XLIbool_lpcharcharcharint =
    unsafe extern "C" fn(lp: *mut lprec,
                         modelname: *mut libc::c_char,
                         dataname: *mut libc::c_char,
                         options: *mut libc::c_char,
                         verbose: libc::c_int)
        -> libc::c_uchar;
pub type XLIbool_lpcharcharbool =
    unsafe extern "C" fn(lp: *mut lprec,
                         filename: *mut libc::c_char,
                         options: *mut libc::c_char,
                         results: libc::c_uchar)
        -> libc::c_uchar;
#[repr(C)]
#[derive(Copy)]
pub struct Struct__lprec {
    pub add_column: *mut add_column_func,
    pub add_columnex: *mut add_columnex_func,
    pub add_constraint: *mut add_constraint_func,
    pub add_constraintex: *mut add_constraintex_func,
    pub add_lag_con: *mut add_lag_con_func,
    pub add_SOS: *mut add_SOS_func,
    pub column_in_lp: *mut column_in_lp_func,
    pub copy_lp: *mut copy_lp_func,
    pub default_basis: *mut default_basis_func,
    pub del_column: *mut del_column_func,
    pub del_constraint: *mut del_constraint_func,
    pub delete_lp: *mut delete_lp_func,
    pub dualize_lp: *mut dualize_lp_func,
    pub free_lp: *mut free_lp_func,
    pub get_anti_degen: *mut get_anti_degen_func,
    pub get_basis: *mut get_basis_func,
    pub get_basiscrash: *mut get_basiscrash_func,
    pub get_bb_depthlimit: *mut get_bb_depthlimit_func,
    pub get_bb_floorfirst: *mut get_bb_floorfirst_func,
    pub get_bb_rule: *mut get_bb_rule_func,
    pub get_bounds_tighter: *mut get_bounds_tighter_func,
    pub get_break_at_value: *mut get_break_at_value_func,
    pub get_col_name: *mut get_col_name_func,
    pub get_columnex: *mut get_columnex_func,
    pub get_constr_type: *mut get_constr_type_func,
    pub get_constr_value: *mut get_constr_value_func,
    pub get_constraints: *mut get_constraints_func,
    pub get_dual_solution: *mut get_dual_solution_func,
    pub get_epsb: *mut get_epsb_func,
    pub get_epsd: *mut get_epsd_func,
    pub get_epsel: *mut get_epsel_func,
    pub get_epsint: *mut get_epsint_func,
    pub get_epsperturb: *mut get_epsperturb_func,
    pub get_epspivot: *mut get_epspivot_func,
    pub get_improve: *mut get_improve_func,
    pub get_infinite: *mut get_infinite_func,
    pub get_lambda: *mut get_lambda_func,
    pub get_lowbo: *mut get_lowbo_func,
    pub get_lp_index: *mut get_lp_index_func,
    pub get_lp_name: *mut get_lp_name_func,
    pub get_Lrows: *mut get_Lrows_func,
    pub get_mat: *mut get_mat_func,
    pub get_mat_byindex: *mut get_mat_byindex_func,
    pub get_max_level: *mut get_max_level_func,
    pub get_maxpivot: *mut get_maxpivot_func,
    pub get_mip_gap: *mut get_mip_gap_func,
    pub get_multiprice: *mut get_multiprice_func,
    pub get_nameindex: *mut get_nameindex_func,
    pub get_Ncolumns: *mut get_Ncolumns_func,
    pub get_negrange: *mut get_negrange_func,
    pub get_nonzeros: *mut get_nz_func,
    pub get_Norig_columns: *mut get_Norig_columns_func,
    pub get_Norig_rows: *mut get_Norig_rows_func,
    pub get_Nrows: *mut get_Nrows_func,
    pub get_obj_bound: *mut get_obj_bound_func,
    pub get_objective: *mut get_objective_func,
    pub get_orig_index: *mut get_orig_index_func,
    pub get_origcol_name: *mut get_origcol_name_func,
    pub get_origrow_name: *mut get_origrow_name_func,
    pub get_partialprice: *mut get_partialprice_func,
    pub get_pivoting: *mut get_pivoting_func,
    pub get_presolve: *mut get_presolve_func,
    pub get_presolveloops: *mut get_presolveloops_func,
    pub get_primal_solution: *mut get_primal_solution_func,
    pub get_print_sol: *mut get_print_sol_func,
    pub get_pseudocosts: *mut get_pseudocosts_func,
    pub get_ptr_constraints: *mut get_ptr_constraints_func,
    pub get_ptr_dual_solution: *mut get_ptr_dual_solution_func,
    pub get_ptr_lambda: *mut get_ptr_lambda_func,
    pub get_ptr_primal_solution: *mut get_ptr_primal_solution_func,
    pub get_ptr_sensitivity_obj: *mut get_ptr_sensitivity_obj_func,
    pub get_ptr_sensitivity_objex: *mut get_ptr_sensitivity_objex_func,
    pub get_ptr_sensitivity_rhs: *mut get_ptr_sensitivity_rhs_func,
    pub get_ptr_variables: *mut get_ptr_variables_func,
    pub get_rh: *mut get_rh_func,
    pub get_rh_range: *mut get_rh_range_func,
    pub get_row: *mut get_row_func,
    pub get_rowex: *mut get_rowex_func,
    pub get_row_name: *mut get_row_name_func,
    pub get_scalelimit: *mut get_scalelimit_func,
    pub get_scaling: *mut get_scaling_func,
    pub get_sensitivity_obj: *mut get_sensitivity_obj_func,
    pub get_sensitivity_objex: *mut get_sensitivity_objex_func,
    pub get_sensitivity_rhs: *mut get_sensitivity_rhs_func,
    pub get_simplextype: *mut get_simplextype_func,
    pub get_solutioncount: *mut get_solutioncount_func,
    pub get_solutionlimit: *mut get_solutionlimit_func,
    pub get_status: *mut get_status_func,
    pub get_statustext: *mut get_statustext_func,
    pub get_timeout: *mut get_timeout_func,
    pub get_total_iter: *mut get_total_iter_func,
    pub get_total_nodes: *mut get_total_nodes_func,
    pub get_upbo: *mut get_upbo_func,
    pub get_var_branch: *mut get_var_branch_func,
    pub get_var_dualresult: *mut get_var_dualresult_func,
    pub get_var_primalresult: *mut get_var_primalresult_func,
    pub get_var_priority: *mut get_var_priority_func,
    pub get_variables: *mut get_variables_func,
    pub get_verbose: *mut get_verbose_func,
    pub get_working_objective: *mut get_working_objective_func,
    pub has_BFP: *mut has_BFP_func,
    pub has_XLI: *mut has_XLI_func,
    pub is_add_rowmode: *mut is_add_rowmode_func,
    pub is_anti_degen: *mut is_anti_degen_func,
    pub is_binary: *mut is_binary_func,
    pub is_break_at_first: *mut is_break_at_first_func,
    pub is_constr_type: *mut is_constr_type_func,
    pub is_debug: *mut is_debug_func,
    pub is_feasible: *mut is_feasible_func,
    pub is_infinite: *mut is_infinite_func,
    pub is_int: *mut is_int_func,
    pub is_integerscaling: *mut is_integerscaling_func,
    pub is_lag_trace: *mut is_lag_trace_func,
    pub is_maxim: *mut is_maxim_func,
    pub is_nativeBFP: *mut is_nativeBFP_func,
    pub is_nativeXLI: *mut is_nativeXLI_func,
    pub is_negative: *mut is_negative_func,
    pub is_obj_in_basis: *mut is_obj_in_basis_func,
    pub is_piv_mode: *mut is_piv_mode_func,
    pub is_piv_rule: *mut is_piv_rule_func,
    pub is_presolve: *mut is_presolve_func,
    pub is_scalemode: *mut is_scalemode_func,
    pub is_scaletype: *mut is_scaletype_func,
    pub is_semicont: *mut is_semicont_func,
    pub is_SOS_var: *mut is_SOS_var_func,
    pub is_trace: *mut is_trace_func,
    pub is_unbounded: *mut is_unbounded_func,
    pub is_use_names: *mut is_use_names_func,
    pub lp_solve_version: *mut lp_solve_version_func,
    pub make_lp: *mut make_lp_func,
    pub print_constraints: *mut print_constraints_func,
    pub print_debugdump: *mut print_debugdump_func,
    pub print_duals: *mut print_duals_func,
    pub print_lp: *mut print_lp_func,
    pub print_objective: *mut print_objective_func,
    pub print_scales: *mut print_scales_func,
    pub print_solution: *mut print_solution_func,
    pub print_str: *mut print_str_func,
    pub print_tableau: *mut print_tableau_func,
    pub put_abortfunc: *mut put_abortfunc_func,
    pub put_bb_nodefunc: *mut put_bb_nodefunc_func,
    pub put_bb_branchfunc: *mut put_bb_branchfunc_func,
    pub put_logfunc: *mut put_logfunc_func,
    pub put_msgfunc: *mut put_msgfunc_func,
    pub read_LP: *mut read_LP_func,
    pub read_MPS: *mut read_MPS_func,
    pub read_XLI: *mut read_XLI_func,
    pub read_params: *mut read_params_func,
    pub read_basis: *mut read_basis_func,
    pub reset_basis: *mut reset_basis_func,
    pub reset_params: *mut reset_params_func,
    pub resize_lp: *mut resize_lp_func,
    pub set_add_rowmode: *mut set_add_rowmode_func,
    pub set_anti_degen: *mut set_anti_degen_func,
    pub set_basisvar: *mut set_basisvar_func,
    pub set_basis: *mut set_basis_func,
    pub set_basiscrash: *mut set_basiscrash_func,
    pub set_bb_depthlimit: *mut set_bb_depthlimit_func,
    pub set_bb_floorfirst: *mut set_bb_floorfirst_func,
    pub set_bb_rule: *mut set_bb_rule_func,
    pub set_BFP: *mut set_BFP_func,
    pub set_binary: *mut set_binary_func,
    pub set_bounds: *mut set_bounds_func,
    pub set_bounds_tighter: *mut set_bounds_tighter_func,
    pub set_break_at_first: *mut set_break_at_first_func,
    pub set_break_at_value: *mut set_break_at_value_func,
    pub set_column: *mut set_column_func,
    pub set_columnex: *mut set_columnex_func,
    pub set_col_name: *mut set_col_name_func,
    pub set_constr_type: *mut set_constr_type_func,
    pub set_debug: *mut set_debug_func,
    pub set_epsb: *mut set_epsb_func,
    pub set_epsd: *mut set_epsd_func,
    pub set_epsel: *mut set_epsel_func,
    pub set_epsint: *mut set_epsint_func,
    pub set_epslevel: *mut set_epslevel_func,
    pub set_epsperturb: *mut set_epsperturb_func,
    pub set_epspivot: *mut set_epspivot_func,
    pub set_unbounded: *mut set_unbounded_func,
    pub set_improve: *mut set_improve_func,
    pub set_infinite: *mut set_infinite_func,
    pub set_int: *mut set_int_func,
    pub set_lag_trace: *mut set_lag_trace_func,
    pub set_lowbo: *mut set_lowbo_func,
    pub set_lp_name: *mut set_lp_name_func,
    pub set_mat: *mut set_mat_func,
    pub set_maxim: *mut set_maxim_func,
    pub set_maxpivot: *mut set_maxpivot_func,
    pub set_minim: *mut set_minim_func,
    pub set_mip_gap: *mut set_mip_gap_func,
    pub set_multiprice: *mut set_multiprice_func,
    pub set_negrange: *mut set_negrange_func,
    pub set_obj_bound: *mut set_obj_bound_func,
    pub set_obj_fn: *mut set_obj_fn_func,
    pub set_obj_fnex: *mut set_obj_fnex_func,
    pub set_obj: *mut set_obj_func,
    pub set_obj_in_basis: *mut set_obj_in_basis_func,
    pub set_outputfile: *mut set_outputfile_func,
    pub set_outputstream: *mut set_outputstream_func,
    pub set_partialprice: *mut set_partialprice_func,
    pub set_pivoting: *mut set_pivoting_func,
    pub set_preferdual: *mut set_preferdual_func,
    pub set_presolve: *mut set_presolve_func,
    pub set_print_sol: *mut set_print_sol_func,
    pub set_pseudocosts: *mut set_pseudocosts_func,
    pub set_rh: *mut set_rh_func,
    pub set_rh_range: *mut set_rh_range_func,
    pub set_rh_vec: *mut set_rh_vec_func,
    pub set_row: *mut set_row_func,
    pub set_rowex: *mut set_rowex_func,
    pub set_row_name: *mut set_row_name_func,
    pub set_scalelimit: *mut set_scalelimit_func,
    pub set_scaling: *mut set_scaling_func,
    pub set_semicont: *mut set_semicont_func,
    pub set_sense: *mut set_sense_func,
    pub set_simplextype: *mut set_simplextype_func,
    pub set_solutionlimit: *mut set_solutionlimit_func,
    pub set_timeout: *mut set_timeout_func,
    pub set_trace: *mut set_trace_func,
    pub set_upbo: *mut set_upbo_func,
    pub set_use_names: *mut set_use_names_func,
    pub set_var_branch: *mut set_var_branch_func,
    pub set_var_weights: *mut set_var_weights_func,
    pub set_verbose: *mut set_verbose_func,
    pub set_XLI: *mut set_XLI_func,
    pub solve: *mut solve_func,
    pub str_add_column: *mut str_add_column_func,
    pub str_add_constraint: *mut str_add_constraint_func,
    pub str_add_lag_con: *mut str_add_lag_con_func,
    pub str_set_obj_fn: *mut str_set_obj_fn_func,
    pub str_set_rh_vec: *mut str_set_rh_vec_func,
    pub time_elapsed: *mut time_elapsed_func,
    pub unscale: *mut unscale_func,
    pub write_lp: *mut write_lp_func,
    pub write_LP: *mut write_LP_func,
    pub write_mps: *mut write_mps_func,
    pub write_MPS: *mut write_MPS_func,
    pub write_freemps: *mut write_freemps_func,
    pub write_freeMPS: *mut write_freeMPS_func,
    pub write_XLI: *mut write_XLI_func,
    pub write_basis: *mut write_basis_func,
    pub write_params: *mut write_params_func,
    pub alignmentspacer: *mut libc::c_int,
    pub lp_name: *mut libc::c_char,
    pub sum: libc::c_int,
    pub rows: libc::c_int,
    pub columns: libc::c_int,
    pub equalities: libc::c_int,
    pub boundedvars: libc::c_int,
    pub INTfuture1: libc::c_int,
    pub sum_alloc: libc::c_int,
    pub rows_alloc: libc::c_int,
    pub columns_alloc: libc::c_int,
    pub source_is_file: libc::c_uchar,
    pub model_is_pure: libc::c_uchar,
    pub model_is_valid: libc::c_uchar,
    pub tighten_on_set: libc::c_uchar,
    pub names_used: libc::c_uchar,
    pub use_row_names: libc::c_uchar,
    pub use_col_names: libc::c_uchar,
    pub lag_trace: libc::c_uchar,
    pub spx_trace: libc::c_uchar,
    pub bb_trace: libc::c_uchar,
    pub streamowned: libc::c_uchar,
    pub obj_in_basis: libc::c_uchar,
    pub spx_status: libc::c_int,
    pub lag_status: libc::c_int,
    pub solutioncount: libc::c_int,
    pub solutionlimit: libc::c_int,
    pub real_solution: libc::c_double,
    pub solution: *mut libc::c_double,
    pub best_solution: *mut libc::c_double,
    pub full_solution: *mut libc::c_double,
    pub edgeVector: *mut libc::c_double,
    pub drow: *mut libc::c_double,
    pub nzdrow: *mut libc::c_int,
    pub duals: *mut libc::c_double,
    pub full_duals: *mut libc::c_double,
    pub dualsfrom: *mut libc::c_double,
    pub dualstill: *mut libc::c_double,
    pub objfrom: *mut libc::c_double,
    pub objtill: *mut libc::c_double,
    pub objfromvalue: *mut libc::c_double,
    pub orig_obj: *mut libc::c_double,
    pub obj: *mut libc::c_double,
    pub current_iter: libc::c_longlong,
    pub total_iter: libc::c_longlong,
    pub current_bswap: libc::c_longlong,
    pub total_bswap: libc::c_longlong,
    pub solvecount: libc::c_int,
    pub max_pivots: libc::c_int,
    pub simplex_strategy: libc::c_int,
    pub simplex_mode: libc::c_int,
    pub verbose: libc::c_int,
    pub print_sol: libc::c_int,
    pub outstream: *mut libc::FILE,
    pub bb_varbranch: *mut libc::c_uchar,
    pub piv_strategy: libc::c_int,
    pub _piv_rule_: libc::c_int,
    pub bb_rule: libc::c_int,
    pub bb_floorfirst: libc::c_uchar,
    pub bb_breakfirst: libc::c_uchar,
    pub _piv_left_: libc::c_uchar,
    pub BOOLfuture1: libc::c_uchar,
    pub scalelimit: libc::c_double,
    pub scalemode: libc::c_int,
    pub improve: libc::c_int,
    pub anti_degen: libc::c_int,
    pub do_presolve: libc::c_int,
    pub presolveloops: libc::c_int,
    pub perturb_count: libc::c_int,
    pub row_name: *mut *mut hashelem,
    pub col_name: *mut *mut hashelem,
    pub rowname_hashtab: *mut hashtable,
    pub colname_hashtab: *mut hashtable,
    pub rowblocks: *mut partialrec,
    pub colblocks: *mut partialrec,
    pub var_type: *mut libc::c_uchar,
    pub multivars: *mut multirec,
    pub multiblockdiv: libc::c_int,
    pub fixedvars: libc::c_int,
    pub int_vars: libc::c_int,
    pub sc_vars: libc::c_int,
    pub sc_lobound: *mut libc::c_double,
    pub var_is_free: *mut libc::c_int,
    pub var_priority: *mut libc::c_int,
    pub GUB: *mut SOSgroup,
    pub sos_vars: libc::c_int,
    pub sos_ints: libc::c_int,
    pub SOS: *mut SOSgroup,
    pub sos_priority: *mut libc::c_int,
    pub bsolveVal: *mut libc::c_double,
    pub bsolveIdx: *mut libc::c_int,
    pub orig_rhs: *mut libc::c_double,
    pub rhs: *mut libc::c_double,
    pub row_type: *mut libc::c_int,
    pub longsteps: *mut multirec,
    pub orig_upbo: *mut libc::c_double,
    pub upbo: *mut libc::c_double,
    pub orig_lowbo: *mut libc::c_double,
    pub lowbo: *mut libc::c_double,
    pub matA: *mut MATrec,
    pub invB: *mut INVrec,
    pub bb_bounds: *mut BBrec,
    pub rootbounds: *mut BBrec,
    pub bb_basis: *mut basisrec,
    pub rootbasis: *mut basisrec,
    pub monitor: *mut OBJmonrec,
    pub scalars: *mut libc::c_double,
    pub scaling_used: libc::c_uchar,
    pub columns_scaled: libc::c_uchar,
    pub varmap_locked: libc::c_uchar,
    pub basis_valid: libc::c_uchar,
    pub crashmode: libc::c_int,
    pub var_basic: *mut libc::c_int,
    pub val_nonbasic: *mut libc::c_double,
    pub is_basic: *mut libc::c_uchar,
    pub is_lower: *mut libc::c_uchar,
    pub rejectpivot: *mut libc::c_int,
    pub bb_PseudoCost: *mut BBPSrec,
    pub bb_PseudoUpdates: libc::c_int,
    pub bb_strongbranches: libc::c_int,
    pub is_strongbranch: libc::c_int,
    pub bb_improvements: libc::c_int,
    pub rhsmax: libc::c_double,
    pub suminfeas: libc::c_double,
    pub bigM: libc::c_double,
    pub P1extraVal: libc::c_double,
    pub P1extraDim: libc::c_int,
    pub spx_action: libc::c_int,
    pub spx_perturbed: libc::c_uchar,
    pub bb_break: libc::c_uchar,
    pub wasPreprocessed: libc::c_uchar,
    pub wasPresolved: libc::c_uchar,
    pub INTfuture2: libc::c_int,
    pub matL: *mut MATrec,
    pub lag_rhs: *mut libc::c_double,
    pub lag_con_type: *mut libc::c_int,
    pub lambda: *mut libc::c_double,
    pub lag_bound: libc::c_double,
    pub lag_accept: libc::c_double,
    pub infinite: libc::c_double,
    pub negrange: libc::c_double,
    pub epsmachine: libc::c_double,
    pub epsvalue: libc::c_double,
    pub epsprimal: libc::c_double,
    pub epsdual: libc::c_double,
    pub epspivot: libc::c_double,
    pub epsperturb: libc::c_double,
    pub epssolution: libc::c_double,
    pub bb_status: libc::c_int,
    pub bb_level: libc::c_int,
    pub bb_maxlevel: libc::c_int,
    pub bb_limitlevel: libc::c_int,
    pub bb_totalnodes: libc::c_longlong,
    pub bb_solutionlevel: libc::c_int,
    pub bb_cutpoolsize: libc::c_int,
    pub bb_cutpoolused: libc::c_int,
    pub bb_constraintOF: libc::c_int,
    pub bb_cuttype: *mut libc::c_int,
    pub bb_varactive: *mut libc::c_int,
    pub bb_upperchange: *mut DeltaVrec,
    pub bb_lowerchange: *mut DeltaVrec,
    pub bb_deltaOF: libc::c_double,
    pub bb_breakOF: libc::c_double,
    pub bb_limitOF: libc::c_double,
    pub bb_heuristicOF: libc::c_double,
    pub bb_parentOF: libc::c_double,
    pub bb_workOF: libc::c_double,
    pub presolve_undo: *mut presolveundorec,
    pub workarrays: *mut workarraysrec,
    pub epsint: libc::c_double,
    pub mip_absgap: libc::c_double,
    pub mip_relgap: libc::c_double,
    pub timecreate: libc::c_double,
    pub timestart: libc::c_double,
    pub timeheuristic: libc::c_double,
    pub timepresolved: libc::c_double,
    pub timeend: libc::c_double,
    pub sectimeout: libc::c_long,
    pub ex_status: *mut libc::c_char,
    pub hBFP: *mut libc::c_void,
    pub bfp_name: *mut BFPchar,
    pub bfp_compatible: *mut BFPbool_lpintintint,
    pub bfp_init: *mut BFPbool_lpintintchar,
    pub bfp_free: *mut BFP_lp,
    pub bfp_resize: *mut BFPbool_lpint,
    pub bfp_memallocated: *mut BFPint_lp,
    pub bfp_restart: *mut BFPbool_lp,
    pub bfp_mustrefactorize: *mut BFPbool_lp,
    pub bfp_preparefactorization: *mut BFPint_lp,
    pub bfp_factorize: *mut BFPint_lpintintboolbool,
    pub bfp_finishfactorization: *mut BFP_lp,
    pub bfp_updaterefactstats: *mut BFP_lp,
    pub bfp_prepareupdate: *mut BFPlreal_lpintintreal,
    pub bfp_pivotRHS: *mut BFPreal_lplrealreal,
    pub bfp_finishupdate: *mut BFPbool_lpbool,
    pub bfp_ftran_prepare: *mut BFP_lprealint,
    pub bfp_ftran_normal: *mut BFP_lprealint,
    pub bfp_btran_normal: *mut BFP_lprealint,
    pub bfp_btran_double: *mut BFP_lprealintrealint,
    pub bfp_status: *mut BFPint_lp,
    pub bfp_nonzeros: *mut BFPint_lpbool,
    pub bfp_implicitslack: *mut BFPbool_lp,
    pub bfp_indexbase: *mut BFPint_lp,
    pub bfp_rowoffset: *mut BFPint_lp,
    pub bfp_pivotmax: *mut BFPint_lp,
    pub bfp_pivotalloc: *mut BFPbool_lpint,
    pub bfp_colcount: *mut BFPint_lp,
    pub bfp_canresetbasis: *mut BFPbool_lp,
    pub bfp_efficiency: *mut BFPreal_lp,
    pub bfp_pivotvector: *mut BFPrealp_lp,
    pub bfp_pivotcount: *mut BFPint_lp,
    pub bfp_refactcount: *mut BFPint_lpint,
    pub bfp_isSetI: *mut BFPbool_lp,
    pub bfp_findredundant: *mut BFPint_lpintrealcbintint,
    pub hXLI: *mut libc::c_void,
    pub xli_name: *mut XLIchar,
    pub xli_compatible: *mut XLIbool_lpintintint,
    pub xli_readmodel: *mut XLIbool_lpcharcharcharint,
    pub xli_writemodel: *mut XLIbool_lpcharcharbool,
    pub userabort: *mut userabortfunc,
    pub report: *mut reportfunc,
    pub explain: *mut explainfunc,
    pub get_lpcolumn: *mut getvectorfunc,
    pub get_basiscolumn: *mut getpackedfunc,
    pub get_OF_active: *mut get_OF_activefunc,
    pub getMDO: *mut getMDOfunc,
    pub invert: *mut invertfunc,
    pub set_action: *mut set_actionfunc,
    pub is_action: *mut is_actionfunc,
    pub clear_action: *mut clear_actionfunc,
    pub ctrlc: *mut lphandle_intfunc,
    pub ctrlchandle: *mut libc::c_void,
    pub writelog: *mut lphandlestr_func,
    pub loghandle: *mut libc::c_void,
    pub debuginfo: *mut lphandlestr_func,
    pub usermessage: *mut lphandleint_func,
    pub msgmask: libc::c_int,
    pub msghandle: *mut libc::c_void,
    pub bb_usenode: *mut lphandleint_intfunc,
    pub bb_nodehandle: *mut libc::c_void,
    pub bb_usebranch: *mut lphandleint_intfunc,
    pub bb_branchhandle: *mut libc::c_void,
    pub rowcol_name: *mut libc::c_char,
}
impl ::core::clone::Clone for Struct__lprec {
    fn clone(&self) -> Self { *self }
}
impl ::core::default::Default for Struct__lprec {
    fn default() -> Self { unsafe { ::core::mem::zeroed() } }
}
#[cfg(not(windows))]
pub type read_modeldata_func =
    unsafe extern "C" fn(userhandle: *mut libc::c_void,
                         buf: *mut libc::c_char,
                         max_size: libc::c_int)
        -> libc::c_int;
#[cfg(not(windows))]
pub type write_modeldata_func =
    unsafe extern "C" fn(userhandle: *mut libc::c_void,
                         buf: *mut libc::c_char)
        -> libc::c_int;

#[cfg(windows)]
pub type read_modeldata_func =
    unsafe extern "stdcall" fn(userhandle: *mut libc::c_void,
                         buf: *mut libc::c_char,
                         max_size: libc::c_int)
        -> libc::c_int;
#[cfg(windows)]
pub type write_modeldata_func =
    unsafe extern "stdcall" fn(userhandle: *mut libc::c_void,
                         buf: *mut libc::c_char)
        -> libc::c_int;

#[cfg(not(windows))]
extern "C" {
    pub fn allocCHAR(lp: *mut lprec, ptr: *mut *mut libc::c_char,
                     size: libc::c_int,
                     clear: libc::c_uchar)
     -> libc::c_uchar;
    pub fn allocMYBOOL(lp: *mut lprec, ptr: *mut *mut libc::c_uchar,
                       size: libc::c_int,
                       clear: libc::c_uchar)
     -> libc::c_uchar;
    pub fn allocINT(lp: *mut lprec, ptr: *mut *mut libc::c_int,
                    size: libc::c_int,
                    clear: libc::c_uchar)
     -> libc::c_uchar;
    pub fn allocREAL(lp: *mut lprec, ptr: *mut *mut libc::c_double,
                     size: libc::c_int,
                     clear: libc::c_uchar)
     -> libc::c_uchar;
    pub fn allocLREAL(lp: *mut lprec, ptr: *mut *mut libc::c_double,
                      size: libc::c_int,
                      clear: libc::c_uchar)
     -> libc::c_uchar;
    pub fn allocFREE(lp: *mut lprec, ptr: *mut *mut libc::c_void)
     -> libc::c_uchar;
    pub fn cloneREAL(lp: *mut lprec, origlist: *mut libc::c_double,
                     size: libc::c_int)
     -> *mut libc::c_double;
    pub fn cloneMYBOOL(lp: *mut lprec, origlist: *mut libc::c_uchar,
                       size: libc::c_int)
     -> *mut libc::c_uchar;
    pub fn cloneINT(lp: *mut lprec, origlist: *mut libc::c_int,
                    size: libc::c_int)
     -> *mut libc::c_int;
    pub fn comp_bits(bitarray1: *mut libc::c_uchar,
                     bitarray2: *mut libc::c_uchar,
                     items: libc::c_int) -> libc::c_int;
    pub fn mempool_create(lp: *mut lprec) -> *mut workarraysrec;
    pub fn mempool_obtainVector(mempool: *mut workarraysrec,
                                count: libc::c_int,
                                unitsize: libc::c_int)
     -> *mut libc::c_char;
    pub fn mempool_releaseVector(mempool: *mut workarraysrec,
                                 memvector: *mut libc::c_char,
                                 forcefree: libc::c_uchar)
     -> libc::c_uchar;
    pub fn mempool_free(mempool: *mut *mut workarraysrec)
     -> libc::c_uchar;
    pub fn roundVector(myvector: *mut libc::c_double,
                       endpos: libc::c_int,
                       roundzero: libc::c_double);
    pub fn normalizeVector(myvector: *mut libc::c_double,
                           endpos: libc::c_int)
     -> libc::c_double;
    pub fn swapINT(item1: *mut libc::c_int,
                   item2: *mut libc::c_int);
    pub fn swapREAL(item1: *mut libc::c_double,
                    item2: *mut libc::c_double);
    pub fn swapPTR(item1: *mut *mut libc::c_void,
                   item2: *mut *mut libc::c_void);
    pub fn restoreINT(valREAL: libc::c_double,
                      epsilon: libc::c_double)
     -> libc::c_double;
    pub fn roundToPrecision(value: libc::c_double,
                            precision: libc::c_double)
     -> libc::c_double;
    pub fn searchFor(target: libc::c_int,
                     attributes: *mut libc::c_int,
                     size: libc::c_int,
                     offset: libc::c_int,
                     absolute: libc::c_uchar)
     -> libc::c_int;
    pub fn isINT(lp: *mut lprec, value: libc::c_double)
     -> libc::c_uchar;
    pub fn isOrigFixed(lp: *mut lprec, varno: libc::c_int)
     -> libc::c_uchar;
    pub fn chsign_bounds(lobound: *mut libc::c_double,
                         upbound: *mut libc::c_double);
    pub fn rand_uniform(lp: *mut lprec, range: libc::c_double)
     -> libc::c_double;
    pub fn createLink(size: libc::c_int, linkmap: *mut *mut LLrec,
                      usedpos: *mut libc::c_uchar)
     -> libc::c_int;
    pub fn freeLink(linkmap: *mut *mut LLrec) -> libc::c_uchar;
    pub fn sizeLink(linkmap: *mut LLrec) -> libc::c_int;
    pub fn isActiveLink(linkmap: *mut LLrec, itemnr: libc::c_int)
     -> libc::c_uchar;
    pub fn countActiveLink(linkmap: *mut LLrec) -> libc::c_int;
    pub fn countInactiveLink(linkmap: *mut LLrec) -> libc::c_int;
    pub fn firstActiveLink(linkmap: *mut LLrec) -> libc::c_int;
    pub fn lastActiveLink(linkmap: *mut LLrec) -> libc::c_int;
    pub fn appendLink(linkmap: *mut LLrec, newitem: libc::c_int)
     -> libc::c_uchar;
    pub fn insertLink(linkmap: *mut LLrec, afteritem: libc::c_int,
                      newitem: libc::c_int)
     -> libc::c_uchar;
    pub fn setLink(linkmap: *mut LLrec, newitem: libc::c_int)
     -> libc::c_uchar;
    pub fn fillLink(linkmap: *mut LLrec) -> libc::c_uchar;
    pub fn nextActiveLink(linkmap: *mut LLrec,
                          backitemnr: libc::c_int)
     -> libc::c_int;
    pub fn prevActiveLink(linkmap: *mut LLrec,
                          forwitemnr: libc::c_int)
     -> libc::c_int;
    pub fn firstInactiveLink(linkmap: *mut LLrec) -> libc::c_int;
    pub fn lastInactiveLink(linkmap: *mut LLrec) -> libc::c_int;
    pub fn nextInactiveLink(linkmap: *mut LLrec,
                            backitemnr: libc::c_int)
     -> libc::c_int;
    pub fn prevInactiveLink(linkmap: *mut LLrec,
                            forwitemnr: libc::c_int)
     -> libc::c_int;
    pub fn removeLink(linkmap: *mut LLrec, itemnr: libc::c_int)
     -> libc::c_int;
    pub fn cloneLink(sourcemap: *mut LLrec, newsize: libc::c_int,
                     freesource: libc::c_uchar) -> *mut LLrec;
    pub fn compareLink(linkmap1: *mut LLrec, linkmap2: *mut LLrec)
     -> libc::c_int;
    pub fn verifyLink(linkmap: *mut LLrec, itemnr: libc::c_int,
                      doappend: libc::c_uchar)
     -> libc::c_uchar;
    pub fn createPackedVector(size: libc::c_int,
                              values: *mut libc::c_double,
                              workvector: *mut libc::c_int)
     -> *mut PVrec;
    pub fn pushPackedVector(PV: *mut PVrec, parent: *mut PVrec);
    pub fn unpackPackedVector(PV: *mut PVrec,
                              target: *mut *mut libc::c_double)
     -> libc::c_uchar;
    pub fn getvaluePackedVector(PV: *mut PVrec, index: libc::c_int)
     -> libc::c_double;
    pub fn popPackedVector(PV: *mut PVrec) -> *mut PVrec;
    pub fn freePackedVector(PV: *mut *mut PVrec) -> libc::c_uchar;
    pub fn create_hash_table(size: libc::c_int,
                             base: libc::c_int) -> *mut hashtable;
    pub fn free_hash_table(ht: *mut hashtable);
    pub fn findhash(name: *const libc::c_char, ht: *mut hashtable)
     -> *mut hashelem;
    pub fn puthash(name: *const libc::c_char,
                   index: libc::c_int, list: *mut *mut hashelem,
                   ht: *mut hashtable) -> *mut hashelem;
    pub fn drophash(name: *const libc::c_char,
                    list: *mut *mut hashelem, ht: *mut hashtable);
    pub fn free_hash_item(hp: *mut *mut hashelem);
    pub fn copy_hash_table(ht: *mut hashtable, list: *mut *mut hashelem,
                           newsize: libc::c_int) -> *mut hashtable;
    pub fn find_var(lp: *mut lprec, name: *mut libc::c_char,
                    verbose: libc::c_uchar)
     -> libc::c_int;
    pub fn find_row(lp: *mut lprec, name: *mut libc::c_char,
                    Unconstrained_rows_found: libc::c_uchar)
     -> libc::c_int;
    pub fn mat_create(lp: *mut lprec, rows: libc::c_int,
                      columns: libc::c_int,
                      epsvalue: libc::c_double) -> *mut MATrec;
    pub fn mat_memopt(mat: *mut MATrec, rowextra: libc::c_int,
                      colextra: libc::c_int,
                      nzextra: libc::c_int)
     -> libc::c_uchar;
    pub fn mat_free(matrix: *mut *mut MATrec);
    pub fn inc_matrow_space(mat: *mut MATrec,
                            deltarows: libc::c_int)
     -> libc::c_uchar;
    pub fn mat_mapreplace(mat: *mut MATrec, rowmap: *mut LLrec,
                          colmap: *mut LLrec, insmat: *mut MATrec)
     -> libc::c_int;
    pub fn mat_matinsert(mat: *mut MATrec, insmat: *mut MATrec)
     -> libc::c_int;
    pub fn mat_zerocompact(mat: *mut MATrec) -> libc::c_int;
    pub fn mat_rowcompact(mat: *mut MATrec, dozeros: libc::c_uchar)
     -> libc::c_int;
    pub fn mat_colcompact(mat: *mut MATrec, prev_rows: libc::c_int,
                          prev_cols: libc::c_int)
     -> libc::c_int;
    pub fn inc_matcol_space(mat: *mut MATrec,
                            deltacols: libc::c_int)
     -> libc::c_uchar;
    pub fn inc_mat_space(mat: *mut MATrec, mindelta: libc::c_int)
     -> libc::c_uchar;
    pub fn mat_shiftrows(mat: *mut MATrec, bbase: *mut libc::c_int,
                         delta: libc::c_int, varmap: *mut LLrec)
     -> libc::c_int;
    pub fn mat_shiftcols(mat: *mut MATrec, bbase: *mut libc::c_int,
                         delta: libc::c_int, varmap: *mut LLrec)
     -> libc::c_int;
    pub fn mat_extractmat(mat: *mut MATrec, rowmap: *mut LLrec,
                          colmap: *mut LLrec,
                          negated: libc::c_uchar) -> *mut MATrec;
    pub fn mat_appendrow(mat: *mut MATrec, count: libc::c_int,
                         row: *mut libc::c_double,
                         colno: *mut libc::c_int,
                         mult: libc::c_double,
                         checkrowmode: libc::c_uchar)
     -> libc::c_int;
    pub fn mat_appendcol(mat: *mut MATrec, count: libc::c_int,
                         column: *mut libc::c_double,
                         rowno: *mut libc::c_int,
                         mult: libc::c_double,
                         checkrowmode: libc::c_uchar)
     -> libc::c_int;
    pub fn mat_get_data(lp: *mut lprec, matindex: libc::c_int,
                        isrow: libc::c_uchar,
                        rownr: *mut *mut libc::c_int,
                        colnr: *mut *mut libc::c_int,
                        value: *mut *mut libc::c_double)
     -> libc::c_uchar;
    pub fn mat_set_rowmap(mat: *mut MATrec,
                          row_mat_index: libc::c_int,
                          rownr: libc::c_int,
                          colnr: libc::c_int,
                          col_mat_index: libc::c_int)
     -> libc::c_uchar;
    pub fn mat_indexrange(mat: *mut MATrec, index: libc::c_int,
                          isrow: libc::c_uchar,
                          startpos: *mut libc::c_int,
                          endpos: *mut libc::c_int)
     -> libc::c_uchar;
    pub fn mat_validate(mat: *mut MATrec) -> libc::c_uchar;
    pub fn mat_equalRows(mat: *mut MATrec, baserow: libc::c_int,
                         comprow: libc::c_int)
     -> libc::c_uchar;
    pub fn mat_findelm(mat: *mut MATrec, row: libc::c_int,
                       column: libc::c_int)
     -> libc::c_int;
    pub fn mat_findins(mat: *mut MATrec, row: libc::c_int,
                       column: libc::c_int,
                       insertpos: *mut libc::c_int,
                       validate: libc::c_uchar)
     -> libc::c_int;
    pub fn mat_multcol(mat: *mut MATrec, col_nr: libc::c_int,
                       mult: libc::c_double,
                       DoObj: libc::c_uchar);
    pub fn mat_getitem(mat: *mut MATrec, row: libc::c_int,
                       column: libc::c_int)
     -> libc::c_double;
    pub fn mat_setitem(mat: *mut MATrec, row: libc::c_int,
                       column: libc::c_int,
                       value: libc::c_double)
     -> libc::c_uchar;
    pub fn mat_additem(mat: *mut MATrec, row: libc::c_int,
                       column: libc::c_int,
                       delta: libc::c_double)
     -> libc::c_uchar;
    pub fn mat_setvalue(mat: *mut MATrec, Row: libc::c_int,
                        Column: libc::c_int,
                        Value: libc::c_double,
                        doscale: libc::c_uchar)
     -> libc::c_uchar;
    pub fn mat_nonzeros(mat: *mut MATrec) -> libc::c_int;
    pub fn mat_collength(mat: *mut MATrec, colnr: libc::c_int)
     -> libc::c_int;
    pub fn mat_rowlength(mat: *mut MATrec, rownr: libc::c_int)
     -> libc::c_int;
    pub fn mat_multrow(mat: *mut MATrec, row_nr: libc::c_int,
                       mult: libc::c_double);
    pub fn mat_multadd(mat: *mut MATrec,
                       lhsvector: *mut libc::c_double,
                       varnr: libc::c_int,
                       mult: libc::c_double);
    pub fn mat_setrow(mat: *mut MATrec, rowno: libc::c_int,
                      count: libc::c_int,
                      row: *mut libc::c_double,
                      colno: *mut libc::c_int,
                      doscale: libc::c_uchar,
                      checkrowmode: libc::c_uchar)
     -> libc::c_uchar;
    pub fn mat_setcol(mat: *mut MATrec, colno: libc::c_int,
                      count: libc::c_int,
                      column: *mut libc::c_double,
                      rowno: *mut libc::c_int,
                      doscale: libc::c_uchar,
                      checkrowmode: libc::c_uchar)
     -> libc::c_uchar;
    pub fn mat_mergemat(target: *mut MATrec, source: *mut MATrec,
                        usecolmap: libc::c_uchar)
     -> libc::c_uchar;
    pub fn mat_checkcounts(mat: *mut MATrec,
                           rownum: *mut libc::c_int,
                           colnum: *mut libc::c_int,
                           freeonexit: libc::c_uchar)
     -> libc::c_int;
    pub fn mat_expandcolumn(mat: *mut MATrec, colnr: libc::c_int,
                            column: *mut libc::c_double,
                            nzlist: *mut libc::c_int,
                            signedA: libc::c_uchar)
     -> libc::c_int;
    pub fn mat_computemax(mat: *mut MATrec) -> libc::c_uchar;
    pub fn mat_transpose(mat: *mut MATrec) -> libc::c_uchar;
    pub fn invert(lp: *mut lprec, shiftbounds: libc::c_uchar,
                  _final: libc::c_uchar) -> libc::c_uchar;
    pub fn vec_compress(densevector: *mut libc::c_double,
                        startpos: libc::c_int,
                        endpos: libc::c_int,
                        epsilon: libc::c_double,
                        nzvector: *mut libc::c_double,
                        nzindex: *mut libc::c_int)
     -> libc::c_uchar;
    pub fn vec_expand(nzvector: *mut libc::c_double,
                      nzindex: *mut libc::c_int,
                      densevector: *mut libc::c_double,
                      startpos: libc::c_int,
                      endpos: libc::c_int)
     -> libc::c_uchar;
    pub fn get_colIndexA(lp: *mut lprec, varset: libc::c_int,
                         colindex: *mut libc::c_int,
                         append: libc::c_uchar)
     -> libc::c_uchar;
    pub fn prod_Ax(lp: *mut lprec, coltarget: *mut libc::c_int,
                   input: *mut libc::c_double,
                   nzinput: *mut libc::c_int,
                   roundzero: libc::c_double,
                   ofscalar: libc::c_double,
                   output: *mut libc::c_double,
                   nzoutput: *mut libc::c_int,
                   roundmode: libc::c_int) -> libc::c_int;
    pub fn prod_xA(lp: *mut lprec, coltarget: *mut libc::c_int,
                   input: *mut libc::c_double,
                   nzinput: *mut libc::c_int,
                   roundzero: libc::c_double,
                   ofscalar: libc::c_double,
                   output: *mut libc::c_double,
                   nzoutput: *mut libc::c_int,
                   roundmode: libc::c_int) -> libc::c_int;
    pub fn prod_xA2(lp: *mut lprec, coltarget: *mut libc::c_int,
                    prow: *mut libc::c_double,
                    proundzero: libc::c_double,
                    pnzprow: *mut libc::c_int,
                    drow: *mut libc::c_double,
                    droundzero: libc::c_double,
                    dnzdrow: *mut libc::c_int,
                    ofscalar: libc::c_double,
                    roundmode: libc::c_int)
     -> libc::c_uchar;
    pub fn fimprove(lp: *mut lprec, pcol: *mut libc::c_double,
                    nzidx: *mut libc::c_int,
                    roundzero: libc::c_double)
     -> libc::c_uchar;
    pub fn ftran(lp: *mut lprec, rhsvector: *mut libc::c_double,
                 nzidx: *mut libc::c_int,
                 roundzero: libc::c_double);
    pub fn bimprove(lp: *mut lprec, rhsvector: *mut libc::c_double,
                    nzidx: *mut libc::c_int,
                    roundzero: libc::c_double)
     -> libc::c_uchar;
    pub fn btran(lp: *mut lprec, rhsvector: *mut libc::c_double,
                 nzidx: *mut libc::c_int,
                 roundzero: libc::c_double);
    pub fn fsolve(lp: *mut lprec, varin: libc::c_int,
                  pcol: *mut libc::c_double,
                  nzidx: *mut libc::c_int,
                  roundzero: libc::c_double,
                  ofscalar: libc::c_double,
                  prepareupdate: libc::c_uchar)
     -> libc::c_uchar;
    pub fn bsolve(lp: *mut lprec, row_nr: libc::c_int,
                  rhsvector: *mut libc::c_double,
                  nzidx: *mut libc::c_int,
                  roundzero: libc::c_double,
                  ofscalar: libc::c_double)
     -> libc::c_uchar;
    pub fn bsolve_xA2(lp: *mut lprec, coltarget: *mut libc::c_int,
                      row_nr1: libc::c_int,
                      vector1: *mut libc::c_double,
                      roundzero1: libc::c_double,
                      nzvector1: *mut libc::c_int,
                      row_nr2: libc::c_int,
                      vector2: *mut libc::c_double,
                      roundzero2: libc::c_double,
                      nzvector2: *mut libc::c_int,
                      roundmode: libc::c_int);
    pub fn createUndoLadder(lp: *mut lprec, levelitems: libc::c_int,
                            maxlevels: libc::c_int)
     -> *mut DeltaVrec;
    pub fn incrementUndoLadder(DV: *mut DeltaVrec) -> libc::c_int;
    pub fn modifyUndoLadder(DV: *mut DeltaVrec, itemno: libc::c_int,
                            target: *mut libc::c_double,
                            newvalue: libc::c_double)
     -> libc::c_uchar;
    pub fn countsUndoLadder(DV: *mut DeltaVrec) -> libc::c_int;
    pub fn restoreUndoLadder(DV: *mut DeltaVrec,
                             target: *mut libc::c_double)
     -> libc::c_int;
    pub fn decrementUndoLadder(DV: *mut DeltaVrec) -> libc::c_int;
    pub fn freeUndoLadder(DV: *mut *mut DeltaVrec) -> libc::c_uchar;
    pub fn appendUndoPresolve(lp: *mut lprec,
                              isprimal: libc::c_uchar,
                              beta: libc::c_double,
                              colnrDep: libc::c_int)
     -> libc::c_uchar;
    pub fn addUndoPresolve(lp: *mut lprec, isprimal: libc::c_uchar,
                           colnrElim: libc::c_int,
                           alpha: libc::c_double,
                           beta: libc::c_double,
                           colnrDep: libc::c_int)
     -> libc::c_uchar;
    pub fn create_BB(lp: *mut lprec, parentBB: *mut BBrec,
                     dofullcopy: libc::c_uchar) -> *mut BBrec;
    pub fn push_BB(lp: *mut lprec, parentBB: *mut BBrec,
                   varno: libc::c_int,
                   vartype: libc::c_int,
                   varcus: libc::c_int) -> *mut BBrec;
    pub fn initbranches_BB(BB: *mut BBrec) -> libc::c_uchar;
    pub fn fillbranches_BB(BB: *mut BBrec) -> libc::c_uchar;
    pub fn nextbranch_BB(BB: *mut BBrec) -> libc::c_uchar;
    pub fn strongbranch_BB(lp: *mut lprec, BB: *mut BBrec,
                           varno: libc::c_int,
                           vartype: libc::c_int,
                           varcus: libc::c_int)
     -> libc::c_uchar;
    pub fn initcuts_BB(lp: *mut lprec) -> libc::c_uchar;
    pub fn updatecuts_BB(lp: *mut lprec) -> libc::c_int;
    pub fn freecuts_BB(lp: *mut lprec) -> libc::c_uchar;
    pub fn findself_BB(BB: *mut BBrec) -> *mut BBrec;
    pub fn solve_LP(lp: *mut lprec, BB: *mut BBrec) -> libc::c_int;
    pub fn rcfbound_BB(BB: *mut BBrec, varno: libc::c_int,
                       isINT: libc::c_uchar,
                       newbound: *mut libc::c_double,
                       isfeasible: *mut libc::c_uchar)
     -> libc::c_int;
    pub fn findnode_BB(BB: *mut BBrec, varno: *mut libc::c_int,
                       vartype: *mut libc::c_int,
                       varcus: *mut libc::c_int)
     -> libc::c_uchar;
    pub fn solve_BB(BB: *mut BBrec) -> libc::c_int;
    pub fn free_BB(BB: *mut *mut BBrec) -> libc::c_uchar;
    pub fn pop_BB(BB: *mut BBrec) -> *mut BBrec;
    pub fn run_BB(lp: *mut lprec) -> libc::c_int;
    pub fn create_SOSgroup(lp: *mut lprec) -> *mut SOSgroup;
    pub fn resize_SOSgroup(group: *mut SOSgroup);
    pub fn append_SOSgroup(group: *mut SOSgroup, SOS: *mut SOSrec)
     -> libc::c_int;
    pub fn clean_SOSgroup(group: *mut SOSgroup,
                          forceupdatemap: libc::c_uchar)
     -> libc::c_int;
    pub fn free_SOSgroup(group: *mut *mut SOSgroup);
    pub fn create_SOSrec(group: *mut SOSgroup,
                         name: *mut libc::c_char,
                         _type: libc::c_int,
                         priority: libc::c_int,
                         size: libc::c_int,
                         variables: *mut libc::c_int,
                         weights: *mut libc::c_double)
     -> *mut SOSrec;
    pub fn delete_SOSrec(group: *mut SOSgroup,
                         sosindex: libc::c_int)
     -> libc::c_uchar;
    pub fn append_SOSrec(SOS: *mut SOSrec, size: libc::c_int,
                         variables: *mut libc::c_int,
                         weights: *mut libc::c_double)
     -> libc::c_int;
    pub fn free_SOSrec(SOS: *mut SOSrec);
    pub fn make_SOSchain(lp: *mut lprec, forceresort: libc::c_uchar)
     -> libc::c_int;
    pub fn SOS_member_updatemap(group: *mut SOSgroup)
     -> libc::c_int;
    pub fn SOS_member_sortlist(group: *mut SOSgroup,
                               sosindex: libc::c_int)
     -> libc::c_uchar;
    pub fn SOS_shift_col(group: *mut SOSgroup,
                         sosindex: libc::c_int,
                         column: libc::c_int,
                         delta: libc::c_int, usedmap: *mut LLrec,
                         forceresort: libc::c_uchar)
     -> libc::c_uchar;
    pub fn SOS_member_delete(group: *mut SOSgroup,
                             sosindex: libc::c_int,
                             member: libc::c_int)
     -> libc::c_int;
    pub fn SOS_get_type(group: *mut SOSgroup, sosindex: libc::c_int)
     -> libc::c_int;
    pub fn SOS_infeasible(group: *mut SOSgroup,
                          sosindex: libc::c_int)
     -> libc::c_int;
    pub fn SOS_member_index(group: *mut SOSgroup,
                            sosindex: libc::c_int,
                            member: libc::c_int)
     -> libc::c_int;
    pub fn SOS_member_count(group: *mut SOSgroup,
                            sosindex: libc::c_int)
     -> libc::c_int;
    pub fn SOS_memberships(group: *mut SOSgroup,
                           column: libc::c_int)
     -> libc::c_int;
    pub fn SOS_get_candidates(group: *mut SOSgroup,
                              sosindex: libc::c_int,
                              column: libc::c_int,
                              excludetarget: libc::c_uchar,
                              upbound: *mut libc::c_double,
                              lobound: *mut libc::c_double)
     -> *mut libc::c_int;
    pub fn SOS_is_member(group: *mut SOSgroup,
                         sosindex: libc::c_int,
                         column: libc::c_int)
     -> libc::c_int;
    pub fn SOS_is_member_of_type(group: *mut SOSgroup,
                                 column: libc::c_int,
                                 sostype: libc::c_int)
     -> libc::c_uchar;
    pub fn SOS_set_GUB(group: *mut SOSgroup, sosindex: libc::c_int,
                       state: libc::c_uchar)
     -> libc::c_uchar;
    pub fn SOS_is_GUB(group: *mut SOSgroup, sosindex: libc::c_int)
     -> libc::c_uchar;
    pub fn SOS_is_marked(group: *mut SOSgroup,
                         sosindex: libc::c_int,
                         column: libc::c_int)
     -> libc::c_uchar;
    pub fn SOS_is_active(group: *mut SOSgroup,
                         sosindex: libc::c_int,
                         column: libc::c_int)
     -> libc::c_uchar;
    pub fn SOS_is_full(group: *mut SOSgroup, sosindex: libc::c_int,
                       column: libc::c_int,
                       activeonly: libc::c_uchar)
     -> libc::c_uchar;
    pub fn SOS_can_activate(group: *mut SOSgroup,
                            sosindex: libc::c_int,
                            column: libc::c_int)
     -> libc::c_uchar;
    pub fn SOS_set_marked(group: *mut SOSgroup,
                          sosindex: libc::c_int,
                          column: libc::c_int,
                          asactive: libc::c_uchar)
     -> libc::c_uchar;
    pub fn SOS_unmark(group: *mut SOSgroup, sosindex: libc::c_int,
                      column: libc::c_int)
     -> libc::c_uchar;
    pub fn SOS_fix_unmarked(group: *mut SOSgroup,
                            sosindex: libc::c_int,
                            variable: libc::c_int,
                            bound: *mut libc::c_double,
                            value: libc::c_double,
                            isupper: libc::c_uchar,
                            diffcount: *mut libc::c_int,
                            changelog: *mut DeltaVrec)
     -> libc::c_int;
    pub fn SOS_fix_list(group: *mut SOSgroup, sosindex: libc::c_int,
                        variable: libc::c_int,
                        bound: *mut libc::c_double,
                        varlist: *mut libc::c_int,
                        isleft: libc::c_uchar,
                        changelog: *mut DeltaVrec) -> libc::c_int;
    pub fn SOS_is_satisfied(group: *mut SOSgroup,
                            sosindex: libc::c_int,
                            solution: *mut libc::c_double)
     -> libc::c_int;
    pub fn SOS_is_feasible(group: *mut SOSgroup,
                           sosindex: libc::c_int,
                           solution: *mut libc::c_double)
     -> libc::c_uchar;
    pub fn lp_solve_version(majorversion: *mut libc::c_int,
                            minorversion: *mut libc::c_int,
                            release: *mut libc::c_int,
                            build: *mut libc::c_int);
    pub fn make_lp(rows: libc::c_int,
                   columns: libc::c_int) -> *mut lprec;
    pub fn resize_lp(lp: *mut lprec, rows: libc::c_int,
                     columns: libc::c_int)
     -> libc::c_uchar;
    pub fn get_status(lp: *mut lprec) -> libc::c_int;
    pub fn get_statustext(lp: *mut lprec, statuscode: libc::c_int)
     -> *mut libc::c_char;
    pub fn is_obj_in_basis(lp: *mut lprec) -> libc::c_uchar;
    pub fn set_obj_in_basis(lp: *mut lprec,
                            obj_in_basis: libc::c_uchar);
    pub fn copy_lp(lp: *mut lprec) -> *mut lprec;
    pub fn dualize_lp(lp: *mut lprec) -> libc::c_uchar;
    pub fn memopt_lp(lp: *mut lprec, rowextra: libc::c_int,
                     colextra: libc::c_int,
                     nzextra: libc::c_int)
     -> libc::c_uchar;
    pub fn delete_lp(lp: *mut lprec);
    pub fn free_lp(plp: *mut *mut lprec);
    pub fn set_lp_name(lp: *mut lprec, lpname: *mut libc::c_char)
     -> libc::c_uchar;
    pub fn get_lp_name(lp: *mut lprec) -> *mut libc::c_char;
    pub fn has_BFP(lp: *mut lprec) -> libc::c_uchar;
    pub fn is_nativeBFP(lp: *mut lprec) -> libc::c_uchar;
    pub fn set_BFP(lp: *mut lprec, filename: *mut libc::c_char)
     -> libc::c_uchar;
    pub fn read_XLI(xliname: *mut libc::c_char,
                    modelname: *mut libc::c_char,
                    dataname: *mut libc::c_char,
                    options: *mut libc::c_char,
                    verbose: libc::c_int) -> *mut lprec;
    pub fn write_XLI(lp: *mut lprec, filename: *mut libc::c_char,
                     options: *mut libc::c_char,
                     results: libc::c_uchar)
     -> libc::c_uchar;
    pub fn has_XLI(lp: *mut lprec) -> libc::c_uchar;
    pub fn is_nativeXLI(lp: *mut lprec) -> libc::c_uchar;
    pub fn set_XLI(lp: *mut lprec, filename: *mut libc::c_char)
     -> libc::c_uchar;
    pub fn set_obj(lp: *mut lprec, colnr: libc::c_int,
                   value: libc::c_double)
     -> libc::c_uchar;
    pub fn set_obj_fn(lp: *mut lprec, row: *mut libc::c_double)
     -> libc::c_uchar;
    pub fn set_obj_fnex(lp: *mut lprec, count: libc::c_int,
                        row: *mut libc::c_double,
                        colno: *mut libc::c_int)
     -> libc::c_uchar;
    pub fn str_set_obj_fn(lp: *mut lprec,
                          row_string: *mut libc::c_char)
     -> libc::c_uchar;
    pub fn set_sense(lp: *mut lprec, maximize: libc::c_uchar);
    pub fn set_maxim(lp: *mut lprec);
    pub fn set_minim(lp: *mut lprec);
    pub fn is_maxim(lp: *mut lprec) -> libc::c_uchar;
    pub fn add_constraint(lp: *mut lprec, row: *mut libc::c_double,
                          constr_type: libc::c_int,
                          rh: libc::c_double)
     -> libc::c_uchar;
    pub fn add_constraintex(lp: *mut lprec, count: libc::c_int,
                            row: *mut libc::c_double,
                            colno: *mut libc::c_int,
                            constr_type: libc::c_int,
                            rh: libc::c_double)
     -> libc::c_uchar;
    pub fn set_add_rowmode(lp: *mut lprec, turnon: libc::c_uchar)
     -> libc::c_uchar;
    pub fn is_add_rowmode(lp: *mut lprec) -> libc::c_uchar;
    pub fn str_add_constraint(lp: *mut lprec,
                              row_string: *mut libc::c_char,
                              constr_type: libc::c_int,
                              rh: libc::c_double)
     -> libc::c_uchar;
    pub fn set_row(lp: *mut lprec, rownr: libc::c_int,
                   row: *mut libc::c_double)
     -> libc::c_uchar;
    pub fn set_rowex(lp: *mut lprec, rownr: libc::c_int,
                     count: libc::c_int,
                     row: *mut libc::c_double,
                     colno: *mut libc::c_int)
     -> libc::c_uchar;
    pub fn get_row(lp: *mut lprec, rownr: libc::c_int,
                   row: *mut libc::c_double)
     -> libc::c_uchar;
    pub fn get_rowex(lp: *mut lprec, rownr: libc::c_int,
                     row: *mut libc::c_double,
                     colno: *mut libc::c_int)
     -> libc::c_int;
    pub fn del_constraint(lp: *mut lprec, rownr: libc::c_int)
     -> libc::c_uchar;
    pub fn del_constraintex(lp: *mut lprec, rowmap: *mut LLrec)
     -> libc::c_uchar;
    pub fn add_lag_con(lp: *mut lprec, row: *mut libc::c_double,
                       con_type: libc::c_int,
                       rhs: libc::c_double)
     -> libc::c_uchar;
    pub fn str_add_lag_con(lp: *mut lprec,
                           row_string: *mut libc::c_char,
                           con_type: libc::c_int,
                           rhs: libc::c_double)
     -> libc::c_uchar;
    pub fn set_lag_trace(lp: *mut lprec, lag_trace: libc::c_uchar);
    pub fn is_lag_trace(lp: *mut lprec) -> libc::c_uchar;
    pub fn set_constr_type(lp: *mut lprec, rownr: libc::c_int,
                           con_type: libc::c_int)
     -> libc::c_uchar;
    pub fn get_constr_type(lp: *mut lprec, rownr: libc::c_int)
     -> libc::c_int;
    pub fn get_constr_value(lp: *mut lprec, rownr: libc::c_int,
                            count: libc::c_int,
                            primsolution: *mut libc::c_double,
                            nzindex: *mut libc::c_int)
     -> libc::c_double;
    pub fn is_constr_type(lp: *mut lprec, rownr: libc::c_int,
                          mask: libc::c_int)
     -> libc::c_uchar;
    pub fn get_str_constr_type(lp: *mut lprec,
                               con_type: libc::c_int)
     -> *mut libc::c_char;
    pub fn get_constr_class(lp: *mut lprec, rownr: libc::c_int)
     -> libc::c_int;
    pub fn get_str_constr_class(lp: *mut lprec,
                                con_class: libc::c_int)
     -> *mut libc::c_char;
    pub fn set_rh(lp: *mut lprec, rownr: libc::c_int,
                  value: libc::c_double) -> libc::c_uchar;
    pub fn get_rh(lp: *mut lprec, rownr: libc::c_int)
     -> libc::c_double;
    pub fn set_rh_range(lp: *mut lprec, rownr: libc::c_int,
                        deltavalue: libc::c_double)
     -> libc::c_uchar;
    pub fn get_rh_range(lp: *mut lprec, rownr: libc::c_int)
     -> libc::c_double;
    pub fn set_rh_vec(lp: *mut lprec, rh: *mut libc::c_double);
    pub fn str_set_rh_vec(lp: *mut lprec,
                          rh_string: *mut libc::c_char)
     -> libc::c_uchar;
    pub fn add_column(lp: *mut lprec, column: *mut libc::c_double)
     -> libc::c_uchar;
    pub fn add_columnex(lp: *mut lprec, count: libc::c_int,
                        column: *mut libc::c_double,
                        rowno: *mut libc::c_int)
     -> libc::c_uchar;
    pub fn str_add_column(lp: *mut lprec,
                          col_string: *mut libc::c_char)
     -> libc::c_uchar;
    pub fn set_column(lp: *mut lprec, colnr: libc::c_int,
                      column: *mut libc::c_double)
     -> libc::c_uchar;
    pub fn set_columnex(lp: *mut lprec, colnr: libc::c_int,
                        count: libc::c_int,
                        column: *mut libc::c_double,
                        rowno: *mut libc::c_int)
     -> libc::c_uchar;
    pub fn column_in_lp(lp: *mut lprec, column: *mut libc::c_double)
     -> libc::c_int;
    pub fn get_columnex(lp: *mut lprec, colnr: libc::c_int,
                        column: *mut libc::c_double,
                        nzrow: *mut libc::c_int)
     -> libc::c_int;
    pub fn get_column(lp: *mut lprec, colnr: libc::c_int,
                      column: *mut libc::c_double)
     -> libc::c_uchar;
    pub fn del_column(lp: *mut lprec, colnr: libc::c_int)
     -> libc::c_uchar;
    pub fn del_columnex(lp: *mut lprec, colmap: *mut LLrec)
     -> libc::c_uchar;
    pub fn set_mat(lp: *mut lprec, rownr: libc::c_int,
                   colnr: libc::c_int,
                   value: libc::c_double)
     -> libc::c_uchar;
    pub fn get_mat(lp: *mut lprec, rownr: libc::c_int,
                   colnr: libc::c_int) -> libc::c_double;
    pub fn get_mat_byindex(lp: *mut lprec, matindex: libc::c_int,
                           isrow: libc::c_uchar,
                           adjustsign: libc::c_uchar)
     -> libc::c_double;
    pub fn get_nonzeros(lp: *mut lprec) -> libc::c_int;
    pub fn set_bounds_tighter(lp: *mut lprec,
                              tighten: libc::c_uchar);
    pub fn get_bounds(lp: *mut lprec, column: libc::c_int,
                      lower: *mut libc::c_double,
                      upper: *mut libc::c_double)
     -> libc::c_uchar;
    pub fn get_bounds_tighter(lp: *mut lprec) -> libc::c_uchar;
    pub fn set_upbo(lp: *mut lprec, colnr: libc::c_int,
                    value: libc::c_double)
     -> libc::c_uchar;
    pub fn get_upbo(lp: *mut lprec, colnr: libc::c_int)
     -> libc::c_double;
    pub fn set_lowbo(lp: *mut lprec, colnr: libc::c_int,
                     value: libc::c_double)
     -> libc::c_uchar;
    pub fn get_lowbo(lp: *mut lprec, colnr: libc::c_int)
     -> libc::c_double;
    pub fn set_bounds(lp: *mut lprec, colnr: libc::c_int,
                      lower: libc::c_double,
                      upper: libc::c_double)
     -> libc::c_uchar;
    pub fn set_unbounded(lp: *mut lprec, colnr: libc::c_int)
     -> libc::c_uchar;
    pub fn is_unbounded(lp: *mut lprec, colnr: libc::c_int)
     -> libc::c_uchar;
    pub fn set_int(lp: *mut lprec, colnr: libc::c_int,
                   must_be_int: libc::c_uchar)
     -> libc::c_uchar;
    pub fn is_int(lp: *mut lprec, colnr: libc::c_int)
     -> libc::c_uchar;
    pub fn set_binary(lp: *mut lprec, colnr: libc::c_int,
                      must_be_bin: libc::c_uchar)
     -> libc::c_uchar;
    pub fn is_binary(lp: *mut lprec, colnr: libc::c_int)
     -> libc::c_uchar;
    pub fn set_semicont(lp: *mut lprec, colnr: libc::c_int,
                        must_be_sc: libc::c_uchar)
     -> libc::c_uchar;
    pub fn is_semicont(lp: *mut lprec, colnr: libc::c_int)
     -> libc::c_uchar;
    pub fn is_negative(lp: *mut lprec, colnr: libc::c_int)
     -> libc::c_uchar;
    pub fn set_var_weights(lp: *mut lprec,
                           weights: *mut libc::c_double)
     -> libc::c_uchar;
    pub fn get_var_priority(lp: *mut lprec, colnr: libc::c_int)
     -> libc::c_int;
    pub fn set_pseudocosts(lp: *mut lprec,
                           clower: *mut libc::c_double,
                           cupper: *mut libc::c_double,
                           updatelimit: *mut libc::c_int)
     -> libc::c_uchar;
    pub fn get_pseudocosts(lp: *mut lprec,
                           clower: *mut libc::c_double,
                           cupper: *mut libc::c_double,
                           updatelimit: *mut libc::c_int)
     -> libc::c_uchar;
    pub fn add_SOS(lp: *mut lprec, name: *mut libc::c_char,
                   sostype: libc::c_int,
                   priority: libc::c_int,
                   count: libc::c_int,
                   sosvars: *mut libc::c_int,
                   weights: *mut libc::c_double)
     -> libc::c_int;
    pub fn is_SOS_var(lp: *mut lprec, colnr: libc::c_int)
     -> libc::c_uchar;
    pub fn set_row_name(lp: *mut lprec, rownr: libc::c_int,
                        new_name: *mut libc::c_char)
     -> libc::c_uchar;
    pub fn get_row_name(lp: *mut lprec, rownr: libc::c_int)
     -> *mut libc::c_char;
    pub fn get_origrow_name(lp: *mut lprec, rownr: libc::c_int)
     -> *mut libc::c_char;
    pub fn set_col_name(lp: *mut lprec, colnr: libc::c_int,
                        new_name: *mut libc::c_char)
     -> libc::c_uchar;
    pub fn get_col_name(lp: *mut lprec, colnr: libc::c_int)
     -> *mut libc::c_char;
    pub fn get_origcol_name(lp: *mut lprec, colnr: libc::c_int)
     -> *mut libc::c_char;
    pub fn unscale(lp: *mut lprec);
    pub fn set_preferdual(lp: *mut lprec, dodual: libc::c_uchar);
    pub fn set_simplextype(lp: *mut lprec,
                           simplextype: libc::c_int);
    pub fn get_simplextype(lp: *mut lprec) -> libc::c_int;
    pub fn default_basis(lp: *mut lprec);
    pub fn set_basiscrash(lp: *mut lprec, mode: libc::c_int);
    pub fn get_basiscrash(lp: *mut lprec) -> libc::c_int;
    pub fn set_basisvar(lp: *mut lprec, basisPos: libc::c_int,
                        enteringCol: libc::c_int)
     -> libc::c_int;
    pub fn set_basis(lp: *mut lprec, bascolumn: *mut libc::c_int,
                     nonbasic: libc::c_uchar)
     -> libc::c_uchar;
    pub fn get_basis(lp: *mut lprec, bascolumn: *mut libc::c_int,
                     nonbasic: libc::c_uchar)
     -> libc::c_uchar;
    pub fn reset_basis(lp: *mut lprec);
    pub fn guess_basis(lp: *mut lprec,
                       guessvector: *mut libc::c_double,
                       basisvector: *mut libc::c_int)
     -> libc::c_uchar;
    pub fn is_feasible(lp: *mut lprec, values: *mut libc::c_double,
                       threshold: libc::c_double)
     -> libc::c_uchar;
    pub fn solve(lp: *mut lprec) -> libc::c_int;
    pub fn time_elapsed(lp: *mut lprec) -> libc::c_double;
    pub fn put_bb_nodefunc(lp: *mut lprec, newnode: lphandleint_intfunc,
                           bbnodehandle: *mut libc::c_void);
    pub fn put_bb_branchfunc(lp: *mut lprec, newbranch: lphandleint_intfunc,
                             bbbranchhandle: *mut libc::c_void);
    pub fn put_abortfunc(lp: *mut lprec, newctrlc: lphandle_intfunc,
                         ctrlchandle: *mut libc::c_void);
    pub fn put_logfunc(lp: *mut lprec, newlog: lphandlestr_func,
                       loghandle: *mut libc::c_void);
    pub fn put_msgfunc(lp: *mut lprec, newmsg: lphandleint_func,
                       msghandle: *mut libc::c_void,
                       mask: libc::c_int);
    pub fn get_primal_solution(lp: *mut lprec,
                               pv: *mut libc::c_double)
     -> libc::c_uchar;
    pub fn get_ptr_primal_solution(lp: *mut lprec,
                                   pv: *mut *mut libc::c_double)
     -> libc::c_uchar;
    pub fn get_dual_solution(lp: *mut lprec,
                             rc: *mut libc::c_double)
     -> libc::c_uchar;
    pub fn get_ptr_dual_solution(lp: *mut lprec,
                                 rc: *mut *mut libc::c_double)
     -> libc::c_uchar;
    pub fn get_lambda(lp: *mut lprec, lambda: *mut libc::c_double)
     -> libc::c_uchar;
    pub fn get_ptr_lambda(lp: *mut lprec,
                          lambda: *mut *mut libc::c_double)
     -> libc::c_uchar;
    pub fn read_MPS(filename: *mut libc::c_char,
                    options: libc::c_int) -> *mut lprec;
    pub fn read_mps(filename: *mut libc::FILE, options: libc::c_int)
     -> *mut lprec;
    pub fn read_freeMPS(filename: *mut libc::c_char,
                        options: libc::c_int) -> *mut lprec;
    pub fn read_freemps(filename: *mut libc::FILE, options: libc::c_int)
     -> *mut lprec;
    pub fn write_mps(lp: *mut lprec, filename: *mut libc::c_char)
     -> libc::c_uchar;
    pub fn write_MPS(lp: *mut lprec, output: *mut libc::FILE)
     -> libc::c_uchar;
    pub fn write_freemps(lp: *mut lprec,
                         filename: *mut libc::c_char)
     -> libc::c_uchar;
    pub fn write_freeMPS(lp: *mut lprec, output: *mut libc::FILE)
     -> libc::c_uchar;
    pub fn write_lp(lp: *mut lprec, filename: *mut libc::c_char)
     -> libc::c_uchar;
    pub fn write_LP(lp: *mut lprec, output: *mut libc::FILE)
     -> libc::c_uchar;
    pub fn LP_readhandle(lp: *mut *mut lprec, filename: *mut libc::FILE,
                         verbose: libc::c_int,
                         lp_name: *mut libc::c_char)
     -> libc::c_uchar;
    pub fn read_lp(filename: *mut libc::FILE, verbose: libc::c_int,
                   lp_name: *mut libc::c_char) -> *mut lprec;
    pub fn read_LP(filename: *mut libc::c_char,
                   verbose: libc::c_int,
                   lp_name: *mut libc::c_char) -> *mut lprec;
    pub fn write_basis(lp: *mut lprec, filename: *mut libc::c_char)
     -> libc::c_uchar;
    pub fn read_basis(lp: *mut lprec, filename: *mut libc::c_char,
                      info: *mut libc::c_char)
     -> libc::c_uchar;
    pub fn write_params(lp: *mut lprec, filename: *mut libc::c_char,
                        options: *mut libc::c_char)
     -> libc::c_uchar;
    pub fn read_params(lp: *mut lprec, filename: *mut libc::c_char,
                       options: *mut libc::c_char)
     -> libc::c_uchar;
    pub fn reset_params(lp: *mut lprec);
    pub fn print_lp(lp: *mut lprec);
    pub fn print_tableau(lp: *mut lprec);
    pub fn print_objective(lp: *mut lprec);
    pub fn print_solution(lp: *mut lprec, columns: libc::c_int);
    pub fn print_constraints(lp: *mut lprec, columns: libc::c_int);
    pub fn print_duals(lp: *mut lprec);
    pub fn print_scales(lp: *mut lprec);
    pub fn print_str(lp: *mut lprec, str: *mut libc::c_char);
    pub fn set_outputstream(lp: *mut lprec, stream: *mut libc::FILE);
    pub fn set_outputfile(lp: *mut lprec,
                          filename: *mut libc::c_char)
     -> libc::c_uchar;
    pub fn set_verbose(lp: *mut lprec, verbose: libc::c_int);
    pub fn get_verbose(lp: *mut lprec) -> libc::c_int;
    pub fn set_timeout(lp: *mut lprec, sectimeout: libc::c_long);
    pub fn get_timeout(lp: *mut lprec) -> libc::c_long;
    pub fn set_print_sol(lp: *mut lprec, print_sol: libc::c_int);
    pub fn get_print_sol(lp: *mut lprec) -> libc::c_int;
    pub fn set_debug(lp: *mut lprec, debug: libc::c_uchar);
    pub fn is_debug(lp: *mut lprec) -> libc::c_uchar;
    pub fn set_trace(lp: *mut lprec, trace: libc::c_uchar);
    pub fn is_trace(lp: *mut lprec) -> libc::c_uchar;
    pub fn print_debugdump(lp: *mut lprec,
                           filename: *mut libc::c_char)
     -> libc::c_uchar;
    pub fn set_anti_degen(lp: *mut lprec, anti_degen: libc::c_int);
    pub fn get_anti_degen(lp: *mut lprec) -> libc::c_int;
    pub fn is_anti_degen(lp: *mut lprec, testmask: libc::c_int)
     -> libc::c_uchar;
    pub fn set_presolve(lp: *mut lprec, presolvemode: libc::c_int,
                        maxloops: libc::c_int);
    pub fn get_presolve(lp: *mut lprec) -> libc::c_int;
    pub fn get_presolveloops(lp: *mut lprec) -> libc::c_int;
    pub fn is_presolve(lp: *mut lprec, testmask: libc::c_int)
     -> libc::c_uchar;
    pub fn get_orig_index(lp: *mut lprec, lp_index: libc::c_int)
     -> libc::c_int;
    pub fn get_lp_index(lp: *mut lprec, orig_index: libc::c_int)
     -> libc::c_int;
    pub fn set_maxpivot(lp: *mut lprec, max_num_inv: libc::c_int);
    pub fn get_maxpivot(lp: *mut lprec) -> libc::c_int;
    pub fn set_obj_bound(lp: *mut lprec, obj_bound: libc::c_double);
    pub fn get_obj_bound(lp: *mut lprec) -> libc::c_double;
    pub fn set_mip_gap(lp: *mut lprec, absolute: libc::c_uchar,
                       mip_gap: libc::c_double);
    pub fn get_mip_gap(lp: *mut lprec, absolute: libc::c_uchar)
     -> libc::c_double;
    pub fn set_bb_rule(lp: *mut lprec, bb_rule: libc::c_int);
    pub fn get_bb_rule(lp: *mut lprec) -> libc::c_int;
    pub fn set_var_branch(lp: *mut lprec, colnr: libc::c_int,
                          branch_mode: libc::c_int)
     -> libc::c_uchar;
    pub fn get_var_branch(lp: *mut lprec, colnr: libc::c_int)
     -> libc::c_int;
    pub fn is_infinite(lp: *mut lprec, value: libc::c_double)
     -> libc::c_uchar;
    pub fn set_infinite(lp: *mut lprec, infinite: libc::c_double);
    pub fn get_infinite(lp: *mut lprec) -> libc::c_double;
    pub fn set_epsint(lp: *mut lprec, epsint: libc::c_double);
    pub fn get_epsint(lp: *mut lprec) -> libc::c_double;
    pub fn set_epsb(lp: *mut lprec, epsb: libc::c_double);
    pub fn get_epsb(lp: *mut lprec) -> libc::c_double;
    pub fn set_epsd(lp: *mut lprec, epsd: libc::c_double);
    pub fn get_epsd(lp: *mut lprec) -> libc::c_double;
    pub fn set_epsel(lp: *mut lprec, epsel: libc::c_double);
    pub fn get_epsel(lp: *mut lprec) -> libc::c_double;
    pub fn set_epslevel(lp: *mut lprec, epslevel: libc::c_int)
     -> libc::c_uchar;
    pub fn set_scaling(lp: *mut lprec, scalemode: libc::c_int);
    pub fn get_scaling(lp: *mut lprec) -> libc::c_int;
    pub fn is_scalemode(lp: *mut lprec, testmask: libc::c_int)
     -> libc::c_uchar;
    pub fn is_scaletype(lp: *mut lprec, scaletype: libc::c_int)
     -> libc::c_uchar;
    pub fn is_integerscaling(lp: *mut lprec) -> libc::c_uchar;
    pub fn set_scalelimit(lp: *mut lprec,
                          scalelimit: libc::c_double);
    pub fn get_scalelimit(lp: *mut lprec) -> libc::c_double;
    pub fn set_improve(lp: *mut lprec, improve: libc::c_int);
    pub fn get_improve(lp: *mut lprec) -> libc::c_int;
    pub fn set_pivoting(lp: *mut lprec, piv_rule: libc::c_int);
    pub fn get_pivoting(lp: *mut lprec) -> libc::c_int;
    pub fn set_partialprice(lp: *mut lprec, blockcount: libc::c_int,
                            blockstart: *mut libc::c_int,
                            isrow: libc::c_uchar)
     -> libc::c_uchar;
    pub fn get_partialprice(lp: *mut lprec,
                            blockcount: *mut libc::c_int,
                            blockstart: *mut libc::c_int,
                            isrow: libc::c_uchar);
    pub fn set_multiprice(lp: *mut lprec,
                          multiblockdiv: libc::c_int)
     -> libc::c_uchar;
    pub fn get_multiprice(lp: *mut lprec, getabssize: libc::c_uchar)
     -> libc::c_int;
    pub fn is_use_names(lp: *mut lprec, isrow: libc::c_uchar)
     -> libc::c_uchar;
    pub fn set_use_names(lp: *mut lprec, isrow: libc::c_uchar,
                         use_names: libc::c_uchar);
    pub fn get_nameindex(lp: *mut lprec, varname: *mut libc::c_char,
                         isrow: libc::c_uchar)
     -> libc::c_int;
    pub fn is_piv_mode(lp: *mut lprec, testmask: libc::c_int)
     -> libc::c_uchar;
    pub fn is_piv_rule(lp: *mut lprec, rule: libc::c_int)
     -> libc::c_uchar;
    pub fn set_break_at_first(lp: *mut lprec,
                              break_at_first: libc::c_uchar);
    pub fn is_break_at_first(lp: *mut lprec) -> libc::c_uchar;
    pub fn set_bb_floorfirst(lp: *mut lprec,
                             bb_floorfirst: libc::c_int);
    pub fn get_bb_floorfirst(lp: *mut lprec) -> libc::c_int;
    pub fn set_bb_depthlimit(lp: *mut lprec,
                             bb_maxlevel: libc::c_int);
    pub fn get_bb_depthlimit(lp: *mut lprec) -> libc::c_int;
    pub fn set_break_at_value(lp: *mut lprec,
                              break_at_value: libc::c_double);
    pub fn get_break_at_value(lp: *mut lprec) -> libc::c_double;
    pub fn set_negrange(lp: *mut lprec, negrange: libc::c_double);
    pub fn get_negrange(lp: *mut lprec) -> libc::c_double;
    pub fn set_epsperturb(lp: *mut lprec,
                          epsperturb: libc::c_double);
    pub fn get_epsperturb(lp: *mut lprec) -> libc::c_double;
    pub fn set_epspivot(lp: *mut lprec, epspivot: libc::c_double);
    pub fn get_epspivot(lp: *mut lprec) -> libc::c_double;
    pub fn get_max_level(lp: *mut lprec) -> libc::c_int;
    pub fn get_total_nodes(lp: *mut lprec) -> libc::c_longlong;
    pub fn get_total_iter(lp: *mut lprec) -> libc::c_longlong;
    pub fn get_objective(lp: *mut lprec) -> libc::c_double;
    pub fn get_working_objective(lp: *mut lprec) -> libc::c_double;
    pub fn get_var_primalresult(lp: *mut lprec, index: libc::c_int)
     -> libc::c_double;
    pub fn get_var_dualresult(lp: *mut lprec, index: libc::c_int)
     -> libc::c_double;
    pub fn get_variables(lp: *mut lprec, var: *mut libc::c_double)
     -> libc::c_uchar;
    pub fn get_ptr_variables(lp: *mut lprec,
                             var: *mut *mut libc::c_double)
     -> libc::c_uchar;
    pub fn get_constraints(lp: *mut lprec,
                           constr: *mut libc::c_double)
     -> libc::c_uchar;
    pub fn get_ptr_constraints(lp: *mut lprec,
                               constr: *mut *mut libc::c_double)
     -> libc::c_uchar;
    pub fn get_sensitivity_rhs(lp: *mut lprec,
                               duals: *mut libc::c_double,
                               dualsfrom: *mut libc::c_double,
                               dualstill: *mut libc::c_double)
     -> libc::c_uchar;
    pub fn get_ptr_sensitivity_rhs(lp: *mut lprec,
                                   duals: *mut *mut libc::c_double,
                                   dualsfrom:
                                       *mut *mut libc::c_double,
                                   dualstill:
                                       *mut *mut libc::c_double)
     -> libc::c_uchar;
    pub fn get_sensitivity_obj(lp: *mut lprec,
                               objfrom: *mut libc::c_double,
                               objtill: *mut libc::c_double)
     -> libc::c_uchar;
    pub fn get_sensitivity_objex(lp: *mut lprec,
                                 objfrom: *mut libc::c_double,
                                 objtill: *mut libc::c_double,
                                 objfromvalue: *mut libc::c_double,
                                 objtillvalue: *mut libc::c_double)
     -> libc::c_uchar;
    pub fn get_ptr_sensitivity_obj(lp: *mut lprec,
                                   objfrom:
                                       *mut *mut libc::c_double,
                                   objtill:
                                       *mut *mut libc::c_double)
     -> libc::c_uchar;
    pub fn get_ptr_sensitivity_objex(lp: *mut lprec,
                                     objfrom:
                                         *mut *mut libc::c_double,
                                     objtill:
                                         *mut *mut libc::c_double,
                                     objfromvalue:
                                         *mut *mut libc::c_double,
                                     objtillvalue:
                                         *mut *mut libc::c_double)
     -> libc::c_uchar;
    pub fn set_solutionlimit(lp: *mut lprec, limit: libc::c_int);
    pub fn get_solutionlimit(lp: *mut lprec) -> libc::c_int;
    pub fn get_solutioncount(lp: *mut lprec) -> libc::c_int;
    pub fn get_Norig_rows(lp: *mut lprec) -> libc::c_int;
    pub fn get_Nrows(lp: *mut lprec) -> libc::c_int;
    pub fn get_Lrows(lp: *mut lprec) -> libc::c_int;
    pub fn get_Norig_columns(lp: *mut lprec) -> libc::c_int;
    pub fn get_Ncolumns(lp: *mut lprec) -> libc::c_int;
    pub fn MPS_readex(newlp: *mut *mut lprec,
                      userhandle: *mut libc::c_void,
                      read_modeldata: read_modeldata_func,
                      typeMPS: libc::c_int,
                      options: libc::c_int)
     -> libc::c_uchar;
    pub fn read_lpex(userhandle: *mut libc::c_void,
                     read_modeldata: read_modeldata_func,
                     verbose: libc::c_int,
                     lp_name: *mut libc::c_char) -> *mut lprec;
    pub fn write_lpex(lp: *mut lprec, userhandle: *mut libc::c_void,
                      write_modeldata: write_modeldata_func)
     -> libc::c_uchar;
    pub fn read_mpsex(userhandle: *mut libc::c_void,
                      read_modeldata: read_modeldata_func,
                      options: libc::c_int) -> *mut lprec;
    pub fn read_freempsex(userhandle: *mut libc::c_void,
                          read_modeldata: read_modeldata_func,
                          options: libc::c_int) -> *mut lprec;
    pub fn MPS_writefileex(lp: *mut lprec, typeMPS: libc::c_int,
                           userhandle: *mut libc::c_void,
                           write_modeldata: write_modeldata_func)
     -> libc::c_uchar;
    pub fn set_callbacks(lp: *mut lprec) -> libc::c_uchar;
    pub fn yieldformessages(lp: *mut lprec) -> libc::c_int;
    pub fn userabort(lp: *mut lprec, message: libc::c_int)
     -> libc::c_uchar;
    pub fn append_rows(lp: *mut lprec, deltarows: libc::c_int)
     -> libc::c_uchar;
    pub fn append_columns(lp: *mut lprec, deltacolumns: libc::c_int)
     -> libc::c_uchar;
    pub fn inc_rows(lp: *mut lprec, delta: libc::c_int);
    pub fn inc_columns(lp: *mut lprec, delta: libc::c_int);
    pub fn init_rowcol_names(lp: *mut lprec) -> libc::c_uchar;
    pub fn inc_row_space(lp: *mut lprec, deltarows: libc::c_int)
     -> libc::c_uchar;
    pub fn inc_col_space(lp: *mut lprec, deltacols: libc::c_int)
     -> libc::c_uchar;
    pub fn shift_rowcoldata(lp: *mut lprec, base: libc::c_int,
                            delta: libc::c_int, usedmap: *mut LLrec,
                            isrow: libc::c_uchar)
     -> libc::c_uchar;
    pub fn shift_basis(lp: *mut lprec, base: libc::c_int,
                       delta: libc::c_int, usedmap: *mut LLrec,
                       isrow: libc::c_uchar)
     -> libc::c_uchar;
    pub fn shift_rowdata(lp: *mut lprec, base: libc::c_int,
                         delta: libc::c_int, usedmap: *mut LLrec)
     -> libc::c_uchar;
    pub fn shift_coldata(lp: *mut lprec, base: libc::c_int,
                         delta: libc::c_int, usedmap: *mut LLrec)
     -> libc::c_uchar;
    pub fn is_chsign(lp: *mut lprec, rownr: libc::c_int)
     -> libc::c_uchar;
    pub fn inc_lag_space(lp: *mut lprec, deltarows: libc::c_int,
                         ignoreMAT: libc::c_uchar)
     -> libc::c_uchar;
    pub fn make_lag(server: *mut lprec) -> *mut lprec;
    pub fn get_rh_upper(lp: *mut lprec, rownr: libc::c_int)
     -> libc::c_double;
    pub fn get_rh_lower(lp: *mut lprec, rownr: libc::c_int)
     -> libc::c_double;
    pub fn set_rh_upper(lp: *mut lprec, rownr: libc::c_int,
                        value: libc::c_double)
     -> libc::c_uchar;
    pub fn set_rh_lower(lp: *mut lprec, rownr: libc::c_int,
                        value: libc::c_double)
     -> libc::c_uchar;
    pub fn bin_count(lp: *mut lprec, working: libc::c_uchar)
     -> libc::c_int;
    pub fn MIP_count(lp: *mut lprec) -> libc::c_int;
    pub fn SOS_count(lp: *mut lprec) -> libc::c_int;
    pub fn GUB_count(lp: *mut lprec) -> libc::c_int;
    pub fn identify_GUB(lp: *mut lprec, mark: libc::c_uchar)
     -> libc::c_int;
    pub fn prepare_GUB(lp: *mut lprec) -> libc::c_int;
    pub fn refactRecent(lp: *mut lprec) -> libc::c_uchar;
    pub fn check_if_less(lp: *mut lprec, x: libc::c_double,
                         y: libc::c_double,
                         variable: libc::c_int)
     -> libc::c_uchar;
    pub fn feasiblePhase1(lp: *mut lprec, epsvalue: libc::c_double)
     -> libc::c_uchar;
    pub fn free_duals(lp: *mut lprec);
    pub fn initialize_solution(lp: *mut lprec,
                               shiftbounds: libc::c_uchar);
    pub fn recompute_solution(lp: *mut lprec,
                              shiftbounds: libc::c_uchar);
    pub fn verify_solution(lp: *mut lprec, reinvert: libc::c_uchar,
                           info: *mut libc::c_char)
     -> libc::c_int;
    pub fn check_solution(lp: *mut lprec, lastcolumn: libc::c_int,
                          solution: *mut libc::c_double,
                          upbo: *mut libc::c_double,
                          lowbo: *mut libc::c_double,
                          tolerance: libc::c_double)
     -> libc::c_int;
    pub fn is_fixedvar(lp: *mut lprec, variable: libc::c_int)
     -> libc::c_uchar;
    pub fn is_splitvar(lp: *mut lprec, colnr: libc::c_int)
     -> libc::c_uchar;
    pub fn set_action(actionvar: *mut libc::c_int,
                      actionmask: libc::c_int);
    pub fn clear_action(actionvar: *mut libc::c_int,
                        actionmask: libc::c_int);
    pub fn is_action(actionvar: libc::c_int,
                     testmask: libc::c_int)
     -> libc::c_uchar;
    pub fn is_bb_rule(lp: *mut lprec, bb_rule: libc::c_int)
     -> libc::c_uchar;
    pub fn is_bb_mode(lp: *mut lprec, bb_mask: libc::c_int)
     -> libc::c_uchar;
    pub fn get_piv_rule(lp: *mut lprec) -> libc::c_int;
    pub fn get_str_piv_rule(rule: libc::c_int)
     -> *mut libc::c_char;
    pub fn set_var_priority(lp: *mut lprec) -> libc::c_uchar;
    pub fn find_sc_bbvar(lp: *mut lprec, count: *mut libc::c_int)
     -> libc::c_int;
    pub fn find_sos_bbvar(lp: *mut lprec, count: *mut libc::c_int,
                          intsos: libc::c_uchar)
     -> libc::c_int;
    pub fn find_int_bbvar(lp: *mut lprec, count: *mut libc::c_int,
                          BB: *mut BBrec,
                          isfeasible: *mut libc::c_uchar)
     -> libc::c_int;
    pub fn compute_dualslacks(lp: *mut lprec, target: libc::c_int,
                              dvalues: *mut *mut libc::c_double,
                              nzdvalues: *mut *mut libc::c_int,
                              dosum: libc::c_uchar)
     -> libc::c_double;
    pub fn solution_is_int(lp: *mut lprec, index: libc::c_int,
                           checkfixed: libc::c_uchar)
     -> libc::c_uchar;
    pub fn bb_better(lp: *mut lprec, target: libc::c_int,
                     mode: libc::c_int) -> libc::c_uchar;
    pub fn construct_solution(lp: *mut lprec,
                              target: *mut libc::c_double);
    pub fn transfer_solution_var(lp: *mut lprec,
                                 uservar: libc::c_int);
    pub fn construct_duals(lp: *mut lprec) -> libc::c_uchar;
    pub fn construct_sensitivity_duals(lp: *mut lprec)
     -> libc::c_uchar;
    pub fn construct_sensitivity_obj(lp: *mut lprec)
     -> libc::c_uchar;
    pub fn add_GUB(lp: *mut lprec, name: *mut libc::c_char,
                   priority: libc::c_int,
                   count: libc::c_int,
                   sosvars: *mut libc::c_int)
     -> libc::c_int;
    pub fn push_basis(lp: *mut lprec, basisvar: *mut libc::c_int,
                      isbasic: *mut libc::c_uchar,
                      islower: *mut libc::c_uchar) -> *mut basisrec;
    pub fn compare_basis(lp: *mut lprec) -> libc::c_uchar;
    pub fn restore_basis(lp: *mut lprec) -> libc::c_uchar;
    pub fn pop_basis(lp: *mut lprec, restore: libc::c_uchar)
     -> libc::c_uchar;
    pub fn is_BasisReady(lp: *mut lprec) -> libc::c_uchar;
    pub fn is_slackbasis(lp: *mut lprec) -> libc::c_uchar;
    pub fn verify_basis(lp: *mut lprec) -> libc::c_uchar;
    pub fn unload_basis(lp: *mut lprec, restorelast: libc::c_uchar)
     -> libc::c_int;
    pub fn perturb_bounds(lp: *mut lprec, perturbed: *mut BBrec,
                          doRows: libc::c_uchar,
                          doCols: libc::c_uchar,
                          includeFIXED: libc::c_uchar)
     -> libc::c_int;
    pub fn validate_bounds(lp: *mut lprec,
                           upbo: *mut libc::c_double,
                           lowbo: *mut libc::c_double)
     -> libc::c_uchar;
    pub fn impose_bounds(lp: *mut lprec, upbo: *mut libc::c_double,
                         lowbo: *mut libc::c_double)
     -> libc::c_uchar;
    pub fn unload_BB(lp: *mut lprec) -> libc::c_int;
    pub fn feasibilityOffset(lp: *mut lprec, isdual: libc::c_uchar)
     -> libc::c_double;
    pub fn isP1extra(lp: *mut lprec) -> libc::c_uchar;
    pub fn get_refactfrequency(lp: *mut lprec,
                               _final: libc::c_uchar)
     -> libc::c_double;
    pub fn findBasicFixedvar(lp: *mut lprec, afternr: libc::c_int,
                             slacksonly: libc::c_uchar)
     -> libc::c_int;
    pub fn isBasisVarFeasible(lp: *mut lprec, tol: libc::c_double,
                              basis_row: libc::c_int)
     -> libc::c_uchar;
    pub fn isPrimalFeasible(lp: *mut lprec, tol: libc::c_double,
                            infeasibles: *mut libc::c_int,
                            feasibilitygap: *mut libc::c_double)
     -> libc::c_uchar;
    pub fn isDualFeasible(lp: *mut lprec, tol: libc::c_double,
                          boundflips: *mut libc::c_int,
                          infeasibles: *mut libc::c_int,
                          feasibilitygap: *mut libc::c_double)
     -> libc::c_uchar;
    pub fn preprocess(lp: *mut lprec) -> libc::c_int;
    pub fn postprocess(lp: *mut lprec);
    pub fn performiteration(lp: *mut lprec, rownr: libc::c_int,
                            varin: libc::c_int,
                            theta: libc::c_double,
                            primal: libc::c_uchar,
                            allowminit: libc::c_uchar,
                            prow: *mut libc::c_double,
                            nzprow: *mut libc::c_int,
                            pcol: *mut libc::c_double,
                            nzpcol: *mut libc::c_int,
                            boundswaps: *mut libc::c_int)
     -> libc::c_uchar;
    pub fn transfer_solution(lp: *mut lprec,
                             dofinal: libc::c_uchar);
    pub fn scaled_floor(lp: *mut lprec, colnr: libc::c_int,
                        value: libc::c_double,
                        epsscale: libc::c_double)
     -> libc::c_double;
    pub fn scaled_ceil(lp: *mut lprec, colnr: libc::c_int,
                       value: libc::c_double,
                       epsscale: libc::c_double)
     -> libc::c_double;
    pub fn varmap_lock(lp: *mut lprec);
    pub fn varmap_clear(lp: *mut lprec);
    pub fn varmap_canunlock(lp: *mut lprec) -> libc::c_uchar;
    pub fn varmap_addconstraint(lp: *mut lprec);
    pub fn varmap_addcolumn(lp: *mut lprec);
    pub fn varmap_delete(lp: *mut lprec, base: libc::c_int,
                         delta: libc::c_int, varmap: *mut LLrec);
    pub fn varmap_compact(lp: *mut lprec, prev_rows: libc::c_int,
                          prev_cols: libc::c_int);
    pub fn varmap_validate(lp: *mut lprec, varno: libc::c_int)
     -> libc::c_uchar;
    pub fn del_varnameex(lp: *mut lprec, namelist: *mut *mut hashelem,
                         items: libc::c_int, ht: *mut hashtable,
                         varnr: libc::c_int, varmap: *mut LLrec)
     -> libc::c_uchar;
    pub fn init_pseudocost(lp: *mut lprec, pseudotype: libc::c_int)
     -> *mut BBPSrec;
    pub fn free_pseudocost(lp: *mut lprec);
    pub fn get_pseudorange(pc: *mut BBPSrec, mipvar: libc::c_int,
                           varcode: libc::c_int)
     -> libc::c_double;
    pub fn update_pseudocost(pc: *mut BBPSrec, mipvar: libc::c_int,
                             varcode: libc::c_int,
                             capupper: libc::c_uchar,
                             varsol: libc::c_double);
    pub fn get_pseudobranchcost(pc: *mut BBPSrec,
                                mipvar: libc::c_int,
                                dofloor: libc::c_uchar)
     -> libc::c_double;
    pub fn get_pseudonodecost(pc: *mut BBPSrec, mipvar: libc::c_int,
                              vartype: libc::c_int,
                              varsol: libc::c_double)
     -> libc::c_double;
    pub fn set_OF_override(lp: *mut lprec,
                           ofVector: *mut libc::c_double);
    pub fn set_OF_p1extra(lp: *mut lprec, p1extra: libc::c_double);
    pub fn unset_OF_p1extra(lp: *mut lprec);
    pub fn modifyOF1(lp: *mut lprec, index: libc::c_int,
                     ofValue: *mut libc::c_double,
                     mult: libc::c_double)
     -> libc::c_uchar;
    pub fn get_OF_active(lp: *mut lprec, varnr: libc::c_int,
                         mult: libc::c_double)
     -> libc::c_double;
    pub fn is_OF_nz(lp: *mut lprec, colnr: libc::c_int)
     -> libc::c_uchar;
    pub fn get_basisOF(lp: *mut lprec, coltarget: *mut libc::c_int,
                       crow: *mut libc::c_double,
                       colno: *mut libc::c_int)
     -> libc::c_int;
    pub fn get_basiscolumn(lp: *mut lprec, j: libc::c_int,
                           rn: *mut libc::c_int,
                           bj: *mut libc::c_double)
     -> libc::c_int;
    pub fn obtain_column(lp: *mut lprec, varin: libc::c_int,
                         pcol: *mut libc::c_double,
                         nzlist: *mut libc::c_int,
                         maxabs: *mut libc::c_int)
     -> libc::c_int;
    pub fn compute_theta(lp: *mut lprec, rownr: libc::c_int,
                         theta: *mut libc::c_double,
                         isupbound: libc::c_int,
                         HarrisScalar: libc::c_double,
                         primal: libc::c_uchar)
     -> libc::c_int;
    pub fn findBasisPos(lp: *mut lprec, notint: libc::c_int,
                        var_basic: *mut libc::c_int)
     -> libc::c_int;
    pub fn check_degeneracy(lp: *mut lprec,
                            pcol: *mut libc::c_double,
                            degencount: *mut libc::c_int)
     -> libc::c_uchar;
}

#[cfg(windows)]
extern "stdcall" {
    pub fn allocCHAR(lp: *mut lprec, ptr: *mut *mut libc::c_char,
                     size: libc::c_int,
                     clear: libc::c_uchar)
     -> libc::c_uchar;
    pub fn allocMYBOOL(lp: *mut lprec, ptr: *mut *mut libc::c_uchar,
                       size: libc::c_int,
                       clear: libc::c_uchar)
     -> libc::c_uchar;
    pub fn allocINT(lp: *mut lprec, ptr: *mut *mut libc::c_int,
                    size: libc::c_int,
                    clear: libc::c_uchar)
     -> libc::c_uchar;
    pub fn allocREAL(lp: *mut lprec, ptr: *mut *mut libc::c_double,
                     size: libc::c_int,
                     clear: libc::c_uchar)
     -> libc::c_uchar;
    pub fn allocLREAL(lp: *mut lprec, ptr: *mut *mut libc::c_double,
                      size: libc::c_int,
                      clear: libc::c_uchar)
     -> libc::c_uchar;
    pub fn allocFREE(lp: *mut lprec, ptr: *mut *mut libc::c_void)
     -> libc::c_uchar;
    pub fn cloneREAL(lp: *mut lprec, origlist: *mut libc::c_double,
                     size: libc::c_int)
     -> *mut libc::c_double;
    pub fn cloneMYBOOL(lp: *mut lprec, origlist: *mut libc::c_uchar,
                       size: libc::c_int)
     -> *mut libc::c_uchar;
    pub fn cloneINT(lp: *mut lprec, origlist: *mut libc::c_int,
                    size: libc::c_int)
     -> *mut libc::c_int;
    pub fn comp_bits(bitarray1: *mut libc::c_uchar,
                     bitarray2: *mut libc::c_uchar,
                     items: libc::c_int) -> libc::c_int;
    pub fn mempool_create(lp: *mut lprec) -> *mut workarraysrec;
    pub fn mempool_obtainVector(mempool: *mut workarraysrec,
                                count: libc::c_int,
                                unitsize: libc::c_int)
     -> *mut libc::c_char;
    pub fn mempool_releaseVector(mempool: *mut workarraysrec,
                                 memvector: *mut libc::c_char,
                                 forcefree: libc::c_uchar)
     -> libc::c_uchar;
    pub fn mempool_free(mempool: *mut *mut workarraysrec)
     -> libc::c_uchar;
    pub fn roundVector(myvector: *mut libc::c_double,
                       endpos: libc::c_int,
                       roundzero: libc::c_double);
    pub fn normalizeVector(myvector: *mut libc::c_double,
                           endpos: libc::c_int)
     -> libc::c_double;
    pub fn swapINT(item1: *mut libc::c_int,
                   item2: *mut libc::c_int);
    pub fn swapREAL(item1: *mut libc::c_double,
                    item2: *mut libc::c_double);
    pub fn swapPTR(item1: *mut *mut libc::c_void,
                   item2: *mut *mut libc::c_void);
    pub fn restoreINT(valREAL: libc::c_double,
                      epsilon: libc::c_double)
     -> libc::c_double;
    pub fn roundToPrecision(value: libc::c_double,
                            precision: libc::c_double)
     -> libc::c_double;
    pub fn searchFor(target: libc::c_int,
                     attributes: *mut libc::c_int,
                     size: libc::c_int,
                     offset: libc::c_int,
                     absolute: libc::c_uchar)
     -> libc::c_int;
    pub fn isINT(lp: *mut lprec, value: libc::c_double)
     -> libc::c_uchar;
    pub fn isOrigFixed(lp: *mut lprec, varno: libc::c_int)
     -> libc::c_uchar;
    pub fn chsign_bounds(lobound: *mut libc::c_double,
                         upbound: *mut libc::c_double);
    pub fn rand_uniform(lp: *mut lprec, range: libc::c_double)
     -> libc::c_double;
    pub fn createLink(size: libc::c_int, linkmap: *mut *mut LLrec,
                      usedpos: *mut libc::c_uchar)
     -> libc::c_int;
    pub fn freeLink(linkmap: *mut *mut LLrec) -> libc::c_uchar;
    pub fn sizeLink(linkmap: *mut LLrec) -> libc::c_int;
    pub fn isActiveLink(linkmap: *mut LLrec, itemnr: libc::c_int)
     -> libc::c_uchar;
    pub fn countActiveLink(linkmap: *mut LLrec) -> libc::c_int;
    pub fn countInactiveLink(linkmap: *mut LLrec) -> libc::c_int;
    pub fn firstActiveLink(linkmap: *mut LLrec) -> libc::c_int;
    pub fn lastActiveLink(linkmap: *mut LLrec) -> libc::c_int;
    pub fn appendLink(linkmap: *mut LLrec, newitem: libc::c_int)
     -> libc::c_uchar;
    pub fn insertLink(linkmap: *mut LLrec, afteritem: libc::c_int,
                      newitem: libc::c_int)
     -> libc::c_uchar;
    pub fn setLink(linkmap: *mut LLrec, newitem: libc::c_int)
     -> libc::c_uchar;
    pub fn fillLink(linkmap: *mut LLrec) -> libc::c_uchar;
    pub fn nextActiveLink(linkmap: *mut LLrec,
                          backitemnr: libc::c_int)
     -> libc::c_int;
    pub fn prevActiveLink(linkmap: *mut LLrec,
                          forwitemnr: libc::c_int)
     -> libc::c_int;
    pub fn firstInactiveLink(linkmap: *mut LLrec) -> libc::c_int;
    pub fn lastInactiveLink(linkmap: *mut LLrec) -> libc::c_int;
    pub fn nextInactiveLink(linkmap: *mut LLrec,
                            backitemnr: libc::c_int)
     -> libc::c_int;
    pub fn prevInactiveLink(linkmap: *mut LLrec,
                            forwitemnr: libc::c_int)
     -> libc::c_int;
    pub fn removeLink(linkmap: *mut LLrec, itemnr: libc::c_int)
     -> libc::c_int;
    pub fn cloneLink(sourcemap: *mut LLrec, newsize: libc::c_int,
                     freesource: libc::c_uchar) -> *mut LLrec;
    pub fn compareLink(linkmap1: *mut LLrec, linkmap2: *mut LLrec)
     -> libc::c_int;
    pub fn verifyLink(linkmap: *mut LLrec, itemnr: libc::c_int,
                      doappend: libc::c_uchar)
     -> libc::c_uchar;
    pub fn createPackedVector(size: libc::c_int,
                              values: *mut libc::c_double,
                              workvector: *mut libc::c_int)
     -> *mut PVrec;
    pub fn pushPackedVector(PV: *mut PVrec, parent: *mut PVrec);
    pub fn unpackPackedVector(PV: *mut PVrec,
                              target: *mut *mut libc::c_double)
     -> libc::c_uchar;
    pub fn getvaluePackedVector(PV: *mut PVrec, index: libc::c_int)
     -> libc::c_double;
    pub fn popPackedVector(PV: *mut PVrec) -> *mut PVrec;
    pub fn freePackedVector(PV: *mut *mut PVrec) -> libc::c_uchar;
    pub fn create_hash_table(size: libc::c_int,
                             base: libc::c_int) -> *mut hashtable;
    pub fn free_hash_table(ht: *mut hashtable);
    pub fn findhash(name: *const libc::c_char, ht: *mut hashtable)
     -> *mut hashelem;
    pub fn puthash(name: *const libc::c_char,
                   index: libc::c_int, list: *mut *mut hashelem,
                   ht: *mut hashtable) -> *mut hashelem;
    pub fn drophash(name: *const libc::c_char,
                    list: *mut *mut hashelem, ht: *mut hashtable);
    pub fn free_hash_item(hp: *mut *mut hashelem);
    pub fn copy_hash_table(ht: *mut hashtable, list: *mut *mut hashelem,
                           newsize: libc::c_int) -> *mut hashtable;
    pub fn find_var(lp: *mut lprec, name: *mut libc::c_char,
                    verbose: libc::c_uchar)
     -> libc::c_int;
    pub fn find_row(lp: *mut lprec, name: *mut libc::c_char,
                    Unconstrained_rows_found: libc::c_uchar)
     -> libc::c_int;
    pub fn mat_create(lp: *mut lprec, rows: libc::c_int,
                      columns: libc::c_int,
                      epsvalue: libc::c_double) -> *mut MATrec;
    pub fn mat_memopt(mat: *mut MATrec, rowextra: libc::c_int,
                      colextra: libc::c_int,
                      nzextra: libc::c_int)
     -> libc::c_uchar;
    pub fn mat_free(matrix: *mut *mut MATrec);
    pub fn inc_matrow_space(mat: *mut MATrec,
                            deltarows: libc::c_int)
     -> libc::c_uchar;
    pub fn mat_mapreplace(mat: *mut MATrec, rowmap: *mut LLrec,
                          colmap: *mut LLrec, insmat: *mut MATrec)
     -> libc::c_int;
    pub fn mat_matinsert(mat: *mut MATrec, insmat: *mut MATrec)
     -> libc::c_int;
    pub fn mat_zerocompact(mat: *mut MATrec) -> libc::c_int;
    pub fn mat_rowcompact(mat: *mut MATrec, dozeros: libc::c_uchar)
     -> libc::c_int;
    pub fn mat_colcompact(mat: *mut MATrec, prev_rows: libc::c_int,
                          prev_cols: libc::c_int)
     -> libc::c_int;
    pub fn inc_matcol_space(mat: *mut MATrec,
                            deltacols: libc::c_int)
     -> libc::c_uchar;
    pub fn inc_mat_space(mat: *mut MATrec, mindelta: libc::c_int)
     -> libc::c_uchar;
    pub fn mat_shiftrows(mat: *mut MATrec, bbase: *mut libc::c_int,
                         delta: libc::c_int, varmap: *mut LLrec)
     -> libc::c_int;
    pub fn mat_shiftcols(mat: *mut MATrec, bbase: *mut libc::c_int,
                         delta: libc::c_int, varmap: *mut LLrec)
     -> libc::c_int;
    pub fn mat_extractmat(mat: *mut MATrec, rowmap: *mut LLrec,
                          colmap: *mut LLrec,
                          negated: libc::c_uchar) -> *mut MATrec;
    pub fn mat_appendrow(mat: *mut MATrec, count: libc::c_int,
                         row: *mut libc::c_double,
                         colno: *mut libc::c_int,
                         mult: libc::c_double,
                         checkrowmode: libc::c_uchar)
     -> libc::c_int;
    pub fn mat_appendcol(mat: *mut MATrec, count: libc::c_int,
                         column: *mut libc::c_double,
                         rowno: *mut libc::c_int,
                         mult: libc::c_double,
                         checkrowmode: libc::c_uchar)
     -> libc::c_int;
    pub fn mat_get_data(lp: *mut lprec, matindex: libc::c_int,
                        isrow: libc::c_uchar,
                        rownr: *mut *mut libc::c_int,
                        colnr: *mut *mut libc::c_int,
                        value: *mut *mut libc::c_double)
     -> libc::c_uchar;
    pub fn mat_set_rowmap(mat: *mut MATrec,
                          row_mat_index: libc::c_int,
                          rownr: libc::c_int,
                          colnr: libc::c_int,
                          col_mat_index: libc::c_int)
     -> libc::c_uchar;
    pub fn mat_indexrange(mat: *mut MATrec, index: libc::c_int,
                          isrow: libc::c_uchar,
                          startpos: *mut libc::c_int,
                          endpos: *mut libc::c_int)
     -> libc::c_uchar;
    pub fn mat_validate(mat: *mut MATrec) -> libc::c_uchar;
    pub fn mat_equalRows(mat: *mut MATrec, baserow: libc::c_int,
                         comprow: libc::c_int)
     -> libc::c_uchar;
    pub fn mat_findelm(mat: *mut MATrec, row: libc::c_int,
                       column: libc::c_int)
     -> libc::c_int;
    pub fn mat_findins(mat: *mut MATrec, row: libc::c_int,
                       column: libc::c_int,
                       insertpos: *mut libc::c_int,
                       validate: libc::c_uchar)
     -> libc::c_int;
    pub fn mat_multcol(mat: *mut MATrec, col_nr: libc::c_int,
                       mult: libc::c_double,
                       DoObj: libc::c_uchar);
    pub fn mat_getitem(mat: *mut MATrec, row: libc::c_int,
                       column: libc::c_int)
     -> libc::c_double;
    pub fn mat_setitem(mat: *mut MATrec, row: libc::c_int,
                       column: libc::c_int,
                       value: libc::c_double)
     -> libc::c_uchar;
    pub fn mat_additem(mat: *mut MATrec, row: libc::c_int,
                       column: libc::c_int,
                       delta: libc::c_double)
     -> libc::c_uchar;
    pub fn mat_setvalue(mat: *mut MATrec, Row: libc::c_int,
                        Column: libc::c_int,
                        Value: libc::c_double,
                        doscale: libc::c_uchar)
     -> libc::c_uchar;
    pub fn mat_nonzeros(mat: *mut MATrec) -> libc::c_int;
    pub fn mat_collength(mat: *mut MATrec, colnr: libc::c_int)
     -> libc::c_int;
    pub fn mat_rowlength(mat: *mut MATrec, rownr: libc::c_int)
     -> libc::c_int;
    pub fn mat_multrow(mat: *mut MATrec, row_nr: libc::c_int,
                       mult: libc::c_double);
    pub fn mat_multadd(mat: *mut MATrec,
                       lhsvector: *mut libc::c_double,
                       varnr: libc::c_int,
                       mult: libc::c_double);
    pub fn mat_setrow(mat: *mut MATrec, rowno: libc::c_int,
                      count: libc::c_int,
                      row: *mut libc::c_double,
                      colno: *mut libc::c_int,
                      doscale: libc::c_uchar,
                      checkrowmode: libc::c_uchar)
     -> libc::c_uchar;
    pub fn mat_setcol(mat: *mut MATrec, colno: libc::c_int,
                      count: libc::c_int,
                      column: *mut libc::c_double,
                      rowno: *mut libc::c_int,
                      doscale: libc::c_uchar,
                      checkrowmode: libc::c_uchar)
     -> libc::c_uchar;
    pub fn mat_mergemat(target: *mut MATrec, source: *mut MATrec,
                        usecolmap: libc::c_uchar)
     -> libc::c_uchar;
    pub fn mat_checkcounts(mat: *mut MATrec,
                           rownum: *mut libc::c_int,
                           colnum: *mut libc::c_int,
                           freeonexit: libc::c_uchar)
     -> libc::c_int;
    pub fn mat_expandcolumn(mat: *mut MATrec, colnr: libc::c_int,
                            column: *mut libc::c_double,
                            nzlist: *mut libc::c_int,
                            signedA: libc::c_uchar)
     -> libc::c_int;
    pub fn mat_computemax(mat: *mut MATrec) -> libc::c_uchar;
    pub fn mat_transpose(mat: *mut MATrec) -> libc::c_uchar;
    pub fn invert(lp: *mut lprec, shiftbounds: libc::c_uchar,
                  _final: libc::c_uchar) -> libc::c_uchar;
    pub fn vec_compress(densevector: *mut libc::c_double,
                        startpos: libc::c_int,
                        endpos: libc::c_int,
                        epsilon: libc::c_double,
                        nzvector: *mut libc::c_double,
                        nzindex: *mut libc::c_int)
     -> libc::c_uchar;
    pub fn vec_expand(nzvector: *mut libc::c_double,
                      nzindex: *mut libc::c_int,
                      densevector: *mut libc::c_double,
                      startpos: libc::c_int,
                      endpos: libc::c_int)
     -> libc::c_uchar;
    pub fn get_colIndexA(lp: *mut lprec, varset: libc::c_int,
                         colindex: *mut libc::c_int,
                         append: libc::c_uchar)
     -> libc::c_uchar;
    pub fn prod_Ax(lp: *mut lprec, coltarget: *mut libc::c_int,
                   input: *mut libc::c_double,
                   nzinput: *mut libc::c_int,
                   roundzero: libc::c_double,
                   ofscalar: libc::c_double,
                   output: *mut libc::c_double,
                   nzoutput: *mut libc::c_int,
                   roundmode: libc::c_int) -> libc::c_int;
    pub fn prod_xA(lp: *mut lprec, coltarget: *mut libc::c_int,
                   input: *mut libc::c_double,
                   nzinput: *mut libc::c_int,
                   roundzero: libc::c_double,
                   ofscalar: libc::c_double,
                   output: *mut libc::c_double,
                   nzoutput: *mut libc::c_int,
                   roundmode: libc::c_int) -> libc::c_int;
    pub fn prod_xA2(lp: *mut lprec, coltarget: *mut libc::c_int,
                    prow: *mut libc::c_double,
                    proundzero: libc::c_double,
                    pnzprow: *mut libc::c_int,
                    drow: *mut libc::c_double,
                    droundzero: libc::c_double,
                    dnzdrow: *mut libc::c_int,
                    ofscalar: libc::c_double,
                    roundmode: libc::c_int)
     -> libc::c_uchar;
    pub fn fimprove(lp: *mut lprec, pcol: *mut libc::c_double,
                    nzidx: *mut libc::c_int,
                    roundzero: libc::c_double)
     -> libc::c_uchar;
    pub fn ftran(lp: *mut lprec, rhsvector: *mut libc::c_double,
                 nzidx: *mut libc::c_int,
                 roundzero: libc::c_double);
    pub fn bimprove(lp: *mut lprec, rhsvector: *mut libc::c_double,
                    nzidx: *mut libc::c_int,
                    roundzero: libc::c_double)
     -> libc::c_uchar;
    pub fn btran(lp: *mut lprec, rhsvector: *mut libc::c_double,
                 nzidx: *mut libc::c_int,
                 roundzero: libc::c_double);
    pub fn fsolve(lp: *mut lprec, varin: libc::c_int,
                  pcol: *mut libc::c_double,
                  nzidx: *mut libc::c_int,
                  roundzero: libc::c_double,
                  ofscalar: libc::c_double,
                  prepareupdate: libc::c_uchar)
     -> libc::c_uchar;
    pub fn bsolve(lp: *mut lprec, row_nr: libc::c_int,
                  rhsvector: *mut libc::c_double,
                  nzidx: *mut libc::c_int,
                  roundzero: libc::c_double,
                  ofscalar: libc::c_double)
     -> libc::c_uchar;
    pub fn bsolve_xA2(lp: *mut lprec, coltarget: *mut libc::c_int,
                      row_nr1: libc::c_int,
                      vector1: *mut libc::c_double,
                      roundzero1: libc::c_double,
                      nzvector1: *mut libc::c_int,
                      row_nr2: libc::c_int,
                      vector2: *mut libc::c_double,
                      roundzero2: libc::c_double,
                      nzvector2: *mut libc::c_int,
                      roundmode: libc::c_int);
    pub fn createUndoLadder(lp: *mut lprec, levelitems: libc::c_int,
                            maxlevels: libc::c_int)
     -> *mut DeltaVrec;
    pub fn incrementUndoLadder(DV: *mut DeltaVrec) -> libc::c_int;
    pub fn modifyUndoLadder(DV: *mut DeltaVrec, itemno: libc::c_int,
                            target: *mut libc::c_double,
                            newvalue: libc::c_double)
     -> libc::c_uchar;
    pub fn countsUndoLadder(DV: *mut DeltaVrec) -> libc::c_int;
    pub fn restoreUndoLadder(DV: *mut DeltaVrec,
                             target: *mut libc::c_double)
     -> libc::c_int;
    pub fn decrementUndoLadder(DV: *mut DeltaVrec) -> libc::c_int;
    pub fn freeUndoLadder(DV: *mut *mut DeltaVrec) -> libc::c_uchar;
    pub fn appendUndoPresolve(lp: *mut lprec,
                              isprimal: libc::c_uchar,
                              beta: libc::c_double,
                              colnrDep: libc::c_int)
     -> libc::c_uchar;
    pub fn addUndoPresolve(lp: *mut lprec, isprimal: libc::c_uchar,
                           colnrElim: libc::c_int,
                           alpha: libc::c_double,
                           beta: libc::c_double,
                           colnrDep: libc::c_int)
     -> libc::c_uchar;
    pub fn create_BB(lp: *mut lprec, parentBB: *mut BBrec,
                     dofullcopy: libc::c_uchar) -> *mut BBrec;
    pub fn push_BB(lp: *mut lprec, parentBB: *mut BBrec,
                   varno: libc::c_int,
                   vartype: libc::c_int,
                   varcus: libc::c_int) -> *mut BBrec;
    pub fn initbranches_BB(BB: *mut BBrec) -> libc::c_uchar;
    pub fn fillbranches_BB(BB: *mut BBrec) -> libc::c_uchar;
    pub fn nextbranch_BB(BB: *mut BBrec) -> libc::c_uchar;
    pub fn strongbranch_BB(lp: *mut lprec, BB: *mut BBrec,
                           varno: libc::c_int,
                           vartype: libc::c_int,
                           varcus: libc::c_int)
     -> libc::c_uchar;
    pub fn initcuts_BB(lp: *mut lprec) -> libc::c_uchar;
    pub fn updatecuts_BB(lp: *mut lprec) -> libc::c_int;
    pub fn freecuts_BB(lp: *mut lprec) -> libc::c_uchar;
    pub fn findself_BB(BB: *mut BBrec) -> *mut BBrec;
    pub fn solve_LP(lp: *mut lprec, BB: *mut BBrec) -> libc::c_int;
    pub fn rcfbound_BB(BB: *mut BBrec, varno: libc::c_int,
                       isINT: libc::c_uchar,
                       newbound: *mut libc::c_double,
                       isfeasible: *mut libc::c_uchar)
     -> libc::c_int;
    pub fn findnode_BB(BB: *mut BBrec, varno: *mut libc::c_int,
                       vartype: *mut libc::c_int,
                       varcus: *mut libc::c_int)
     -> libc::c_uchar;
    pub fn solve_BB(BB: *mut BBrec) -> libc::c_int;
    pub fn free_BB(BB: *mut *mut BBrec) -> libc::c_uchar;
    pub fn pop_BB(BB: *mut BBrec) -> *mut BBrec;
    pub fn run_BB(lp: *mut lprec) -> libc::c_int;
    pub fn create_SOSgroup(lp: *mut lprec) -> *mut SOSgroup;
    pub fn resize_SOSgroup(group: *mut SOSgroup);
    pub fn append_SOSgroup(group: *mut SOSgroup, SOS: *mut SOSrec)
     -> libc::c_int;
    pub fn clean_SOSgroup(group: *mut SOSgroup,
                          forceupdatemap: libc::c_uchar)
     -> libc::c_int;
    pub fn free_SOSgroup(group: *mut *mut SOSgroup);
    pub fn create_SOSrec(group: *mut SOSgroup,
                         name: *mut libc::c_char,
                         _type: libc::c_int,
                         priority: libc::c_int,
                         size: libc::c_int,
                         variables: *mut libc::c_int,
                         weights: *mut libc::c_double)
     -> *mut SOSrec;
    pub fn delete_SOSrec(group: *mut SOSgroup,
                         sosindex: libc::c_int)
     -> libc::c_uchar;
    pub fn append_SOSrec(SOS: *mut SOSrec, size: libc::c_int,
                         variables: *mut libc::c_int,
                         weights: *mut libc::c_double)
     -> libc::c_int;
    pub fn free_SOSrec(SOS: *mut SOSrec);
    pub fn make_SOSchain(lp: *mut lprec, forceresort: libc::c_uchar)
     -> libc::c_int;
    pub fn SOS_member_updatemap(group: *mut SOSgroup)
     -> libc::c_int;
    pub fn SOS_member_sortlist(group: *mut SOSgroup,
                               sosindex: libc::c_int)
     -> libc::c_uchar;
    pub fn SOS_shift_col(group: *mut SOSgroup,
                         sosindex: libc::c_int,
                         column: libc::c_int,
                         delta: libc::c_int, usedmap: *mut LLrec,
                         forceresort: libc::c_uchar)
     -> libc::c_uchar;
    pub fn SOS_member_delete(group: *mut SOSgroup,
                             sosindex: libc::c_int,
                             member: libc::c_int)
     -> libc::c_int;
    pub fn SOS_get_type(group: *mut SOSgroup, sosindex: libc::c_int)
     -> libc::c_int;
    pub fn SOS_infeasible(group: *mut SOSgroup,
                          sosindex: libc::c_int)
     -> libc::c_int;
    pub fn SOS_member_index(group: *mut SOSgroup,
                            sosindex: libc::c_int,
                            member: libc::c_int)
     -> libc::c_int;
    pub fn SOS_member_count(group: *mut SOSgroup,
                            sosindex: libc::c_int)
     -> libc::c_int;
    pub fn SOS_memberships(group: *mut SOSgroup,
                           column: libc::c_int)
     -> libc::c_int;
    pub fn SOS_get_candidates(group: *mut SOSgroup,
                              sosindex: libc::c_int,
                              column: libc::c_int,
                              excludetarget: libc::c_uchar,
                              upbound: *mut libc::c_double,
                              lobound: *mut libc::c_double)
     -> *mut libc::c_int;
    pub fn SOS_is_member(group: *mut SOSgroup,
                         sosindex: libc::c_int,
                         column: libc::c_int)
     -> libc::c_int;
    pub fn SOS_is_member_of_type(group: *mut SOSgroup,
                                 column: libc::c_int,
                                 sostype: libc::c_int)
     -> libc::c_uchar;
    pub fn SOS_set_GUB(group: *mut SOSgroup, sosindex: libc::c_int,
                       state: libc::c_uchar)
     -> libc::c_uchar;
    pub fn SOS_is_GUB(group: *mut SOSgroup, sosindex: libc::c_int)
     -> libc::c_uchar;
    pub fn SOS_is_marked(group: *mut SOSgroup,
                         sosindex: libc::c_int,
                         column: libc::c_int)
     -> libc::c_uchar;
    pub fn SOS_is_active(group: *mut SOSgroup,
                         sosindex: libc::c_int,
                         column: libc::c_int)
     -> libc::c_uchar;
    pub fn SOS_is_full(group: *mut SOSgroup, sosindex: libc::c_int,
                       column: libc::c_int,
                       activeonly: libc::c_uchar)
     -> libc::c_uchar;
    pub fn SOS_can_activate(group: *mut SOSgroup,
                            sosindex: libc::c_int,
                            column: libc::c_int)
     -> libc::c_uchar;
    pub fn SOS_set_marked(group: *mut SOSgroup,
                          sosindex: libc::c_int,
                          column: libc::c_int,
                          asactive: libc::c_uchar)
     -> libc::c_uchar;
    pub fn SOS_unmark(group: *mut SOSgroup, sosindex: libc::c_int,
                      column: libc::c_int)
     -> libc::c_uchar;
    pub fn SOS_fix_unmarked(group: *mut SOSgroup,
                            sosindex: libc::c_int,
                            variable: libc::c_int,
                            bound: *mut libc::c_double,
                            value: libc::c_double,
                            isupper: libc::c_uchar,
                            diffcount: *mut libc::c_int,
                            changelog: *mut DeltaVrec)
     -> libc::c_int;
    pub fn SOS_fix_list(group: *mut SOSgroup, sosindex: libc::c_int,
                        variable: libc::c_int,
                        bound: *mut libc::c_double,
                        varlist: *mut libc::c_int,
                        isleft: libc::c_uchar,
                        changelog: *mut DeltaVrec) -> libc::c_int;
    pub fn SOS_is_satisfied(group: *mut SOSgroup,
                            sosindex: libc::c_int,
                            solution: *mut libc::c_double)
     -> libc::c_int;
    pub fn SOS_is_feasible(group: *mut SOSgroup,
                           sosindex: libc::c_int,
                           solution: *mut libc::c_double)
     -> libc::c_uchar;
    pub fn lp_solve_version(majorversion: *mut libc::c_int,
                            minorversion: *mut libc::c_int,
                            release: *mut libc::c_int,
                            build: *mut libc::c_int);
    pub fn make_lp(rows: libc::c_int,
                   columns: libc::c_int) -> *mut lprec;
    pub fn resize_lp(lp: *mut lprec, rows: libc::c_int,
                     columns: libc::c_int)
     -> libc::c_uchar;
    pub fn get_status(lp: *mut lprec) -> libc::c_int;
    pub fn get_statustext(lp: *mut lprec, statuscode: libc::c_int)
     -> *mut libc::c_char;
    pub fn is_obj_in_basis(lp: *mut lprec) -> libc::c_uchar;
    pub fn set_obj_in_basis(lp: *mut lprec,
                            obj_in_basis: libc::c_uchar);
    pub fn copy_lp(lp: *mut lprec) -> *mut lprec;
    pub fn dualize_lp(lp: *mut lprec) -> libc::c_uchar;
    pub fn memopt_lp(lp: *mut lprec, rowextra: libc::c_int,
                     colextra: libc::c_int,
                     nzextra: libc::c_int)
     -> libc::c_uchar;
    pub fn delete_lp(lp: *mut lprec);
    pub fn free_lp(plp: *mut *mut lprec);
    pub fn set_lp_name(lp: *mut lprec, lpname: *mut libc::c_char)
     -> libc::c_uchar;
    pub fn get_lp_name(lp: *mut lprec) -> *mut libc::c_char;
    pub fn has_BFP(lp: *mut lprec) -> libc::c_uchar;
    pub fn is_nativeBFP(lp: *mut lprec) -> libc::c_uchar;
    pub fn set_BFP(lp: *mut lprec, filename: *mut libc::c_char)
     -> libc::c_uchar;
    pub fn read_XLI(xliname: *mut libc::c_char,
                    modelname: *mut libc::c_char,
                    dataname: *mut libc::c_char,
                    options: *mut libc::c_char,
                    verbose: libc::c_int) -> *mut lprec;
    pub fn write_XLI(lp: *mut lprec, filename: *mut libc::c_char,
                     options: *mut libc::c_char,
                     results: libc::c_uchar)
     -> libc::c_uchar;
    pub fn has_XLI(lp: *mut lprec) -> libc::c_uchar;
    pub fn is_nativeXLI(lp: *mut lprec) -> libc::c_uchar;
    pub fn set_XLI(lp: *mut lprec, filename: *mut libc::c_char)
     -> libc::c_uchar;
    pub fn set_obj(lp: *mut lprec, colnr: libc::c_int,
                   value: libc::c_double)
     -> libc::c_uchar;
    pub fn set_obj_fn(lp: *mut lprec, row: *mut libc::c_double)
     -> libc::c_uchar;
    pub fn set_obj_fnex(lp: *mut lprec, count: libc::c_int,
                        row: *mut libc::c_double,
                        colno: *mut libc::c_int)
     -> libc::c_uchar;
    pub fn str_set_obj_fn(lp: *mut lprec,
                          row_string: *mut libc::c_char)
     -> libc::c_uchar;
    pub fn set_sense(lp: *mut lprec, maximize: libc::c_uchar);
    pub fn set_maxim(lp: *mut lprec);
    pub fn set_minim(lp: *mut lprec);
    pub fn is_maxim(lp: *mut lprec) -> libc::c_uchar;
    pub fn add_constraint(lp: *mut lprec, row: *mut libc::c_double,
                          constr_type: libc::c_int,
                          rh: libc::c_double)
     -> libc::c_uchar;
    pub fn add_constraintex(lp: *mut lprec, count: libc::c_int,
                            row: *mut libc::c_double,
                            colno: *mut libc::c_int,
                            constr_type: libc::c_int,
                            rh: libc::c_double)
     -> libc::c_uchar;
    pub fn set_add_rowmode(lp: *mut lprec, turnon: libc::c_uchar)
     -> libc::c_uchar;
    pub fn is_add_rowmode(lp: *mut lprec) -> libc::c_uchar;
    pub fn str_add_constraint(lp: *mut lprec,
                              row_string: *mut libc::c_char,
                              constr_type: libc::c_int,
                              rh: libc::c_double)
     -> libc::c_uchar;
    pub fn set_row(lp: *mut lprec, rownr: libc::c_int,
                   row: *mut libc::c_double)
     -> libc::c_uchar;
    pub fn set_rowex(lp: *mut lprec, rownr: libc::c_int,
                     count: libc::c_int,
                     row: *mut libc::c_double,
                     colno: *mut libc::c_int)
     -> libc::c_uchar;
    pub fn get_row(lp: *mut lprec, rownr: libc::c_int,
                   row: *mut libc::c_double)
     -> libc::c_uchar;
    pub fn get_rowex(lp: *mut lprec, rownr: libc::c_int,
                     row: *mut libc::c_double,
                     colno: *mut libc::c_int)
     -> libc::c_int;
    pub fn del_constraint(lp: *mut lprec, rownr: libc::c_int)
     -> libc::c_uchar;
    pub fn del_constraintex(lp: *mut lprec, rowmap: *mut LLrec)
     -> libc::c_uchar;
    pub fn add_lag_con(lp: *mut lprec, row: *mut libc::c_double,
                       con_type: libc::c_int,
                       rhs: libc::c_double)
     -> libc::c_uchar;
    pub fn str_add_lag_con(lp: *mut lprec,
                           row_string: *mut libc::c_char,
                           con_type: libc::c_int,
                           rhs: libc::c_double)
     -> libc::c_uchar;
    pub fn set_lag_trace(lp: *mut lprec, lag_trace: libc::c_uchar);
    pub fn is_lag_trace(lp: *mut lprec) -> libc::c_uchar;
    pub fn set_constr_type(lp: *mut lprec, rownr: libc::c_int,
                           con_type: libc::c_int)
     -> libc::c_uchar;
    pub fn get_constr_type(lp: *mut lprec, rownr: libc::c_int)
     -> libc::c_int;
    pub fn get_constr_value(lp: *mut lprec, rownr: libc::c_int,
                            count: libc::c_int,
                            primsolution: *mut libc::c_double,
                            nzindex: *mut libc::c_int)
     -> libc::c_double;
    pub fn is_constr_type(lp: *mut lprec, rownr: libc::c_int,
                          mask: libc::c_int)
     -> libc::c_uchar;
    pub fn get_str_constr_type(lp: *mut lprec,
                               con_type: libc::c_int)
     -> *mut libc::c_char;
    pub fn get_constr_class(lp: *mut lprec, rownr: libc::c_int)
     -> libc::c_int;
    pub fn get_str_constr_class(lp: *mut lprec,
                                con_class: libc::c_int)
     -> *mut libc::c_char;
    pub fn set_rh(lp: *mut lprec, rownr: libc::c_int,
                  value: libc::c_double) -> libc::c_uchar;
    pub fn get_rh(lp: *mut lprec, rownr: libc::c_int)
     -> libc::c_double;
    pub fn set_rh_range(lp: *mut lprec, rownr: libc::c_int,
                        deltavalue: libc::c_double)
     -> libc::c_uchar;
    pub fn get_rh_range(lp: *mut lprec, rownr: libc::c_int)
     -> libc::c_double;
    pub fn set_rh_vec(lp: *mut lprec, rh: *mut libc::c_double);
    pub fn str_set_rh_vec(lp: *mut lprec,
                          rh_string: *mut libc::c_char)
     -> libc::c_uchar;
    pub fn add_column(lp: *mut lprec, column: *mut libc::c_double)
     -> libc::c_uchar;
    pub fn add_columnex(lp: *mut lprec, count: libc::c_int,
                        column: *mut libc::c_double,
                        rowno: *mut libc::c_int)
     -> libc::c_uchar;
    pub fn str_add_column(lp: *mut lprec,
                          col_string: *mut libc::c_char)
     -> libc::c_uchar;
    pub fn set_column(lp: *mut lprec, colnr: libc::c_int,
                      column: *mut libc::c_double)
     -> libc::c_uchar;
    pub fn set_columnex(lp: *mut lprec, colnr: libc::c_int,
                        count: libc::c_int,
                        column: *mut libc::c_double,
                        rowno: *mut libc::c_int)
     -> libc::c_uchar;
    pub fn column_in_lp(lp: *mut lprec, column: *mut libc::c_double)
     -> libc::c_int;
    pub fn get_columnex(lp: *mut lprec, colnr: libc::c_int,
                        column: *mut libc::c_double,
                        nzrow: *mut libc::c_int)
     -> libc::c_int;
    pub fn get_column(lp: *mut lprec, colnr: libc::c_int,
                      column: *mut libc::c_double)
     -> libc::c_uchar;
    pub fn del_column(lp: *mut lprec, colnr: libc::c_int)
     -> libc::c_uchar;
    pub fn del_columnex(lp: *mut lprec, colmap: *mut LLrec)
     -> libc::c_uchar;
    pub fn set_mat(lp: *mut lprec, rownr: libc::c_int,
                   colnr: libc::c_int,
                   value: libc::c_double)
     -> libc::c_uchar;
    pub fn get_mat(lp: *mut lprec, rownr: libc::c_int,
                   colnr: libc::c_int) -> libc::c_double;
    pub fn get_mat_byindex(lp: *mut lprec, matindex: libc::c_int,
                           isrow: libc::c_uchar,
                           adjustsign: libc::c_uchar)
     -> libc::c_double;
    pub fn get_nonzeros(lp: *mut lprec) -> libc::c_int;
    pub fn set_bounds_tighter(lp: *mut lprec,
                              tighten: libc::c_uchar);
    pub fn get_bounds(lp: *mut lprec, column: libc::c_int,
                      lower: *mut libc::c_double,
                      upper: *mut libc::c_double)
     -> libc::c_uchar;
    pub fn get_bounds_tighter(lp: *mut lprec) -> libc::c_uchar;
    pub fn set_upbo(lp: *mut lprec, colnr: libc::c_int,
                    value: libc::c_double)
     -> libc::c_uchar;
    pub fn get_upbo(lp: *mut lprec, colnr: libc::c_int)
     -> libc::c_double;
    pub fn set_lowbo(lp: *mut lprec, colnr: libc::c_int,
                     value: libc::c_double)
     -> libc::c_uchar;
    pub fn get_lowbo(lp: *mut lprec, colnr: libc::c_int)
     -> libc::c_double;
    pub fn set_bounds(lp: *mut lprec, colnr: libc::c_int,
                      lower: libc::c_double,
                      upper: libc::c_double)
     -> libc::c_uchar;
    pub fn set_unbounded(lp: *mut lprec, colnr: libc::c_int)
     -> libc::c_uchar;
    pub fn is_unbounded(lp: *mut lprec, colnr: libc::c_int)
     -> libc::c_uchar;
    pub fn set_int(lp: *mut lprec, colnr: libc::c_int,
                   must_be_int: libc::c_uchar)
     -> libc::c_uchar;
    pub fn is_int(lp: *mut lprec, colnr: libc::c_int)
     -> libc::c_uchar;
    pub fn set_binary(lp: *mut lprec, colnr: libc::c_int,
                      must_be_bin: libc::c_uchar)
     -> libc::c_uchar;
    pub fn is_binary(lp: *mut lprec, colnr: libc::c_int)
     -> libc::c_uchar;
    pub fn set_semicont(lp: *mut lprec, colnr: libc::c_int,
                        must_be_sc: libc::c_uchar)
     -> libc::c_uchar;
    pub fn is_semicont(lp: *mut lprec, colnr: libc::c_int)
     -> libc::c_uchar;
    pub fn is_negative(lp: *mut lprec, colnr: libc::c_int)
     -> libc::c_uchar;
    pub fn set_var_weights(lp: *mut lprec,
                           weights: *mut libc::c_double)
     -> libc::c_uchar;
    pub fn get_var_priority(lp: *mut lprec, colnr: libc::c_int)
     -> libc::c_int;
    pub fn set_pseudocosts(lp: *mut lprec,
                           clower: *mut libc::c_double,
                           cupper: *mut libc::c_double,
                           updatelimit: *mut libc::c_int)
     -> libc::c_uchar;
    pub fn get_pseudocosts(lp: *mut lprec,
                           clower: *mut libc::c_double,
                           cupper: *mut libc::c_double,
                           updatelimit: *mut libc::c_int)
     -> libc::c_uchar;
    pub fn add_SOS(lp: *mut lprec, name: *mut libc::c_char,
                   sostype: libc::c_int,
                   priority: libc::c_int,
                   count: libc::c_int,
                   sosvars: *mut libc::c_int,
                   weights: *mut libc::c_double)
     -> libc::c_int;
    pub fn is_SOS_var(lp: *mut lprec, colnr: libc::c_int)
     -> libc::c_uchar;
    pub fn set_row_name(lp: *mut lprec, rownr: libc::c_int,
                        new_name: *mut libc::c_char)
     -> libc::c_uchar;
    pub fn get_row_name(lp: *mut lprec, rownr: libc::c_int)
     -> *mut libc::c_char;
    pub fn get_origrow_name(lp: *mut lprec, rownr: libc::c_int)
     -> *mut libc::c_char;
    pub fn set_col_name(lp: *mut lprec, colnr: libc::c_int,
                        new_name: *mut libc::c_char)
     -> libc::c_uchar;
    pub fn get_col_name(lp: *mut lprec, colnr: libc::c_int)
     -> *mut libc::c_char;
    pub fn get_origcol_name(lp: *mut lprec, colnr: libc::c_int)
     -> *mut libc::c_char;
    pub fn unscale(lp: *mut lprec);
    pub fn set_preferdual(lp: *mut lprec, dodual: libc::c_uchar);
    pub fn set_simplextype(lp: *mut lprec,
                           simplextype: libc::c_int);
    pub fn get_simplextype(lp: *mut lprec) -> libc::c_int;
    pub fn default_basis(lp: *mut lprec);
    pub fn set_basiscrash(lp: *mut lprec, mode: libc::c_int);
    pub fn get_basiscrash(lp: *mut lprec) -> libc::c_int;
    pub fn set_basisvar(lp: *mut lprec, basisPos: libc::c_int,
                        enteringCol: libc::c_int)
     -> libc::c_int;
    pub fn set_basis(lp: *mut lprec, bascolumn: *mut libc::c_int,
                     nonbasic: libc::c_uchar)
     -> libc::c_uchar;
    pub fn get_basis(lp: *mut lprec, bascolumn: *mut libc::c_int,
                     nonbasic: libc::c_uchar)
     -> libc::c_uchar;
    pub fn reset_basis(lp: *mut lprec);
    pub fn guess_basis(lp: *mut lprec,
                       guessvector: *mut libc::c_double,
                       basisvector: *mut libc::c_int)
     -> libc::c_uchar;
    pub fn is_feasible(lp: *mut lprec, values: *mut libc::c_double,
                       threshold: libc::c_double)
     -> libc::c_uchar;
    pub fn solve(lp: *mut lprec) -> libc::c_int;
    pub fn time_elapsed(lp: *mut lprec) -> libc::c_double;
    pub fn put_bb_nodefunc(lp: *mut lprec, newnode: lphandleint_intfunc,
                           bbnodehandle: *mut libc::c_void);
    pub fn put_bb_branchfunc(lp: *mut lprec, newbranch: lphandleint_intfunc,
                             bbbranchhandle: *mut libc::c_void);
    pub fn put_abortfunc(lp: *mut lprec, newctrlc: lphandle_intfunc,
                         ctrlchandle: *mut libc::c_void);
    pub fn put_logfunc(lp: *mut lprec, newlog: lphandlestr_func,
                       loghandle: *mut libc::c_void);
    pub fn put_msgfunc(lp: *mut lprec, newmsg: lphandleint_func,
                       msghandle: *mut libc::c_void,
                       mask: libc::c_int);
    pub fn get_primal_solution(lp: *mut lprec,
                               pv: *mut libc::c_double)
     -> libc::c_uchar;
    pub fn get_ptr_primal_solution(lp: *mut lprec,
                                   pv: *mut *mut libc::c_double)
     -> libc::c_uchar;
    pub fn get_dual_solution(lp: *mut lprec,
                             rc: *mut libc::c_double)
     -> libc::c_uchar;
    pub fn get_ptr_dual_solution(lp: *mut lprec,
                                 rc: *mut *mut libc::c_double)
     -> libc::c_uchar;
    pub fn get_lambda(lp: *mut lprec, lambda: *mut libc::c_double)
     -> libc::c_uchar;
    pub fn get_ptr_lambda(lp: *mut lprec,
                          lambda: *mut *mut libc::c_double)
     -> libc::c_uchar;
    pub fn read_MPS(filename: *mut libc::c_char,
                    options: libc::c_int) -> *mut lprec;
    pub fn read_mps(filename: *mut libc::FILE, options: libc::c_int)
     -> *mut lprec;
    pub fn read_freeMPS(filename: *mut libc::c_char,
                        options: libc::c_int) -> *mut lprec;
    pub fn read_freemps(filename: *mut libc::FILE, options: libc::c_int)
     -> *mut lprec;
    pub fn write_mps(lp: *mut lprec, filename: *mut libc::c_char)
     -> libc::c_uchar;
    pub fn write_MPS(lp: *mut lprec, output: *mut libc::FILE)
     -> libc::c_uchar;
    pub fn write_freemps(lp: *mut lprec,
                         filename: *mut libc::c_char)
     -> libc::c_uchar;
    pub fn write_freeMPS(lp: *mut lprec, output: *mut libc::FILE)
     -> libc::c_uchar;
    pub fn write_lp(lp: *mut lprec, filename: *mut libc::c_char)
     -> libc::c_uchar;
    pub fn write_LP(lp: *mut lprec, output: *mut libc::FILE)
     -> libc::c_uchar;
    pub fn LP_readhandle(lp: *mut *mut lprec, filename: *mut libc::FILE,
                         verbose: libc::c_int,
                         lp_name: *mut libc::c_char)
     -> libc::c_uchar;
    pub fn read_lp(filename: *mut libc::FILE, verbose: libc::c_int,
                   lp_name: *mut libc::c_char) -> *mut lprec;
    pub fn read_LP(filename: *mut libc::c_char,
                   verbose: libc::c_int,
                   lp_name: *mut libc::c_char) -> *mut lprec;
    pub fn write_basis(lp: *mut lprec, filename: *mut libc::c_char)
     -> libc::c_uchar;
    pub fn read_basis(lp: *mut lprec, filename: *mut libc::c_char,
                      info: *mut libc::c_char)
     -> libc::c_uchar;
    pub fn write_params(lp: *mut lprec, filename: *mut libc::c_char,
                        options: *mut libc::c_char)
     -> libc::c_uchar;
    pub fn read_params(lp: *mut lprec, filename: *mut libc::c_char,
                       options: *mut libc::c_char)
     -> libc::c_uchar;
    pub fn reset_params(lp: *mut lprec);
    pub fn print_lp(lp: *mut lprec);
    pub fn print_tableau(lp: *mut lprec);
    pub fn print_objective(lp: *mut lprec);
    pub fn print_solution(lp: *mut lprec, columns: libc::c_int);
    pub fn print_constraints(lp: *mut lprec, columns: libc::c_int);
    pub fn print_duals(lp: *mut lprec);
    pub fn print_scales(lp: *mut lprec);
    pub fn print_str(lp: *mut lprec, str: *mut libc::c_char);
    pub fn set_outputstream(lp: *mut lprec, stream: *mut libc::FILE);
    pub fn set_outputfile(lp: *mut lprec,
                          filename: *mut libc::c_char)
     -> libc::c_uchar;
    pub fn set_verbose(lp: *mut lprec, verbose: libc::c_int);
    pub fn get_verbose(lp: *mut lprec) -> libc::c_int;
    pub fn set_timeout(lp: *mut lprec, sectimeout: libc::c_long);
    pub fn get_timeout(lp: *mut lprec) -> libc::c_long;
    pub fn set_print_sol(lp: *mut lprec, print_sol: libc::c_int);
    pub fn get_print_sol(lp: *mut lprec) -> libc::c_int;
    pub fn set_debug(lp: *mut lprec, debug: libc::c_uchar);
    pub fn is_debug(lp: *mut lprec) -> libc::c_uchar;
    pub fn set_trace(lp: *mut lprec, trace: libc::c_uchar);
    pub fn is_trace(lp: *mut lprec) -> libc::c_uchar;
    pub fn print_debugdump(lp: *mut lprec,
                           filename: *mut libc::c_char)
     -> libc::c_uchar;
    pub fn set_anti_degen(lp: *mut lprec, anti_degen: libc::c_int);
    pub fn get_anti_degen(lp: *mut lprec) -> libc::c_int;
    pub fn is_anti_degen(lp: *mut lprec, testmask: libc::c_int)
     -> libc::c_uchar;
    pub fn set_presolve(lp: *mut lprec, presolvemode: libc::c_int,
                        maxloops: libc::c_int);
    pub fn get_presolve(lp: *mut lprec) -> libc::c_int;
    pub fn get_presolveloops(lp: *mut lprec) -> libc::c_int;
    pub fn is_presolve(lp: *mut lprec, testmask: libc::c_int)
     -> libc::c_uchar;
    pub fn get_orig_index(lp: *mut lprec, lp_index: libc::c_int)
     -> libc::c_int;
    pub fn get_lp_index(lp: *mut lprec, orig_index: libc::c_int)
     -> libc::c_int;
    pub fn set_maxpivot(lp: *mut lprec, max_num_inv: libc::c_int);
    pub fn get_maxpivot(lp: *mut lprec) -> libc::c_int;
    pub fn set_obj_bound(lp: *mut lprec, obj_bound: libc::c_double);
    pub fn get_obj_bound(lp: *mut lprec) -> libc::c_double;
    pub fn set_mip_gap(lp: *mut lprec, absolute: libc::c_uchar,
                       mip_gap: libc::c_double);
    pub fn get_mip_gap(lp: *mut lprec, absolute: libc::c_uchar)
     -> libc::c_double;
    pub fn set_bb_rule(lp: *mut lprec, bb_rule: libc::c_int);
    pub fn get_bb_rule(lp: *mut lprec) -> libc::c_int;
    pub fn set_var_branch(lp: *mut lprec, colnr: libc::c_int,
                          branch_mode: libc::c_int)
     -> libc::c_uchar;
    pub fn get_var_branch(lp: *mut lprec, colnr: libc::c_int)
     -> libc::c_int;
    pub fn is_infinite(lp: *mut lprec, value: libc::c_double)
     -> libc::c_uchar;
    pub fn set_infinite(lp: *mut lprec, infinite: libc::c_double);
    pub fn get_infinite(lp: *mut lprec) -> libc::c_double;
    pub fn set_epsint(lp: *mut lprec, epsint: libc::c_double);
    pub fn get_epsint(lp: *mut lprec) -> libc::c_double;
    pub fn set_epsb(lp: *mut lprec, epsb: libc::c_double);
    pub fn get_epsb(lp: *mut lprec) -> libc::c_double;
    pub fn set_epsd(lp: *mut lprec, epsd: libc::c_double);
    pub fn get_epsd(lp: *mut lprec) -> libc::c_double;
    pub fn set_epsel(lp: *mut lprec, epsel: libc::c_double);
    pub fn get_epsel(lp: *mut lprec) -> libc::c_double;
    pub fn set_epslevel(lp: *mut lprec, epslevel: libc::c_int)
     -> libc::c_uchar;
    pub fn set_scaling(lp: *mut lprec, scalemode: libc::c_int);
    pub fn get_scaling(lp: *mut lprec) -> libc::c_int;
    pub fn is_scalemode(lp: *mut lprec, testmask: libc::c_int)
     -> libc::c_uchar;
    pub fn is_scaletype(lp: *mut lprec, scaletype: libc::c_int)
     -> libc::c_uchar;
    pub fn is_integerscaling(lp: *mut lprec) -> libc::c_uchar;
    pub fn set_scalelimit(lp: *mut lprec,
                          scalelimit: libc::c_double);
    pub fn get_scalelimit(lp: *mut lprec) -> libc::c_double;
    pub fn set_improve(lp: *mut lprec, improve: libc::c_int);
    pub fn get_improve(lp: *mut lprec) -> libc::c_int;
    pub fn set_pivoting(lp: *mut lprec, piv_rule: libc::c_int);
    pub fn get_pivoting(lp: *mut lprec) -> libc::c_int;
    pub fn set_partialprice(lp: *mut lprec, blockcount: libc::c_int,
                            blockstart: *mut libc::c_int,
                            isrow: libc::c_uchar)
     -> libc::c_uchar;
    pub fn get_partialprice(lp: *mut lprec,
                            blockcount: *mut libc::c_int,
                            blockstart: *mut libc::c_int,
                            isrow: libc::c_uchar);
    pub fn set_multiprice(lp: *mut lprec,
                          multiblockdiv: libc::c_int)
     -> libc::c_uchar;
    pub fn get_multiprice(lp: *mut lprec, getabssize: libc::c_uchar)
     -> libc::c_int;
    pub fn is_use_names(lp: *mut lprec, isrow: libc::c_uchar)
     -> libc::c_uchar;
    pub fn set_use_names(lp: *mut lprec, isrow: libc::c_uchar,
                         use_names: libc::c_uchar);
    pub fn get_nameindex(lp: *mut lprec, varname: *mut libc::c_char,
                         isrow: libc::c_uchar)
     -> libc::c_int;
    pub fn is_piv_mode(lp: *mut lprec, testmask: libc::c_int)
     -> libc::c_uchar;
    pub fn is_piv_rule(lp: *mut lprec, rule: libc::c_int)
     -> libc::c_uchar;
    pub fn set_break_at_first(lp: *mut lprec,
                              break_at_first: libc::c_uchar);
    pub fn is_break_at_first(lp: *mut lprec) -> libc::c_uchar;
    pub fn set_bb_floorfirst(lp: *mut lprec,
                             bb_floorfirst: libc::c_int);
    pub fn get_bb_floorfirst(lp: *mut lprec) -> libc::c_int;
    pub fn set_bb_depthlimit(lp: *mut lprec,
                             bb_maxlevel: libc::c_int);
    pub fn get_bb_depthlimit(lp: *mut lprec) -> libc::c_int;
    pub fn set_break_at_value(lp: *mut lprec,
                              break_at_value: libc::c_double);
    pub fn get_break_at_value(lp: *mut lprec) -> libc::c_double;
    pub fn set_negrange(lp: *mut lprec, negrange: libc::c_double);
    pub fn get_negrange(lp: *mut lprec) -> libc::c_double;
    pub fn set_epsperturb(lp: *mut lprec,
                          epsperturb: libc::c_double);
    pub fn get_epsperturb(lp: *mut lprec) -> libc::c_double;
    pub fn set_epspivot(lp: *mut lprec, epspivot: libc::c_double);
    pub fn get_epspivot(lp: *mut lprec) -> libc::c_double;
    pub fn get_max_level(lp: *mut lprec) -> libc::c_int;
    pub fn get_total_nodes(lp: *mut lprec) -> libc::c_longlong;
    pub fn get_total_iter(lp: *mut lprec) -> libc::c_longlong;
    pub fn get_objective(lp: *mut lprec) -> libc::c_double;
    pub fn get_working_objective(lp: *mut lprec) -> libc::c_double;
    pub fn get_var_primalresult(lp: *mut lprec, index: libc::c_int)
     -> libc::c_double;
    pub fn get_var_dualresult(lp: *mut lprec, index: libc::c_int)
     -> libc::c_double;
    pub fn get_variables(lp: *mut lprec, var: *mut libc::c_double)
     -> libc::c_uchar;
    pub fn get_ptr_variables(lp: *mut lprec,
                             var: *mut *mut libc::c_double)
     -> libc::c_uchar;
    pub fn get_constraints(lp: *mut lprec,
                           constr: *mut libc::c_double)
     -> libc::c_uchar;
    pub fn get_ptr_constraints(lp: *mut lprec,
                               constr: *mut *mut libc::c_double)
     -> libc::c_uchar;
    pub fn get_sensitivity_rhs(lp: *mut lprec,
                               duals: *mut libc::c_double,
                               dualsfrom: *mut libc::c_double,
                               dualstill: *mut libc::c_double)
     -> libc::c_uchar;
    pub fn get_ptr_sensitivity_rhs(lp: *mut lprec,
                                   duals: *mut *mut libc::c_double,
                                   dualsfrom:
                                       *mut *mut libc::c_double,
                                   dualstill:
                                       *mut *mut libc::c_double)
     -> libc::c_uchar;
    pub fn get_sensitivity_obj(lp: *mut lprec,
                               objfrom: *mut libc::c_double,
                               objtill: *mut libc::c_double)
     -> libc::c_uchar;
    pub fn get_sensitivity_objex(lp: *mut lprec,
                                 objfrom: *mut libc::c_double,
                                 objtill: *mut libc::c_double,
                                 objfromvalue: *mut libc::c_double,
                                 objtillvalue: *mut libc::c_double)
     -> libc::c_uchar;
    pub fn get_ptr_sensitivity_obj(lp: *mut lprec,
                                   objfrom:
                                       *mut *mut libc::c_double,
                                   objtill:
                                       *mut *mut libc::c_double)
     -> libc::c_uchar;
    pub fn get_ptr_sensitivity_objex(lp: *mut lprec,
                                     objfrom:
                                         *mut *mut libc::c_double,
                                     objtill:
                                         *mut *mut libc::c_double,
                                     objfromvalue:
                                         *mut *mut libc::c_double,
                                     objtillvalue:
                                         *mut *mut libc::c_double)
     -> libc::c_uchar;
    pub fn set_solutionlimit(lp: *mut lprec, limit: libc::c_int);
    pub fn get_solutionlimit(lp: *mut lprec) -> libc::c_int;
    pub fn get_solutioncount(lp: *mut lprec) -> libc::c_int;
    pub fn get_Norig_rows(lp: *mut lprec) -> libc::c_int;
    pub fn get_Nrows(lp: *mut lprec) -> libc::c_int;
    pub fn get_Lrows(lp: *mut lprec) -> libc::c_int;
    pub fn get_Norig_columns(lp: *mut lprec) -> libc::c_int;
    pub fn get_Ncolumns(lp: *mut lprec) -> libc::c_int;
    pub fn MPS_readex(newlp: *mut *mut lprec,
                      userhandle: *mut libc::c_void,
                      read_modeldata: read_modeldata_func,
                      typeMPS: libc::c_int,
                      options: libc::c_int)
     -> libc::c_uchar;
    pub fn read_lpex(userhandle: *mut libc::c_void,
                     read_modeldata: read_modeldata_func,
                     verbose: libc::c_int,
                     lp_name: *mut libc::c_char) -> *mut lprec;
    pub fn write_lpex(lp: *mut lprec, userhandle: *mut libc::c_void,
                      write_modeldata: write_modeldata_func)
     -> libc::c_uchar;
    pub fn read_mpsex(userhandle: *mut libc::c_void,
                      read_modeldata: read_modeldata_func,
                      options: libc::c_int) -> *mut lprec;
    pub fn read_freempsex(userhandle: *mut libc::c_void,
                          read_modeldata: read_modeldata_func,
                          options: libc::c_int) -> *mut lprec;
    pub fn MPS_writefileex(lp: *mut lprec, typeMPS: libc::c_int,
                           userhandle: *mut libc::c_void,
                           write_modeldata: write_modeldata_func)
     -> libc::c_uchar;
    pub fn set_callbacks(lp: *mut lprec) -> libc::c_uchar;
    pub fn yieldformessages(lp: *mut lprec) -> libc::c_int;
    pub fn userabort(lp: *mut lprec, message: libc::c_int)
     -> libc::c_uchar;
    pub fn append_rows(lp: *mut lprec, deltarows: libc::c_int)
     -> libc::c_uchar;
    pub fn append_columns(lp: *mut lprec, deltacolumns: libc::c_int)
     -> libc::c_uchar;
    pub fn inc_rows(lp: *mut lprec, delta: libc::c_int);
    pub fn inc_columns(lp: *mut lprec, delta: libc::c_int);
    pub fn init_rowcol_names(lp: *mut lprec) -> libc::c_uchar;
    pub fn inc_row_space(lp: *mut lprec, deltarows: libc::c_int)
     -> libc::c_uchar;
    pub fn inc_col_space(lp: *mut lprec, deltacols: libc::c_int)
     -> libc::c_uchar;
    pub fn shift_rowcoldata(lp: *mut lprec, base: libc::c_int,
                            delta: libc::c_int, usedmap: *mut LLrec,
                            isrow: libc::c_uchar)
     -> libc::c_uchar;
    pub fn shift_basis(lp: *mut lprec, base: libc::c_int,
                       delta: libc::c_int, usedmap: *mut LLrec,
                       isrow: libc::c_uchar)
     -> libc::c_uchar;
    pub fn shift_rowdata(lp: *mut lprec, base: libc::c_int,
                         delta: libc::c_int, usedmap: *mut LLrec)
     -> libc::c_uchar;
    pub fn shift_coldata(lp: *mut lprec, base: libc::c_int,
                         delta: libc::c_int, usedmap: *mut LLrec)
     -> libc::c_uchar;
    pub fn is_chsign(lp: *mut lprec, rownr: libc::c_int)
     -> libc::c_uchar;
    pub fn inc_lag_space(lp: *mut lprec, deltarows: libc::c_int,
                         ignoreMAT: libc::c_uchar)
     -> libc::c_uchar;
    pub fn make_lag(server: *mut lprec) -> *mut lprec;
    pub fn get_rh_upper(lp: *mut lprec, rownr: libc::c_int)
     -> libc::c_double;
    pub fn get_rh_lower(lp: *mut lprec, rownr: libc::c_int)
     -> libc::c_double;
    pub fn set_rh_upper(lp: *mut lprec, rownr: libc::c_int,
                        value: libc::c_double)
     -> libc::c_uchar;
    pub fn set_rh_lower(lp: *mut lprec, rownr: libc::c_int,
                        value: libc::c_double)
     -> libc::c_uchar;
    pub fn bin_count(lp: *mut lprec, working: libc::c_uchar)
     -> libc::c_int;
    pub fn MIP_count(lp: *mut lprec) -> libc::c_int;
    pub fn SOS_count(lp: *mut lprec) -> libc::c_int;
    pub fn GUB_count(lp: *mut lprec) -> libc::c_int;
    pub fn identify_GUB(lp: *mut lprec, mark: libc::c_uchar)
     -> libc::c_int;
    pub fn prepare_GUB(lp: *mut lprec) -> libc::c_int;
    pub fn refactRecent(lp: *mut lprec) -> libc::c_uchar;
    pub fn check_if_less(lp: *mut lprec, x: libc::c_double,
                         y: libc::c_double,
                         variable: libc::c_int)
     -> libc::c_uchar;
    pub fn feasiblePhase1(lp: *mut lprec, epsvalue: libc::c_double)
     -> libc::c_uchar;
    pub fn free_duals(lp: *mut lprec);
    pub fn initialize_solution(lp: *mut lprec,
                               shiftbounds: libc::c_uchar);
    pub fn recompute_solution(lp: *mut lprec,
                              shiftbounds: libc::c_uchar);
    pub fn verify_solution(lp: *mut lprec, reinvert: libc::c_uchar,
                           info: *mut libc::c_char)
     -> libc::c_int;
    pub fn check_solution(lp: *mut lprec, lastcolumn: libc::c_int,
                          solution: *mut libc::c_double,
                          upbo: *mut libc::c_double,
                          lowbo: *mut libc::c_double,
                          tolerance: libc::c_double)
     -> libc::c_int;
    pub fn is_fixedvar(lp: *mut lprec, variable: libc::c_int)
     -> libc::c_uchar;
    pub fn is_splitvar(lp: *mut lprec, colnr: libc::c_int)
     -> libc::c_uchar;
    pub fn set_action(actionvar: *mut libc::c_int,
                      actionmask: libc::c_int);
    pub fn clear_action(actionvar: *mut libc::c_int,
                        actionmask: libc::c_int);
    pub fn is_action(actionvar: libc::c_int,
                     testmask: libc::c_int)
     -> libc::c_uchar;
    pub fn is_bb_rule(lp: *mut lprec, bb_rule: libc::c_int)
     -> libc::c_uchar;
    pub fn is_bb_mode(lp: *mut lprec, bb_mask: libc::c_int)
     -> libc::c_uchar;
    pub fn get_piv_rule(lp: *mut lprec) -> libc::c_int;
    pub fn get_str_piv_rule(rule: libc::c_int)
     -> *mut libc::c_char;
    pub fn set_var_priority(lp: *mut lprec) -> libc::c_uchar;
    pub fn find_sc_bbvar(lp: *mut lprec, count: *mut libc::c_int)
     -> libc::c_int;
    pub fn find_sos_bbvar(lp: *mut lprec, count: *mut libc::c_int,
                          intsos: libc::c_uchar)
     -> libc::c_int;
    pub fn find_int_bbvar(lp: *mut lprec, count: *mut libc::c_int,
                          BB: *mut BBrec,
                          isfeasible: *mut libc::c_uchar)
     -> libc::c_int;
    pub fn compute_dualslacks(lp: *mut lprec, target: libc::c_int,
                              dvalues: *mut *mut libc::c_double,
                              nzdvalues: *mut *mut libc::c_int,
                              dosum: libc::c_uchar)
     -> libc::c_double;
    pub fn solution_is_int(lp: *mut lprec, index: libc::c_int,
                           checkfixed: libc::c_uchar)
     -> libc::c_uchar;
    pub fn bb_better(lp: *mut lprec, target: libc::c_int,
                     mode: libc::c_int) -> libc::c_uchar;
    pub fn construct_solution(lp: *mut lprec,
                              target: *mut libc::c_double);
    pub fn transfer_solution_var(lp: *mut lprec,
                                 uservar: libc::c_int);
    pub fn construct_duals(lp: *mut lprec) -> libc::c_uchar;
    pub fn construct_sensitivity_duals(lp: *mut lprec)
     -> libc::c_uchar;
    pub fn construct_sensitivity_obj(lp: *mut lprec)
     -> libc::c_uchar;
    pub fn add_GUB(lp: *mut lprec, name: *mut libc::c_char,
                   priority: libc::c_int,
                   count: libc::c_int,
                   sosvars: *mut libc::c_int)
     -> libc::c_int;
    pub fn push_basis(lp: *mut lprec, basisvar: *mut libc::c_int,
                      isbasic: *mut libc::c_uchar,
                      islower: *mut libc::c_uchar) -> *mut basisrec;
    pub fn compare_basis(lp: *mut lprec) -> libc::c_uchar;
    pub fn restore_basis(lp: *mut lprec) -> libc::c_uchar;
    pub fn pop_basis(lp: *mut lprec, restore: libc::c_uchar)
     -> libc::c_uchar;
    pub fn is_BasisReady(lp: *mut lprec) -> libc::c_uchar;
    pub fn is_slackbasis(lp: *mut lprec) -> libc::c_uchar;
    pub fn verify_basis(lp: *mut lprec) -> libc::c_uchar;
    pub fn unload_basis(lp: *mut lprec, restorelast: libc::c_uchar)
     -> libc::c_int;
    pub fn perturb_bounds(lp: *mut lprec, perturbed: *mut BBrec,
                          doRows: libc::c_uchar,
                          doCols: libc::c_uchar,
                          includeFIXED: libc::c_uchar)
     -> libc::c_int;
    pub fn validate_bounds(lp: *mut lprec,
                           upbo: *mut libc::c_double,
                           lowbo: *mut libc::c_double)
     -> libc::c_uchar;
    pub fn impose_bounds(lp: *mut lprec, upbo: *mut libc::c_double,
                         lowbo: *mut libc::c_double)
     -> libc::c_uchar;
    pub fn unload_BB(lp: *mut lprec) -> libc::c_int;
    pub fn feasibilityOffset(lp: *mut lprec, isdual: libc::c_uchar)
     -> libc::c_double;
    pub fn isP1extra(lp: *mut lprec) -> libc::c_uchar;
    pub fn get_refactfrequency(lp: *mut lprec,
                               _final: libc::c_uchar)
     -> libc::c_double;
    pub fn findBasicFixedvar(lp: *mut lprec, afternr: libc::c_int,
                             slacksonly: libc::c_uchar)
     -> libc::c_int;
    pub fn isBasisVarFeasible(lp: *mut lprec, tol: libc::c_double,
                              basis_row: libc::c_int)
     -> libc::c_uchar;
    pub fn isPrimalFeasible(lp: *mut lprec, tol: libc::c_double,
                            infeasibles: *mut libc::c_int,
                            feasibilitygap: *mut libc::c_double)
     -> libc::c_uchar;
    pub fn isDualFeasible(lp: *mut lprec, tol: libc::c_double,
                          boundflips: *mut libc::c_int,
                          infeasibles: *mut libc::c_int,
                          feasibilitygap: *mut libc::c_double)
     -> libc::c_uchar;
    pub fn preprocess(lp: *mut lprec) -> libc::c_int;
    pub fn postprocess(lp: *mut lprec);
    pub fn performiteration(lp: *mut lprec, rownr: libc::c_int,
                            varin: libc::c_int,
                            theta: libc::c_double,
                            primal: libc::c_uchar,
                            allowminit: libc::c_uchar,
                            prow: *mut libc::c_double,
                            nzprow: *mut libc::c_int,
                            pcol: *mut libc::c_double,
                            nzpcol: *mut libc::c_int,
                            boundswaps: *mut libc::c_int)
     -> libc::c_uchar;
    pub fn transfer_solution(lp: *mut lprec,
                             dofinal: libc::c_uchar);
    pub fn scaled_floor(lp: *mut lprec, colnr: libc::c_int,
                        value: libc::c_double,
                        epsscale: libc::c_double)
     -> libc::c_double;
    pub fn scaled_ceil(lp: *mut lprec, colnr: libc::c_int,
                       value: libc::c_double,
                       epsscale: libc::c_double)
     -> libc::c_double;
    pub fn varmap_lock(lp: *mut lprec);
    pub fn varmap_clear(lp: *mut lprec);
    pub fn varmap_canunlock(lp: *mut lprec) -> libc::c_uchar;
    pub fn varmap_addconstraint(lp: *mut lprec);
    pub fn varmap_addcolumn(lp: *mut lprec);
    pub fn varmap_delete(lp: *mut lprec, base: libc::c_int,
                         delta: libc::c_int, varmap: *mut LLrec);
    pub fn varmap_compact(lp: *mut lprec, prev_rows: libc::c_int,
                          prev_cols: libc::c_int);
    pub fn varmap_validate(lp: *mut lprec, varno: libc::c_int)
     -> libc::c_uchar;
    pub fn del_varnameex(lp: *mut lprec, namelist: *mut *mut hashelem,
                         items: libc::c_int, ht: *mut hashtable,
                         varnr: libc::c_int, varmap: *mut LLrec)
     -> libc::c_uchar;
    pub fn init_pseudocost(lp: *mut lprec, pseudotype: libc::c_int)
     -> *mut BBPSrec;
    pub fn free_pseudocost(lp: *mut lprec);
    pub fn get_pseudorange(pc: *mut BBPSrec, mipvar: libc::c_int,
                           varcode: libc::c_int)
     -> libc::c_double;
    pub fn update_pseudocost(pc: *mut BBPSrec, mipvar: libc::c_int,
                             varcode: libc::c_int,
                             capupper: libc::c_uchar,
                             varsol: libc::c_double);
    pub fn get_pseudobranchcost(pc: *mut BBPSrec,
                                mipvar: libc::c_int,
                                dofloor: libc::c_uchar)
     -> libc::c_double;
    pub fn get_pseudonodecost(pc: *mut BBPSrec, mipvar: libc::c_int,
                              vartype: libc::c_int,
                              varsol: libc::c_double)
     -> libc::c_double;
    pub fn set_OF_override(lp: *mut lprec,
                           ofVector: *mut libc::c_double);
    pub fn set_OF_p1extra(lp: *mut lprec, p1extra: libc::c_double);
    pub fn unset_OF_p1extra(lp: *mut lprec);
    pub fn modifyOF1(lp: *mut lprec, index: libc::c_int,
                     ofValue: *mut libc::c_double,
                     mult: libc::c_double)
     -> libc::c_uchar;
    pub fn get_OF_active(lp: *mut lprec, varnr: libc::c_int,
                         mult: libc::c_double)
     -> libc::c_double;
    pub fn is_OF_nz(lp: *mut lprec, colnr: libc::c_int)
     -> libc::c_uchar;
    pub fn get_basisOF(lp: *mut lprec, coltarget: *mut libc::c_int,
                       crow: *mut libc::c_double,
                       colno: *mut libc::c_int)
     -> libc::c_int;
    pub fn get_basiscolumn(lp: *mut lprec, j: libc::c_int,
                           rn: *mut libc::c_int,
                           bj: *mut libc::c_double)
     -> libc::c_int;
    pub fn obtain_column(lp: *mut lprec, varin: libc::c_int,
                         pcol: *mut libc::c_double,
                         nzlist: *mut libc::c_int,
                         maxabs: *mut libc::c_int)
     -> libc::c_int;
    pub fn compute_theta(lp: *mut lprec, rownr: libc::c_int,
                         theta: *mut libc::c_double,
                         isupbound: libc::c_int,
                         HarrisScalar: libc::c_double,
                         primal: libc::c_uchar)
     -> libc::c_int;
    pub fn findBasisPos(lp: *mut lprec, notint: libc::c_int,
                        var_basic: *mut libc::c_int)
     -> libc::c_int;
    pub fn check_degeneracy(lp: *mut lprec,
                            pcol: *mut libc::c_double,
                            degencount: *mut libc::c_int)
     -> libc::c_uchar;
}