3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-06-06 06:03:23 +00:00

Merge branch 'unstable' of https://git01.codeplex.com/z3 into unstable

This commit is contained in:
Nikolaj Bjorner 2012-12-03 11:02:08 -08:00
commit 8425685ea3
2 changed files with 22 additions and 18 deletions

View file

@ -39,9 +39,11 @@ public class AST extends Z3Object
{ {
AST casted = null; AST casted = null;
try { try
{
casted = AST.class.cast(o); casted = AST.class.cast(o);
} catch (ClassCastException e) { } catch (ClassCastException e)
{
return false; return false;
} }
@ -60,9 +62,11 @@ public class AST extends Z3Object
return 1; return 1;
AST oAST = null; AST oAST = null;
try { try
AST.class.cast(other); {
} catch (ClassCastException e) { oAST = AST.class.cast(other);
} catch (ClassCastException e)
{
return 1; return 1;
} }

View file

@ -497,7 +497,7 @@ static tactic * mk_using_params(cmd_context & ctx, sexpr * n) {
throw cmd_exception("invalid using-params combinator, keyword expected", c->get_line(), c->get_pos()); throw cmd_exception("invalid using-params combinator, keyword expected", c->get_line(), c->get_pos());
if (i == num_children) if (i == num_children)
throw cmd_exception("invalid using-params combinator, parameter value expected", c->get_line(), c->get_pos()); throw cmd_exception("invalid using-params combinator, parameter value expected", c->get_line(), c->get_pos());
symbol param_name = c->get_symbol(); symbol param_name = symbol(smt2_keyword_to_param(c->get_symbol()).c_str());
c = n->get_child(i); c = n->get_child(i);
i++; i++;
switch (descrs.get_kind(param_name)) { switch (descrs.get_kind(param_name)) {