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

daisytuner / sdfglib / 15455990921

05 Jun 2025 01:03AM UTC coverage: 57.883% (-0.4%) from 58.236%
15455990921

push

github

web-flow
Merge pull request #56 from daisytuner/allocations

removes allocation handling

15 of 36 new or added lines in 4 files covered. (41.67%)

27 existing lines in 4 files now uncovered.

8018 of 13852 relevant lines covered (57.88%)

107.95 hits per line

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

59.26
/src/schedule.cpp
1
#include "sdfg/schedule.h"
2

3
#include "sdfg/builder/structured_sdfg_builder.h"
4
#include "sdfg/deepcopy/structured_sdfg_deep_copy.h"
5

6
namespace sdfg {
7

8
Schedule::Schedule(std::unique_ptr<StructuredSDFG>& sdfg)
28✔
9
    : assumptions_(), builder_(sdfg), analysis_manager_(builder_.subject(), assumptions_) {
14✔
10

11
      };
14✔
12

13
Schedule::Schedule(std::unique_ptr<StructuredSDFG>& sdfg, const symbolic::Assumptions& assumptions)
428✔
14
    : assumptions_(assumptions),
214✔
15
      builder_(sdfg),
214✔
16
      analysis_manager_(builder_.subject(), assumptions_) {
214✔
17

18
      };
214✔
19

20
symbolic::Assumptions& Schedule::assumptions() { return this->assumptions_; };
188✔
21

22
const symbolic::Assumptions& Schedule::assumptions() const { return this->assumptions_; };
×
23

24
builder::StructuredSDFGBuilder& Schedule::builder() { return this->builder_; };
225✔
25

26
StructuredSDFG& Schedule::sdfg() { return this->builder_.subject(); };
1,333✔
27

UNCOV
28
const StructuredSDFG& Schedule::sdfg() const { return this->builder_.subject(); };
×
29

30
analysis::AnalysisManager& Schedule::analysis_manager() { return this->analysis_manager_; };
35✔
31

32
LoopSchedule Schedule::loop_schedule(const structured_control_flow::ControlFlowNode* loop) const {
9✔
33
    if (this->loop_schedules_.find(loop) == this->loop_schedules_.end()) {
9✔
34
        return LoopSchedule::SEQUENTIAL;
9✔
35
    }
36
    return this->loop_schedules_.at(loop);
×
37
};
9✔
38

39
void Schedule::loop_schedule(const structured_control_flow::ControlFlowNode* loop,
×
40
                             const LoopSchedule schedule) {
41
    if (schedule == LoopSchedule::SEQUENTIAL) {
×
42
        if (this->loop_schedules_.find(loop) == this->loop_schedules_.end()) {
×
43
            return;
×
44
        }
45
        this->loop_schedules_.erase(loop);
×
46
        return;
×
47
    }
48
    this->loop_schedules_.insert_or_assign(loop, schedule);
×
49
};
×
50

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

© 2025 Coveralls, Inc