コード例 #1
0
 // Look up a previously instantiated invariant.
 public static EltwiseIntEqual find(PptSlice ppt) {
   Assert.assertTrue(ppt.arity() == 1);
   for (Invariant inv : ppt.invs) {
     if (inv instanceof EltwiseIntEqual) return (EltwiseIntEqual) inv;
   }
   return null;
 }
コード例 #2
0
 // Look up a previously instantiated SubSequence relationship.
 public static SubSequence find(PptSlice ppt) {
   Assert.assertTrue(ppt.arity() == 2);
   for (Invariant inv : ppt.invs) {
     if (inv instanceof SubSequence) return (SubSequence) inv;
   }
   return null;
 }
コード例 #3
0
 // Look up a previously instantiated invariant.
 public static /*@Nullable*/ EltwiseIntLessThan find(PptSlice ppt) {
   assert ppt.arity() == 1;
   for (Invariant inv : ppt.invs) {
     if (inv instanceof EltwiseIntLessThan) return (EltwiseIntLessThan) inv;
   }
   return null;
 }