<div dir="ltr"><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:13.63636302947998px;vertical-align:baseline;clear:both;color:rgb(0,0,0);font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;line-height:17.27272605895996px">
I want to use Clang to do a <strong style="margin:0px;padding:0px;border:0px;vertical-align:baseline;background-color:transparent">source to source transformation</strong> of cpp code, I have achieve certain goals like this <a href="http://eli.thegreenplace.net/2012/06/08/basic-source-to-source-transformation-with-clang/" rel="nofollow" style="margin:0px;padding:0px;border:0px;vertical-align:baseline;background-color:transparent;color:rgb(74,107,130);text-decoration:none">tutorial</a> and currently I am trying to assign a unique ID to each basic control block.</p>
<p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:13.63636302947998px;vertical-align:baseline;clear:both;color:rgb(0,0,0);font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;line-height:17.27272605895996px">
Could anybody give me some help about how to find the basic control block?</p><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:13.63636302947998px;vertical-align:baseline;clear:both;color:rgb(0,0,0);font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;line-height:17.27272605895996px">
Be more specified, I think the <a href="http://clang.llvm.org/docs/InternalsManual.html#basic-blocks" rel="nofollow" style="margin:0px;padding:0px;border:0px;vertical-align:baseline;background-color:transparent;color:rgb(74,107,130);text-decoration:none">CFG</a> class in Clang should help, but I don't know how to implement it..</p>
<p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:13.63636302947998px;vertical-align:baseline;clear:both;color:rgb(0,0,0);font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;line-height:17.27272605895996px">
Thank you a lot!</p></div>