We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I think when some value*0, the result should be 0, same for 0/some value and 0 % some value, but OJ judged me wrong in testcase Switch.java
some value*0
0/some value
0 % some value
Switch.java
class Switch{ int switch1(int x, int y){ int a = 0; switch(x){ case 1: a-=y; break; case 2: a+=y; break; case 3: a*=y; break; case 4: a/=y; break; default: a = a-1; } a = a+x; return a; }
in case3/4 a must be zero, but the answer is NAC
a
------ Failure on <Switch: int switch1(int,int)> ------ Expected: [9@L12] a = a * y; {a=NAC, x=NAC, y=NAC} Expected: [10@L13] goto 21; {a=NAC, x=NAC, y=NAC}
The text was updated successfully, but these errors were encountered:
I guess maybe it only considers the general and abstract value in the lattice, rather than the concrete case...
Sorry, something went wrong.
No branches or pull requests
I think when
some value*0
, the result should be 0, same for0/some value
and0 % some value
, but OJ judged me wrong in testcaseSwitch.java
in case3/4
a
must be zero, but the answer is NACThe text was updated successfully, but these errors were encountered: