@@ -9,8 +9,8 @@ def printDomain(scop):
99 for statement in scop ['statements' ]:
1010 domain = domain .union (isl .USet (statement ['domain' ]))
1111
12- print "D :=" ,
13- print str (domain ) + ";"
12+ print ( "D :=" , end = " " )
13+ print ( str (domain ) + ";" )
1414
1515def printAccesses (scop ):
1616
@@ -21,8 +21,8 @@ def printAccesses(scop):
2121 if access ['kind' ] == 'read' :
2222 read = read .union (isl .UMap (access ['relation' ]))
2323
24- print "R :=" ,
25- print str (read ) + ";"
24+ print ( "R :=" , end = " " )
25+ print ( str (read ) + ";" )
2626
2727 write = isl .UMap ('{}' )
2828
@@ -31,8 +31,8 @@ def printAccesses(scop):
3131 if access ['kind' ] == 'write' :
3232 write = write .union (isl .UMap (access ['relation' ]))
3333
34- print "W :=" ,
35- print str (write ) + ";"
34+ print ( "W :=" , end = " " )
35+ print ( str (write ) + ";" )
3636
3737def printSchedule (scop ):
3838
@@ -41,8 +41,8 @@ def printSchedule(scop):
4141 for statement in scop ['statements' ]:
4242 schedule = schedule .union (isl .UMap (statement ['schedule' ]))
4343
44- print "S :=" ,
45- print str (schedule ) + ";"
44+ print ( "S :=" , end = " " )
45+ print ( str (schedule ) + ";" )
4646
4747def __main__ ():
4848 description = 'Translate JSCoP into iscc input'
@@ -58,10 +58,10 @@ def __main__():
5858 printAccesses (scop )
5959 printSchedule (scop )
6060
61- print 'R := R * D;'
62- print 'W := W * D;'
63- print 'Dep := (last W before R under S)[0];'
64- print 'schedule D respecting Dep minimizing Dep;'
61+ print ( 'R := R * D;' )
62+ print ( 'W := W * D;' )
63+ print ( 'Dep := (last W before R under S)[0];' )
64+ print ( 'schedule D respecting Dep minimizing Dep;' )
6565
6666
6767__main__ ()
0 commit comments