• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In
Build has been canceled!

daisytuner / docc / 23249128422

18 Mar 2026 02:12PM UTC coverage: 63.938% (+0.3%) from 63.617%
23249128422

Pull #584

github

web-flow
Merge 0fcde60dc into 64d54d7de
Pull Request #584: adds diamond tiling test

18 of 20 new or added lines in 1 file covered. (90.0%)

1180 existing lines in 28 files now uncovered.

26122 of 40855 relevant lines covered (63.94%)

407.69 hits per line

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

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

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

7
namespace sdfg {
8
namespace math {
9
namespace tensor {
10

11
SubNode::SubNode(
12
    size_t element_id,
13
    const DebugInfo& debug_info,
14
    const graph::Vertex vertex,
15
    data_flow::DataFlowGraph& parent,
16
    const std::vector<symbolic::Expression>& shape
17
)
18
    : ElementWiseBinaryNode(element_id, debug_info, vertex, parent, LibraryNodeType_Sub, shape) {}
6✔
19

20
bool SubNode::expand_operation(
21
    builder::StructuredSDFGBuilder& builder,
22
    analysis::AnalysisManager& analysis_manager,
23
    structured_control_flow::Sequence& body,
24
    const std::string& input_name_a,
25
    const std::string& input_name_b,
26
    const std::string& output_name,
27
    const types::Tensor& input_type_a,
28
    const types::Tensor& input_type_b,
29
    const types::Tensor& output_type,
30
    const data_flow::Subset& subset
31
) {
4✔
32
    auto& code_block = builder.add_block(body);
4✔
33

34
    bool is_int = types::is_integer(output_type.primitive_type());
4✔
35
    data_flow::TaskletCode opcode = is_int ? data_flow::TaskletCode::int_sub : data_flow::TaskletCode::fp_sub;
4✔
36
    auto& tasklet = builder.add_tasklet(code_block, opcode, "_out", {"_in1", "_in2"});
4✔
37

38
    auto& output_node = builder.add_access(code_block, output_name);
4✔
39
    builder.add_computational_memlet(code_block, tasklet, "_out", output_node, subset, output_type);
4✔
40

41
    create_input_memlet(builder, "_in1", input_name_a, input_type_a, subset, code_block, tasklet);
4✔
42
    create_input_memlet(builder, "_in2", input_name_b, input_type_b, subset, code_block, tasklet);
4✔
43

44
    return true;
4✔
45
}
4✔
46

47
std::unique_ptr<data_flow::DataFlowNode> SubNode::
UNCOV
48
    clone(size_t element_id, const graph::Vertex vertex, data_flow::DataFlowGraph& parent) const {
×
UNCOV
49
    return std::unique_ptr<
×
UNCOV
50
        data_flow::DataFlowNode>(new SubNode(element_id, this->debug_info(), vertex, parent, this->shape_));
×
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