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

daisytuner / sdfglib / 15704003944

17 Jun 2025 09:51AM UTC coverage: 64.576% (-0.4%) from 64.973%
15704003944

push

github

web-flow
Merge pull request #84 from daisytuner/element-ids

Use counter-based element ids

196 of 215 new or added lines in 29 files covered. (91.16%)

58 existing lines in 5 files now uncovered.

8041 of 12452 relevant lines covered (64.58%)

117.69 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,
571✔
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),
571✔
12
      edge_(edge),
571✔
13
      parent_(&parent),
571✔
14
      src_(src),
571✔
15
      dst_(dst),
571✔
16
      src_conn_(src_conn),
571✔
17
      dst_conn_(dst_conn),
571✔
18
      subset_(subset) {
1,142✔
19

20
      };
571✔
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_; };
52✔
27

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

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

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

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

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

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

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

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

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

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