-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
For the following method:
public int f() {
int i = Integer.parseInt("1"); // line 5
boolean b = Boolean.parseBoolean("true"); // line 6
return (b ? i : 0) + (!b ? i : 0); // line 7
}The following rawInstList is generated.
label #0:
line number 5:
i = java.lang.Integer.parseInt("1")
label #1:
line number 6:
b = java.lang.Boolean.parseBoolean("true")
label #2:
line number 7:
if (b == false) goto #5 else #4
label #5:
goto #3
label #4:
goto #6
label #3:
i = 0
goto #6
label #6:
if (b != 0) goto #9 else #8
label #9:
goto #7
label #8:
goto #10
label #7:
i = 0
goto #10
label #10:
%10 = i + i
return %10
label #11:
According to the rawInstList the code returns 0, while executing the code without JacoDB returns 1.
Metadata
Metadata
Assignees
Labels
No labels