An LLVM pass for program privilege analysis