123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426moduleCI=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.View{CI.ty=CI.PrimitiveCI.Int;read=x33;_}))),"glp_intopt"->(funx29x31->letCI.CPointerx32=x31inletCI.CPointerx30=x29inx33(lp_glpk_stub_30_glp_intoptx30x32))|Function(CI.Pointer_,Function(CI.Pointer_,Returns(CI.View{CI.ty=CI.PrimitiveCI.Int;read=x38;_}))),"glp_simplex"->(funx34x36->letCI.CPointerx37=x36inletCI.CPointerx35=x34inx38(lp_glpk_stub_29_glp_simplexx35x37))|Function(CI.Pointer_,ReturnsCI.Void),"glp_init_iocp"->(funx39->letCI.CPointerx40=x39inlp_glpk_stub_28_glp_init_iocpx40)|Function(CI.Pointer_,ReturnsCI.Void),"glp_init_smcp"->(funx41->letCI.CPointerx42=x41inlp_glpk_stub_27_glp_init_smcpx42)|Function(CI.Pointer_,Returns(CI.PrimitiveCI.Int)),"glp_get_num_bin"->(funx43->letCI.CPointerx44=x43inlp_glpk_stub_26_glp_get_num_binx44)|Function(CI.Pointer_,Returns(CI.PrimitiveCI.Int)),"glp_get_num_int"->(funx45->letCI.CPointerx46=x45inlp_glpk_stub_25_glp_get_num_intx46)|Function(CI.Pointer_,Returns(CI.PrimitiveCI.Int)),"glp_get_num_nz"->(funx47->letCI.CPointerx48=x47inlp_glpk_stub_24_glp_get_num_nzx48)|Function(CI.Pointer_,Returns(CI.PrimitiveCI.Int)),"glp_get_num_cols"->(funx49->letCI.CPointerx50=x49inlp_glpk_stub_23_glp_get_num_colsx50)|Function(CI.Pointer_,Returns(CI.PrimitiveCI.Int)),"glp_get_num_rows"->(funx51->letCI.CPointerx52=x51inlp_glpk_stub_22_glp_get_num_rowsx52)|Function(CI.Pointer_,Function(CI.PrimitiveCI.Int,Returns(CI.View{CI.ty=CI.PrimitiveCI.Int;read=x56;_}))),"glp_get_col_kind"->(funx53x55->letCI.CPointerx54=x53inx56(lp_glpk_stub_21_glp_get_col_kindx54x55))|Function(CI.Pointer_,Function(CI.PrimitiveCI.Int,Function(CI.View{CI.ty=CI.PrimitiveCI.Int;write=x61;_},ReturnsCI.Void))),"glp_set_col_kind"->(funx57x59x60->letCI.CPointerx58=x57inletx62=x61x60inlp_glpk_stub_20_glp_set_col_kindx58x59x62)|Function(CI.Pointer_,Function(CI.PrimitiveCI.Int,Function(CI.Pointer_,Function(CI.Pointer_,Function(CI.Pointer_,ReturnsCI.Void))))),"glp_load_matrix"->(funx63x65x66x68x70->letCI.CPointerx71=x70inletCI.CPointerx69=x68inletCI.CPointerx67=x66inletCI.CPointerx64=x63inlp_glpk_stub_19_glp_load_matrixx64x65x67x69x71)|Function(CI.Pointer_,Function(CI.PrimitiveCI.Int,Function(CI.PrimitiveCI.Int,Function(CI.Pointer_,Function(CI.Pointer_,ReturnsCI.Void))))),"glp_set_mat_col"->(funx72x74x75x76x78->letCI.CPointerx79=x78inletCI.CPointerx77=x76inletCI.CPointerx73=x72inlp_glpk_stub_18_glp_set_mat_colx73x74x75x77x79)|Function(CI.Pointer_,Function(CI.PrimitiveCI.Int,Function(CI.PrimitiveCI.Int,Function(CI.Pointer_,Function(CI.Pointer_,ReturnsCI.Void))))),"glp_set_mat_row"->(funx80x82x83x84x86->letCI.CPointerx87=x86inletCI.CPointerx85=x84inletCI.CPointerx81=x80inlp_glpk_stub_17_glp_set_mat_rowx81x82x83x85x87)|Function(CI.Pointer_,Function(CI.PrimitiveCI.Int,Function(CI.PrimitiveCI.Double,ReturnsCI.Void))),"glp_set_obj_coef"->(funx88x90x91->letCI.CPointerx89=x88inlp_glpk_stub_16_glp_set_obj_coefx89x90x91)|Function(CI.Pointer_,Function(CI.PrimitiveCI.Int,Function(CI.View{CI.ty=CI.PrimitiveCI.Int;write=x96;_},Function(CI.PrimitiveCI.Double,Function(CI.PrimitiveCI.Double,ReturnsCI.Void))))),"glp_set_col_bnds"->(funx92x94x95x98x99->letCI.CPointerx93=x92inletx97=x96x95inlp_glpk_stub_15_glp_set_col_bndsx93x94x97x98x99)|Function(CI.Pointer_,Function(CI.PrimitiveCI.Int,Function(CI.View{CI.ty=CI.PrimitiveCI.Int;write=x104;_},Function(CI.PrimitiveCI.Double,Function(CI.PrimitiveCI.Double,ReturnsCI.Void))))),"glp_set_row_bnds"->(funx100x102x103x106x107->letCI.CPointerx101=x100inletx105=x104x103inlp_glpk_stub_14_glp_set_row_bndsx101x102x105x106x107)|Function(CI.Pointer_,Function(CI.PrimitiveCI.Int,Returns(CI.View{CI.ty=CI.Pointerx111;read=x112;_}))),"glp_get_col_name"->(funx108x110->letCI.CPointerx109=x108inx112(CI.make_ptrx111(lp_glpk_stub_13_glp_get_col_namex109x110)))|Function(CI.Pointer_,Function(CI.PrimitiveCI.Int,Function(CI.View{CI.ty=CI.Pointer_;write=x117;_},ReturnsCI.Void))),"glp_set_col_name"->(funx113x115x116->letCI.CPointerx119=x117x116inletCI.CPointerx114=x113inletx118=x119inlp_glpk_stub_12_glp_set_col_namex114x115x118)|Function(CI.Pointer_,Function(CI.PrimitiveCI.Int,Returns(CI.View{CI.ty=CI.Pointerx123;read=x124;_}))),"glp_get_row_name"->(funx120x122->letCI.CPointerx121=x120inx124(CI.make_ptrx123(lp_glpk_stub_11_glp_get_row_namex121x122)))|Function(CI.Pointer_,Function(CI.PrimitiveCI.Int,Function(CI.View{CI.ty=CI.Pointer_;write=x129;_},ReturnsCI.Void))),"glp_set_row_name"->(funx125x127x128->letCI.CPointerx131=x129x128inletCI.CPointerx126=x125inletx130=x131inlp_glpk_stub_10_glp_set_row_namex126x127x130)|Function(CI.Pointer_,Function(CI.PrimitiveCI.Int,Returns(CI.PrimitiveCI.Int))),"glp_add_cols"->(funx132x134->letCI.CPointerx133=x132inlp_glpk_stub_9_glp_add_colsx133x134)|Function(CI.Pointer_,Function(CI.PrimitiveCI.Int,Returns(CI.PrimitiveCI.Int))),"glp_add_rows"->(funx135x137->letCI.CPointerx136=x135inlp_glpk_stub_8_glp_add_rowsx136x137)|Function(CI.Pointer_,Returns(CI.View{CI.ty=CI.PrimitiveCI.Int;read=x140;_})),"glp_get_obj_dir"->(funx138->letCI.CPointerx139=x138inx140(lp_glpk_stub_7_glp_get_obj_dirx139))|Function(CI.Pointer_,Function(CI.View{CI.ty=CI.PrimitiveCI.Int;write=x144;_},ReturnsCI.Void)),"glp_set_obj_dir"->(funx141x143->letCI.CPointerx142=x141inletx145=x144x143inlp_glpk_stub_6_glp_set_obj_dirx142x145)|Function(CI.Pointer_,Returns(CI.View{CI.ty=CI.Pointerx148;read=x149;_})),"glp_get_prob_name"->(funx146->letCI.CPointerx147=x146inx149(CI.make_ptrx148(lp_glpk_stub_5_glp_get_prob_namex147)))|Function(CI.Pointer_,Function(CI.View{CI.ty=CI.Pointer_;write=x153;_},ReturnsCI.Void)),"glp_set_prob_name"->(funx150x152->letCI.CPointerx155=x153x152inletCI.CPointerx151=x150inletx154=x155inlp_glpk_stub_4_glp_set_prob_namex151x154)|Function(CI.Pointer_,ReturnsCI.Void),"glp_delete_prob"->(funx156->letCI.CPointerx157=x156inlp_glpk_stub_3_glp_delete_probx157)|Function(CI.Void,Returns(CI.Pointerx159)),"glp_create_prob"->(funx158->CI.make_ptrx159(lp_glpk_stub_2_glp_create_probx158))|Function(CI.View{CI.ty=CI.PrimitiveCI.Int;write=x161;_},ReturnsCI.Void),"glp_term_out"->(funx160->letx162=x161x160inlp_glpk_stub_1_glp_term_outx162)|_,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