LLVM IR instrumentation for protection against out-of-bounds memory accesses