if(declaration.getExpression() instanceof Declaration) {
Declaration declarationExpression = (Declaration)declaration.getExpression();
if(iteration.getExpression() instanceof Increment) {
Increment incrementExpression = (Increment)iteration.getExpression();
if(incrementExpression.getVariable().getType().equals(declarationExpression.getVariable().getType())) {
//now check names.
if(incrementExpression.getVariable().getName().equals(declarationExpression.getVariable().getName())) {
//we can actually convert this to a for loop.
ForIntermediate forIntermediate = new ForIntermediate(line, declarationExpression, incrementExpression);
//forIntermediate.setTrueBranch(line.getTrueBranch());
//forIntermediate.setFalseBranch(line.getFalseBranch());