fold/tests/fixtures/quality/structural_clean.cpp
trvon 2dcbdbc75d
feat: harden Fold quality guard
Preserve source, binary, and runtime evidence boundaries while making precision and performance regressions reproducible.

- decompose analysis orchestration into bounded modules
- add differential, metamorphic, organic, and Yams change-time gates
- fix detector, P-Code, fuzz sanitizer, and report identity precision
2026-07-13 15:05:35 -04:00

21 lines
617 B
C++

namespace structural_clean {
static long boundedIncrement(long value) { return value < 100 ? value + 1 : value; }
long useHelper(long value, bool enabled) { return enabled ? boundedIncrement(value) : value; }
class Reader {
public:
long read(long value, long fallback) { return value > 0 ? value : fallback; }
bool ready(unsigned value) { return value != 0; }
};
class Writer {
public:
double write(double value) { return value * 1.5; }
unsigned height(unsigned value, unsigned ceiling) {
return value < ceiling ? ceiling - value : value / 2;
}
};
} // namespace structural_clean