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

daisytuner / sdfglib / 15238257521

25 May 2025 01:14PM UTC coverage: 60.342% (-0.1%) from 60.473%
15238257521

push

github

web-flow
Merge pull request #31 from daisytuner/exception-handling

Exception handling

18 of 60 new or added lines in 17 files covered. (30.0%)

1 existing line in 1 file now uncovered.

8052 of 13344 relevant lines covered (60.34%)

102.27 hits per line

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

90.0
/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,
593✔
7
                       DataFlowGraph& parent, const std::string& data)
8
    : DataFlowNode(element_id, debug_info, vertex, parent), data_(data) {
593✔
9

10
      };
593✔
11

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

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

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

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

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