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

daisytuner / sdfglib / 15487347373

06 Jun 2025 09:26AM UTC coverage: 57.73% (+0.003%) from 57.727%
15487347373

push

github

web-flow
Merge pull request #58 from daisytuner/storage_types

moves from address space to storage type enums

109 of 115 new or added lines in 15 files covered. (94.78%)

15 existing lines in 6 files now uncovered.

7939 of 13752 relevant lines covered (57.73%)

108.46 hits per line

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

73.08
/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) {};
666✔
7

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

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

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

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

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

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

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

UNCOV
40
std::string Scalar::print() const {
×
UNCOV
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