#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ article(char);
int /*<<< orphan*/ cPrintf(char *, ...);
char *exceptionToString(int);
void interactiveException(int exception) {
  char *what;
  what = exceptionToString(exception);
  cPrintf("\n");
  cPrintf("NOTE: %s %s occurred while executing the command.\n", article(*what),
          what);
  cPrintf("      This event will not alter the state of the CPU.\n");
}


x86 assembly (clang, -O0):
<interactiveException>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <exceptionToString@plt>
mov    %rax,-0x10(%rbp)
lea    0xf1a(%rip),%rdi
mov    $0x0,%al
call   1050 <cPrintf@plt>
mov    -0x10(%rbp),%rax
movsbl (%rax),%edi
call   1040 <article@plt>
mov    %eax,%esi
mov    -0x10(%rbp),%rdx
lea    0xe92(%rip),%rdi
mov    $0x0,%al
call   1050 <cPrintf@plt>
lea    0xeb7(%rip),%rdi
mov    $0x0,%al
call   1050 <cPrintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<interactiveException>:
push   %rbx
call   1030 <exceptionToString@plt>
mov    %rax,%rbx
lea    0xf28(%rip),%rdi
xor    %eax,%eax
call   1050 <cPrintf@plt>
movsbl (%rbx),%edi
call   1040 <article@plt>
lea    0xeaa(%rip),%rdi
mov    %eax,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1050 <cPrintf@plt>
lea    0xeca(%rip),%rdi
xor    %eax,%eax
pop    %rbx
jmp    1050 <cPrintf@plt>

LLVM IR (-O0):
@.str = [2 x i8] c"\0A\00"
@.str.1 = [51 x i8] c"NOTE: %s %s occurred while executing the command.\0A\00"
@.str.2 = [55 x i8] c" This event will not alter the state of the CPU.\0A\00"
define void @interactiveException(i32 %0) {
%2 = alloca i32
%3 = alloca i8*
store i32 %0, i32* %2
%4 = load i32, i32* %2
%5 = call i8* @exceptionToString(i32 %4)
store i8* %5, i8** %3
%6 = call i32 (i8*, ...) @cPrintf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%7 = load i8*, i8** %3
%8 = load i8, i8* %7
%9 = call i32 @article(i8 signext %8)
%10 = load i8*, i8** %3
%11 = call i32 (i8*, ...) @cPrintf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.1, i64 0, i64 0), i32 %9, i8* %10)
%12 = call i32 (i8*, ...) @cPrintf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.2, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [2 x i8] c"\0A\00"
@.str.1 = [51 x i8] c"NOTE: %s %s occurred while executing the command.\0A\00"
@.str.2 = [55 x i8] c" This event will not alter the state of the CPU.\0A\00"
define void @interactiveException(i32 %0) {
%2 = tail call i8* @exceptionToString(i32 %0)
%3 = tail call i32 (i8*, ...) @cPrintf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%4 = load i8, i8* %2
%5 = tail call i32 @article(i8 signext %4)
%6 = tail call i32 (i8*, ...) @cPrintf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.1, i64 0, i64 0), i32 %5, i8* %2)
%7 = tail call i32 (i8*, ...) @cPrintf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.2, i64 0, i64 0))
ret void
}