Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[MBI] Whitespace cleanup.
[simgrid.git] / teshsuite / smpi / MBI / RMAP2PGlobalConcurrencyGenerator.py
index b9535e1..95a63f4 100755 (executable)
@@ -94,28 +94,28 @@ int main(int argc, char **argv) {
 
 for p in put + get:
     for s in send + isend:
-         for r in recv + irecv:
-             patterns = {}
-             patterns = {'p': p, 's': s, 'r': r}
-             patterns['generatedby'] = f'DO NOT EDIT: this file was generated by {os.path.basename(sys.argv[0])}. DO NOT EDIT.'
-             patterns['rmafeature'] = 'Yes'
-             patterns['p2pfeature'] = 'Yes' if s in send or r in recv  else 'Lacking'
-             patterns['ip2pfeature'] = 'Yes' if s in isend or r in irecv  else 'Lacking'
-             patterns['p'] = p
-             patterns['s'] = s
-             patterns['r'] = r
-             patterns['init1'] = init[p]("1")
-             patterns['init2'] = init[s]("2")
-             patterns['init3'] = init[r]("3")
-             patterns['fini2'] = fini[s]("2")
-             patterns['fini3'] = fini[r]("3")
-             patterns['operation1'] = operation[p]("1") #put or get
-             patterns['operation2'] = operation[s]("2") #send
-             patterns['operation3'] = operation[r]("3") #recv
-
-             replace = patterns
-             replace['shortdesc'] = 'Global Concurrency error.'
-             replace['longdesc'] = 'Global Concurrency error. Concurrent access of variable winbuf by @{p}@ and @{r}@'
-             replace['outcome'] = 'ERROR: GlobalConcurrency'
-             replace['errormsg'] = 'Global Concurrency error. @{p}@ at @{filename}@:@{line:MBIERROR1}@ accesses the window of process 1. Process 1 receives data from process 2 and uses variable winbuf. winbuf in process 1 is then nondeterministic.'
-             make_file(template, f'GlobalConcurrency_{p}_{s}_{r}_nok.c', replace)
+        for r in recv + irecv:
+            patterns = {}
+            patterns = {'p': p, 's': s, 'r': r}
+            patterns['generatedby'] = f'DO NOT EDIT: this file was generated by {os.path.basename(sys.argv[0])}. DO NOT EDIT.'
+            patterns['rmafeature'] = 'Yes'
+            patterns['p2pfeature'] = 'Yes' if s in send or r in recv  else 'Lacking'
+            patterns['ip2pfeature'] = 'Yes' if s in isend or r in irecv  else 'Lacking'
+            patterns['p'] = p
+            patterns['s'] = s
+            patterns['r'] = r
+            patterns['init1'] = init[p]("1")
+            patterns['init2'] = init[s]("2")
+            patterns['init3'] = init[r]("3")
+            patterns['fini2'] = fini[s]("2")
+            patterns['fini3'] = fini[r]("3")
+            patterns['operation1'] = operation[p]("1") #put or get
+            patterns['operation2'] = operation[s]("2") #send
+            patterns['operation3'] = operation[r]("3") #recv
+
+            replace = patterns
+            replace['shortdesc'] = 'Global Concurrency error.'
+            replace['longdesc'] = 'Global Concurrency error. Concurrent access of variable winbuf by @{p}@ and @{r}@'
+            replace['outcome'] = 'ERROR: GlobalConcurrency'
+            replace['errormsg'] = 'Global Concurrency error. @{p}@ at @{filename}@:@{line:MBIERROR1}@ accesses the window of process 1. Process 1 receives data from process 2 and uses variable winbuf. winbuf in process 1 is then nondeterministic.'
+            make_file(template, f'GlobalConcurrency_{p}_{s}_{r}_nok.c', replace)