diff options
author | Ally Donaldson <unknown> | 2014-05-27 10:03:21 +0100 |
---|---|---|
committer | Ally Donaldson <unknown> | 2014-05-27 10:03:21 +0100 |
commit | 440625852cc22770912129c33cea936bf72028b9 (patch) | |
tree | 710e314f93ac4a158c405bdecc59317a59a3f090 /Source/Predication | |
parent | 137f285e5a45d5e4ce3eaa40fc68df7890a3d2d7 (diff) |
Added key check to uniformity analysis
Diffstat (limited to 'Source/Predication')
-rw-r--r-- | Source/Predication/UniformityAnalyser.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/Predication/UniformityAnalyser.cs b/Source/Predication/UniformityAnalyser.cs index a76566e4..3d6b7b18 100644 --- a/Source/Predication/UniformityAnalyser.cs +++ b/Source/Predication/UniformityAnalyser.cs @@ -422,6 +422,11 @@ namespace Microsoft.Boogie public bool IsUniform(string procedureName, Expr expr)
{
+ if (!uniformityInfo.ContainsKey(procedureName))
+ {
+ return false;
+ }
+
UniformExpressionAnalysisVisitor visitor = new UniformExpressionAnalysisVisitor(uniformityInfo[procedureName].Value);
visitor.VisitExpr(expr);
return visitor.IsUniform();
|