summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorGravatar Unknown <afd@afd-THINK.home>2012-04-06 14:51:16 +0100
committerGravatar Unknown <afd@afd-THINK.home>2012-04-06 14:51:16 +0100
commite50b54e18df416efa10c5a78b1fe7962a1b1d4d4 (patch)
tree68d23f72675c26d5fd3d88cf2d94901194c04296 /Source
parent53145f5f9c5cd145bdacca685b54a08f31f248ce (diff)
Refined assertion.
Diffstat (limited to 'Source')
-rw-r--r--Source/GPUVerify/GPUVerifier.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/GPUVerify/GPUVerifier.cs b/Source/GPUVerify/GPUVerifier.cs
index 2fea7567..26b2759d 100644
--- a/Source/GPUVerify/GPUVerifier.cs
+++ b/Source/GPUVerify/GPUVerifier.cs
@@ -1550,12 +1550,12 @@ namespace GPUVerify
else if (bb.ec is IfCmd)
{
IfCmd IfCommand = bb.ec as IfCmd;
- Debug.Assert(IfCommand.elseIf == null); // We don't handle else if yet
+ Debug.Assert(IfCommand.elseIf == null);
result.ec = new IfCmd(IfCommand.tok, IfCommand.Guard, PerformFullSharedStateAbstraction(IfCommand.thn), IfCommand.elseIf, IfCommand.elseBlock != null ? PerformFullSharedStateAbstraction(IfCommand.elseBlock) : null);
}
else
{
- Debug.Assert(bb.ec == null);
+ Debug.Assert(bb.ec == null || bb.ec is BreakCmd);
}
return result;