Checks sinks and sources before analyzing