patterns['operation3'] = gen.operation[c]("3")
# Generate the incorrect matching because of the conditional
- replace = patterns
+ replace = patterns.copy()
replace['shortdesc'] = 'Point to point & collective mismatch'
replace['longdesc'] = 'The @{s}@ corresponding to the @{r}@ is after @{c}@, while @{r}@ is before @{c}@. This is a deadlock.'
replace['outcome'] = 'ERROR: CallMatching'
gen.make_file(template, f'CallOrdering_{r}_{s}_{c}_nok.c', replace)
# Generate the incorrect code depending on buffering
- # replace = patterns
+ # replace = patterns.copy()
# replace['shortdesc'] = 'Point to point & collective mismatch'
# replace['longdesc'] = 'Point to point @{s}@ is matched with @{c}@ which causes a deadlock depending on the buffering mode.'
# replace['outcome'] = 'ERROR: BufferingHazard'
# replace['errormsg'] = 'P2P & Collective mistmatch. @{s}@ at @{filename}@:@{line:MBIERROR2}@ is matched with @{c}@ at @{filename}@:@{line:MBIERROR1}@ wich causes a deadlock.'
- # replace['init1'] = init[s]("1")
- # replace['init2'] = init[r]("2")
- # replace['operation1'] = operation[r]("2")
- # replace['operation2'] = operation[s]("1")
- # replace['fini1'] = fini[r]("2")
- # replace['fini2'] = fini[s]("1")
+ # replace['init1'] = gen.init[s]("1")
+ # replace['init2'] = gen.init[r]("2")
+ # replace['operation1'] = gen.operation[r]("2")
+ # replace['operation2'] = gen.operation[s]("1")
+ # replace['fini1'] = gen.fini[r]("2")
+ # replace['fini2'] = gen.fini[s]("1")
# gen.make_file(template, f'CollP2PBuffering_{r}_{s}_{c}_nok.c', replace)