Skip to content

[PR] Refactoring runOnFunction in CVEAssert#170

Merged
rjsmith1999 merged 11 commits intomainfrom
refactoring-cve-assert
Mar 31, 2026
Merged

[PR] Refactoring runOnFunction in CVEAssert#170
rjsmith1999 merged 11 commits intomainfrom
refactoring-cve-assert

Conversation

@elazaro-riverside
Copy link
Copy Markdown
Collaborator

No description provided.

@elazaro-riverside elazaro-riverside self-assigned this Mar 26, 2026
@elazaro-riverside elazaro-riverside added the CVEAssert Related to CVEAssert component label Mar 26, 2026
@elazaro-riverside elazaro-riverside marked this pull request as ready for review March 31, 2026 12:36
Comment on lines +114 to +118
void dumpIR(Function &F, raw_ostream &out, const std::string msg = "") {
out << msg;
out << F;
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we put this function adjacent to the verifyIR function?

Its possible you could make them be the same function by adding another optional parameter bool verify

Comment on lines +107 to +112
bool matchRemediationStrategy(Vulnerability &vuln) {
if (vuln.Strategy == Vulnerability::RemediationStrategies::NONE) {
return true;
}
return false;
}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function in its current form is less readable than the vuln.Strategy == Vulnerability::RemediationStrategies::NONE condition it replaces?
If we don't use it more than once, I would leave this inline in the original function.

@rjsmith1999 rjsmith1999 merged commit 3e7c47f into main Mar 31, 2026
2 checks passed
@rjsmith1999 rjsmith1999 deleted the refactoring-cve-assert branch March 31, 2026 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CVEAssert Related to CVEAssert component

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants