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

daisytuner / sdfglib / 15470021361

05 Jun 2025 02:42PM UTC coverage: 57.727% (-0.2%) from 57.883%
15470021361

push

github

web-flow
Merge pull request #57 from daisytuner/alignments

adds explicit alignment to types

44 of 61 new or added lines in 12 files covered. (72.13%)

7 existing lines in 5 files now uncovered.

7953 of 13777 relevant lines covered (57.73%)

108.58 hits per line

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

91.3
/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, DeviceLocation device_location, uint address_space,
232✔
7
                 const std::string& initializer, size_t alignment)
8
    : pointee_type_(pointee_type.clone()),
232✔
9
      device_location_(device_location),
232✔
10
      address_space_(address_space),
232✔
11
      initializer_(initializer),
232✔
12
      alignment_(alignment) {};
464✔
13

14
std::unique_ptr<IType> Pointer::clone() const {
134✔
15
    return std::make_unique<Pointer>(*this->pointee_type_, this->device_location_,
268✔
16
                                     this->address_space_, this->initializer_, this->alignment_);
134✔
17
};
18

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

21
bool Pointer::is_symbol() const { return true; };
98✔
22

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

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

34
uint Pointer::address_space() const { return this->address_space_; };
10✔
35

36
DeviceLocation Pointer::device_location() const { return this->device_location_; };
10✔
37

38
std::string Pointer::initializer() const { return this->initializer_; }
10✔
39

40
size_t Pointer::alignment() const { return this->alignment_; }
3✔
41

UNCOV
42
std::string Pointer::print() const { return "Pointer(" + this->pointee_type_->print() + ")"; };
×
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