| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | #include "batkov_f_vector_sum/seq/include/ops_seq.hpp" | ||
| 2 | |||
| 3 | #include "batkov_f_vector_sum/common/include/common.hpp" | ||
| 4 | |||
| 5 | namespace batkov_f_vector_sum { | ||
| 6 | |||
| 7 |
1/2✓ Branch 1 taken 32 times.
✗ Branch 2 not taken.
|
32 | BatkovFVectorSumSEQ::BatkovFVectorSumSEQ(const InType &in) { |
| 8 | SetTypeOfTask(GetStaticTypeOfTask()); | ||
| 9 |
1/2✓ Branch 1 taken 32 times.
✗ Branch 2 not taken.
|
32 | GetInput() = in; |
| 10 | 32 | GetOutput() = 0; | |
| 11 | 32 | } | |
| 12 | |||
| 13 | 32 | bool BatkovFVectorSumSEQ::ValidationImpl() { | |
| 14 | 32 | return GetOutput() == 0; | |
| 15 | } | ||
| 16 | |||
| 17 | 32 | bool BatkovFVectorSumSEQ::PreProcessingImpl() { | |
| 18 | 32 | return true; | |
| 19 | } | ||
| 20 | |||
| 21 | 32 | bool BatkovFVectorSumSEQ::RunImpl() { | |
| 22 | int sum = 0; | ||
| 23 |
2/2✓ Branch 0 taken 3192 times.
✓ Branch 1 taken 32 times.
|
3224 | for (int val : GetInput()) { |
| 24 | 3192 | sum += val; | |
| 25 | } | ||
| 26 | 32 | GetOutput() = sum; | |
| 27 | 32 | return true; | |
| 28 | } | ||
| 29 | |||
| 30 | 32 | bool BatkovFVectorSumSEQ::PostProcessingImpl() { | |
| 31 | 32 | return true; | |
| 32 | } | ||
| 33 | |||
| 34 | } // namespace batkov_f_vector_sum | ||
| 35 |