diff options
Diffstat (limited to 'src/options/options_handler.cpp')
-rw-r--r-- | src/options/options_handler.cpp | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/src/options/options_handler.cpp b/src/options/options_handler.cpp index 565f28334..bd5b00728 100644 --- a/src/options/options_handler.cpp +++ b/src/options/options_handler.cpp @@ -508,6 +508,21 @@ trust \n\ \n\ "; +const std::string OptionsHandler::s_sygusFilterSolHelp = + "\ +Modes for filtering sygus solutions supported by --sygus-filter-sol:\n\ +\n\ +none (default) \n\ ++ Do not filter sygus solutions.\n\ +\n\ +strong \n\ ++ Filter solutions that are logically stronger than others.\n\ +\n\ +weak \n\ ++ Filter solutions that are logically weaker than others.\n\ +\n\ +"; + const std::string OptionsHandler::s_sygusInvTemplHelp = "\ Template modes for sygus invariant synthesis, supported by --sygus-inv-templ:\n\ \n\ @@ -951,6 +966,35 @@ theory::quantifiers::CegisSampleMode OptionsHandler::stringToCegisSampleMode( } } +theory::quantifiers::SygusFilterSolMode +OptionsHandler::stringToSygusFilterSolMode(std::string option, + std::string optarg) +{ + if (optarg == "none") + { + return theory::quantifiers::SYGUS_FILTER_SOL_NONE; + } + else if (optarg == "strong") + { + return theory::quantifiers::SYGUS_FILTER_SOL_STRONG; + } + else if (optarg == "weak") + { + return theory::quantifiers::SYGUS_FILTER_SOL_WEAK; + } + else if (optarg == "help") + { + puts(s_cegisSampleHelp.c_str()); + exit(1); + } + else + { + throw OptionException( + std::string("unknown option for --sygus-filter-sol: `") + optarg + + "'. Try --sygus-filter-sol help."); + } +} + theory::quantifiers::SygusInvTemplMode OptionsHandler::stringToSygusInvTemplMode(std::string option, std::string optarg) |