123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420moduleCI=Cstubs_internalsexternallp_glpk_stub_1_glp_term_out:int->unit="lp_glpk_stub_1_glp_term_out"externallp_glpk_stub_2_glp_create_prob:unit->CI.voidp="lp_glpk_stub_2_glp_create_prob"externallp_glpk_stub_3_glp_delete_prob:_CI.fatptr->unit="lp_glpk_stub_3_glp_delete_prob"externallp_glpk_stub_4_glp_set_prob_name:_CI.fatptr->_CI.fatptr->unit="lp_glpk_stub_4_glp_set_prob_name"externallp_glpk_stub_5_glp_get_prob_name:_CI.fatptr->CI.voidp="lp_glpk_stub_5_glp_get_prob_name"externallp_glpk_stub_6_glp_set_obj_dir:_CI.fatptr->int->unit="lp_glpk_stub_6_glp_set_obj_dir"externallp_glpk_stub_7_glp_get_obj_dir:_CI.fatptr->int="lp_glpk_stub_7_glp_get_obj_dir"externallp_glpk_stub_8_glp_add_rows:_CI.fatptr->int->int="lp_glpk_stub_8_glp_add_rows"externallp_glpk_stub_9_glp_add_cols:_CI.fatptr->int->int="lp_glpk_stub_9_glp_add_cols"externallp_glpk_stub_10_glp_set_row_name:_CI.fatptr->int->_CI.fatptr->unit="lp_glpk_stub_10_glp_set_row_name"externallp_glpk_stub_11_glp_get_row_name:_CI.fatptr->int->CI.voidp="lp_glpk_stub_11_glp_get_row_name"externallp_glpk_stub_12_glp_set_col_name:_CI.fatptr->int->_CI.fatptr->unit="lp_glpk_stub_12_glp_set_col_name"externallp_glpk_stub_13_glp_get_col_name:_CI.fatptr->int->CI.voidp="lp_glpk_stub_13_glp_get_col_name"externallp_glpk_stub_14_glp_set_row_bnds:_CI.fatptr->int->int->float->float->unit="lp_glpk_stub_14_glp_set_row_bnds"externallp_glpk_stub_15_glp_set_col_bnds:_CI.fatptr->int->int->float->float->unit="lp_glpk_stub_15_glp_set_col_bnds"externallp_glpk_stub_16_glp_set_obj_coef:_CI.fatptr->int->float->unit="lp_glpk_stub_16_glp_set_obj_coef"externallp_glpk_stub_17_glp_set_mat_row:_CI.fatptr->int->int->_CI.fatptr->_CI.fatptr->unit="lp_glpk_stub_17_glp_set_mat_row"externallp_glpk_stub_18_glp_set_mat_col:_CI.fatptr->int->int->_CI.fatptr->_CI.fatptr->unit="lp_glpk_stub_18_glp_set_mat_col"externallp_glpk_stub_19_glp_load_matrix:_CI.fatptr->int->_CI.fatptr->_CI.fatptr->_CI.fatptr->unit="lp_glpk_stub_19_glp_load_matrix"externallp_glpk_stub_20_glp_set_col_kind:_CI.fatptr->int->int->unit="lp_glpk_stub_20_glp_set_col_kind"externallp_glpk_stub_21_glp_get_col_kind:_CI.fatptr->int->int="lp_glpk_stub_21_glp_get_col_kind"externallp_glpk_stub_22_glp_get_num_rows:_CI.fatptr->int="lp_glpk_stub_22_glp_get_num_rows"externallp_glpk_stub_23_glp_get_num_cols:_CI.fatptr->int="lp_glpk_stub_23_glp_get_num_cols"externallp_glpk_stub_24_glp_get_num_nz:_CI.fatptr->int="lp_glpk_stub_24_glp_get_num_nz"externallp_glpk_stub_25_glp_get_num_int:_CI.fatptr->int="lp_glpk_stub_25_glp_get_num_int"externallp_glpk_stub_26_glp_get_num_bin:_CI.fatptr->int="lp_glpk_stub_26_glp_get_num_bin"externallp_glpk_stub_27_glp_init_smcp:_CI.fatptr->unit="lp_glpk_stub_27_glp_init_smcp"externallp_glpk_stub_28_glp_init_iocp:_CI.fatptr->unit="lp_glpk_stub_28_glp_init_iocp"externallp_glpk_stub_29_glp_simplex:_CI.fatptr->_CI.fatptr->int="lp_glpk_stub_29_glp_simplex"externallp_glpk_stub_30_glp_intopt:_CI.fatptr->_CI.fatptr->int="lp_glpk_stub_30_glp_intopt"externallp_glpk_stub_31_glp_get_status:_CI.fatptr->int="lp_glpk_stub_31_glp_get_status"externallp_glpk_stub_32_glp_mip_status:_CI.fatptr->int="lp_glpk_stub_32_glp_mip_status"externallp_glpk_stub_33_glp_get_obj_val:_CI.fatptr->float="lp_glpk_stub_33_glp_get_obj_val"externallp_glpk_stub_34_glp_mip_obj_val:_CI.fatptr->float="lp_glpk_stub_34_glp_mip_obj_val"externallp_glpk_stub_35_glp_get_row_prim:_CI.fatptr->int->float="lp_glpk_stub_35_glp_get_row_prim"externallp_glpk_stub_36_glp_get_row_dual:_CI.fatptr->int->float="lp_glpk_stub_36_glp_get_row_dual"externallp_glpk_stub_37_glp_mip_row_val:_CI.fatptr->int->float="lp_glpk_stub_37_glp_mip_row_val"externallp_glpk_stub_38_glp_get_col_prim:_CI.fatptr->int->float="lp_glpk_stub_38_glp_get_col_prim"externallp_glpk_stub_39_glp_get_col_dual:_CI.fatptr->int->float="lp_glpk_stub_39_glp_get_col_dual"externallp_glpk_stub_40_glp_mip_col_val:_CI.fatptr->int->float="lp_glpk_stub_40_glp_mip_col_val"type'aresult='atype'areturn='atype'afn=|Returns:'aCI.typ->'areturnfn|Function:'aCI.typ*'bfn->('a->'b)fnletmap_resultfx=fxletreturningt=Returnstlet(@->)fp=Function(f,p)letforeign:typeab.string->(a->b)fn->(a->b)=funnamet->matcht,namewith|Function(CI.Pointer_,Function(CI.PrimitiveCI.Int,Returns(CI.PrimitiveCI.Double))),"glp_mip_col_val"->(funx1x3->letCI.CPointerx2=x1inlp_glpk_stub_40_glp_mip_col_valx2x3)|Function(CI.Pointer_,Function(CI.PrimitiveCI.Int,Returns(CI.PrimitiveCI.Double))),"glp_get_col_dual"->(funx4x6->letCI.CPointerx5=x4inlp_glpk_stub_39_glp_get_col_dualx5x6)|Function(CI.Pointer_,Function(CI.PrimitiveCI.Int,Returns(CI.PrimitiveCI.Double))),"glp_get_col_prim"->(funx7x9->letCI.CPointerx8=x7inlp_glpk_stub_38_glp_get_col_primx8x9)|Function(CI.Pointer_,Function(CI.PrimitiveCI.Int,Returns(CI.PrimitiveCI.Double))),"glp_mip_row_val"->(funx10x12->letCI.CPointerx11=x10inlp_glpk_stub_37_glp_mip_row_valx11x12)|Function(CI.Pointer_,Function(CI.PrimitiveCI.Int,Returns(CI.PrimitiveCI.Double))),"glp_get_row_dual"->(funx13x15->letCI.CPointerx14=x13inlp_glpk_stub_36_glp_get_row_dualx14x15)|Function(CI.Pointer_,Function(CI.PrimitiveCI.Int,Returns(CI.PrimitiveCI.Double))),"glp_get_row_prim"->(funx16x18->letCI.CPointerx17=x16inlp_glpk_stub_35_glp_get_row_primx17x18)|Function(CI.Pointer_,Returns(CI.PrimitiveCI.Double)),"glp_mip_obj_val"->(funx19->letCI.CPointerx20=x19inlp_glpk_stub_34_glp_mip_obj_valx20)|Function(CI.Pointer_,Returns(CI.PrimitiveCI.Double)),"glp_get_obj_val"->(funx21->letCI.CPointerx22=x21inlp_glpk_stub_33_glp_get_obj_valx22)|Function(CI.Pointer_,Returns(CI.View{CI.ty=CI.PrimitiveCI.Int;read=x25;_})),"glp_mip_status"->(funx23->letCI.CPointerx24=x23inx25(lp_glpk_stub_32_glp_mip_statusx24))|Function(CI.Pointer_,Returns(CI.View{CI.ty=CI.PrimitiveCI.Int;read=x28;_})),"glp_get_status"->(funx26->letCI.CPointerx27=x26inx28(lp_glpk_stub_31_glp_get_statusx27))|Function(CI.Pointer_,Function(CI.Pointer_,Returns(CI.PrimitiveCI.Int))),"glp_intopt"->(funx29x31->letCI.CPointerx32=x31inletCI.CPointerx30=x29inlp_glpk_stub_30_glp_intoptx30x32)|Function(CI.Pointer_,Function(CI.Pointer_,Returns(CI.PrimitiveCI.Int))),"glp_simplex"->(funx33x35->letCI.CPointerx36=x35inletCI.CPointerx34=x33inlp_glpk_stub_29_glp_simplexx34x36)|Function(CI.Pointer_,ReturnsCI.Void),"glp_init_iocp"->(funx37->letCI.CPointerx38=x37inlp_glpk_stub_28_glp_init_iocpx38)|Function(CI.Pointer_,ReturnsCI.Void),"glp_init_smcp"->(funx39->letCI.CPointerx40=x39inlp_glpk_stub_27_glp_init_smcpx40)|Function(CI.Pointer_,Returns(CI.PrimitiveCI.Int)),"glp_get_num_bin"->(funx41->letCI.CPointerx42=x41inlp_glpk_stub_26_glp_get_num_binx42)|Function(CI.Pointer_,Returns(CI.PrimitiveCI.Int)),"glp_get_num_int"->(funx43->letCI.CPointerx44=x43inlp_glpk_stub_25_glp_get_num_intx44)|Function(CI.Pointer_,Returns(CI.PrimitiveCI.Int)),"glp_get_num_nz"->(funx45->letCI.CPointerx46=x45inlp_glpk_stub_24_glp_get_num_nzx46)|Function(CI.Pointer_,Returns(CI.PrimitiveCI.Int)),"glp_get_num_cols"->(funx47->letCI.CPointerx48=x47inlp_glpk_stub_23_glp_get_num_colsx48)|Function(CI.Pointer_,Returns(CI.PrimitiveCI.Int)),"glp_get_num_rows"->(funx49->letCI.CPointerx50=x49inlp_glpk_stub_22_glp_get_num_rowsx50)|Function(CI.Pointer_,Function(CI.PrimitiveCI.Int,Returns(CI.View{CI.ty=CI.PrimitiveCI.Int;read=x54;_}))),"glp_get_col_kind"->(funx51x53->letCI.CPointerx52=x51inx54(lp_glpk_stub_21_glp_get_col_kindx52x53))|Function(CI.Pointer_,Function(CI.PrimitiveCI.Int,Function(CI.View{CI.ty=CI.PrimitiveCI.Int;write=x59;_},ReturnsCI.Void))),"glp_set_col_kind"->(funx55x57x58->letCI.CPointerx56=x55inletx60=x59x58inlp_glpk_stub_20_glp_set_col_kindx56x57x60)|Function(CI.Pointer_,Function(CI.PrimitiveCI.Int,Function(CI.Pointer_,Function(CI.Pointer_,Function(CI.Pointer_,ReturnsCI.Void))))),"glp_load_matrix"->(funx61x63x64x66x68->letCI.CPointerx69=x68inletCI.CPointerx67=x66inletCI.CPointerx65=x64inletCI.CPointerx62=x61inlp_glpk_stub_19_glp_load_matrixx62x63x65x67x69)|Function(CI.Pointer_,Function(CI.PrimitiveCI.Int,Function(CI.PrimitiveCI.Int,Function(CI.Pointer_,Function(CI.Pointer_,ReturnsCI.Void))))),"glp_set_mat_col"->(funx70x72x73x74x76->letCI.CPointerx77=x76inletCI.CPointerx75=x74inletCI.CPointerx71=x70inlp_glpk_stub_18_glp_set_mat_colx71x72x73x75x77)|Function(CI.Pointer_,Function(CI.PrimitiveCI.Int,Function(CI.PrimitiveCI.Int,Function(CI.Pointer_,Function(CI.Pointer_,ReturnsCI.Void))))),"glp_set_mat_row"->(funx78x80x81x82x84->letCI.CPointerx85=x84inletCI.CPointerx83=x82inletCI.CPointerx79=x78inlp_glpk_stub_17_glp_set_mat_rowx79x80x81x83x85)|Function(CI.Pointer_,Function(CI.PrimitiveCI.Int,Function(CI.PrimitiveCI.Double,ReturnsCI.Void))),"glp_set_obj_coef"->(funx86x88x89->letCI.CPointerx87=x86inlp_glpk_stub_16_glp_set_obj_coefx87x88x89)|Function(CI.Pointer_,Function(CI.PrimitiveCI.Int,Function(CI.View{CI.ty=CI.PrimitiveCI.Int;write=x94;_},Function(CI.PrimitiveCI.Double,Function(CI.PrimitiveCI.Double,ReturnsCI.Void))))),"glp_set_col_bnds"->(funx90x92x93x96x97->letCI.CPointerx91=x90inletx95=x94x93inlp_glpk_stub_15_glp_set_col_bndsx91x92x95x96x97)|Function(CI.Pointer_,Function(CI.PrimitiveCI.Int,Function(CI.View{CI.ty=CI.PrimitiveCI.Int;write=x102;_},Function(CI.PrimitiveCI.Double,Function(CI.PrimitiveCI.Double,ReturnsCI.Void))))),"glp_set_row_bnds"->(funx98x100x101x104x105->letCI.CPointerx99=x98inletx103=x102x101inlp_glpk_stub_14_glp_set_row_bndsx99x100x103x104x105)|Function(CI.Pointer_,Function(CI.PrimitiveCI.Int,Returns(CI.View{CI.ty=CI.Pointerx109;read=x110;_}))),"glp_get_col_name"->(funx106x108->letCI.CPointerx107=x106inx110(CI.make_ptrx109(lp_glpk_stub_13_glp_get_col_namex107x108)))|Function(CI.Pointer_,Function(CI.PrimitiveCI.Int,Function(CI.View{CI.ty=CI.Pointer_;write=x115;_},ReturnsCI.Void))),"glp_set_col_name"->(funx111x113x114->letCI.CPointerx117=x115x114inletCI.CPointerx112=x111inletx116=x117inlp_glpk_stub_12_glp_set_col_namex112x113x116)|Function(CI.Pointer_,Function(CI.PrimitiveCI.Int,Returns(CI.View{CI.ty=CI.Pointerx121;read=x122;_}))),"glp_get_row_name"->(funx118x120->letCI.CPointerx119=x118inx122(CI.make_ptrx121(lp_glpk_stub_11_glp_get_row_namex119x120)))|Function(CI.Pointer_,Function(CI.PrimitiveCI.Int,Function(CI.View{CI.ty=CI.Pointer_;write=x127;_},ReturnsCI.Void))),"glp_set_row_name"->(funx123x125x126->letCI.CPointerx129=x127x126inletCI.CPointerx124=x123inletx128=x129inlp_glpk_stub_10_glp_set_row_namex124x125x128)|Function(CI.Pointer_,Function(CI.PrimitiveCI.Int,Returns(CI.PrimitiveCI.Int))),"glp_add_cols"->(funx130x132->letCI.CPointerx131=x130inlp_glpk_stub_9_glp_add_colsx131x132)|Function(CI.Pointer_,Function(CI.PrimitiveCI.Int,Returns(CI.PrimitiveCI.Int))),"glp_add_rows"->(funx133x135->letCI.CPointerx134=x133inlp_glpk_stub_8_glp_add_rowsx134x135)|Function(CI.Pointer_,Returns(CI.View{CI.ty=CI.PrimitiveCI.Int;read=x138;_})),"glp_get_obj_dir"->(funx136->letCI.CPointerx137=x136inx138(lp_glpk_stub_7_glp_get_obj_dirx137))|Function(CI.Pointer_,Function(CI.View{CI.ty=CI.PrimitiveCI.Int;write=x142;_},ReturnsCI.Void)),"glp_set_obj_dir"->(funx139x141->letCI.CPointerx140=x139inletx143=x142x141inlp_glpk_stub_6_glp_set_obj_dirx140x143)|Function(CI.Pointer_,Returns(CI.View{CI.ty=CI.Pointerx146;read=x147;_})),"glp_get_prob_name"->(funx144->letCI.CPointerx145=x144inx147(CI.make_ptrx146(lp_glpk_stub_5_glp_get_prob_namex145)))|Function(CI.Pointer_,Function(CI.View{CI.ty=CI.Pointer_;write=x151;_},ReturnsCI.Void)),"glp_set_prob_name"->(funx148x150->letCI.CPointerx153=x151x150inletCI.CPointerx149=x148inletx152=x153inlp_glpk_stub_4_glp_set_prob_namex149x152)|Function(CI.Pointer_,ReturnsCI.Void),"glp_delete_prob"->(funx154->letCI.CPointerx155=x154inlp_glpk_stub_3_glp_delete_probx155)|Function(CI.Void,Returns(CI.Pointerx157)),"glp_create_prob"->(funx156->CI.make_ptrx157(lp_glpk_stub_2_glp_create_probx156))|Function(CI.View{CI.ty=CI.PrimitiveCI.Int;write=x159;_},ReturnsCI.Void),"glp_term_out"->(funx158->letx160=x159x158inlp_glpk_stub_1_glp_term_outx160)|_,s->Printf.ksprintffailwith"No match for %s"sletforeign_value:typea.string->aCtypes.typ->aCtypes.ptr=funnamet->matcht,namewith|_,s->Printf.ksprintffailwith"No match for %s"s