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

daisytuner / sdfglib / 15731283590

18 Jun 2025 11:12AM UTC coverage: 64.351% (-0.2%) from 64.576%
15731283590

Pull #86

github

web-flow
Merge 99df43790 into 32b5d7ae4
Pull Request #86: Add optimizer functionality

144 of 227 new or added lines in 9 files covered. (63.44%)

453 existing lines in 14 files now uncovered.

8125 of 12626 relevant lines covered (64.35%)

153.57 hits per line

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

57.89
/src/data_flow/library_node.cpp
1
#include "sdfg/data_flow/library_node.h"
2

3
#include <string>
4

5
namespace sdfg {
6
namespace data_flow {
7

8
LibraryNode::LibraryNode(size_t element_id, const DebugInfo& debug_info, const graph::Vertex vertex,
7✔
9
                         DataFlowGraph& parent, const LibraryNodeCode& code,
10
                         const std::vector<std::string>& outputs,
11
                         const std::vector<std::string>& inputs, const bool side_effect)
12
    : CodeNode(element_id, debug_info, vertex, parent),
7✔
13
      code_(code),
7✔
14
      outputs_(outputs),
7✔
15
      inputs_(inputs),
7✔
16
      side_effect_(side_effect) {
14✔
17

18
      };
7✔
19

20
const LibraryNodeCode& LibraryNode::code() const { return this->code_; };
7✔
21

22
const std::vector<std::string>& LibraryNode::inputs() const { return this->inputs_; };
3✔
23

24
const std::vector<std::string>& LibraryNode::outputs() const { return this->outputs_; };
3✔
25

26
const std::string& LibraryNode::input(size_t index) const { return this->inputs_[index]; };
×
27

UNCOV
28
const std::string& LibraryNode::output(size_t index) const { return this->outputs_[index]; };
×
29

30
bool LibraryNode::side_effect() const { return this->side_effect_; };
5✔
31

32
bool LibraryNode::needs_connector(size_t index) const {
×
33
    // Is non-constant, if starts with _in prefix
UNCOV
34
    if (this->inputs_[index].compare(0, 3, "_in") == 0) {
×
35
        return true;
×
36
    }
UNCOV
37
    return false;
×
UNCOV
38
};
×
39

UNCOV
40
std::string LibraryNode::toStr() const { return std::string(this->code_.value()); }
×
41

42
}  // namespace data_flow
43
}  // 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