namespace { template struct J { static constexpr int value = V; }; template using K = J; using M = K; template struct L { template using type = _Tp; }; template using N = typename L<_Cond>::type<_If, _Else>; M k; template struct O { using type = _Tp; }; template struct P : N, _Up> {}; template struct Q { using type = typename P<_Tp>::type; }; } namespace R { struct H; enum G {}; template class S; struct T { using U = bool (*) (H &, const H &, G); U F; }; template class B; template struct B<_R(_A...), _F> { static bool F(H &, const H &, G) { return false; } __attribute__((noipa)) static _R bar(const H &) {} }; template struct S<_R(_A...)> : T { template using AH = B<_R(), _F>; template S(_F) { using AG = AH<_F>; barr = AG::bar; F = AG::F; } using AF = _R (*)(const H &); AF barr; }; template class I; template struct I<_F(_B...)> {}; template using W = decltype(k); template struct V { typedef I::type(typename Q<_B>::type...)> type; }; template __attribute__((noipa)) typename V::value, _F, _B...>::type baz(_F, _B...) { return typename V::value, _F, _B...>::type (); } template struct AJ { template struct _Ptr { using type = _Up *; }; using AI = typename _Ptr<_Tp>::type; }; template struct Y { using AI = typename AJ<_Tp>::AI; AI operator->(); }; } extern int z; namespace N1 { namespace N2 { namespace N3 { enum Z { Z1, Z2 }; template struct X { template __attribute__((noipa)) void boo(long long, long long, long long, _F &) {} }; struct AC { AC(int); void m1(R::S); }; template __attribute__((noipa)) void garply(void *, long long, long long, long long) {} template <> template void X::boo(long long, long long x, long long y, _F &fi) { AC pool(z); for (;;) { auto job = R::baz(garply<_F>, &fi, y, y, x); pool.m1(job); } } struct AB { static AB &bleh(); template void boo(long first, long x, long y, _F fi) { switch (ab1) { case Z1: ab2->boo(first, x, y, fi); case Z2: ab3->boo(first, x, y, fi); } } Z ab1; R::Y> ab2; R::Y> ab3; }; template struct C; template struct C<_F, false> { __attribute__((noipa)) C(_F) {} void boo(long first, long x, long y) { auto u = AB::bleh(); u.boo(first, x, y, *this); } }; template struct AA { typedef C<_F, 0> type; }; } } } struct AD { template static void boo(long first, long x, long y, _F f) { typename N1::N2::N3::AA<_F>::type fi(f); fi.boo(first, x, y); } template static void boo(long first, long x, _F f) { boo(first, x, 0, f); } }; template struct A { void foo(long long, long long); int *c; }; namespace { template struct D { __attribute__((noipa)) D(int *) {} }; } template void A::foo(long long x, long long y) { int e; D d(&e); AD::boo(0, y, d); long p; for (p = 0; p < x; p++) c[p] = c[p - 1]; }