Home » Archived » Test and Performance Tools Platform (TPTP) » Identifying Executed Lines of Code Using ProbeKit
Identifying Executed Lines of Code Using ProbeKit [message #82101] |
Wed, 30 August 2006 15:46 |
Eclipse User |
|
|
|
Originally posted by: aheydarn.cs.uwaterloo.ca
Hi,
I used an executableUnit fragment to print out the line numbers of the code
that were executed during a program run. For this purpose, I used the
following code in this fragment:
System.out.println(spaces + "Line Number: " + myLineNumber);
In the above code, myLineNumber is of type executableUnitNumber. Now, the
program prints out the line numbers of code that were executed. However, for
loops (e.g., for, while, ...) the result is somehow strange. For example, it
prints out 0, 1, 2, 5, 6, 7, and so on. It seems that a loop is being
translated into a number of lines of code. Am I right? Does TPTP uses
three-address method for translating Java programs? If yes, do you know what
method of translation is used (e.g., Jimple)?
Thanks a lot in advance for your help,
All the best,
Abbas
|
|
|
Re: Identifying Executed Lines of Code Using ProbeKit [message #82132 is a reply to message #82101] |
Wed, 30 August 2006 16:52 |
No real name Messages: 404 Registered: July 2009 |
Senior Member |
|
|
Hi Abbas,
Our probekit developer (Navid Mehregani) is on vacation and will be coming
back next Tuesday.
I have send him an e-mail to attend to your question as soon as he's back.
"Abbas Heydarnoori" <aheydarn@cs.uwaterloo.ca> wrote in message
news:ed4bs4$21i$1@utils.eclipse.org...
> Hi,
>
> I used an executableUnit fragment to print out the line numbers of the
> code
> that were executed during a program run. For this purpose, I used the
> following code in this fragment:
>
> System.out.println(spaces + "Line Number: " + myLineNumber);
>
> In the above code, myLineNumber is of type executableUnitNumber. Now, the
> program prints out the line numbers of code that were executed. However,
> for
> loops (e.g., for, while, ...) the result is somehow strange. For example,
> it
> prints out 0, 1, 2, 5, 6, 7, and so on. It seems that a loop is being
> translated into a number of lines of code. Am I right? Does TPTP uses
> three-address method for translating Java programs? If yes, do you know
> what
> method of translation is used (e.g., Jimple)?
>
> Thanks a lot in advance for your help,
>
> All the best,
>
> Abbas
>
|
|
|
Goto Forum:
Current Time: Thu Apr 25 22:06:30 GMT 2024
Powered by FUDForum. Page generated in 0.02682 seconds
|