Skip to content

Commit 6af7d16

Browse files
committed
added assert
1 parent 86d112d commit 6af7d16

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Source/Concurrency/LinearTypeChecker.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System.Collections.Generic;
2+
using System.Diagnostics;
23
using System.Linq;
34

45
namespace Microsoft.Boogie
@@ -699,6 +700,7 @@ public override Variable VisitVariable(Variable node)
699700

700701
public static LinearKind FindLinearKind(Variable v)
701702
{
703+
Debug.Assert(v is GlobalVariable || v is Formal);
702704
if (QKeyValue.FindAttribute(v.Attributes, x => x.Key == CivlAttributes.LINEAR) != null)
703705
{
704706
return LinearKind.LINEAR;

0 commit comments

Comments
 (0)