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

daisytuner / sdfglib / 15656007340

14 Jun 2025 08:51PM UTC coverage: 13.234% (-49.9%) from 63.144%
15656007340

Pull #76

github

web-flow
Merge 9586c8161 into 413c53212
Pull Request #76: New Loop Dependency Analysis

361 of 465 new or added lines in 7 files covered. (77.63%)

6215 existing lines in 110 files now uncovered.

1612 of 12181 relevant lines covered (13.23%)

13.64 hits per line

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

30.77
/src/types/scalar.cpp
1
#include "sdfg/types/scalar.h"
2

3
namespace sdfg {
4
namespace types {
5

6
Scalar::Scalar(PrimitiveType primitive_type) : primitive_type_(primitive_type) {};
38✔
7

8
Scalar::Scalar(StorageType storage_type, size_t alignment, const std::string& initializer,
96✔
9
               PrimitiveType primitive_type)
10
    : IType(storage_type, alignment, initializer), primitive_type_(primitive_type) {};
96✔
11

12
PrimitiveType Scalar::primitive_type() const { return this->primitive_type_; };
46✔
13

14
bool Scalar::is_symbol() const { return types::is_integer(this->primitive_type_); };
48✔
15

UNCOV
16
bool Scalar::operator==(const IType& other) const {
×
UNCOV
17
    if (auto scalar_type = dynamic_cast<const Scalar*>(&other)) {
×
UNCOV
18
        return this->primitive_type_ == scalar_type->primitive_type_ &&
×
UNCOV
19
               this->alignment_ == scalar_type->alignment_;
×
20
    } else {
21
        return false;
×
22
    }
UNCOV
23
};
×
24

UNCOV
25
Scalar Scalar::as_signed() const {
×
UNCOV
26
    return Scalar(this->storage_type(), this->alignment(), this->initializer(),
×
UNCOV
27
                  types::as_signed(this->primitive_type_));
×
28
};
×
29

UNCOV
30
Scalar Scalar::as_unsigned() const {
×
UNCOV
31
    return Scalar(this->storage_type(), this->alignment(), this->initializer(),
×
UNCOV
32
                  types::as_unsigned(this->primitive_type_));
×
33
};
×
34

35
std::unique_ptr<IType> Scalar::clone() const {
96✔
36
    return std::make_unique<Scalar>(this->storage_type(), this->alignment(), this->initializer(),
192✔
37
                                    this->primitive_type_);
96✔
38
};
×
39

40
std::string Scalar::print() const {
×
41
    return "Scalar(" + std::string(primitive_type_to_string(this->primitive_type_)) + ")";
×
42
};
×
43

44
}  // namespace types
45
}  // 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