You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
do {
opsopsops
[...]
// can be here an if or a label, if there's one// then there could be a for loop.add// incrementersub// decrementer
} while(cond);
Edits goes only under controlflow.js. Probably is possible to only edit the while detection code in order to enhance it to support for logic.
the algorithm should be like for the while:
[...]
type is do-while
if jumps into do-while loop then type is while;
if between previous jump-label and while-jump there are math or calls ops that (no compare ops) then type is for-loop (with or without iterators, e.g. c++ iterators)
The text was updated successfully, but these errors were encountered:
for loops are easy to detect:
Edits goes only under
controlflow.js
. Probably is possible to only edit thewhile
detection code in order to enhance it to supportfor
logic.the algorithm should be like for the while:
The text was updated successfully, but these errors were encountered: