fold/tests/fixtures/clones/exact.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

15 lines
250 B
C++

// Two functions with identical bodies. Should cluster under HashMode::Exact.
int sum_a(int a, int b) {
int x = a + b;
x += a;
x -= a;
return x;
}
int sum_b(int a, int b) {
int x = a + b;
x += a;
x -= a;
return x;
}