mirror of
https://github.com/Z3Prover/z3
synced 2025-04-05 17:14:07 +00:00
android 16 byte alignment for stack allocated memory?
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
5794d080b5
commit
238d604a10
|
@ -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")
|
||||
|
||||
|
||||
|
|
|
@ -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<simplifier_factory> args;
|
||||
scoped_ptr<vector<simplifier_factory>> args = alloc(vector<simplifier_factory>);
|
||||
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<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);
|
||||
for (auto & simp : args)
|
||||
for (auto & simp : *_args)
|
||||
s->add_simplifier(simp(m, p, st));
|
||||
dealloc(_args);
|
||||
return s.detach();
|
||||
};
|
||||
return result;
|
||||
|
|
Loading…
Reference in a new issue