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
contractTestContract {
getfuntest(): Int {
leta: Int=1000000000;
letb: Int=1000000000;
letc: Int=a*b/1000000000;
returnc;
}
}
Snippet B (reports DivideBeforeMultiply on line 5, not even on the changed one):
contractTestContract {
getfuntest(): Int {
leta: Int=1000000000;
letb: Int=1000000000;
letc: Int=a*b/1000000000;
returnc*10/20; // only this line changed
}
}
Expected behavior
Second snippet should not be considered as DivideBeforeMultiply
The text was updated successfully, but these errors were encountered:
Current behavior
Snippet A (no problems found):
Snippet B (reports
DivideBeforeMultiply
on line 5, not even on the changed one):Expected behavior
Second snippet should not be considered as
DivideBeforeMultiply
The text was updated successfully, but these errors were encountered: