-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Labels
Description
Hi
The following snippet shows a wrong behavior in advance-pta and cci-version
class Test{
int i;
public void Test()
{
Contract.Assume(i != 0);
}
}
$r0 = this; //Backend.ThreeAddressCode.Instructions.LoadInstruction
$r1 = $r0.i; //Backend.ThreeAddressCode.Instructions.LoadInstruction
$r2 = 0; //Backend.ThreeAddressCode.Instructions.LoadInstruction
$r3 = $r1 > $r2; //Backend.ThreeAddressCode.Instructions.BinaryInstruction
System.Diagnostics.Contracts.Contract::Assume($r3);