checks dependencies of expressions.

Signed-off-by: Andrew Porter <mephisto83@hotmail.com>