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

daisytuner / sdfglib / 20603090460

30 Dec 2025 06:20PM UTC coverage: 39.276% (-0.3%) from 39.581%
20603090460

push

github

web-flow
Merge pull request #414 from daisytuner/blas-connectors

renames connectors of blas nodes

14694 of 48687 branches covered (30.18%)

Branch coverage included in aggregate %.

85 of 250 new or added lines in 11 files covered. (34.0%)

18 existing lines in 1 file now uncovered.

12557 of 20696 relevant lines covered (60.67%)

86.4 hits per line

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

17.49
/include/sdfg/codegen/utils.h
1
#pragma once
2

3
#include <iomanip>
4
#include <iostream>
5
#include <sstream>
6

7
#include "sdfg/types/type.h"
8

9
namespace sdfg {
10
namespace codegen {
11

12
class PrettyPrinter {
13
public:
14
    // Constructor
15
    PrettyPrinter(int indent = 0, bool frozen = false);
16

17
    // Set the indentation level
18
    void setIndent(int indent);
19

20
    int indent() const;
21

22
    int changeIndent(int delta);
23

24
    // Get the underlying string
25
    std::string str() const;
26

27
    // Clear the stringstream content
28
    void clear();
29

30
    // Overload the insertion operator
31
    template<typename T>
32
    PrettyPrinter& operator<<(const T& value) {
14✔
33
        if (frozen_) {
×
34
            throw std::runtime_error("PrettyPrinter is frozen");
×
35
        }
59✔
36
        applyIndent();
2,415✔
37
        stream << value;
×
38
        return *this;
74✔
39
    }
×
40

×
41
    // Overload for manipulators (like std::endl)
×
42
    PrettyPrinter& operator<<(std::ostream& (*manip)(std::ostream&) );
×
43

415✔
44
private:
6✔
45
    std::stringstream stream;
14✔
46
    int indentSize;
×
UNCOV
47
    bool isNewLine = true;
×
48
    bool frozen_;
59✔
49

2,415✔
UNCOV
50
    // Apply indentation only at the beginning of a new line
×
51
    void applyIndent();
74✔
52
};
×
UNCOV
53

×
54
class Reference : public types::IType {
×
55
private:
×
56
    std::unique_ptr<types::IType> reference_;
415✔
57

6✔
58
public:
×
UNCOV
59
    Reference(const types::IType& reference_);
×
UNCOV
60

×
61
    Reference(
×
62
        types::StorageType storage_type, size_t alignment, const std::string& initializer, const types::IType& reference_
×
63
    );
×
64

×
65
    std::unique_ptr<types::IType> clone() const override;
×
66

×
67
    virtual types::TypeID type_id() const override;
×
68

×
69
    types::PrimitiveType primitive_type() const override;
1✔
70

×
71
    bool is_symbol() const override;
14✔
72

×
73
    const types::IType& reference_type() const;
×
74

59✔
75
    bool operator==(const types::IType& other) const override;
2,415✔
76

×
77
    std::string print() const override;
74✔
78
};
×
79

×
UNCOV
80
} // namespace codegen
×
UNCOV
81
} // 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