Skip to content

Commit 4a3af2d

Browse files
Update atg file
1 parent d2b3855 commit 4a3af2d

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

Source/Core/BoogiePL.atg

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public static Program ParseLibrary(string libraryName)
4444
///</summary>
4545
public static int Parse(string/*!*/ filename, List<string/*!*/> defines, out /*maybe null*/ Program program, bool useBaseName=false) /* throws System.IO.IOException */ {
4646
Contract.Requires(filename != null);
47-
Contract.Requires(cce.NonNullElements(defines,true));
47+
Contract.Requires(Cce.NonNullElements(defines,true));
4848

4949
if (filename == "stdin.bpl") {
5050
return Parse(Console.In, filename, defines, out program, useBaseName);
@@ -65,7 +65,7 @@ public static int Parse(string s, string/*!*/ filename, out /*maybe null*/ Progr
6565
Contract.Requires(s != null);
6666
Contract.Requires(filename != null);
6767

68-
byte[]/*!*/ buffer = cce.NonNull(UTF8Encoding.Default.GetBytes(s));
68+
byte[]/*!*/ buffer = Cce.NonNull(UTF8Encoding.Default.GetBytes(s));
6969
MemoryStream ms = new MemoryStream(buffer,false);
7070
Errors errors = new Errors();
7171
Scanner scanner = new Scanner(ms, errors, filename, useBaseName);
@@ -116,9 +116,9 @@ private class BvBounds : Expr {
116116
}
117117
public override void Emit(TokenTextWriter/*!*/ stream,
118118
int contextBindingStrength, bool fragileContext) {
119-
Contract.Assert(false);throw new cce.UnreachableException();
119+
Contract.Assert(false);throw new Cce.UnreachableException();
120120
}
121-
public override void ComputeFreeVariables(GSet<object>/*!*/ freeVars) { Contract.Assert(false);throw new cce.UnreachableException(); }
121+
public override void ComputeFreeVariables(GSet<object>/*!*/ freeVars) { Contract.Assert(false);throw new Cce.UnreachableException(); }
122122

123123
public override int ContentHash => throw new NotSupportedException("Not supported since this type is translated away");
124124

@@ -505,7 +505,7 @@ Function<.out List<Declaration>/*!*/ ds.>
505505
if (!allUnnamed) {
506506
Bpl.Type prevType = null;
507507
for (int i = arguments.Count; 0 <= --i; ) {
508-
TypedIdent/*!*/ curr = cce.NonNull(arguments[i]).TypedIdent;
508+
TypedIdent/*!*/ curr = Cce.NonNull(arguments[i]).TypedIdent;
509509
if (curr.HasName) {
510510
// the argument was given as both an identifier and a type
511511
prevType = curr.Type;
@@ -582,7 +582,7 @@ Axiom<out Axiom/*!*/ m>
582582

583583
/*------------------------------------------------------------------------*/
584584
UserDefinedTypes<.out List<Declaration/*!*/>/*!*/ ts.>
585-
= (. Contract.Ensures(cce.NonNullElements(Contract.ValueAtReturn(out ts))); Declaration/*!*/ decl; QKeyValue kv = null; ts = new List<Declaration/*!*/> (); .)
585+
= (. Contract.Ensures(Cce.NonNullElements(Contract.ValueAtReturn(out ts))); Declaration/*!*/ decl; QKeyValue kv = null; ts = new List<Declaration/*!*/> (); .)
586586
"type"
587587
{ Attribute<ref kv> }
588588
UserDefinedType<out decl, kv> (. ts.Add(decl); .)
@@ -1088,7 +1088,7 @@ TransferCmd<out TransferCmd/*!*/ tc>
10881088
.
10891089

10901090
StructuredCmd<out StructuredCmd/*!*/ ec>
1091-
= (. Contract.Ensures(Contract.ValueAtReturn(out ec) != null); ec = dummyStructuredCmd; Contract.Assume(cce.IsPeerConsistent(ec));
1091+
= (. Contract.Ensures(Contract.ValueAtReturn(out ec) != null); ec = dummyStructuredCmd; Contract.Assume(Cce.IsPeerConsistent(ec));
10921092
IfCmd/*!*/ ifcmd; WhileCmd/*!*/ wcmd; BreakCmd/*!*/ bcmd;
10931093
.)
10941094
( IfCmd<out ifcmd> (. ec = ifcmd; .)
@@ -1127,7 +1127,7 @@ WhileCmd<out WhileCmd wcmd>
11271127
QKeyValue kv = null;
11281128
.)
11291129
"while" (. x = t; .)
1130-
Guard<out guard> (. Contract.Assume(guard == null || cce.Owner.None(guard)); .)
1130+
Guard<out guard> (. Contract.Assume(guard == null || Cce.Owner.None(guard)); .)
11311131
{ (. isFree = false; z = la/*lookahead token*/; .)
11321132
[ "free" (. isFree = true; .) ]
11331133
"invariant"
@@ -1282,7 +1282,7 @@ LabelOrAssign<out Cmd c, out IToken label>
12821282
.
12831283

12841284
MapAssignIndex<.out IToken/*!*/ x, out List<Expr/*!*/>/*!*/ indexes.>
1285-
= (.Contract.Ensures(Contract.ValueAtReturn(out x) != null); Contract.Ensures(cce.NonNullElements(Contract.ValueAtReturn(out indexes))); indexes = new List<Expr/*!*/> ();
1285+
= (.Contract.Ensures(Contract.ValueAtReturn(out x) != null); Contract.Ensures(Cce.NonNullElements(Contract.ValueAtReturn(out indexes))); indexes = new List<Expr/*!*/> ();
12861286
Expr/*!*/ e;
12871287
.)
12881288
"[" (. x = t; .)
@@ -1720,7 +1720,7 @@ AtomExpression<out Expr/*!*/ e>
17201720
.
17211721

17221722
CodeExpression<.out List<Variable>/*!*/ locals, out List<Block/*!*/>/*!*/ blocks.>
1723-
= (. Contract.Ensures(Contract.ValueAtReturn(out locals) != null); Contract.Ensures(cce.NonNullElements(Contract.ValueAtReturn(out blocks))); locals = new List<Variable>(); Block/*!*/ b;
1723+
= (. Contract.Ensures(Contract.ValueAtReturn(out locals) != null); Contract.Ensures(Cce.NonNullElements(Contract.ValueAtReturn(out blocks))); locals = new List<Variable>(); Block/*!*/ b;
17241724
blocks = new List<Block/*!*/>();
17251725
.)
17261726
"|{"

0 commit comments

Comments
 (0)