Apply suggestions from code review

Will make the same renames in the changed code also..

Co-authored-by: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com>
This commit is contained in:
yoff
2020-09-14 15:28:01 +02:00
committed by GitHub
parent 033529e85e
commit 2a4e28db16
2 changed files with 4 additions and 4 deletions

View File

@@ -172,8 +172,8 @@ class GuardNode extends ControlFlowNode {
* It is important that all extending classes in scope are disjoint.
*/
class BarrierGuard extends GuardNode {
/** Holds if this guard validates `e` upon evaluating to `v`. */
abstract predicate checks(ControlFlowNode node, boolean testIsTrue);
/** Holds if this guard validates `node` upon evaluating to `branch`. */
abstract predicate checks(ControlFlowNode node, boolean branch);
/** Gets a node guarded by this guard. */
final ExprNode getAGuardedNode() {

View File

@@ -3,9 +3,9 @@ import experimental.dataflow.tainttracking.TestTaintLib
class IsSafeCheck extends DataFlow::BarrierGuard {
IsSafeCheck() { this.(CallNode).getNode().getFunc().(Name).getId() = "emulated_is_safe" }
override predicate checks(ControlFlowNode node, boolean testIsTrue) {
override predicate checks(ControlFlowNode node, boolean branch) {
node = this.(CallNode).getAnArg() and
testIsTrue = true
branch = true
}
}