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

daisytuner / sdfglib / 16069945621

04 Jul 2025 08:56AM UTC coverage: 64.375% (-0.2%) from 64.606%
16069945621

push

github

web-flow
Merge pull request #137 from daisytuner/clang-format

runs clang-format on codebase

609 of 827 new or added lines in 63 files covered. (73.64%)

46 existing lines in 30 files now uncovered.

8578 of 13325 relevant lines covered (64.38%)

177.24 hits per line

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

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

22
      };
614✔
23

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

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

28
DataFlowGraph& Memlet::get_parent() { return *this->parent_; };
×
29

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

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

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

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

38
const std::string& Memlet::src_conn() const { return this->src_conn_; };
716✔
39

40
const std::string& Memlet::dst_conn() const { return this->dst_conn_; };
748✔
41

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

44
Subset& Memlet::subset() { return this->subset_; };
1,014✔
45

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

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

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