• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

daisytuner / sdfglib / 18690518437

21 Oct 2025 04:19PM UTC coverage: 60.779% (-0.4%) from 61.158%
18690518437

Pull #288

github

web-flow
Merge ccfe2f66e into 41678795b
Pull Request #288: Instrumentation info

107 of 280 new or added lines in 20 files covered. (38.21%)

6 existing lines in 4 files now uncovered.

9397 of 15461 relevant lines covered (60.78%)

91.74 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/visitor/immutable_structured_sdfg_visitor.cpp
1
#include "sdfg/visitor/immutable_structured_sdfg_visitor.h"
2

3
namespace sdfg {
4
namespace visitor {
5

6
ImmutableStructuredSDFGVisitor::
NEW
7
    ImmutableStructuredSDFGVisitor(StructuredSDFG& sdfg, analysis::AnalysisManager& analysis_manager)
×
NEW
8
    : sdfg_(sdfg), analysis_manager_(analysis_manager) {}
×
9

NEW
10
bool ImmutableStructuredSDFGVisitor::visit() { return this->visit_internal(sdfg_.root()); }
×
11

NEW
12
bool ImmutableStructuredSDFGVisitor::visit_internal(structured_control_flow::Sequence& parent) {
×
NEW
13
    if (this->accept(parent)) {
×
NEW
14
        return true;
×
15
    }
16

NEW
17
    for (size_t i = 0; i < parent.size(); i++) {
×
NEW
18
        auto& current = parent.at(i).first;
×
19

NEW
20
        if (auto block_stmt = dynamic_cast<structured_control_flow::Block*>(&current)) {
×
NEW
21
            if (this->accept(*block_stmt)) {
×
NEW
22
                return true;
×
23
            }
NEW
24
        } else if (auto sequence_stmt = dynamic_cast<structured_control_flow::Sequence*>(&current)) {
×
NEW
25
            if (this->visit_internal(*sequence_stmt)) {
×
NEW
26
                return true;
×
27
            }
NEW
28
        } else if (auto if_else_stmt = dynamic_cast<structured_control_flow::IfElse*>(&current)) {
×
NEW
29
            if (this->accept(*if_else_stmt)) {
×
NEW
30
                return true;
×
31
            }
32

NEW
33
            for (size_t i = 0; i < if_else_stmt->size(); i++) {
×
NEW
34
                if (this->visit_internal(if_else_stmt->at(i).first)) {
×
NEW
35
                    return true;
×
36
                }
NEW
37
            }
×
NEW
38
        } else if (auto for_stmt = dynamic_cast<structured_control_flow::For*>(&current)) {
×
NEW
39
            if (this->accept(*for_stmt)) {
×
NEW
40
                return true;
×
41
            }
42

NEW
43
            if (this->visit_internal(for_stmt->root())) {
×
NEW
44
                return true;
×
45
            }
NEW
46
        } else if (auto map_stmt = dynamic_cast<structured_control_flow::Map*>(&current)) {
×
NEW
47
            if (this->accept(*map_stmt)) {
×
NEW
48
                return true;
×
49
            }
50

NEW
51
            if (this->visit_internal(map_stmt->root())) {
×
NEW
52
                return true;
×
53
            }
NEW
54
        } else if (auto while_stmt = dynamic_cast<structured_control_flow::While*>(&current)) {
×
NEW
55
            if (this->accept(*while_stmt)) {
×
NEW
56
                return true;
×
57
            }
58

NEW
59
            if (this->visit_internal(while_stmt->root())) {
×
NEW
60
                return true;
×
61
            }
NEW
62
        } else if (auto continue_stmt = dynamic_cast<structured_control_flow::Continue*>(&current)) {
×
NEW
63
            if (this->accept(*continue_stmt)) {
×
NEW
64
                return true;
×
65
            }
NEW
66
        } else if (auto break_stmt = dynamic_cast<structured_control_flow::Break*>(&current)) {
×
NEW
67
            if (this->accept(*break_stmt)) {
×
NEW
68
                return true;
×
69
            }
NEW
70
        } else if (auto return_stmt = dynamic_cast<structured_control_flow::Return*>(&current)) {
×
NEW
71
            if (this->accept(*return_stmt)) {
×
NEW
72
                return true;
×
73
            }
NEW
74
        }
×
NEW
75
    }
×
76

NEW
77
    return false;
×
NEW
78
};
×
79

NEW
80
bool ImmutableStructuredSDFGVisitor::accept(structured_control_flow::Block& node) { return false; };
×
81

NEW
82
bool ImmutableStructuredSDFGVisitor::accept(structured_control_flow::Sequence& node) { return false; };
×
83

NEW
84
bool ImmutableStructuredSDFGVisitor::accept(structured_control_flow::Return& node) { return false; };
×
85

NEW
86
bool ImmutableStructuredSDFGVisitor::accept(structured_control_flow::IfElse& node) { return false; };
×
87

NEW
88
bool ImmutableStructuredSDFGVisitor::accept(structured_control_flow::While& node) { return false; };
×
89

NEW
90
bool ImmutableStructuredSDFGVisitor::accept(structured_control_flow::Continue& node) { return false; };
×
91

NEW
92
bool ImmutableStructuredSDFGVisitor::accept(structured_control_flow::Break& node) { return false; };
×
93

NEW
94
bool ImmutableStructuredSDFGVisitor::accept(structured_control_flow::For& node) { return false; };
×
95

NEW
96
bool ImmutableStructuredSDFGVisitor::accept(structured_control_flow::Map& node) { return false; };
×
97

98
} // namespace visitor
99
} // namespace sdfg
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc