@@ -18,44 +18,44 @@ public class WidenPoints
1818 public static void Compute ( Program program )
1919 {
2020 Contract . Requires ( program != null ) ;
21- cce . BeginExpose ( program ) ;
21+ Cce . BeginExpose ( program ) ;
2222
2323 foreach ( var impl in program . Implementations )
2424 {
2525 if ( impl . Blocks != null && impl . Blocks . Count > 0 )
2626 {
27- Contract . Assume ( cce . IsConsistent ( impl ) ) ;
28- cce . BeginExpose ( impl ) ;
27+ Contract . Assume ( Cce . IsConsistent ( impl ) ) ;
28+ Cce . BeginExpose ( impl ) ;
2929 Block start = impl . Blocks [ 0 ] ;
3030 Contract . Assume ( start != null ) ;
31- Contract . Assume ( cce . IsConsistent ( start ) ) ;
31+ Contract . Assume ( Cce . IsConsistent ( start ) ) ;
3232 Visit ( start ) ;
3333
3434 // We reset the state...
3535 foreach ( Block b in impl . Blocks )
3636 {
37- cce . BeginExpose ( b ) ;
37+ Cce . BeginExpose ( b ) ;
3838 b . TraversingStatus = Block . VisitState . ToVisit ;
39- cce . EndExpose ( ) ;
39+ Cce . EndExpose ( ) ;
4040 }
4141
42- cce . EndExpose ( ) ;
42+ Cce . EndExpose ( ) ;
4343 }
4444 }
4545
46- cce . EndExpose ( ) ;
46+ Cce . EndExpose ( ) ;
4747 }
4848
4949 static void Visit ( Block b )
5050 {
5151 Contract . Requires ( b != null ) ;
52- Contract . Assume ( cce . IsExposable ( b ) ) ;
52+ Contract . Assume ( Cce . IsExposable ( b ) ) ;
5353 if ( b . TraversingStatus == Block . VisitState . BeingVisited )
5454 {
55- cce . BeginExpose ( b ) ;
55+ Cce . BeginExpose ( b ) ;
5656 // we got here through a back-edge
5757 b . WidenBlock = true ;
58- cce . EndExpose ( ) ;
58+ Cce . EndExpose ( ) ;
5959 }
6060 else if ( b . TraversingStatus == Block . VisitState . AlreadyVisited )
6161 {
@@ -66,15 +66,15 @@ static void Visit(Block b)
6666 Contract . Assert ( b . TraversingStatus == Block . VisitState . ToVisit ) ;
6767
6868 GotoCmd g = ( GotoCmd ) b . TransferCmd ;
69- cce . BeginExpose ( b ) ;
69+ Cce . BeginExpose ( b ) ;
7070
71- cce . BeginExpose ( g ) ; //PM: required for the subsequent expose (g.labelTargets)
71+ Cce . BeginExpose ( g ) ; //PM: required for the subsequent expose (g.labelTargets)
7272 b . TraversingStatus = Block . VisitState . BeingVisited ;
7373
7474 // labelTargets is made non-null by Resolve, which we assume
7575 // has already called in a prior pass.
7676 Contract . Assume ( g . LabelTargets != null ) ;
77- cce . BeginExpose ( g . LabelTargets ) ;
77+ Cce . BeginExpose ( g . LabelTargets ) ;
7878 foreach ( Block succ in g . LabelTargets )
7979 // invariant b.currentlyTraversed;
8080 //PM: The following loop invariant will work once properties are axiomatized
@@ -84,7 +84,7 @@ static void Visit(Block b)
8484 Visit ( succ ) ;
8585 }
8686
87- cce . EndExpose ( ) ;
87+ Cce . EndExpose ( ) ;
8888
8989 Contract . Assert ( b . TraversingStatus == Block . VisitState . BeingVisited ) ;
9090 // System.Diagnostics.Debug.Assert(b.currentlyTraversed);
@@ -94,7 +94,7 @@ static void Visit(Block b)
9494 //PM: The folowing assumption is needed because we cannot prove that a simple field update
9595 //PM: leaves the value of a property unchanged.
9696 Contract . Assume ( g . LabelNames == null || g . LabelNames . Count == g . LabelTargets . Count ) ;
97- cce . EndExpose ( ) ;
97+ Cce . EndExpose ( ) ;
9898 }
9999 else
100100 {
@@ -113,13 +113,13 @@ public static List<Block> ComputeLoopBodyFrom(Block block)
113113 {
114114 Contract . Requires ( block . WidenBlock ) ;
115115 Contract . Requires ( block != null ) ;
116- Contract . Ensures ( cce . NonNullElements ( Contract . Result < List < Block > > ( ) ) ) ;
116+ Contract . Ensures ( Cce . NonNullElements ( Contract . Result < List < Block > > ( ) ) ) ;
117117
118118 Contract . Assert ( rootBlock == null ) ;
119119 rootBlock = block ;
120120
121- List < Block /*!*/ > blocksInLoop = new List < Block /*!*/ > ( ) ; // We use a list just because .net does not define a set
122- List < Block /*!*/ > visitingPath = new List < Block /*!*/ > ( ) ; // The order is important, as we want paths
121+ List < Block > blocksInLoop = new List < Block > ( ) ; // We use a list just because .net does not define a set
122+ List < Block > visitingPath = new List < Block > ( ) ; // The order is important, as we want paths
123123
124124 blocksInLoop . Add ( block ) ;
125125
@@ -141,8 +141,8 @@ public static List<Block> ComputeLoopBodyFrom(Block block)
141141 private static void DoDFSVisit ( Block block , List < Block > path , List < Block > blocksInPath )
142142 {
143143 Contract . Requires ( block != null ) ;
144- Contract . Requires ( cce . NonNullElements ( path ) ) ;
145- Contract . Requires ( cce . NonNullElements ( path ) ) ;
144+ Contract . Requires ( Cce . NonNullElements ( path ) ) ;
145+ Contract . Requires ( Cce . NonNullElements ( path ) ) ;
146146
147147 #region case 1. We visit the root => We are done, "path" is a path inside the loop
148148
0 commit comments