• 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

14.58
/src/element.cpp
1
#include "sdfg/element.h"
2

3
#include <boost/uuid/uuid_io.hpp>
4

5
namespace sdfg {
6

7
boost::uuids::random_generator thread_local Element::UUID_GENERATOR;
8

9
DebugInfo::DebugInfo()
169✔
10
    : filename_(), start_line_(0), start_column_(0), end_line_(0), end_column_(0), has_(false) {
169✔
11

12
      };
169✔
13

UNCOV
14
DebugInfo::DebugInfo(std::string filename, size_t start_line, size_t start_column, size_t end_line,
×
15
                     size_t end_column)
UNCOV
16
    : filename_(filename),
×
UNCOV
17
      start_line_(start_line),
×
UNCOV
18
      start_column_(start_column),
×
UNCOV
19
      end_line_(end_line),
×
UNCOV
20
      end_column_(end_column),
×
UNCOV
21
      has_(true) {
×
22

UNCOV
23
      };
×
24

UNCOV
25
bool DebugInfo::has() const { return this->has_; };
×
26

UNCOV
27
std::string DebugInfo::filename() const { return this->filename_; };
×
28

UNCOV
29
size_t DebugInfo::start_line() const { return this->start_line_; };
×
30

UNCOV
31
size_t DebugInfo::start_column() const { return this->start_column_; };
×
32

UNCOV
33
size_t DebugInfo::end_line() const { return this->end_line_; };
×
34

UNCOV
35
size_t DebugInfo::end_column() const { return this->end_column_; };
×
36

UNCOV
37
DebugInfo DebugInfo::merge(const DebugInfo& left, const DebugInfo& right) {
×
UNCOV
38
    if (!left.has()) {
×
UNCOV
39
        return right;
×
40
    }
UNCOV
41
    if (!right.has()) {
×
UNCOV
42
        return left;
×
43
    }
UNCOV
44
    if (left.filename() != right.filename()) {
×
45
        throw InvalidSDFGException("DebugInfo: Filenames do not match");
×
46
    }
47

UNCOV
48
    size_t start_line = 0;
×
UNCOV
49
    size_t start_column = 0;
×
UNCOV
50
    size_t end_line = 0;
×
UNCOV
51
    size_t end_column = 0;
×
52

UNCOV
53
    if (left.start_line_ < right.start_line_) {
×
UNCOV
54
        start_line = left.start_line_;
×
UNCOV
55
        start_column = left.start_column_;
×
UNCOV
56
    } else {
×
UNCOV
57
        start_line = right.start_line_;
×
UNCOV
58
        start_column = right.start_column_;
×
59
    }
60

UNCOV
61
    if (left.end_line_ > right.end_line_) {
×
UNCOV
62
        end_line = left.end_line_;
×
UNCOV
63
        end_column = left.end_column_;
×
UNCOV
64
    } else {
×
UNCOV
65
        end_line = right.end_line_;
×
UNCOV
66
        end_column = right.end_column_;
×
67
    }
UNCOV
68
    return DebugInfo(left.filename_, start_line, start_column, end_line, end_column);
×
UNCOV
69
};
×
70

71
Element::Element(const DebugInfo& debug_info) : debug_info_(debug_info) {
233✔
72
    boost::uuids::uuid uuid = UUID_GENERATOR();
233✔
73
    this->element_id_ = boost::uuids::to_string(uuid);
233✔
74
};
233✔
75

UNCOV
76
std::string Element::element_id() const { return this->element_id_; };
×
77

UNCOV
78
const DebugInfo& Element::debug_info() const { return this->debug_info_; };
×
79

80
}  // 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