3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-06 17:44:08 +00:00

android 16 byte alignment for stack allocated memory?

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2023-01-30 23:00:44 -08:00
parent 5794d080b5
commit 238d604a10
2 changed files with 7 additions and 5 deletions

View file

@ -55,7 +55,7 @@ def extract_tactic_doc(ous, f):
generate_tactic_doc(ous, f, ins) generate_tactic_doc(ous, f, ins)
def generate_simplifier_doc(ous, name, desc): 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") ous.write("### Description\n" + desc + "\n")

View file

@ -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()); throw cmd_exception("invalid and-then combinator, at least one argument expected", n->get_line(), n->get_pos());
if (num_children == 2) if (num_children == 2)
return sexpr2simplifier(ctx, n->get_child(1)); return sexpr2simplifier(ctx, n->get_child(1));
vector<simplifier_factory> args; scoped_ptr<vector<simplifier_factory>> args = alloc(vector<simplifier_factory>);
for (unsigned i = 1; i < num_children; i++) for (unsigned i = 1; i < num_children; i++)
args.push_back(sexpr2simplifier(ctx, n->get_child(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) { vector<simplifier_factory>* _args = args.detach();
simplifier_factory result = [_args](ast_manager& m, const params_ref& p, dependent_expr_state& st) {
scoped_ptr<seq_simplifier> s = alloc(seq_simplifier, m, p, st); scoped_ptr<seq_simplifier> s = alloc(seq_simplifier, m, p, st);
for (auto & simp : args) for (auto & simp : *_args)
s->add_simplifier(simp(m, p, st)); s->add_simplifier(simp(m, p, st));
dealloc(_args);
return s.detach(); return s.detach();
}; };
return result; return result;