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

daisytuner / sdfglib / 16861237397

10 Aug 2025 12:12PM UTC coverage: 64.492% (+0.006%) from 64.486%
16861237397

push

github

web-flow
Merge pull request #185 from daisytuner/memlets-tasklets

References and Memlets: Validation

102 of 146 new or added lines in 7 files covered. (69.86%)

2 existing lines in 1 file now uncovered.

8965 of 13901 relevant lines covered (64.49%)

124.44 hits per line

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

47.62
/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(
340✔
9
    size_t element_id,
10
    const DebugInfo& debug_info,
11
    const graph::Vertex vertex,
12
    DataFlowGraph& parent,
13
    const TaskletCode code,
14
    const std::string& output,
15
    const std::vector<std::string>& inputs,
16
    const symbolic::Condition& condition
17
)
18
    : CodeNode(element_id, debug_info, vertex, parent, {output}, inputs), code_(code), condition_(condition) {};
340✔
19

20
void Tasklet::validate(const Function& function) const {
310✔
21
    // TODO: Implement
22
}
310✔
23

24
TaskletCode Tasklet::code() const { return this->code_; };
800✔
25

26
const std::string& Tasklet::output() const { return this->outputs_[0]; };
202✔
27

28
bool Tasklet::needs_connector(size_t index) const {
×
29
    // Is non-constant, if starts with _in prefix
30
    if (this->inputs_[index].compare(0, 3, "_in") == 0) {
×
31
        return true;
×
32
    }
33
    return false;
×
34
};
×
35

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

38
symbolic::Condition& Tasklet::condition() { return this->condition_; };
×
39

40
bool Tasklet::is_conditional() const { return !symbolic::is_true(this->condition_); };
204✔
41

42
std::unique_ptr<DataFlowNode> Tasklet::clone(size_t element_id, const graph::Vertex vertex, DataFlowGraph& parent)
×
43
    const {
44
    return std::unique_ptr<Tasklet>(new Tasklet(
×
NEW
45
        element_id, this->debug_info_, vertex, parent, this->code_, this->outputs_.at(0), this->inputs_, this->condition_
×
46
    ));
47
};
×
48

49
void Tasklet::replace(const symbolic::Expression& old_expression, const symbolic::Expression& new_expression) {
2✔
50
    this->condition_ = symbolic::subs(this->condition_, old_expression, new_expression);
2✔
51
};
2✔
52

53
} // namespace data_flow
54
} // 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