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

daisytuner / sdfglib / 15044057891

15 May 2025 11:42AM UTC coverage: 59.37% (+1.8%) from 57.525%
15044057891

push

github

web-flow
Merge pull request #14 from daisytuner/sanitizers

enables sanitizer on unit tests

63 of 67 new or added lines in 47 files covered. (94.03%)

570 existing lines in 62 files now uncovered.

7356 of 12390 relevant lines covered (59.37%)

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

20
      };
1,043✔
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_; };
192✔
29

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

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

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

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

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

40
Subset& Memlet::subset() { return this->subset_; };
9,082✔
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