template = """// @{generatedby}@
/* ///////////////////////// The MPI Bugs Initiative ////////////////////////
template = """// @{generatedby}@
/* ///////////////////////// The MPI Bugs Initiative ////////////////////////
- patterns['init'] = init[c]("1")
- patterns['fini'] = fini[c]("1")
- patterns['operation'] = operation[c]("1")
+ patterns['init'] = gen.init[c]("1")
+ patterns['fini'] = gen.fini[c]("1")
+ patterns['operation'] = gen.operation[c]("1")
+ patterns['change_dims'] = '/* No error injected here */'
replace['shortdesc'] = 'Function @{c}@ with correct arguments'
replace['longdesc'] = f'All ranks in comm call {c} with correct arguments'
replace['outcome'] = 'OK'
replace['errormsg'] = ''
replace['change_com'] = '/* No error injected here */'
replace['change_dims'] = '/* No error injected here */'
replace['shortdesc'] = 'Function @{c}@ with correct arguments'
replace['longdesc'] = f'All ranks in comm call {c} with correct arguments'
replace['outcome'] = 'OK'
replace['errormsg'] = ''
replace['change_com'] = '/* No error injected here */'
replace['change_dims'] = '/* No error injected here */'
replace['shortdesc'] = 'The code tries to get cartesian information of MPI_COMM_WORLD.'
replace['longdesc'] = 'The code creates a cartesian communicator, and tries to get cartesian information of MPI_COMM_WORLD.'
replace['outcome'] = 'ERROR: InvalidCommunicator'
replace['errormsg'] = 'Invalid Communicator in a collective. @{c}@ at @{filename}@:@{line:MBIERROR2}@ tries to get cartesian information of MPI_COMM_WORLD.'
replace['change_com'] = 'newcom = MPI_COMM_WORLD; /* MBIERROR1 */'
replace['shortdesc'] = 'The code tries to get cartesian information of MPI_COMM_WORLD.'
replace['longdesc'] = 'The code creates a cartesian communicator, and tries to get cartesian information of MPI_COMM_WORLD.'
replace['outcome'] = 'ERROR: InvalidCommunicator'
replace['errormsg'] = 'Invalid Communicator in a collective. @{c}@ at @{filename}@:@{line:MBIERROR2}@ tries to get cartesian information of MPI_COMM_WORLD.'
replace['change_com'] = 'newcom = MPI_COMM_WORLD; /* MBIERROR1 */'
replace['shortdesc'] = 'Function @{c}@ called with comm=MPI_COMM_NULL'
replace['longdesc'] = 'Function @{c}@ called with comm=MPI_COMM_NULL'
replace['outcome'] = 'ERROR: InvalidCommunicator'
replace['errormsg'] = 'Invalid communicator. @{c}@ at @{filename}@:@{line:MBIERROR2}@ has MPI_COMM_NULL as a communicator.'
replace['change_com'] = 'newcom = MPI_COMM_NULL; /* MBIERROR1 */'
replace['shortdesc'] = 'Function @{c}@ called with comm=MPI_COMM_NULL'
replace['longdesc'] = 'Function @{c}@ called with comm=MPI_COMM_NULL'
replace['outcome'] = 'ERROR: InvalidCommunicator'
replace['errormsg'] = 'Invalid communicator. @{c}@ at @{filename}@:@{line:MBIERROR2}@ has MPI_COMM_NULL as a communicator.'
replace['change_com'] = 'newcom = MPI_COMM_NULL; /* MBIERROR1 */'
replace['shortdesc'] = 'Creates a cartesian communicator with a negative entry in the dims attribute'
replace['longdesc'] = 'Creates a cartesian communicator with a negative entry in the dims attribute, which is a usage error'
replace['outcome'] = 'ERROR: InvalidOtherArg'
replace['errormsg'] = 'Invalid Argument. MPI_Cart_create has invalid dimensions.'
replace['change_com'] = ""
replace['change_dims'] = 'dims[0] = -2; dims[1] = -1; /* MBIERROR1 */'
replace['shortdesc'] = 'Creates a cartesian communicator with a negative entry in the dims attribute'
replace['longdesc'] = 'Creates a cartesian communicator with a negative entry in the dims attribute, which is a usage error'
replace['outcome'] = 'ERROR: InvalidOtherArg'
replace['errormsg'] = 'Invalid Argument. MPI_Cart_create has invalid dimensions.'
replace['change_com'] = ""
replace['change_dims'] = 'dims[0] = -2; dims[1] = -1; /* MBIERROR1 */'