summaryrefslogtreecommitdiff
path: root/src/prop/options_handlers.h
blob: 1879fffa526147700e6ff0966b5c27ad868e21a9 (plain)
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
/*********************                                                        */
/*! \file options_handlers.h
 ** \verbatim
 ** Original author: Morgan Deters <mdeters@cs.nyu.edu>
 ** Major contributors: none
 ** Minor contributors (to current version): none
 ** This file is part of the CVC4 project.
 ** Copyright (c) 2009-2013  New York University and The University of Iowa
 ** See the file COPYING in the top-level source directory for licensing
 ** information.\endverbatim
 **
 ** \brief [[ Add one-line brief description here ]]
 **
 ** [[ Add lengthier description here ]]
 ** \todo document this file
 **/

#include "cvc4_private.h"

#ifndef __CVC4__PROP__OPTIONS_HANDLERS_H
#define __CVC4__PROP__OPTIONS_HANDLERS_H

#include "prop/sat_solver_factory.h"
#include <string>
#include <vector>

namespace CVC4 {
namespace prop {

inline void showSatSolvers(std::string option, SmtEngine* smt) {
  std::vector<std::string> solvers;
  SatSolverFactory::getSolverIds(solvers);
  printf("Available SAT solvers: ");
  for (unsigned i = 0; i < solvers.size(); ++ i) {
    if (i > 0) {
      printf(", ");
    }
    printf("%s", solvers[i].c_str());
  }
  printf("\n");
  exit(0);
}

}/* CVC4::prop namespace */
}/* CVC4 namespace */

#endif /* __CVC4__PROP__OPTIONS_HANDLERS_H */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback