diff options
author | Andres Noetzli <andres.noetzli@gmail.com> | 2020-06-19 09:09:45 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-19 09:09:45 -0700 |
commit | 039a642610f570f3367a73a3a29082152a2736f2 (patch) | |
tree | 83cea291b2eaddcd71deb606110afcc7fb9d6a74 /examples/sets-translate | |
parent | ef45a4a2529ed5eccfcae634207921b6df3eebc1 (diff) |
Cleanup examples (#4634)
This commit removes examples from unsupported programming languages and
fixes a compilation issue in the sets-translate example. The issue
arised due to changes to the `DefineFunctionCommand` in commit
fd60da4a22f02f6f5b82cef3585240c1b33595e9 and wasn't detected by our CI
because the sets-translate example requires Boost.
Diffstat (limited to 'examples/sets-translate')
-rw-r--r-- | examples/sets-translate/sets_translate.cpp | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/examples/sets-translate/sets_translate.cpp b/examples/sets-translate/sets_translate.cpp index 0b02288d0..5db33892f 100644 --- a/examples/sets-translate/sets_translate.cpp +++ b/examples/sets-translate/sets_translate.cpp @@ -341,16 +341,26 @@ int main(int argc, char* argv[]) DefineFunctionCommand* definefun = dynamic_cast<DefineFunctionCommand*>(cmd); Command* new_cmd = NULL; - if(assert) { + if (assert) + { Expr newexpr = m.collectSortsExpr(assert->getExpr()); new_cmd = new AssertCommand(newexpr); - } else if(declarefun) { + } + else if (declarefun) + { Expr newfunc = m.collectSortsExpr(declarefun->getFunction()); - new_cmd = new DeclareFunctionCommand(declarefun->getSymbol(), newfunc, declarefun->getType()); - } else if(definefun) { + new_cmd = new DeclareFunctionCommand( + declarefun->getSymbol(), newfunc, declarefun->getType()); + } + else if (definefun) + { Expr newfunc = m.collectSortsExpr(definefun->getFunction()); Expr newformula = m.collectSortsExpr(definefun->getFormula()); - new_cmd = new DefineFunctionCommand(definefun->getSymbol(), newfunc, definefun->getFormals(), newformula); + new_cmd = new DefineFunctionCommand(definefun->getSymbol(), + newfunc, + definefun->getFormals(), + newformula, + false); } if(new_cmd == NULL) { |