diff options
author | qadeer <unknown> | 2014-02-25 21:17:55 -0800 |
---|---|---|
committer | qadeer <unknown> | 2014-02-25 21:17:55 -0800 |
commit | 8ec5a109f0611555a082e412723539b32fe3324d (patch) | |
tree | 4c065d1bcb290e08ed477cd54ad85c83ad106138 /Source | |
parent | 9a172309c91360449dd6211b39b96fdff0a7d2d0 (diff) |
fixed couple of bugs reported by Serdar
Diffstat (limited to 'Source')
-rw-r--r-- | Source/Concurrency/OwickiGries.cs | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/Source/Concurrency/OwickiGries.cs b/Source/Concurrency/OwickiGries.cs index 96ee34d6..5b4c56dd 100644 --- a/Source/Concurrency/OwickiGries.cs +++ b/Source/Concurrency/OwickiGries.cs @@ -417,18 +417,13 @@ namespace Microsoft.Boogie List<string> parallelCalleeNames = new List<string>();
List<Expr> ins = new List<Expr>();
List<IdentifierExpr> outs = new List<IdentifierExpr>();
+ string procName = "og";
foreach (CallCmd callCmd in parCallCmd.CallCmds)
{
- parallelCalleeNames.Add(callCmd.Proc.Name);
+ procName = procName + "_" + callCmd.Proc.Name;
ins.AddRange(callCmd.Ins);
outs.AddRange(callCmd.Outs);
}
- parallelCalleeNames.Sort();
- string procName = "og";
- foreach (string calleeName in parallelCalleeNames)
- {
- procName = procName + "_" + calleeName;
- }
Procedure proc;
if (asyncAndParallelCallDesugarings.ContainsKey(procName))
{
@@ -1275,7 +1270,7 @@ namespace Microsoft.Boogie duplicateProc.Modifies = new List<IdentifierExpr>();
program.GlobalVariables().Iter(x => duplicateProc.Modifies.Add(Expr.Ident(x)));
CodeExpr action = (CodeExpr)duplicator.VisitCodeExpr(moverTypeChecker.procToActionInfo[proc].thisAction);
- Implementation impl = new Implementation(Token.NoToken, duplicateProc.Name, proc.TypeParameters, proc.InParams, proc.OutParams, new List<Variable>(), action.Blocks);
+ Implementation impl = new Implementation(Token.NoToken, duplicateProc.Name, proc.TypeParameters, proc.InParams, proc.OutParams, action.LocVars, action.Blocks);
impl.Proc = duplicateProc;
impl.Proc.AddAttribute("inline", new LiteralExpr(Token.NoToken, Microsoft.Basetypes.BigNum.FromInt(1)));
impl.AddAttribute("inline", new LiteralExpr(Token.NoToken, Microsoft.Basetypes.BigNum.FromInt(1)));
|