From 238d604a101831a57c4e48baa5fe50e8643fe018 Mon Sep 17 00:00:00 2001 From: Nikolaj Bjorner Date: Mon, 30 Jan 2023 23:00:44 -0800 Subject: [PATCH] android 16 byte alignment for stack allocated memory? Signed-off-by: Nikolaj Bjorner --- doc/mk_tactic_doc.py | 2 +- src/cmd_context/simplifier_cmds.cpp | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/doc/mk_tactic_doc.py b/doc/mk_tactic_doc.py index 8558ed2ab..38b9be40a 100644 --- a/doc/mk_tactic_doc.py +++ b/doc/mk_tactic_doc.py @@ -55,7 +55,7 @@ def extract_tactic_doc(ous, f): generate_tactic_doc(ous, f, ins) def generate_simplifier_doc(ous, name, desc): - ous.write("## Simplifier [" + name + "](tactic-summary/#" + name + ")\n") + ous.write("## Simplifier [" + name + "](summary/#tactic-" + name + ")\n") ous.write("### Description\n" + desc + "\n") diff --git a/src/cmd_context/simplifier_cmds.cpp b/src/cmd_context/simplifier_cmds.cpp index b8ce15081..47f20f3fd 100644 --- a/src/cmd_context/simplifier_cmds.cpp +++ b/src/cmd_context/simplifier_cmds.cpp @@ -32,13 +32,15 @@ static simplifier_factory mk_and_then(cmd_context & ctx, sexpr * n) { throw cmd_exception("invalid and-then combinator, at least one argument expected", n->get_line(), n->get_pos()); if (num_children == 2) return sexpr2simplifier(ctx, n->get_child(1)); - vector args; + scoped_ptr> args = alloc(vector); for (unsigned i = 1; i < num_children; i++) - args.push_back(sexpr2simplifier(ctx, n->get_child(i))); - simplifier_factory result = [args](ast_manager& m, const params_ref& p, dependent_expr_state& st) { + args->push_back(sexpr2simplifier(ctx, n->get_child(i))); + vector* _args = args.detach(); + simplifier_factory result = [_args](ast_manager& m, const params_ref& p, dependent_expr_state& st) { scoped_ptr s = alloc(seq_simplifier, m, p, st); - for (auto & simp : args) + for (auto & simp : *_args) s->add_simplifier(simp(m, p, st)); + dealloc(_args); return s.detach(); }; return result;