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

daisytuner / sdfglib / 15453311876

04 Jun 2025 09:38PM UTC coverage: 58.159% (-0.3%) from 58.435%
15453311876

push

github

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

uses uuid as element id

206 of 236 new or added lines in 26 files covered. (87.29%)

6 existing lines in 6 files now uncovered.

8105 of 13936 relevant lines covered (58.16%)

107.66 hits per line

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

92.86
/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(const DebugInfo& debug_info, const graph::Edge& edge, const DataFlowGraph& parent,
580✔
9
               DataFlowNode& src, const std::string& src_conn, DataFlowNode& dst,
10
               const std::string& dst_conn, const Subset& subset)
11
    : Element(debug_info),
580✔
12
      edge_(edge),
580✔
13
      parent_(&parent),
580✔
14
      src_(src),
580✔
15
      dst_(dst),
580✔
16
      src_conn_(src_conn),
580✔
17
      dst_conn_(dst_conn),
580✔
18
      subset_(subset) {
1,160✔
19

20
      };
580✔
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_; };
55✔
27

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

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

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

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

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

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

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

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

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

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