I think what your mentioned as “data dependencies” is data-flow analysis,
and I guess “data dependencies” you want is “def-use chain”.
I searched and think this simple implementation may work for you:
If you want a more complete and strong analysis, you could check SVF:
(sorry, I forgot to cc mailing-list in the last email)