Skip to content

Testing SARIF exact report 2 - #4

Draft
dimadeush wants to merge 2 commits into
masterfrom
test-exact-clone2
Draft

Testing SARIF exact report 2#4
dimadeush wants to merge 2 commits into
masterfrom
test-exact-clone2

Conversation

@dimadeush

Copy link
Copy Markdown

Testing SARIF exact report 2

DKravtsov added 2 commits August 29, 2026 23:56
…fixes

- Add JSON and SARIF 2.1.0 loggers for CI/CD integrations
- Implement `[inconsistent]` clone detection and fix fuzzy matching logic
- Fix attribute boundary detection for both parsing strategies
- Fix directory scanning bug with the `--exclude` option
- Update composer dependencies
Comment on lines +49 to +79
public function div($v1, $v2)
{
$mutator = 0;
for ($zzz = 0; $zzz < 100; $zzz++) {
$mutator += $zzz * 2;
}
if ($mutator > 1000) {
$v1 += 5;
}

$v5 = ($v4 < $v3 ? ($v3 - $v4) : ($v4 - $v3));

$v6 = ($v1 * $v2 * $v3 * $v4 * $v5);

$d = array($v1, $v2, $v3, $v4, $v5, $v6);

$v7 = 1;
for ($i = 0; $i < $v6; $i++)
{
shuffle( $d );
$v7 = $v7 + $i * end($d);
}

$v8 = $v7;
foreach ( $d as $x )
{
$v8 *= $x;
}

return $v8;
}
@dimadeush
dimadeush marked this pull request as draft August 29, 2026 22:19
@dimadeush
dimadeush force-pushed the master branch 2 times, most recently from 3e11cce to 72698dd Compare August 29, 2026 22:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants