summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Peter Collingbourne <peter@pcc.me.uk>2012-05-31 20:18:29 +0100
committerGravatar Peter Collingbourne <peter@pcc.me.uk>2012-05-31 20:18:29 +0100
commit486b849f4eade583dd12f7151311375112aa87e4 (patch)
treea95fa9a530aa9763a4e18dfde1a58af087eba840
parente3162f94ded53a45b90545dd9d034f767582d43c (diff)
GPUVerify: use a Formal for procedure predicates
-rw-r--r--Source/GPUVerify/BlockPredicator.cs7
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/GPUVerify/BlockPredicator.cs b/Source/GPUVerify/BlockPredicator.cs
index 80d97ebc..99c36af7 100644
--- a/Source/GPUVerify/BlockPredicator.cs
+++ b/Source/GPUVerify/BlockPredicator.cs
@@ -195,9 +195,10 @@ class BlockPredicator {
foreach (var decl in p.TopLevelDeclarations) {
if (decl is DeclWithFormals && !(decl is Function)) {
var dwf = (DeclWithFormals)decl;
- var fpVar = new LocalVariable(Token.NoToken,
- new TypedIdent(Token.NoToken, "fp",
- Microsoft.Boogie.Type.Bool));
+ var fpVar = new Formal(Token.NoToken,
+ new TypedIdent(Token.NoToken, "fp",
+ Microsoft.Boogie.Type.Bool),
+ /*incoming=*/true);
dwf.InParams = new VariableSeq((dwf.InParams + new VariableSeq(fpVar))
.Cast<Variable>().ToArray());
}