Commit 795a88f2 authored by Kučera Petr RNDr. Ph.D.'s avatar Kučera Petr RNDr. Ph.D.
Browse files

Removed EnumClassHash

parent 3e3f713b
......@@ -12,6 +12,7 @@
#include <iostream>
#include "encoding.h"
#include "enum_opt.h"
#include "logstream.h"
#include "prgutil.h"
......@@ -34,10 +35,14 @@ enum class ELIMINATE
const std::unordered_map<ELIMINATE, std::string, SUBool::EnumClassHash>
eliminate_names = {{ELIMINATE::ALL, "all"},
{ELIMINATE::MAX_INCREASE, "max_increase"},
{ELIMINATE::FACTOR, "factor"}};
const SUBool::EnumAnnotation<ELIMINATE> kEliminateAnnotation(
"ELIMINATE", {{ELIMINATE::ALL, "all", "Eliminate all auxiliary variables."},
{ELIMINATE::MAX_INCREASE, "max_increase",
"Elimination limited with the absolute increase of "
"the size of the CNF."},
"Elimination limited with the factor by which the "
"size of the CNF can increase."}});
const std::array<std::string,
static_cast<size_t>(SUBool::DPEliminator::IGNORE_POLICY::Last) + 1>
......@@ -95,8 +100,8 @@ dump_config(const config_t &conf, unsigned level)
"\t", level, "elim.use_minimize", conf.elim.use_minimize);
SUBool::logs.DumpValue("\t", level, "elim.block_prime",<unsigned>(conf.elim.block_prime)));
"\t", level, "elim.eliminate",;
"\t", level, "elim.eliminate", conf.elim.eliminate);
SUBool::logs.DumpValue("\t", level, "elim.ignore_policy",
......@@ -40,16 +40,6 @@ namespace SUBool
return enum_of_int<E>(i - names.begin());
struct EnumClassHash
template <class T>
operator()(T t) const
return static_cast<size_t>(t);
template <class Enum, class Names>
[[deprecated("Use EnumAnnotation")]] void
dump_enum_value(const std::string &line_prefix, unsigned level,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment