Use the builtin llvm methods for checking int overflow
Remove invalid code