25 virtual bool canHandle(
const fs::path& path)
const override {
31 if (
result.stdout.find(
"s OPTIMUM FOUND") != std::string::npos)
result.answer =
"sat";
32 else if (
result.stdout.find(
"s SATISFIABLE") != std::string::npos)
result.answer =
"sat";
33 else if (
result.stdout.find(
"s UNSATISFIABLE") != std::string::npos)
result.answer =
"unsat";
34 else if (
result.stdout.find(
"s UNKNOWN") != std::string::npos)
result.answer =
"unknown";
35 else result.answer =
"timeout";
Tool wrapper for the Minisatp solver for pseudo-Boolean problems.
virtual void additionalResults(const fs::path &, BenchmarkResult &result) const override
Parse results from stdout.
Minisatp(const fs::path &binary, const std::string &arguments)
Create tool, add "-v0" to arguments.
virtual bool canHandle(const fs::path &path) const override
Only handles .opb files.
bool is_extension(const std::filesystem::path &path, const std::string &extension)
Checks whether the extension of the filename is as specified.
Results for a single benchmark run.