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

daisytuner / sdfglib / 17656823807

11 Sep 2025 08:42PM UTC coverage: 60.447% (+1.1%) from 59.335%
17656823807

Pull #219

github

web-flow
Merge d5416236f into 6c1992b40
Pull Request #219: stdlib Library Nodes and ConstantNodes

460 of 1635 new or added lines in 81 files covered. (28.13%)

93 existing lines in 35 files now uncovered.

9385 of 15526 relevant lines covered (60.45%)

107.21 hits per line

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

43.75
/src/data_flow/code_node.cpp
1
#include "sdfg/data_flow/code_node.h"
2

3
#include "sdfg/data_flow/access_node.h"
4
#include "sdfg/data_flow/data_flow_graph.h"
5

6
namespace sdfg {
7
namespace data_flow {
8

9
CodeNode::CodeNode(
380✔
10
    size_t element_id,
11
    const DebugInfo& debug_info,
12
    const graph::Vertex vertex,
13
    DataFlowGraph& parent,
14
    const std::vector<std::string>& outputs,
15
    const std::vector<std::string>& inputs
16
)
17
    : DataFlowNode(element_id, debug_info, vertex, parent), outputs_(outputs), inputs_(inputs) {};
380✔
18

19
const std::vector<std::string>& CodeNode::outputs() const { return this->outputs_; };
1,805✔
20

21
const std::vector<std::string>& CodeNode::inputs() const { return this->inputs_; };
2,345✔
22

23
std::vector<std::string>& CodeNode::outputs() { return this->outputs_; };
2✔
24

25
std::vector<std::string>& CodeNode::inputs() { return this->inputs_; };
15✔
26

27
const std::string& CodeNode::output(size_t index) const { return this->outputs_[index]; };
×
28

29
const std::string& CodeNode::input(size_t index) const { return this->inputs_[index]; };
252✔
30

NEW
31
bool CodeNode::has_constant_input(size_t index) const {
×
NEW
32
    for (auto& iedge : this->get_parent().in_edges(*this)) {
×
NEW
33
        if (iedge.dst_conn() == this->inputs_[index]) {
×
NEW
34
            if (dynamic_cast<const ConstantNode*>(&iedge.src())) {
×
NEW
35
                return true;
×
36
            }
NEW
37
        }
×
38
    }
39

NEW
40
    return false;
×
NEW
41
}
×
42

43
} // namespace data_flow
44
} // 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