[unittests] Add postcondition to completeLifetime.
authorMichael Kruse <llvm@meinersbur.de>
Tue, 25 Apr 2017 00:30:32 +0000 (00:30 +0000)
committerMichael Kruse <llvm@meinersbur.de>
Tue, 25 Apr 2017 00:30:32 +0000 (00:30 +0000)
llvm-svn: 301283

polly/unittests/DeLICM/DeLICMTest.cpp

index 41ab799..23d3ac0 100644 (file)
@@ -65,6 +65,11 @@ void completeLifetime(isl::union_set Universe, isl::union_map OccupiedAndKnown,
   if (!Known) { // By default, nothing is known.
     Known = isl::union_map::empty(ParamSpace);
   }
+
+  // Conditions that must hold when returning.
+  assert(Occupied);
+  assert(Undef);
+  assert(Known);
 }
 
 typedef struct {