GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 100.0% 9 / 0 / 9
Functions: 100.0% 2 / 0 / 2
Branches: 50.0% 3 / 0 / 6

test/cpv/library-checker-convolution/convolution_mod.mints-ms.poly_nttmod-pntt.conv_nttmod-czt_nttmod.cpp
Line Branch Exec Source
1 #define AUTO_GENERATED
2 // competitive-verifier: PROBLEM https://judge.yosupo.jp/problem/convolution_mod
3 #include "../../../src/io/container/lib.hpp"
4 #include "../../../src/io/fastin/lib.hpp"
5 #include "../../../src/io/fastout/lib.hpp"
6
7 using namespace tifa_libs;
8 CEXP u32 MOD = 998244353;
9
10 #include "../../../src/conv/add/czt/lib.hpp"
11 #include "../../../src/fps/ds/ntt/lib.hpp"
12 #include "../../../src/math/ds/mint/ms/lib.hpp"
13
14 using namespace tifa_libs;
15 using mint = mint_ms<MOD>;
16 using namespace tifa_libs;
17 using poly = polyntt<mint>;
18 using namespace tifa_libs;
19 using vec_t = poly;
20 53 auto conv_func(vec_t CR a, vec_t CR b) {
21
2/4
✓ Branch 1 taken 53 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 53 times.
✗ Branch 5 not taken.
53 return conv_czt(a, b);
22 }
23
24 53 int main() {
25 u32 n, m;
26 53 tifa_libs::fin_uint >> n >> m;
27 53 vec_t a(n), b(m);
28 53 tifa_libs::fin_uint >> a >> b;
29
1/2
✓ Branch 1 taken 53 times.
✗ Branch 2 not taken.
53 tifa_libs::fout << conv_func(a, b) << '\n';
30 53 return 0;
31 53 }
32