Torch.qll: use better alternative instead of exists

This commit is contained in:
am0o0
2024-05-29 15:43:41 +02:00
parent 8c3994bc9c
commit 66cba89fdb

View File

@@ -21,7 +21,7 @@ private module Torch {
override predicate mayExecuteInput() {
not exists(this.getParameter(2, "pickle_module").asSink()) or
exists(this.getParameter(2, "pickle_module").asSink().asExpr().(None))
this.getParameter(2, "pickle_module").asSink().asExpr() instanceof None
}
override DataFlow::Node getAnInput() { result = this.getParameter(0, "f").asSink() }