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

daisytuner / sdfglib / 20588702450

29 Dec 2025 11:48PM UTC coverage: 39.581%. Remained the same
20588702450

push

github

web-flow
Merge pull request #412 from daisytuner/mean-std-nodes

adds mean/std library nodes

14647 of 48066 branches covered (30.47%)

Branch coverage included in aggregate %.

225 of 622 new or added lines in 14 files covered. (36.17%)

17 existing lines in 2 files now uncovered.

12489 of 20493 relevant lines covered (60.94%)

87.19 hits per line

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

51.28
/src/data_flow/library_nodes/math/tensor/elementwise_ops/exp_node.cpp
1
#include "sdfg/data_flow/library_nodes/math/tensor/elementwise_ops/exp_node.h"
2

3
#include "sdfg/analysis/analysis.h"
4
#include "sdfg/builder/structured_sdfg_builder.h"
5

6
#include "sdfg/analysis/scope_analysis.h"
7

8
#include "sdfg/data_flow/library_nodes/math/cmath/cmath_node.h"
9

10
namespace sdfg {
11
namespace math {
12
namespace tensor {
13

14
ExpNode::ExpNode(
4✔
15
    size_t element_id,
16
    const DebugInfo& debug_info,
17
    const graph::Vertex vertex,
18
    data_flow::DataFlowGraph& parent,
19
    const std::vector<symbolic::Expression>& shape
20
)
21
    : ElementWiseUnaryNode(element_id, debug_info, vertex, parent, LibraryNodeType_Exp, shape) {}
4✔
22

23
bool ExpNode::expand_operation(
4✔
24
    builder::StructuredSDFGBuilder& builder,
25
    analysis::AnalysisManager& analysis_manager,
26
    structured_control_flow::Sequence& body,
27
    const std::string& input_name,
28
    const std::string& output_name,
29
    const types::IType& input_type,
30
    const types::IType& output_type,
31
    const data_flow::Subset& subset
32
) {
33
    // Add code
34
    auto& code_block = builder.add_block(body);
4!
35

36
    auto& input_node_new = builder.add_access(code_block, input_name);
4!
37
    auto& output_node_new = builder.add_access(code_block, output_name);
4!
38

39
    auto& libnode = builder.add_library_node<math::cmath::CMathNode>(code_block, body.debug_info(), "exp", 1);
4✔
40

41
    builder.add_computational_memlet(code_block, input_node_new, libnode, "_in1", subset, input_type);
4!
42
    builder.add_computational_memlet(code_block, libnode, "_out", output_node_new, subset, output_type);
4!
43

44
    return true;
4✔
NEW
45
}
×
46

47
std::unique_ptr<data_flow::DataFlowNode> ExpNode::
NEW
48
    clone(size_t element_id, const graph::Vertex vertex, data_flow::DataFlowGraph& parent) const {
×
NEW
49
    return std::unique_ptr<
×
NEW
50
        data_flow::DataFlowNode>(new ExpNode(element_id, this->debug_info(), vertex, parent, this->shape_));
×
NEW
51
}
×
52

53
} // namespace tensor
54
} // namespace math
55
} // 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