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

daisytuner / sdfglib / 15003172388

13 May 2025 05:40PM UTC coverage: 57.685% (-4.0%) from 61.65%
15003172388

push

github

web-flow
Merge pull request #10 from daisytuner/variadic-functions

Support for Packed Structs and Function Types

33 of 110 new or added lines in 10 files covered. (30.0%)

457 existing lines in 6 files now uncovered.

7161 of 12414 relevant lines covered (57.68%)

526.43 hits per line

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

50.0
/src/types/function.cpp
1
#include "sdfg/types/function.h"
2

3
namespace sdfg {
4
namespace types {
5

6
Function::Function(const IType& return_type, bool is_var_arg, DeviceLocation device_location,
4✔
7
                   uint address_space, const std::string& initializer)
4✔
8
    : return_type_(return_type.clone()),
4✔
9
      is_var_arg_(is_var_arg),
4✔
10
      device_location_(device_location),
4✔
11
      address_space_(address_space),
4✔
12
      initializer_(initializer) {}
8✔
13

NEW
14
PrimitiveType Function::primitive_type() const { return PrimitiveType::Void; }
×
15

NEW
16
bool Function::is_symbol() const { return false; }
×
17

18
size_t Function::num_params() const { return this->params_.size(); }
1✔
19

20
const IType& Function::param_type(symbolic::Integer index) const {
2✔
21
    return *this->params_[index->as_int()];
2✔
22
}
23

24
void Function::add_param(const IType& param) { this->params_.push_back(param.clone()); }
2✔
25

26
const IType& Function::return_type() const { return *this->return_type_; }
1✔
27

28
bool Function::is_var_arg() const { return this->is_var_arg_; }
2✔
29

NEW
30
bool Function::operator==(const IType& other) const { return false; }
×
31

NEW
32
std::unique_ptr<IType> Function::clone() const {
×
33
    auto new_function =
NEW
34
        std::make_unique<Function>(*this->return_type_, this->is_var_arg_, this->device_location_,
×
NEW
35
                                   this->address_space_, this->initializer_);
×
NEW
36
    for (const auto& param : this->params_) {
×
NEW
37
        new_function->add_param(*param);
×
38
    }
NEW
39
    return new_function;
×
NEW
40
}
×
41

NEW
42
DeviceLocation Function::device_location() const { return this->device_location_; }
×
43

NEW
44
uint Function::address_space() const { return this->address_space_; }
×
45

NEW
46
std::string Function::initializer() const { return this->initializer_; }
×
47

48
}  // namespace types
49
}  // 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