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

daisytuner / sdfglib / 15453311876

04 Jun 2025 09:38PM UTC coverage: 58.159% (-0.3%) from 58.435%
15453311876

push

github

web-flow
Merge pull request #53 from daisytuner/element-ids

uses uuid as element id

206 of 236 new or added lines in 26 files covered. (87.29%)

6 existing lines in 6 files now uncovered.

8105 of 13936 relevant lines covered (58.16%)

107.66 hits per line

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

85.71
/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(const DebugInfo& debug_info, const graph::Vertex vertex, DataFlowGraph& parent,
361✔
9
                 const TaskletCode code, const std::pair<std::string, sdfg::types::Scalar>& output,
10
                 const std::vector<std::pair<std::string, sdfg::types::Scalar>>& inputs,
11
                 const symbolic::Condition& condition)
12
    : CodeNode(debug_info, vertex, parent, {output}, inputs), code_(code), condition_(condition) {};
361✔
13

14
TaskletCode Tasklet::code() const { return this->code_; };
765✔
15

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

18
symbolic::Condition& Tasklet::condition() { return this->condition_; };
17✔
19

20
bool Tasklet::is_conditional() const { return !symbolic::is_true(this->condition_); };
340✔
21

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

29
void Tasklet::replace(const symbolic::Expression& old_expression,
12✔
30
                      const symbolic::Expression& new_expression) {
31
    this->condition_ = symbolic::subs(this->condition_, old_expression, new_expression);
12✔
32
};
12✔
33

34
}  // namespace data_flow
35
}  // 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