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

daisytuner / sdfglib / 17589393671

09 Sep 2025 04:35PM UTC coverage: 61.094% (+1.9%) from 59.145%
17589393671

Pull #219

github

web-flow
Merge a2a473c0b into b8fdeb232
Pull Request #219: stdlib Library Nodes and ConstantNodes

424 of 1357 new or added lines in 74 files covered. (31.25%)

90 existing lines in 32 files now uncovered.

9307 of 15234 relevant lines covered (61.09%)

109.01 hits per line

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

0.0
/include/sdfg/data_flow/library_nodes/stdlib/fprintf.h
1
#pragma once
2

3
#include "sdfg/data_flow/library_node.h"
4

5
#include "sdfg/codegen/dispatchers/block_dispatcher.h"
6
#include "sdfg/serializer/json_serializer.h"
7

8
namespace sdfg {
9
namespace stdlib {
10

11
inline data_flow::LibraryNodeCode LibraryNodeType_Fprintf("Fprintf");
12

13
class FprintfNode : public data_flow::LibraryNode {
14
private:
15
    std::vector<std::string> args_;
16

17
public:
18
    FprintfNode(
19
        size_t element_id,
20
        const DebugInfo& debug_info,
21
        const graph::Vertex vertex,
22
        data_flow::DataFlowGraph& parent,
23
        const std::vector<std::string>& args
24
    );
25

NEW
26
    const std::vector<std::string>& args() const { return args_; }
×
27

28
    void validate(const Function& function) const override;
29

30
    symbolic::SymbolSet symbols() const override;
31

32
    std::unique_ptr<DataFlowNode> clone(size_t element_id, const graph::Vertex vertex, data_flow::DataFlowGraph& parent)
33
        const override;
34

35
    void replace(const symbolic::Expression& old_expression, const symbolic::Expression& new_expression) override;
36
};
37

38
class FprintfNodeSerializer : public serializer::LibraryNodeSerializer {
39
public:
40
    nlohmann::json serialize(const data_flow::LibraryNode& library_node) override;
41

42
    data_flow::LibraryNode& deserialize(
43
        const nlohmann::json& j, builder::StructuredSDFGBuilder& builder, structured_control_flow::Block& parent
44
    ) override;
45
};
46

47
class FprintfNodeDispatcher : public codegen::LibraryNodeDispatcher {
48
public:
49
    FprintfNodeDispatcher(
50
        codegen::LanguageExtension& language_extension,
51
        const Function& function,
52
        const data_flow::DataFlowGraph& data_flow_graph,
53
        const FprintfNode& node
54
    );
55

56
    void dispatch_code(
57
        codegen::PrettyPrinter& stream,
58
        codegen::PrettyPrinter& globals_stream,
59
        codegen::CodeSnippetFactory& library_snippet_factory
60
    ) override;
61
};
62

63
} // namespace stdlib
64
} // 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