From: Marion Guthmuller Date: Tue, 18 Feb 2014 13:26:28 +0000 (+0100) Subject: model-checker : wait with timeout is always dependant with another transition X-Git-Tag: v3_11~199^2~2^2~32 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/97890f029cd8f18dcf5acad193cc45cc1b946c3c model-checker : wait with timeout is always dependant with another transition --- diff --git a/src/mc/mc_request.c b/src/mc/mc_request.c index 5b7ce40864..98565b0837 100644 --- a/src/mc/mc_request.c +++ b/src/mc/mc_request.c @@ -17,7 +17,11 @@ int MC_request_depend(smx_simcall_t r1, smx_simcall_t r2) { return TRUE; if (r1->issuer == r2->issuer) - return FALSE; + return FALSE; + + /* Wait with timeout transitions are not considered by the independance theorem, thus we consider them as dependant with all other transitions */ + if((r1->call == SIMCALL_COMM_WAIT && simcall_comm_wait__get__timeout(r1) > 0) || (r2->call == SIMCALL_COMM_WAIT && simcall_comm_wait__get__timeout(r2) > 0)) + return TRUE; if(r1->call == SIMCALL_COMM_ISEND && r2->call == SIMCALL_COMM_IRECV) return FALSE;