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

daisytuner / sdfglib / 15973046991

30 Jun 2025 12:34PM UTC coverage: 64.64% (-0.2%) from 64.86%
15973046991

push

github

web-flow
Merge pull request #123 from daisytuner/simplify-tiling-transformation

Avoid deep copy in loop tiling

31 of 32 new or added lines in 2 files covered. (96.88%)

27 existing lines in 6 files now uncovered.

8643 of 13371 relevant lines covered (64.64%)

171.55 hits per line

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

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

20
      };
610✔
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
DataFlowGraph& Memlet::get_parent() { return *this->parent_; };
×
27

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

30
DataFlowNode& Memlet::src() { return this->src_; };
23✔
31

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

34
DataFlowNode& Memlet::dst() { return this->dst_; };
22✔
35

36
const std::string& Memlet::src_conn() const { return this->src_conn_; };
708✔
37

38
const std::string& Memlet::dst_conn() const { return this->dst_conn_; };
740✔
39

40
const Subset Memlet::subset() const { return this->subset_; };
224✔
41

42
Subset& Memlet::subset() { return this->subset_; };
974✔
43

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

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

59
}  // namespace data_flow
60
}  // 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