calculate code dependency