basic dependency inference
fixed dependency inference according to the guide here: http://scottmcpeak.com/autodepend/autodepend.html