/**
 * This file is part of sally.
 * Copyright (C) 2015 SRI International.
 *
 * Sally is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Sally is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with sally.  If not, see <http://www.gnu.org/licenses/>.
 */

#pragma once

#ifdef WITH_YICES2
#ifdef WITH_DREAL

#include "d4y2.h"

#include <boost/program_options.hpp>

namespace sally {
namespace smt {

struct d4y2_info {

  static void setup_options(boost::program_options::options_description& options) {
    using namespace boost::program_options;
    options.add_options()
          // ("d4y2-model-as-hint", "Use the dReal model as hint for Yices2 if Dreal is not certain.")
          ("d4y2-relaxed-check", "Allow relaxed check, i.e. do not call Yices2 in relaxed checking mode (for cases when the engine doesn't need exact results).");
  }

  static std::string get_id() {
    return "d4y2";
  }

  static std::string get_description() {
    return
        "Combination of dReal and Yices2. Runs dReal first and checks results with Yices2.";
  }

  static solver* new_instance(const solver_context& ctx) {
    return new d4y2(ctx.tm, ctx.opts, ctx.stats);
  }

};

}
}

#endif
#endif
