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

daisytuner / sdfglib / 15049122732

15 May 2025 03:33PM UTC coverage: 62.241% (+4.7%) from 57.525%
15049122732

Pull #9

github

web-flow
Merge b96e33e0e into 9d3b1a2b3
Pull Request #9: Graphviz DOT Visualizer for SDFGs

520 of 542 new or added lines in 3 files covered. (95.94%)

782 existing lines in 68 files now uncovered.

8049 of 12932 relevant lines covered (62.24%)

504.09 hits per line

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

94.74
/src/data_flow/access_node.cpp
1
#include "sdfg/data_flow/access_node.h"
2

3
namespace sdfg {
4
namespace data_flow {
5

6
AccessNode::AccessNode(size_t element_id, const DebugInfo& debug_info, const graph::Vertex& vertex,
1,164✔
7
                       DataFlowGraph& parent, const std::string& data)
8
    : DataFlowNode(element_id, debug_info, vertex, parent), data_(data) {
1,164✔
9

10
      };
1,164✔
11

12
const std::string& AccessNode::data() const { return this->data_; };
1,014✔
13

14
std::string& AccessNode::data() { return this->data_; };
10,437✔
15

16
std::unique_ptr<DataFlowNode> AccessNode::clone(const graph::Vertex& vertex,
146✔
17
                                                DataFlowGraph& parent) const {
18
    return std::unique_ptr<AccessNode>(
146✔
19
        new AccessNode(this->element_id_, this->debug_info_, vertex, parent, this->data_));
146✔
UNCOV
20
};
×
21

22
void AccessNode::replace(const symbolic::Expression& old_expression,
205✔
23
                         const symbolic::Expression& new_expression) {
24
    if (SymEngine::is_a<SymEngine::Symbol>(*old_expression)) {
205✔
25
        auto old_symbol = SymEngine::rcp_static_cast<const SymEngine::Symbol>(old_expression);
205✔
26
        if (this->data_ == old_symbol->get_name()) {
205✔
27
            assert(SymEngine::is_a<SymEngine::Symbol>(*new_expression) &&
30✔
28
                   "Access Nodes do not support complex expressions");
29
            auto new_symbol = SymEngine::rcp_static_cast<const SymEngine::Symbol>(new_expression);
15✔
30
            this->data_ = new_symbol->get_name();
15✔
31
        }
15✔
32
    }
205✔
33
};
205✔
34

35
}  // namespace data_flow
36
}  // 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

© 2026 Coveralls, Inc