+ if(r1->call == REQ_COMM_ISEND && r2->call == REQ_COMM_IRECV)
+ return FALSE;
+
+ if(r1->call == REQ_COMM_IRECV && r2->call == REQ_COMM_ISEND)
+ return FALSE;
+
+ /* FIXME: the following rule assumes that the result of the
+ * isend/irecv call is not stored in a buffer used in the
+ * wait/test call. */
+ if( (r1->call == REQ_COMM_ISEND || r1->call == REQ_COMM_IRECV)
+ && (r2->call == REQ_COMM_WAIT || r2->call == REQ_COMM_TEST))
+ return FALSE;
+
+ /* FIXME: the following rule assumes that the result of the
+ * isend/irecv call is not stored in a buffer used in the
+ * wait/test call. */
+ if( (r2->call == REQ_COMM_ISEND || r2->call == REQ_COMM_IRECV)
+ && (r1->call == REQ_COMM_WAIT || r1->call == REQ_COMM_TEST))
+ return FALSE;
+
+ if(r1->call == REQ_COMM_WAIT && r2->call == REQ_COMM_IRECV)
+ return FALSE;
+
+ if(r1->call == REQ_COMM_ISEND && r2->call == REQ_COMM_ISEND