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

daisytuner / sdfglib / 15796425724

21 Jun 2025 02:00PM UTC coverage: 64.059% (-0.5%) from 64.591%
15796425724

push

github

web-flow
Merge pull request #95 from daisytuner/data-dependencies

Extends Data Dependency Analysis

993 of 1197 new or added lines in 19 files covered. (82.96%)

55 existing lines in 5 files now uncovered.

8058 of 12579 relevant lines covered (64.06%)

150.28 hits per line

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

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

20
      };
572✔
21

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

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

NEW
26
DataFlowGraph& Memlet::get_parent() { return *this->parent_; };
×
27

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

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

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

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

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

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

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

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

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

52
void Memlet::replace(const symbolic::Expression& old_expression,
16✔
53
                     const symbolic::Expression& new_expression) {
54
    for (auto& dim : this->subset_) {
30✔
55
        dim = symbolic::subs(dim, old_expression, new_expression);
14✔
56
    }
57
};
16✔
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

© 2026 Coveralls, Inc