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
There is no problem, but by visual inspection of the compiler code, I can see that it outputs a not operation in front of a branch-if-false. This is a double negative.
There is no problem, but by visual inspection of the compiler code, I can see that it outputs a not operation in front of a branch-if-false. This is a double negative.
KOS/src/kOS.Safe/Compilation/KS/Compiler.cs
Lines 2389 to 2390 in c6425ac
It would be logically equivalent to omit the not and use a branch-if-true. This section of code was written before branch-if-true was added.
There is a difference. not has a
try
catch
that the others do not. For reference, branch-if-false:KOS/src/kOS.Safe/Compilation/Opcode.cs
Lines 1059 to 1064 in c6425ac
branch-if-true:
KOS/src/kOS.Safe/Compilation/Opcode.cs
Lines 1080 to 1084 in c6425ac
and not:
KOS/src/kOS.Safe/Compilation/Opcode.cs
Lines 1464 to 1482 in c6425ac
The text was updated successfully, but these errors were encountered: