Hi

If you can help with this problem, whenever you are free. I am not sure how 
to get any starting node of type BasicBlock (ssa#BasicBlock 
<https://godoc.org/golang.org/x/tools/go/ssa#BasicBlock>), so that I can 
traverse the Graph using Preds/Succs relation.
I am able to get ssa/program (ssa#Program 
<https://godoc.org/golang.org/x/tools/go/ssa#Program>) for a given .go file 
by using packages ssautil, parser, token and functions ParseFile(), 
CreateProgram() etc.
I took some help from here example_test.go 
<https://go.googlesource.com/tools/+/master/go/ssa/example_test.go>
But how to get any node of type BasicBlock from that ssa.Program I have ?

Thanks
Akshansh

On Wednesday, November 30, 2016 at 7:55:25 PM UTC+5:30, adon...@google.com 
wrote:
>
> On Wednesday, 30 November 2016 05:13:15 UTC-5, akshans...@gmail.com wrote:
>>
>> Thanks a lot for your valuable suggestions. I think the one using SSA 
>> form will be helpful for my project. 
>>
>
> Lest there be any confusion: there are two unrelated SSA forms for Go 
> code, the one used internally by the gc compiler and the one defined by the 
> golang.org/x/tools/go/ssa package.
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to