• 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

86.36
/src/types/array.cpp
1
#include "sdfg/types/array.h"
2

3
namespace sdfg {
4
namespace types {
5

6
Array::Array(const IType& element_type, const symbolic::Expression& num_elements)
90✔
7
    : element_type_(element_type.clone()), num_elements_(num_elements) {};
90✔
8

9
Array::Array(StorageType storage_type, size_t alignment, const std::string& initializer,
329✔
10
             const IType& element_type, const symbolic::Expression& num_elements)
11
    : IType(storage_type, alignment, initializer),
329✔
12
      element_type_(element_type.clone()),
329✔
13
      num_elements_(num_elements) {};
329✔
14

15
PrimitiveType Array::primitive_type() const { return this->element_type_->primitive_type(); };
2✔
16

17
bool Array::is_symbol() const { return false; };
39✔
18

19
const IType& Array::element_type() const { return *this->element_type_; };
208✔
20

21
const symbolic::Expression& Array::num_elements() const { return this->num_elements_; };
75✔
22

23
bool Array::operator==(const IType& other) const {
4✔
24
    if (auto array_type = dynamic_cast<const Array*>(&other)) {
4✔
25
        return symbolic::eq(this->num_elements_, array_type->num_elements_) &&
7✔
26
               *(this->element_type_) == *array_type->element_type_ &&
3✔
27
               this->alignment_ == array_type->alignment_;
3✔
28
    } else {
29
        return false;
×
30
    }
31
};
4✔
32

33
std::unique_ptr<IType> Array::clone() const {
310✔
34
    return std::make_unique<Array>(this->storage_type(), this->alignment(), this->initializer(),
620✔
35
                                   *this->element_type_, this->num_elements_);
310✔
UNCOV
36
};
×
37

UNCOV
38
std::string Array::print() const { return "Array(" + this->element_type_->print() + ")"; };
×
39

40
}  // namespace types
41
}  // 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