/* { dg-do compile } */ /* { dg-additional-options "-O2 -std=gnu++11 -w" } */ namespace c { typedef int d; template struct f { typedef e g; }; template struct h; template e aa(typename f::g i) { return i; } template struct j {}; template struct k; template struct k<1, j> { typedef m g; }; template typename k>::g ab(j); } // namespace c typedef long d; typedef char o; typedef int p; typedef char q; typedef int r; namespace { struct s; constexpr d t = 6; template class ad { public: static constexpr d u = t; d v(); d x(); d y(); }; class z : public ad {}; struct ae { p af; }; class ag { public: ae ah(); }; } // namespace typedef __Int32x4_t ai; typedef struct { ai aj[2]; } ak; typedef int al; void am(p *a, ai b) { __builtin_aarch64_st1v4si(a, b); } namespace an { class ao { public: bool operator==(ao); d v(); d x(); }; class ap : public ad {}; class aq { public: c::j ar(); int as(); int at(); }; class au { public: virtual d av(d); virtual ap aw(); virtual ag ax(); }; class ay {}; class az { virtual void ba(const ay &, const s &); }; using bb = az; class bc; class bd : bb { void ba(const ay &, const s &); bc *be; bc *bf; bc *bg; aq bh; int bi; int bj; ao bk; }; namespace bl { namespace bm { namespace bn { class bo; } } // namespace bm } // namespace bl namespace bn { template > ai bp(ac *, ac *, ac *, al, al, al, d, p); template > ak bq(ac *br, ac *bs, ac *bt, al bu, al bv, al bw, d bx, int, int by) { ak{bp(br, bs, bt, bu, bv, bw, bx, by), bp(br, bs, bt, bu, bv, bw, bx, by)}; } template > ak bz(ac *, ac *, ac *, al, al, al &, int, p); template void ca(p *, const ak &); template <> void ca<1>(p *buffer, const ak &cb) { am(buffer, cb.aj[0]); am(buffer + 4, cb.aj[1]); } int cc(int, int); } // namespace bn class bc { public: virtual au *cd(); }; class ce { public: q *cf(); }; template struct cg { template static void ci(ay, z cj, ch ck) { ck(cj); } }; template void cl(ay w, ch ck) { z cj; cg::ci(w, cj, c::aa(ck)); } namespace { template class co { public: static void convolve(ay, int cs, bc *cp, bc *cq, bc *cr, aq cw, int, ao ct) { int by = cp->cd()->ax().ah().af; int cu = cq->cd()->ax().ah().af; cp->cd()->aw().v(); int cv = cp->cd()->aw().x(); cp->cd()->aw().y(); cp->cd()->aw(); int da = cr->cd()->aw().x(); int cx = cq->cd()->aw().x(); cq->cd()->aw().y(); int cy = cr->cd()->av(0); int cz = cr->cd()->av(1); bn::cc(cs, cn); int de = c::ab<1>(cw.ar()); cw.as(); cw.at(); ay db; ce dc; ce dd; ce w; q *di = w.cf(); cl(db, [&](z) { int df; dc; di; cx; auto dg(cu); auto dh(cu); auto dl(cu); for (; cz; df += de) { auto br = reinterpret_cast(cv); auto bs = reinterpret_cast(cv); auto bt = reinterpret_cast(df * ct.x()); auto dj = reinterpret_cast(dd.cf() + da); for (int dk; dk < cy; dk += cs, dj += cs) if (ct == ao()) { auto vres = bn::bz(br, bs, bt, dg, dh, dl, cn, by); bn::ca(dj, vres); } else bn::bq(br, bs, bt, dg, dh, dl, ct.v(), cn, by); } }); } }; template void bz(ay dm, int cs, bc *cp, bc *cq, bc *cr, aq cw, int dn, ao ct) { co::convolve(dm, cs, cp, cq, cr, cw, dn, ct); co::convolve(dm, cs, cp, cq, cr, cw, dn, ct); } } // namespace void bd::ba(const ay &dm, const s &) { bz(dm, bi, be, bg, bf, bh, bj, bk); } } // namespace an