fold/tests/fixtures/equiv/not_equiv.cpp
trvon 3f1234f7bb
fold: bounded symbolic SAST for C++
Clang LibTooling + Z3 BV-64 encoding.
11 detectors: clone, equiv, class-dup, dead, null-deref,
div-by-zero, int-overflow, oob, int-truncation,
sign-conversion, taint-track.

Interfaces: CLI, MCP (JSON-RPC 2.0), LSP.
Output: SARIF 2.1.0, JSON, Markdown.
2026-05-14 23:14:54 -04:00

5 lines
212 B
C++

// Same signature but observably different return values. The prover should
// emit no finding — Z3 should hand back a SAT counterexample.
int id_a(int x) { return x; }
int off_by_one(int x) { return x + 1; }