isl_basic_set_opt: avoid invalid access on error path
[platform/upstream/isl.git] / isl_lp_piplib.h
1 /*
2  * Copyright 2008-2009 Katholieke Universiteit Leuven
3  *
4  * Use of this software is governed by the MIT license
5  *
6  * Written by Sven Verdoolaege, K.U.Leuven, Departement
7  * Computerwetenschappen, Celestijnenlaan 200A, B-3001 Leuven, Belgium
8  */
9
10 #ifndef ISL_LP_PIPLIB_H
11 #define ISL_LP_PIPLIB_H
12
13 #include <isl/lp.h>
14
15 #if defined(__cplusplus)
16 extern "C" {
17 #endif
18
19 enum isl_lp_result isl_pip_solve_lp(struct isl_basic_map *bmap, int maximize,
20                                       isl_int *f, isl_int denom, isl_int *opt,
21                                       isl_int *opt_denom,
22                                       struct isl_vec **sol);
23
24 #if defined(__cplusplus)
25 }
26 #endif
27
28 #endif