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

daisytuner / sdfglib / 15049376628

15 May 2025 03:33PM UTC coverage: 62.241% (+4.7%) from 57.525%
15049376628

Pull #9

github

web-flow
Merge b96e33e0e into 9d3b1a2b3
Pull Request #9: Graphviz DOT Visualizer for SDFGs

520 of 542 new or added lines in 3 files covered. (95.94%)

782 existing lines in 68 files now uncovered.

8049 of 12932 relevant lines covered (62.24%)

506.14 hits per line

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

87.5
/src/data_flow/tasklet.cpp
1
#include "sdfg/data_flow/tasklet.h"
2

3
#include "sdfg/symbolic/symbolic.h"
4

5
namespace sdfg {
6
namespace data_flow {
7

8
Tasklet::Tasklet(size_t element_id, const DebugInfo& debug_info, const graph::Vertex& vertex,
618✔
9
                 DataFlowGraph& parent, const TaskletCode code,
10
                 const std::pair<std::string, sdfg::types::Scalar>& output,
11
                 const std::vector<std::pair<std::string, sdfg::types::Scalar>>& inputs,
12
                 const symbolic::Condition& condition)
13
    : CodeNode(element_id, debug_info, vertex, parent, {output}, inputs),
618✔
14
      code_(code),
618✔
15
      condition_(condition) {};
1,236✔
16

17
const TaskletCode Tasklet::code() const { return this->code_; };
768✔
18

19
const symbolic::Condition& Tasklet::condition() const { return this->condition_; };
×
20

21
symbolic::Condition& Tasklet::condition() { return this->condition_; };
29✔
22

23
bool Tasklet::is_conditional() const { return !symbolic::is_true(this->condition_); };
2,164✔
24

25
std::unique_ptr<DataFlowNode> Tasklet::clone(const graph::Vertex& vertex,
74✔
26
                                             DataFlowGraph& parent) const {
27
    return std::unique_ptr<Tasklet>(new Tasklet(this->element_id_, this->debug_info_, vertex,
74✔
28
                                                parent, this->code_, this->outputs_.at(0),
74✔
29
                                                this->inputs_, this->condition_));
74✔
UNCOV
30
};
×
31

32
void Tasklet::replace(const symbolic::Expression& old_expression,
101✔
33
                      const symbolic::Expression& new_expression) {
34
    this->condition_ = symbolic::subs(this->condition_, old_expression, new_expression);
101✔
35
};
101✔
36

37
}  // namespace data_flow
38
}  // 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