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
while (true) {
IntPacket.Type type = wifi.intPacket.readInt();
if (null == null) break;
if (type == IntPacket.Type.None) break;
produces an internal error during: "Launching MusterLsg.deep". Cannot invoke "Object.equals(Object)" because "this.idom" is null
when if(null == null) comes before readInt() it works fine
What happens? Let's look at another example:
int c;
Object o;
public void m3() {
while (true) {
if (null == null) {c = 100;}
else if (o == null) {c = 200; break;}
}
}
the cfg is determined to be:
CFGNode nr:0 [0:6], is loop header, bckwd branches=1, idom=null, ref=1, visited:false
predecessor: [0:6]
successor: [0:6]
That looks reasonable: the first node is an endless loop with no connection to the second node. When calculating the SSA these nodes get sorted which fails in that particular case
check with https://gitlab.ost.ch/tech/inf/teaching/sysp/fachausbildung/mikrocontroller/musterloesungen/-/blob/main/src/sysp/fachausb/wifi/WifiReceiverLED.java
The text was updated successfully, but these errors were encountered: