Adjusted symbol validation and register counting. Added for to llvm