Skip to content

Commit

Permalink
Modify the script writing method to pass CI detection
Browse files Browse the repository at this point in the history
  • Loading branch information
zaqcxy committed Jul 29, 2024
1 parent 23234fb commit f935ce5
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions example/java/CallChainWithSignature.gdl
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,12 @@ fn checkCallable(c: Callable)-> bool {


// Do an upward search
// Search upwards for the end condition, and restrict some properties of the end node
fn callerLimit(c: Callable) -> bool {
return false
}
fn getAncestorCallerEndWithLimit(c: Callable) -> *Callable {
// If the current function has been limited
if (callerLimit(c)) {
yield c
}
if (!callerLimit(c)) {
// Get the calling function of the current functio
yield c.getCaller()
// The current node is multiple layers above, and recursive calls are required to obtain all calling functions
for (tmp in c.getCaller()) {
yield getAncestorCallerEndWithLimit(tmp)
}
// Get the calling function of the current functio
yield c.getCaller()
// The current node is multiple layers above, and recursive calls are required to obtain all calling functions
for (tmp in c.getCaller()) {
yield getAncestorCallerEndWithLimit(tmp)
}
}

Expand Down

0 comments on commit f935ce5

Please sign in to comment.