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

daisytuner / sdfglib / 17368505925

01 Sep 2025 05:29AM UTC coverage: 58.982% (-0.8%) from 59.781%
17368505925

push

github

web-flow
Merge pull request #216 from daisytuner/transitions-bug

Updates API for Sequence transitions to prevent leakage of assignments

239 of 547 new or added lines in 25 files covered. (43.69%)

75 existing lines in 12 files now uncovered.

9190 of 15581 relevant lines covered (58.98%)

115.89 hits per line

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

72.22
/src/transformations/replayer.cpp
1
#include <sdfg/transformations/loop_distribute.h>
2
#include <sdfg/transformations/loop_interchange.h>
3
#include <sdfg/transformations/loop_tiling.h>
4
#include <sdfg/transformations/out_local_storage.h>
5
#include <sdfg/transformations/replayer.h>
6

7
namespace sdfg {
8
namespace transformations {
9

10
void Replayer::replay(
5✔
11
    builder::StructuredSDFGBuilder& builder,
12
    analysis::AnalysisManager& analysis_manager,
13
    const nlohmann::json& transformation_data,
14
    bool skip_if_not_applicable,
15
    size_t loopnest_index
16
) {
17
    if (!transformation_data.is_array()) {
5✔
18
        throw std::runtime_error("Transformation data must be an array.");
2✔
19
    }
20

21
    for (const auto& desc : transformation_data) {
12✔
22
        auto transformation_name = desc["transformation_type"];
9✔
23

24
        if (transformation_name == "LoopTiling") {
9✔
25
            this->apply<transformations::LoopTiling>(builder, analysis_manager, desc, skip_if_not_applicable);
7✔
26
        } else if (transformation_name == "LoopDistribute") {
7✔
27
            this->apply<transformations::LoopDistribute>(builder, analysis_manager, desc, skip_if_not_applicable);
×
28
        } else if (transformation_name == "LoopInterchange") {
2✔
29
            this->apply<transformations::LoopInterchange>(builder, analysis_manager, desc, skip_if_not_applicable);
2✔
30
        } else if (transformation_name == "OutLocalStorage") {
2✔
UNCOV
31
            this->apply<transformations::OutLocalStorage>(builder, analysis_manager, desc, skip_if_not_applicable);
×
32
        } else {
×
33
            throw transformations::InvalidTransformationDescriptionException(
×
34
                "Unknown transformation: " + transformation_name.get<std::string>()
×
35
            );
36
        }
37
    }
9✔
38
}
5✔
39

40
} // namespace transformations
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