<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello,<div><br></div><div>I'm looking for a way to identify dependencies of function-pairs (memory-dependency, control-dependency...) in order to parallelize them.</div><div>For aliasing problems I use the DataStructureAnalysis. To solve simple memory- and control-dependency problems I want to use</div><div>memdep. But unfortunately I even fail with following simple C++ example...</div><div><br></div><div><font class="Apple-style-span" face="Verdana">int a( int n) { return n; }</font></div><div><font class="Apple-style-span" face="Verdana">int b( int n) { return n; }</font></div><div><font class="Apple-style-span" face="Verdana">int c( int n) { return n; }</font></div><div><font class="Apple-style-span" face="Verdana"><br></font></div><div><font class="Apple-style-span" face="Verdana">int main( int argc, char** argv) {</font></div><div><font class="Apple-style-span" face="Verdana"><br></font></div><div><font class="Apple-style-span" face="Verdana">  int x = a( argc);</font></div><div><font class="Apple-style-span" face="Verdana">  b( 0);</font></div><div><font class="Apple-style-span" face="Verdana"><span class="Apple-tab-span" style="white-space:pre">   </span></font></div><div><font class="Apple-style-span" face="Verdana">  <span class="Apple-tab-span" style="white-space:pre">i</span>f ( x)</font></div><div><font class="Apple-style-span" face="Verdana">    x = 0;</font></div><div><font class="Apple-style-span" face="Verdana"><span class="Apple-tab-span" style="white-space:pre"><br></span></font></div><div><font class="Apple-style-span" face="Verdana">  return ( c( x));<span class="Apple-tab-span" style="white-space:pre">  </span></font></div><div><font class="Apple-style-span" face="Verdana">}</font></div><div><font class="Apple-style-span" face="Verdana"><br></font></div><div><font class="Apple-style-span" face="Verdana">... The result of memdep shows a dependency between the callsite of b() and the call of a(). Why?</font></div><div><font class="Apple-style-span" face="Verdana">Moreover I want to get the dependency between the call to c() and the result of a(). How can I obtain this?</font></div><div><font class="Apple-style-span" face="Verdana"><br></font></div><div><font class="Apple-style-span" face="Verdana">Thanks in advance,</font></div><div><font class="Apple-style-span" face="Verdana">Andreas</font></div></body></html>