• 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

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

3
namespace sdfg {
4
namespace types {
5

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

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

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

UNCOV
17
bool Array::is_symbol() const { return false; };
×
18

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

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

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

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

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