• 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

82.35
/src/types/pointer.cpp
1
#include "sdfg/types/pointer.h"
2

3
namespace sdfg {
4
namespace types {
5

6
Pointer::Pointer(const IType& pointee_type) : pointee_type_(pointee_type.clone()) {};
95✔
7

8
Pointer::Pointer(StorageType storage_type, size_t alignment, const std::string& initializer,
137✔
9
                 const IType& pointee_type)
10
    : IType(storage_type, alignment, initializer), pointee_type_(pointee_type.clone()) {};
137✔
11

12
std::unique_ptr<IType> Pointer::clone() const {
134✔
13
    return std::make_unique<Pointer>(this->storage_type(), this->alignment(), this->initializer(),
268✔
14
                                     *this->pointee_type_);
134✔
UNCOV
15
};
×
16

17
PrimitiveType Pointer::primitive_type() const { return this->pointee_type_->primitive_type(); };
5✔
18

19
bool Pointer::is_symbol() const { return true; };
98✔
20

21
const IType& Pointer::pointee_type() const { return *this->pointee_type_; };
210✔
22

23
bool Pointer::operator==(const IType& other) const {
4✔
24
    if (auto pointer_type = dynamic_cast<const Pointer*>(&other)) {
4✔
25
        return *(this->pointee_type_) == *pointer_type->pointee_type_ &&
7✔
26
               this->alignment_ == pointer_type->alignment_;
3✔
27
    } else {
28
        return false;
×
29
    }
30
};
4✔
31

UNCOV
32
std::string Pointer::print() const { return "Pointer(" + this->pointee_type_->print() + ")"; };
×
33

34
}  // namespace types
35
}  // 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