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

daisytuner / sdfglib / 15049376628

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

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%)

506.14 hits per line

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

93.1
/src/data_flow/memlet.cpp
1
#include <sdfg/data_flow/memlet.h>
2

3
#include "sdfg/symbolic/symbolic.h"
4

5
namespace sdfg {
6
namespace data_flow {
7

8
Memlet::Memlet(size_t element_id, const DebugInfo& debug_info, const graph::Edge& edge,
1,235✔
9
               const DataFlowGraph& parent, DataFlowNode& src, const std::string& src_conn,
10
               DataFlowNode& dst, const std::string& dst_conn, const Subset& subset)
11
    : Element(element_id, debug_info),
1,235✔
12
      edge_(edge),
1,235✔
13
      parent_(&parent),
1,235✔
14
      src_(src),
1,235✔
15
      src_conn_(src_conn),
1,235✔
16
      dst_(dst),
1,235✔
17
      dst_conn_(dst_conn),
1,235✔
18
      subset_(subset) {
2,470✔
19

20
      };
1,235✔
21

22
const graph::Edge Memlet::edge() const { return this->edge_; };
16✔
23

24
const DataFlowGraph& Memlet::get_parent() const { return *this->parent_; };
×
25

26
const DataFlowNode& Memlet::src() const { return this->src_; };
25✔
27

28
DataFlowNode& Memlet::src() { return this->src_; };
207✔
29

30
const DataFlowNode& Memlet::dst() const { return this->dst_; };
10✔
31

32
DataFlowNode& Memlet::dst() { return this->dst_; };
367✔
33

34
const std::string& Memlet::src_conn() const { return this->src_conn_; };
5,791✔
35

36
const std::string& Memlet::dst_conn() const { return this->dst_conn_; };
5,806✔
37

38
const Subset Memlet::subset() const { return this->subset_; };
6✔
39

40
Subset& Memlet::subset() { return this->subset_; };
9,264✔
41

42
std::unique_ptr<Memlet> Memlet::clone(const graph::Edge& edge, const DataFlowGraph& parent,
166✔
43
                                      DataFlowNode& src, DataFlowNode& dst) const {
44
    return std::unique_ptr<Memlet>(new Memlet(this->element_id_, this->debug_info_, edge, parent,
332✔
45
                                              src, this->src_conn_, dst, this->dst_conn_,
166✔
46
                                              this->subset_));
166✔
UNCOV
47
};
×
48

49
void Memlet::replace(const symbolic::Expression& old_expression,
227✔
50
                     const symbolic::Expression& new_expression) {
51
    for (auto& dim : this->subset_) {
565✔
52
        dim = symbolic::subs(dim, old_expression, new_expression);
338✔
53
    }
54
};
227✔
55

56
}  // namespace data_flow
57
}  // 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