summaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorAina Niemetz <aina.niemetz@gmail.com>2021-03-03 17:36:57 -0800
committerGitHub <noreply@github.com>2021-03-04 01:36:57 +0000
commiteca92626dafa1e22e59aec94f6e34788c51e777a (patch)
tree421e86a3bd6c1f870646a6ee34a574d4b8151abf /src/main
parent27d6a284f34ff787882a952572519233ec12b939 (diff)
New C++ API: Clean up usage of internal Result. (#6043)
This disables the temporarily available internals of Result. It further changes the interface for getUnknownExplanation, which now returns an enum value instead of a string.
Diffstat (limited to 'src/main')
-rw-r--r--src/main/command_executor.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/command_executor.cpp b/src/main/command_executor.cpp
index 04ed5147a..8f4b2d4d2 100644
--- a/src/main/command_executor.cpp
+++ b/src/main/command_executor.cpp
@@ -163,7 +163,7 @@ bool CommandExecutor::doCommandSingleton(Command* cmd)
if (d_options.getDumpModels()
&& (res.isSat()
|| (res.isSatUnknown()
- && res.getResult().whyUnknown() == Result::INCOMPLETE)))
+ && res.getUnknownExplanation() == api::Result::INCOMPLETE)))
{
getterCommands.emplace_back(new GetModelCommand());
}
@@ -176,7 +176,8 @@ bool CommandExecutor::doCommandSingleton(Command* cmd)
&& ((d_options.getInstFormatMode() != options::InstFormatMode::SZS
&& (res.isSat()
|| (res.isSatUnknown()
- && res.getResult().whyUnknown() == Result::INCOMPLETE)))
+ && res.getUnknownExplanation()
+ == api::Result::INCOMPLETE)))
|| isResultUnsat))
{
getterCommands.emplace_back(new GetInstantiationsCommand());
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback