summaryrefslogtreecommitdiff
path: root/BCT/BytecodeTranslator/ExpressionTraverser.cs
diff options
context:
space:
mode:
authorGravatar mikebarnett <unknown>2011-03-06 01:33:59 +0000
committerGravatar mikebarnett <unknown>2011-03-06 01:33:59 +0000
commitfa74660cb6cd7251eb3e03e9e281bf37a2018242 (patch)
treed99a82f84003fe17bdb2897370f96f0d65487c9b /BCT/BytecodeTranslator/ExpressionTraverser.cs
parent7d1f25af06bd2e9c9df3f45e836d864ebb048f62 (diff)
Added support for stub methods. If a method definition is marked with a custom attribute [Stub], then no procedure declaration is created for it. The user must make sure to provide Boogie with a file containing the procedure declaration.
In addition, if the attribute has a string argument, [Stub("f")], then "f" is used as the nsame of the corresponding procedure instead of the encoded name computed from the method.
Diffstat (limited to 'BCT/BytecodeTranslator/ExpressionTraverser.cs')
-rw-r--r--BCT/BytecodeTranslator/ExpressionTraverser.cs5
1 files changed, 2 insertions, 3 deletions
diff --git a/BCT/BytecodeTranslator/ExpressionTraverser.cs b/BCT/BytecodeTranslator/ExpressionTraverser.cs
index 7f236ebb..bb73547a 100644
--- a/BCT/BytecodeTranslator/ExpressionTraverser.cs
+++ b/BCT/BytecodeTranslator/ExpressionTraverser.cs
@@ -549,11 +549,10 @@ namespace BytecodeTranslator
}
else
{
- string methodName = TranslationHelper.CreateUniqueMethodName(methodCall.MethodToCall);
if (attrib != null)
- call = new Bpl.CallCmd(cloc, methodName, inexpr, outvars, attrib);
+ call = new Bpl.CallCmd(cloc, methodname, inexpr, outvars, attrib);
else
- call = new Bpl.CallCmd(cloc, methodName, inexpr, outvars);
+ call = new Bpl.CallCmd(cloc, methodname, inexpr, outvars);
this.StmtTraverser.StmtBuilder.Add(call);
}
}