def test_fully_bound_inst_inference_bad(self): # Incompatible bound instructions fail accordingly r = Rtl( self.v3 << uextend.i32(self.v1), self.v4 << uextend.i16(self.v2), self.v5 << iadd(self.v3, self.v4), ) ti = TypeEnv() typing = ti_rtl(r, ti) self.assertEqual( typing, "On line 2: fail ti on `typeof_v4` <: `4`: " + "Error: empty type created when unifying " + "`i16` and `i32`")
def test_fully_bound_inst_inference_bad(self): # Incompatible bound instructions fail accordingly r = Rtl( self.v3 << uextend.i32(self.v1), self.v4 << uextend.i16(self.v2), self.v5 << iadd(self.v3, self.v4), ) ti = TypeEnv() typing = ti_rtl(r, ti) self.assertEqual(typing, "On line 2: fail ti on `typeof_v4` <: `4`: " + "Error: empty type created when unifying " + "`i16` and `i32`")