X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Flpp%2Flpp_solvers.c;h=a8610d00ca1e1f8677c149cfe30d4579271ee4f8;hb=62a070ee2aedb1bfbe1645dbd49ea755d9294c71;hp=1feb44bce3b6eebc7b1d3a30be6435c50a7683cd;hpb=c86aa375b9fe725d85d012dd1231727a03a16585;p=libfirm diff --git a/ir/lpp/lpp_solvers.c b/ir/lpp/lpp_solvers.c index 1feb44bce..a8610d00c 100644 --- a/ir/lpp/lpp_solvers.c +++ b/ir/lpp/lpp_solvers.c @@ -1,15 +1,30 @@ -/** - * @file lpp_solvers.c - * @date 16.06.2011 - * @author Sebastian Hack +/* + * Copyright (C) 2005-2011 University of Karlsruhe. All right reserved. + * + * This file is part of libFirm. + * + * This file may be distributed and/or modified under the terms of the + * GNU General Public License version 2 as published by the Free Software + * Foundation and appearing in the file LICENSE.GPL included in the + * packaging of this file. * - * Copyright (C) 2011 Saarland University - * Released under the LGPL + * Licensees holding valid libFirm Professional Edition licenses may use + * this file in accordance with the libFirm Commercial License. + * Agreement provided with the Software. + * + * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE + * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE. + */ + +/** + * @file + * @author Sebastian Hack */ #include "config.h" -#include "lpp_cplex.h" #include "lpp_solvers.h" +#include "lpp_cplex.h" #include "lpp_gurobi.h" lpp_solver_t lpp_solvers[] = { @@ -26,6 +41,9 @@ lpp_solver_func_t *lpp_find_solver(const char *name) { int i; + if (name[0] == '\0') + return lpp_solvers[0].solver; + for(i = 0; lpp_solvers[i].solver != NULL; i++) if(strcmp(lpp_solvers[i].name, name) == 0) return lpp_solvers[i].solver;