<div dir="ltr"><div><font style="background-color:rgb(255,255,255)" face="arial, sans-serif" color="#000000">Dear All</font></div><div><font style="background-color:rgb(255,255,255)" face="arial, sans-serif" color="#000000"><br></font></div><div><font color="#000000"><font face="arial, sans-serif">I am working on a project in which I have to insert certain annotations using soot similar to the one in </font><a href="https://github.com/beehive-lab/TornadoVM/blob/master/examples/src/main/java/uk/ac/manchester/tornado/examples/Saxpy.java.">https://github.com/beehive-lab/TornadoVM/blob/master/examples/src/main/java/uk/ac/manchester/tornado/examples/Saxpy.java.</a></font></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><font color="#000000"><font face="monospace">for (@Parallel int i = 0; i < y.length; i++) {<br>            y[i] = alpha * x[i];<br>}</font><br></font></blockquote><div><font style="background-color:rgb(255,255,255)" face="arial, sans-serif" color="#000000"><br></font></div><div><font color="#000000"><font style="background-color:rgb(255,255,255)" face="arial, sans-serif">I checked the .class file for the representation of annotations in the bytecode using </font><font style="background-color:rgb(255,255,255)" face="monospace">javap</font><font style="background-color:rgb(255,255,255)" face="arial, sans-serif"> and found the following in the </font><font style="background-color:rgb(255,255,255)" face="monospace">saxpy</font><font style="background-color:rgb(255,255,255)" face="arial, sans-serif"> function.</font></font></div><font face="monospace" style="background-color:rgb(255,255,255)" color="#000000">RuntimeVisibleTypeAnnotations:<br>        0: #52(): LOCAL_VARIABLE, {start_pc=14, length=27, index=5}<br>          uk.ac.manchester.tornado.api.annotations.Parallel<br></font><div><font color="#000000"><br></font></div><div><font color="#000000">But on using method.getTags() ,I am only getting the name of the annotation (<font face="monospace">VisibilityLocalVariableAnnotationTag</font>), but no other information is visible there. </font></div><div><font color="#000000"><br></font></div><div><font color="#000000">Can you please help me read these annotations as well as insert them using soot?</font></div><div><font color="#000000"><br></font></div><font color="#000000">-- <br></font><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><font color="#000000">Regards</font><div><font color="#000000"><br></font><div><font color="#000000">Shreyansh Kulshreshtha</font><br></div></div></div></div></div>