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

daisytuner / sdfglib / 15133758385

20 May 2025 09:19AM UTC coverage: 60.543% (-3.0%) from 63.542%
15133758385

push

github

web-flow
Merge pull request #22 from daisytuner/normalization

Removes normalization passes

7922 of 13085 relevant lines covered (60.54%)

104.24 hits per line

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

32.14
/src/passes/pass.cpp
1
#include "sdfg/passes/pass.h"
2

3
namespace sdfg {
4
namespace passes {
5

6
bool Pass::run(builder::SDFGBuilder& builder) {
×
7
    bool applied = this->run_pass(builder);
×
8
    return applied;
×
9
};
10

11
bool Pass::run(builder::StructuredSDFGBuilder& builder,
73✔
12
               analysis::AnalysisManager& analysis_manager) {
13
    bool applied = this->run_pass(builder, analysis_manager);
73✔
14
    this->invalidates(analysis_manager, applied);
73✔
15
    return applied;
73✔
16
};
17

18
bool Pass::run(Schedule& schedule) {
×
19
    bool applied = this->run_pass(schedule);
×
20
    this->invalidates(schedule.analysis_manager(), applied);
×
21
    return applied;
×
22
};
23

24
bool Pass::run(ConditionalSchedule& schedule) {
×
25
    bool applied = false;
×
26
    for (size_t i = 0; i < schedule.size(); i++) {
×
27
        auto& s = schedule.schedule(i);
×
28
        applied |= this->run(s);
×
29
    }
×
30
    return applied;
×
31
};
32

33
bool Pass::run_pass(builder::SDFGBuilder& builder) { throw std::logic_error("Not implemented"); };
×
34

35
bool Pass::run_pass(builder::StructuredSDFGBuilder& builder,
×
36
                    analysis::AnalysisManager& analysis_manager) {
37
    throw std::logic_error("Not implemented");
×
38
};
×
39

40
bool Pass::run_pass(Schedule& schedule) { throw std::logic_error("Not implemented"); };
×
41

42
void Pass::invalidates(analysis::AnalysisManager& analysis_manager, bool applied) {
73✔
43
    if (applied) {
73✔
44
        analysis_manager.invalidate_all();
31✔
45
    }
31✔
46
};
73✔
47

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