xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ ExtSelect(char *, char *, int /*<<< orphan*/);
void ExttLogMonthSelect(void) {
  ExtSelect("tLogMonth",
            "tLogMonth.uLog,tLogMonth.cLabel,tLogMonth.uLogType,tLogMonth."
            "cHash,tLogMonth.uPermLevel,tLogMonth.uLoginClient,tLogMonth."
            "cLogin,tLogMonth.cHost,tLogMonth.uTablePK,tLogMonth.cTableName,"
            "tLogMonth.uOwner,tLogMonth.uCreatedBy,tLogMonth.uCreatedDate,"
            "tLogMonth.uModBy,tLogMonth.uModDate",
            0);
}


x86 assembly (clang, -O0):
<ExttLogMonthSelect>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
lea    0xee8(%rip),%rsi
xor    %edx,%edx
call   1030 <ExtSelect@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<ExttLogMonthSelect>:
lea    0xee9(%rip),%rdi
lea    0xeec(%rip),%rsi
xor    %edx,%edx
jmp    1030 <ExtSelect@plt>

LLVM IR (-O0):
@.str = [10 x i8] c"tLogMonth\00"
@.str.1 = [281 x i8] c"tLogMonth.uLog,tLogMonth.cLabel,tLogMonth.uLogType,tLogMonth.cHash,tLogMonth.uPermLevel,tLogMonth.uLoginClient,tLogMonth.cLogin,tLogMonth.cHost,tLogMonth.uTablePK,tLogMonth.cTableName,tLogMonth.uOwner,tLogMonth.uCreatedBy,tLogMonth.uCreatedDate,tLogMonth.uModBy,tLogMonth.uModDate\00"
define void @ExttLogMonthSelect() {
%1 = call i32 @ExtSelect(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([281 x i8], [281 x i8]* @.str.1, i64 0, i64 0), i32 0)
ret void
}

LLVM IR (-O2):
@.str = [10 x i8] c"tLogMonth\00"
@.str.1 = [281 x i8] c"tLogMonth.uLog,tLogMonth.cLabel,tLogMonth.uLogType,tLogMonth.cHash,tLogMonth.uPermLevel,tLogMonth.uLoginClient,tLogMonth.cLogin,tLogMonth.cHost,tLogMonth.uTablePK,tLogMonth.cTableName,tLogMonth.uOwner,tLogMonth.uCreatedBy,tLogMonth.uCreatedDate,tLogMonth.uModBy,tLogMonth.uModDate\00"
define void @ExttLogMonthSelect() {
%1 = tail call i32 @ExtSelect(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([281 x i8], [281 x i8]* @.str.1, i64 0, i64 0), i32 0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ foo1();
int /*<<< orphan*/ foo2();
int main(void) {
  foo1();
  foo2();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1040 <foo1@plt>
mov    $0x0,%al
call   1030 <foo2@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1040 <foo1@plt>
xor    %eax,%eax
call   1030 <foo2@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @foo1()
%3 = call i32 (...) @foo2()
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @foo1()
%2 = tail call i32 (...) @foo2()
ret i32 0
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;

/* Variables and functions */
scalar_t__ cmp5(void const *, void const *);
scalar_t__ cmp8(int /*<<< orphan*/ *, int /*<<< orphan*/ *);
bool cmp13(const void *a, const void *b) {
  return cmp5(a, b) && cmp8((uint8_t *)a + 5, (uint8_t *)b + 5);
}


x86 assembly (clang, -O0):
<cmp13>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1030 <cmp5@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    $0x0,%rcx
mov    %al,-0x11(%rbp)
je     116e <cmp13+0x4e>
mov    -0x8(%rbp),%rdi
add    $0x14,%rdi
mov    -0x10(%rbp),%rsi
add    $0x14,%rsi
call   1040 <cmp8@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0x11(%rbp)
mov    -0x11(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cmp13>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
call   1030 <cmp5@plt>
test   %rax,%rax
je     1154 <cmp13+0x34>
add    $0x14,%rbx
add    $0x14,%r14
mov    %rbx,%rdi
mov    %r14,%rsi
call   1040 <cmp8@plt>
mov    %rax,%rcx
xor    %eax,%eax
test   %rcx,%rcx
setne  %al
jmp    1156 <cmp13+0x36>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define i32 @cmp13(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%5 = load i8*, i8** %3
%6 = load i8*, i8** %4
%7 = call i64 @cmp5(i8* %5, i8* %6)
%8 = icmp ne i64 %7, 0
br i1 %8, label %9, label %18
9: ; preds = %2
%10 = load i8*, i8** %3
%11 = bitcast i8* %10 to i32*
%12 = getelementptr inbounds i32, i32* %11, i64 5
%13 = load i8*, i8** %4
%14 = bitcast i8* %13 to i32*
%15 = getelementptr inbounds i32, i32* %14, i64 5
%16 = call i64 @cmp8(i32* %12, i32* %15)
%17 = icmp ne i64 %16, 0
br label %18
18: ; preds = %9, %2
%19 = phi i1 [ false, %2 ], [ %17, %9 ]
%20 = zext i1 %19 to i32
ret i32 %20
}

LLVM IR (-O2):
define i32 @cmp13(i8* %0, i8* %1) {
%3 = tail call i64 @cmp5(i8* %0, i8* %1)
%4 = icmp eq i64 %3, 0
br i1 %4, label %13, label %5
5: ; preds = %2
%6 = getelementptr inbounds i8, i8* %0, i64 20
%7 = bitcast i8* %6 to i32*
%8 = getelementptr inbounds i8, i8* %1, i64 20
%9 = bitcast i8* %8 to i32*
%10 = tail call i64 @cmp8(i32* %7, i32* %9)
%11 = icmp ne i64 %10, 0
%12 = zext i1 %11 to i32
br label %13
13: ; preds = %5, %2
%14 = phi i32 [ 0, %2 ], [ %12, %5 ]
ret i32 %14
}
/* Variables and functions */
int fileno(int /*<<< orphan*/);
int /*<<< orphan*/ stdin;
int tosFile_stdin(void) { return fileno(stdin); }


x86 assembly (clang, -O0):
<tosFile_stdin>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ecd(%rip),%rax
mov    (%rax),%edi
call   1030 <fileno@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<tosFile_stdin>:
mov    0x2ed1(%rip),%rax
mov    (%rax),%edi
jmp    1030 <fileno@plt>

LLVM IR (-O0):
@stdin = global i32 0
define i32 @tosFile_stdin() {
%1 = load i32, i32* @stdin
%2 = call i32 @fileno(i32 %1)
ret i32 %2
}

LLVM IR (-O2):
@stdin = global i32 0
define i32 @tosFile_stdin() {
%1 = load i32, i32* @stdin
%2 = tail call i32 @fileno(i32 %1)
ret i32 %2
}
unsigned char get_priority(unsigned char sio) { return (sio >> 4) & 0x3; }


x86 assembly (clang, -O0):
<get_priority>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movzbl -0x1(%rbp),%eax
sar    $0x4,%eax
and    $0x3,%eax
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_priority>:
mov    %edi,%eax
shr    $0x4,%al
and    $0x3,%al
ret

LLVM IR (-O0):
define zeroext i8 @get_priority(i8 zeroext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = load i8, i8* %2
%4 = zext i8 %3 to i32
%5 = ashr i32 %4, 4
%6 = and i32 %5, 3
%7 = trunc i32 %6 to i8
ret i8 %7
}

LLVM IR (-O2):
define zeroext i8 @get_priority(i8 zeroext %0) {
%2 = lshr i8 %0, 4
%3 = and i8 %2, 3
ret i8 %3
}
/* Variables and functions */
int /*<<< orphan*/ log_message(char *, int);
int /*<<< orphan*/ set_game_phase(int);
void sig_alarm_handler(int signal_number) {
  set_game_phase(1);
  log_message("Timer finished", 7);
}


x86 assembly (clang, -O0):
<sig_alarm_handler>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    $0x1,%edi
call   1030 <set_game_phase@plt>
lea    0xec4(%rip),%rdi
mov    $0x7,%esi
call   1040 <log_message@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sig_alarm_handler>:
push   %rax
mov    $0x1,%edi
call   1030 <set_game_phase@plt>
lea    0xece(%rip),%rdi
mov    $0x7,%esi
pop    %rax
jmp    1040 <log_message@plt>

LLVM IR (-O0):
@.str = [15 x i8] c"Timer finished\00"
define void @sig_alarm_handler(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = call i32 @set_game_phase(i32 1)
%4 = call i32 @log_message(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i32 7)
ret void
}

LLVM IR (-O2):
@.str = [15 x i8] c"Timer finished\00"
define void @sig_alarm_handler(i32 %0) {
%2 = tail call i32 @set_game_phase(i32 1)
%3 = tail call i32 @log_message(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i32 7)
ret void
}
void prune_minmax1_Ok(unsigned int x, unsigned int y) {
  if (x > 0) {
    if (y >= x + 1) {
      unsigned int z = y - 1;
    }
  }
}


x86 assembly (clang, -O0):
<prune_minmax1_Ok>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
cmpl   $0x0,-0x4(%rbp)
jbe    1133 <prune_minmax1_Ok+0x33>
mov    -0x8(%rbp),%eax
mov    -0x4(%rbp),%ecx
add    $0x1,%ecx
cmp    %ecx,%eax
jb     112e <prune_minmax1_Ok+0x2e>
mov    -0x8(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1133 <prune_minmax1_Ok+0x33>
pop    %rbp
ret

x86 assembly (clang, -O2):
<prune_minmax1_Ok>:
ret

LLVM IR (-O0):
define void @prune_minmax1_Ok(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%6 = load i32, i32* %3
%7 = icmp ugt i32 %6, 0
br i1 %7, label %8, label %17
8: ; preds = %2
%9 = load i32, i32* %4
%10 = load i32, i32* %3
%11 = add i32 %10, 1
%12 = icmp uge i32 %9, %11
br i1 %12, label %13, label %16
13: ; preds = %8
%14 = load i32, i32* %4
%15 = sub i32 %14, 1
store i32 %15, i32* %5
br label %16
16: ; preds = %13, %8
br label %17
17: ; preds = %16, %2
ret void
}

LLVM IR (-O2):
define void @prune_minmax1_Ok(i32 %0, i32 %1) {
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ pad;

/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int main() {
  struct {
    char a;
    int b;
    double c;
  } pad;
  printf("sizeof(char)"
         " ==> %d\n",
         sizeof(char));
  printf("sizeof(int)"
         " ==> %d\n",
         sizeof(int));
  printf("sizeof(double)"
         " ==> %d\n",
         sizeof(double));
  printf("sizeof(pad)"
         " ==> %d\n",
         sizeof(pad));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
lea    0xede(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xee1(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xee7(%rip),%rdi
mov    $0x10,%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
lea    0xeec(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xeef(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xef5(%rip),%rdi
mov    $0x10,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
%struct.anon = type { i8, i32, double }
@.str = [21 x i8] c"sizeof(char) ==> %d\0A\00"
@.str.1 = [20 x i8] c"sizeof(int) ==> %d\0A\00"
@.str.2 = [23 x i8] c"sizeof(double) ==> %d\0A\00"
@.str.3 = [20 x i8] c"sizeof(pad) ==> %d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca %struct.anon
store i32 0, i32* %1
%3 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i32 1)
%4 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i32 4)
%5 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i32 8)
%6 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i32 16)
ret i32 0
}

LLVM IR (-O2):
%struct.anon = type { i8, i32, double }
@.str = [21 x i8] c"sizeof(char) ==> %d\0A\00"
@.str.1 = [20 x i8] c"sizeof(int) ==> %d\0A\00"
@.str.2 = [23 x i8] c"sizeof(double) ==> %d\0A\00"
@.str.3 = [20 x i8] c"sizeof(pad) ==> %d\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i32 1)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i32 4)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i32 8)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i32 16)
ret i32 0
}
float sumf(float x, float y) { return x + y; }


x86 assembly (clang, -O0):
<sumf>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  -0x4(%rbp),%xmm0
addss  -0x8(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<sumf>:
addss  %xmm1,%xmm0
ret

LLVM IR (-O0):
define float @sumf(float %0, float %1) {
%3 = alloca float
%4 = alloca float
store float %0, float* %3
store float %1, float* %4
%5 = load float, float* %3
%6 = load float, float* %4
%7 = fadd float %5, %6
ret float %7
}

LLVM IR (-O2):
define float @sumf(float %0, float %1) {
%3 = fadd float %0, %1
ret float %3
}
/* Variables and functions */
int *malloc(int);
int main(void) {
  int u[20];
  int *p = malloc(sizeof(int) * 100);
  int *n;
  int *x;
  p[0] = 0;
  n = (int *)((long)p + (long)u);
  x = (int *)((long)n - (long)u);
  x[0] = 0;
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x190,%edi
call   1030 <malloc@plt>
mov    %rax,-0x68(%rbp)
mov    -0x68(%rbp),%rax
movl   $0x0,(%rax)
mov    -0x68(%rbp),%rax
lea    -0x60(%rbp),%rcx
add    %rcx,%rax
mov    %rax,-0x70(%rbp)
mov    -0x70(%rbp),%rax
lea    -0x60(%rbp),%rcx
sub    %rcx,%rax
mov    %rax,-0x78(%rbp)
mov    -0x78(%rbp),%rax
movl   $0x0,(%rax)
xor    %eax,%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x190,%edi
call   1030 <malloc@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca [20 x i32]
%3 = alloca i32*
%4 = alloca i32*
%5 = alloca i32*
store i32 0, i32* %1
%6 = call i32* @malloc(i32 400)
store i32* %6, i32** %3
%7 = load i32*, i32** %3
%8 = getelementptr inbounds i32, i32* %7, i64 0
store i32 0, i32* %8
%9 = load i32*, i32** %3
%10 = ptrtoint i32* %9 to i64
%11 = getelementptr inbounds [20 x i32], [20 x i32]* %2, i64 0, i64 0
%12 = ptrtoint i32* %11 to i64
%13 = add nsw i64 %10, %12
%14 = inttoptr i64 %13 to i32*
store i32* %14, i32** %4
%15 = load i32*, i32** %4
%16 = ptrtoint i32* %15 to i64
%17 = getelementptr inbounds [20 x i32], [20 x i32]* %2, i64 0, i64 0
%18 = ptrtoint i32* %17 to i64
%19 = sub nsw i64 %16, %18
%20 = inttoptr i64 %19 to i32*
store i32* %20, i32** %5
%21 = load i32*, i32** %5
%22 = getelementptr inbounds i32, i32* %21, i64 0
store i32 0, i32* %22
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32* @malloc(i32 400)
ret i32 0
}
/* Variables and functions */
int ygRegistreFuncInternal(void *, int, char const *, char const *);
int ygRegistreFunc(void *manager, int nbArgs, const char *name,
                   const char *toRegistre) {
  return ygRegistreFuncInternal(manager, nbArgs, name, toRegistre);
}


x86 assembly (clang, -O0):
<ygRegistreFunc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
call   1030 <ygRegistreFuncInternal@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ygRegistreFunc>:
jmp    1030 <ygRegistreFuncInternal@plt>

LLVM IR (-O0):
define i32 @ygRegistreFunc(i8* %0, i32 %1, i8* %2, i8* %3) {
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i8*
%8 = alloca i8*
store i8* %0, i8** %5
store i32 %1, i32* %6
store i8* %2, i8** %7
store i8* %3, i8** %8
%9 = load i8*, i8** %5
%10 = load i32, i32* %6
%11 = load i8*, i8** %7
%12 = load i8*, i8** %8
%13 = call i32 @ygRegistreFuncInternal(i8* %9, i32 %10, i8* %11, i8* %12)
ret i32 %13
}

LLVM IR (-O2):
define i32 @ygRegistreFunc(i8* %0, i32 %1, i8* %2, i8* %3) {
%5 = tail call i32 @ygRegistreFuncInternal(i8* %0, i32 %1, i8* %2, i8* %3)
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ isspace(char);
int IsBlankline(char *s) {
  for (; *s != '\0'; s++)
    if (!isspace(*s))
      return 0;
  return 1;
}


x86 assembly (clang, -O0):
<IsBlankline>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1163 <IsBlankline+0x53>
mov    -0x10(%rbp),%rax
movsbl (%rax),%edi
call   1030 <isspace@plt>
cmp    $0x0,%eax
jne    114d <IsBlankline+0x3d>
movl   $0x0,-0x4(%rbp)
jmp    116a <IsBlankline+0x5a>
jmp    1152 <IsBlankline+0x42>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    111c <IsBlankline+0xc>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<IsBlankline>:
push   %rbp
push   %rbx
push   %rax
mov    (%rdi),%al
mov    $0x1,%ebp
test   %al,%al
je     114b <IsBlankline+0x3b>
mov    %rdi,%rbx
add    $0x1,%rbx
cs nopw 0x0(%rax,%rax,1)
nop
movsbl %al,%edi
call   1030 <isspace@plt>
test   %eax,%eax
je     1149 <IsBlankline+0x39>
movzbl (%rbx),%eax
add    $0x1,%rbx
test   %al,%al
jne    1130 <IsBlankline+0x20>
jmp    114b <IsBlankline+0x3b>
xor    %ebp,%ebp
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define i32 @IsBlankline(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
store i8* %0, i8** %3
br label %4
4: ; preds = %16, %1
%5 = load i8*, i8** %3
%6 = load i8, i8* %5
%7 = sext i8 %6 to i32
%8 = icmp ne i32 %7, 0
br i1 %8, label %9, label %19
9: ; preds = %4
%10 = load i8*, i8** %3
%11 = load i8, i8* %10
%12 = call i32 @isspace(i8 signext %11)
%13 = icmp ne i32 %12, 0
br i1 %13, label %15, label %14
14: ; preds = %9
store i32 0, i32* %2
br label %20
15: ; preds = %9
br label %16
16: ; preds = %15
%17 = load i8*, i8** %3
%18 = getelementptr inbounds i8, i8* %17, i32 1
store i8* %18, i8** %3
br label %4
19: ; preds = %4
store i32 1, i32* %2
br label %20
20: ; preds = %19, %14
%21 = load i32, i32* %2
ret i32 %21
}

LLVM IR (-O2):
define i32 @IsBlankline(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %13, label %7
4: ; preds = %7
%5 = load i8, i8* %12
%6 = icmp eq i8 %5, 0
br i1 %6, label %13, label %7
7: ; preds = %1, %4
%8 = phi i8 [ %5, %4 ], [ %2, %1 ]
%9 = phi i8* [ %12, %4 ], [ %0, %1 ]
%10 = tail call i32 @isspace(i8 signext %8)
%11 = icmp eq i32 %10, 0
%12 = getelementptr inbounds i8, i8* %9, i64 1
br i1 %11, label %13, label %4
13: ; preds = %7, %4, %1
%14 = phi i32 [ 1, %1 ], [ 1, %4 ], [ 0, %7 ]
ret i32 %14
}
char *tcp_clienthost() { return "UNKNOWN"; }


x86 assembly (clang, -O0):
<tcp_clienthost>:
push   %rbp
mov    %rsp,%rbp
lea    0xef5(%rip),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<tcp_clienthost>:
lea    0xef9(%rip),%rax
ret

LLVM IR (-O0):
@.str = [8 x i8] c"UNKNOWN\00"
define i8* @tcp_clienthost() {
ret i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0)
}

LLVM IR (-O2):
@.str = [8 x i8] c"UNKNOWN\00"
define i8* @tcp_clienthost() {
ret i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0)
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int /*<<< orphan*/ scanf(char *, int *);
int read_minutes(int runner_number) {
  int number_minutes = 0;
  printf("Please enter runner %d's minutes part of time: ", runner_number);
  scanf("%d", &number_minutes);
  return number_minutes;
}


x86 assembly (clang, -O0):
<read_minutes>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
mov    -0x4(%rbp),%esi
lea    0xec4(%rip),%rdi
call   1030 <printf@plt>
lea    0xee8(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0x8(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<read_minutes>:
push   %rax
mov    %edi,%esi
movl   $0x0,0x4(%rsp)
lea    0xece(%rip),%rdi
call   1030 <printf@plt>
lea    0xef2(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1040 <scanf@plt>
mov    0x4(%rsp),%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [48 x i8] c"Please enter runner %d's minutes part of time: \00"
@.str.1 = [3 x i8] c"%d\00"
define i32 @read_minutes(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
store i32 0, i32* %3
%4 = load i32, i32* %2
%5 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0), i32 %4)
%6 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %3)
%7 = load i32, i32* %3
ret i32 %7
}

LLVM IR (-O2):
@.str = [48 x i8] c"Please enter runner %d's minutes part of time: \00"
@.str.1 = [3 x i8] c"%d\00"
define i32 @read_minutes(i32 %0) {
%2 = alloca i32
%3 = bitcast i32* %2 to i8*
store i32 0, i32* %2
%4 = tail call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0), i32 %0)
%5 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%6 = load i32, i32* %2
ret i32 %6
}
float linearDeriv(float linearInput) { return 1; }


x86 assembly (clang, -O0):
<linearDeriv>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x4(%rbp)
movss  0xeef(%rip),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<linearDeriv>:
movss  0xef8(%rip),%xmm0
ret

LLVM IR (-O0):
define float @linearDeriv(float %0) {
%2 = alloca float
store float %0, float* %2
ret float 1.000000e+00
}

LLVM IR (-O2):
define float @linearDeriv(float %0) {
ret float 1.000000e+00
}
int sleep_monitor_get_raw_value(int *raw_value) {}


x86 assembly (clang, -O0):
<sleep_monitor_get_raw_value>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<sleep_monitor_get_raw_value>:
ret

LLVM IR (-O0):
define i32 @sleep_monitor_get_raw_value(i32* %0) {
%2 = alloca i32
%3 = alloca i32*
store i32* %0, i32** %3
%4 = load i32, i32* %2
ret i32 %4
}

LLVM IR (-O2):
define i32 @sleep_monitor_get_raw_value(i32* nocapture readnone %0) {
ret i32 undef
}
/* Variables and functions */
int /*<<< orphan*/ test_cgraph_node();
int /*<<< orphan*/ test_gimple(int);
int /*<<< orphan*/ test_poly_int();
int /*<<< orphan*/ test_scopes();
int /*<<< orphan*/ test_string_literal();
int /*<<< orphan*/ test_tree();
int /*<<< orphan*/ test_wide_int();
void test_remarks(void) {
  test_string_literal();
  test_tree();
  test_gimple(42);
  test_cgraph_node();
  test_wide_int();
  test_poly_int();
  test_scopes();
}


x86 assembly (clang, -O0):
<test_remarks>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1070 <test_string_literal@plt>
mov    $0x0,%al
call   1090 <test_tree@plt>
mov    $0x2a,%edi
call   1040 <test_gimple@plt>
mov    $0x0,%al
call   1050 <test_cgraph_node@plt>
mov    $0x0,%al
call   1060 <test_wide_int@plt>
mov    $0x0,%al
call   1080 <test_poly_int@plt>
mov    $0x0,%al
call   1030 <test_scopes@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_remarks>:
push   %rax
xor    %eax,%eax
call   1070 <test_string_literal@plt>
xor    %eax,%eax
call   1090 <test_tree@plt>
mov    $0x2a,%edi
call   1040 <test_gimple@plt>
xor    %eax,%eax
call   1050 <test_cgraph_node@plt>
xor    %eax,%eax
call   1060 <test_wide_int@plt>
xor    %eax,%eax
call   1080 <test_poly_int@plt>
xor    %eax,%eax
pop    %rcx
jmp    1030 <test_scopes@plt>

LLVM IR (-O0):
define void @test_remarks() {
%1 = call i32 (...) @test_string_literal()
%2 = call i32 (...) @test_tree()
%3 = call i32 @test_gimple(i32 42)
%4 = call i32 (...) @test_cgraph_node()
%5 = call i32 (...) @test_wide_int()
%6 = call i32 (...) @test_poly_int()
%7 = call i32 (...) @test_scopes()
ret void
}

LLVM IR (-O2):
define void @test_remarks() {
%1 = tail call i32 (...) @test_string_literal()
%2 = tail call i32 (...) @test_tree()
%3 = tail call i32 @test_gimple(i32 42)
%4 = tail call i32 (...) @test_cgraph_node()
%5 = tail call i32 (...) @test_wide_int()
%6 = tail call i32 (...) @test_poly_int()
%7 = tail call i32 (...) @test_scopes()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void print_usage(void) { printf("Usage: cat [OPTION]... [FILE]...\n"); }


x86 assembly (clang, -O0):
<print_usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_usage>:
lea    0xee9(%rip),%rdi
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [34 x i8] c"Usage: cat [OPTION]... [FILE]...\0A\00"
define void @print_usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [33 x i8] c"Usage: cat [OPTION]... [FILE]...\00"
define void @print_usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str, i64 0, i64 0))
ret void
}
void SmartMac_SendList(void) {}


x86 assembly (clang, -O0):
<SmartMac_SendList>:
push   %rbp
mov    %rsp,%rbp
pop    %rbp
ret

x86 assembly (clang, -O2):
<SmartMac_SendList>:
ret

LLVM IR (-O0):
define void @SmartMac_SendList() {
ret void
}

LLVM IR (-O2):
define void @SmartMac_SendList() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ correct_syntax();
int /*<<< orphan*/ correct_tokens();
int /*<<< orphan*/ incorrect_syntax();
int /*<<< orphan*/ incorrect_tokens();
int report(char *);
int syntax_tests() {
  correct_tokens();
  incorrect_tokens();
  correct_syntax();
  incorrect_syntax();
  return report("Syntax");
}


x86 assembly (clang, -O0):
<syntax_tests>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <correct_tokens@plt>
mov    $0x0,%al
call   1040 <incorrect_tokens@plt>
mov    $0x0,%al
call   1070 <correct_syntax@plt>
mov    $0x0,%al
call   1050 <incorrect_syntax@plt>
lea    0xe89(%rip),%rdi
call   1060 <report@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<syntax_tests>:
push   %rax
xor    %eax,%eax
call   1030 <correct_tokens@plt>
xor    %eax,%eax
call   1040 <incorrect_tokens@plt>
xor    %eax,%eax
call   1070 <correct_syntax@plt>
xor    %eax,%eax
call   1050 <incorrect_syntax@plt>
lea    0xe8c(%rip),%rdi
pop    %rax
jmp    1060 <report@plt>

LLVM IR (-O0):
@.str = [7 x i8] c"Syntax\00"
define i32 @syntax_tests() {
%1 = call i32 (...) @correct_tokens()
%2 = call i32 (...) @incorrect_tokens()
%3 = call i32 (...) @correct_syntax()
%4 = call i32 (...) @incorrect_syntax()
%5 = call i32 @report(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
ret i32 %5
}

LLVM IR (-O2):
@.str = [7 x i8] c"Syntax\00"
define i32 @syntax_tests() {
%1 = tail call i32 (...) @correct_tokens()
%2 = tail call i32 (...) @incorrect_tokens()
%3 = tail call i32 (...) @correct_syntax()
%4 = tail call i32 (...) @incorrect_syntax()
%5 = tail call i32 @report(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
ret i32 %5
}
/* Variables and functions */
char *strchr(const char *s, char value) {
  char c, *ptr = (char *)s;
  while ((c = *ptr) != 0) {
    if (c == value)
      return ptr;
    ptr++;
  }
  return 0;
}


x86 assembly (clang, -O0):
<strchr>:
push   %rbp
mov    %rsp,%rbp
mov    %sil,%al
mov    %rdi,-0x10(%rbp)
mov    %al,-0x11(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
mov    (%rax),%al
mov    %al,-0x12(%rbp)
movsbl %al,%eax
cmp    $0x0,%eax
je     1159 <strchr+0x59>
movsbl -0x12(%rbp),%eax
movsbl -0x11(%rbp),%ecx
cmp    %ecx,%eax
jne    1148 <strchr+0x48>
mov    -0x20(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    1161 <strchr+0x61>
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
jmp    1116 <strchr+0x16>
movq   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<strchr>:
mov    (%rdi),%cl
test   %cl,%cl
je     1121 <strchr+0x21>
mov    %rdi,%rax
nopl   0x0(%rax)
cmp    %sil,%cl
je     1123 <strchr+0x23>
movzbl 0x1(%rax),%ecx
add    $0x1,%rax
test   %cl,%cl
jne    1110 <strchr+0x10>
xor    %eax,%eax
ret

LLVM IR (-O0):
define i8* @strchr(i8* %0, i8 signext %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i8
%6 = alloca i8
%7 = alloca i8*
store i8* %0, i8** %4
store i8 %1, i8* %5
%8 = load i8*, i8** %4
store i8* %8, i8** %7
br label %9
9: ; preds = %22, %2
%10 = load i8*, i8** %7
%11 = load i8, i8* %10
store i8 %11, i8* %6
%12 = sext i8 %11 to i32
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %25
14: ; preds = %9
%15 = load i8, i8* %6
%16 = sext i8 %15 to i32
%17 = load i8, i8* %5
%18 = sext i8 %17 to i32
%19 = icmp eq i32 %16, %18
br i1 %19, label %20, label %22
20: ; preds = %14
%21 = load i8*, i8** %7
store i8* %21, i8** %3
br label %26
22: ; preds = %14
%23 = load i8*, i8** %7
%24 = getelementptr inbounds i8, i8* %23, i32 1
store i8* %24, i8** %7
br label %9
25: ; preds = %9
store i8* null, i8** %3
br label %26
26: ; preds = %25, %20
%27 = load i8*, i8** %3
ret i8* %27
}

LLVM IR (-O2):
define i8* @strchr(i8* %0, i8 signext %1) {
%3 = load i8, i8* %0
%4 = icmp eq i8 %3, 0
br i1 %4, label %13, label %5
5: ; preds = %2, %9
%6 = phi i8 [ %11, %9 ], [ %3, %2 ]
%7 = phi i8* [ %10, %9 ], [ %0, %2 ]
%8 = icmp eq i8 %6, %1
br i1 %8, label %13, label %9
9: ; preds = %5
%10 = getelementptr inbounds i8, i8* %7, i64 1
%11 = load i8, i8* %10
%12 = icmp eq i8 %11, 0
br i1 %12, label %13, label %5
13: ; preds = %5, %9, %2
%14 = phi i8* [ null, %2 ], [ null, %9 ], [ %7, %5 ]
ret i8* %14
}
/* Variables and functions */
int /*<<< orphan*/ McASPTxFmtMaskSet(unsigned int, int);
int /*<<< orphan*/ McASPTxFmtSet(unsigned int, int);
void McASPTxFmtI2SSet(unsigned int baseAddr, unsigned int wordSize,
                      unsigned int slotSize, unsigned int txMode) {
  McASPTxFmtMaskSet(baseAddr, (1 << wordSize) - 1);
  McASPTxFmtSet(baseAddr, ((0x00000000u) | (0x00008000u) |
                           ((0x00000001u) << (0x00000010u)) | (wordSize >> 2) |
                           ((slotSize / 2 - 1) << (0x00000004u)) | txMode));
}


x86 assembly (clang, -O0):
<McASPTxFmtI2SSet>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%ecx
mov    $0x1,%esi
shl    %cl,%esi
sub    $0x1,%esi
call   1040 <McASPTxFmtMaskSet@plt>
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
shr    $0x2,%esi
or     $0x18000,%esi
mov    -0xc(%rbp),%eax
shr    $0x1,%eax
sub    $0x1,%eax
shl    $0x4,%eax
or     %eax,%esi
or     -0x10(%rbp),%esi
call   1030 <McASPTxFmtSet@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<McASPTxFmtI2SSet>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %ecx,%r14d
mov    %edx,%r15d
mov    %esi,%ebp
mov    %edi,%ebx
mov    $0xffffffff,%esi
mov    %ebp,%ecx
shl    %cl,%esi
not    %esi
call   1040 <McASPTxFmtMaskSet@plt>
shr    $0x2,%ebp
lea    -0x10(,%r15,8),%eax
ff
and    $0xfffe7ff0,%eax
or     %r14d,%ebp
or     %eax,%ebp
or     $0x18000,%ebp
mov    %ebx,%edi
mov    %ebp,%esi
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <McASPTxFmtSet@plt>

LLVM IR (-O0):
define void @McASPTxFmtI2SSet(i32 %0, i32 %1, i32 %2, i32 %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 %0, i32* %5
store i32 %1, i32* %6
store i32 %2, i32* %7
store i32 %3, i32* %8
%9 = load i32, i32* %5
%10 = load i32, i32* %6
%11 = shl i32 1, %10
%12 = sub nsw i32 %11, 1
%13 = call i32 @McASPTxFmtMaskSet(i32 %9, i32 %12)
%14 = load i32, i32* %5
%15 = load i32, i32* %6
%16 = lshr i32 %15, 2
%17 = or i32 98304, %16
%18 = load i32, i32* %7
%19 = udiv i32 %18, 2
%20 = sub i32 %19, 1
%21 = shl i32 %20, 4
%22 = or i32 %17, %21
%23 = load i32, i32* %8
%24 = or i32 %22, %23
%25 = call i32 @McASPTxFmtSet(i32 %14, i32 %24)
ret void
}

LLVM IR (-O2):
define void @McASPTxFmtI2SSet(i32 %0, i32 %1, i32 %2, i32 %3) {
%5 = shl nsw i32 -1, %1
%6 = xor i32 %5, -1
%7 = tail call i32 @McASPTxFmtMaskSet(i32 %0, i32 %6)
%8 = lshr i32 %1, 2
%9 = shl i32 %2, 3
%10 = add i32 %9, -16
%11 = and i32 %10, -98320
%12 = or i32 %8, %3
%13 = or i32 %12, %11
%14 = or i32 %13, 98304
%15 = tail call i32 @McASPTxFmtSet(i32 %0, i32 %14)
ret void
}
/* Variables and functions */
scalar_t__ microseconds();
int cputime(void) { return (int)microseconds() / 1000; }


x86 assembly (clang, -O0):
<cputime>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <microseconds@plt>
mov    $0x3e8,%ecx
cltd
idiv   %ecx
pop    %rbp
ret

x86 assembly (clang, -O2):
<cputime>:
push   %rax
xor    %eax,%eax
call   1030 <microseconds@plt>
cltq
imul   $0x10624dd3,%rax,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
sar    $0x26,%rax
add    %ecx,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @cputime() {
%1 = call i64 (...) @microseconds()
%2 = trunc i64 %1 to i32
%3 = sdiv i32 %2, 1000
ret i32 %3
}

LLVM IR (-O2):
define i32 @cputime() {
%1 = tail call i64 (...) @microseconds()
%2 = trunc i64 %1 to i32
%3 = sdiv i32 %2, 1000
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int verifica(int);
int main() {
  printf("verifica(10): return %d", verifica(10));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0xa,%edi
call   1040 <verifica@plt>
mov    %eax,%esi
lea    0xebe(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0xa,%edi
call   1040 <verifica@plt>
lea    0xece(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [24 x i8] c"verifica(10): return %d\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @verifica(i32 10)
%3 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 %2)
ret i32 0
}

LLVM IR (-O2):
@.str = [24 x i8] c"verifica(10): return %d\00"
define i32 @main() {
%1 = tail call i32 @verifica(i32 10)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 %1)
ret i32 0
}
void ptr_band1_Bad(int x, int *q) {
  int a[5];
  int *p;
  if (x) {
    p = q;
  } else {
    p = 0;
  }
  if ((int)p & x) {
    a[10] = 0;
  }
}


x86 assembly (clang, -O0):
<ptr_band1_Bad>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x0,-0x4(%rbp)
je     1122 <ptr_band1_Bad+0x22>
mov    -0x10(%rbp),%rax
mov    %rax,-0x38(%rbp)
jmp    112a <ptr_band1_Bad+0x2a>
movq   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%rax
and    -0x4(%rbp),%eax
cmp    $0x0,%eax
je     1141 <ptr_band1_Bad+0x41>
movl   $0x0,-0x8(%rbp)
pop    %rbp
ret

x86 assembly (clang, -O2):
<ptr_band1_Bad>:
ret

LLVM IR (-O0):
define void @ptr_band1_Bad(i32 %0, i32* %1) {
%3 = alloca i32
%4 = alloca i32*
%5 = alloca [5 x i32]
%6 = alloca i32*
store i32 %0, i32* %3
store i32* %1, i32** %4
%7 = load i32, i32* %3
%8 = icmp ne i32 %7, 0
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = load i32*, i32** %4
store i32* %10, i32** %6
br label %12
11: ; preds = %2
store i32* null, i32** %6
br label %12
12: ; preds = %11, %9
%13 = load i32*, i32** %6
%14 = ptrtoint i32* %13 to i32
%15 = load i32, i32* %3
%16 = and i32 %14, %15
%17 = icmp ne i32 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %12
%19 = getelementptr inbounds [5 x i32], [5 x i32]* %5, i64 0, i64 10
store i32 0, i32* %19
br label %20
20: ; preds = %18, %12
ret void
}

LLVM IR (-O2):
define void @ptr_band1_Bad(i32 %0, i32* nocapture %1) {
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ va_list;

/* Variables and functions */
int /*<<< orphan*/ INT_MAX;
int _vsnprintf(char *, int /*<<< orphan*/, char const *, int /*<<< orphan*/);
int _vsprintf(char *buf, const char *fmt, va_list args) {
  return _vsnprintf(buf, INT_MAX, fmt, args);
}


x86 assembly (clang, -O0):
<_vsprintf>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x8(%rbp),%rdi
mov    0x2eba(%rip),%rax
mov    (%rax),%esi
mov    -0x10(%rbp),%rdx
mov    -0x14(%rbp),%ecx
call   1030 <_vsnprintf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_vsprintf>:
mov    %edx,%ecx
mov    %rsi,%rdx
mov    0x2ecc(%rip),%rax
mov    (%rax),%esi
jmp    1030 <_vsnprintf@plt>

LLVM IR (-O0):
@INT_MAX = global i32 0
define i32 @_vsprintf(i8* %0, i8* %1, i32 %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i32
store i8* %0, i8** %4
store i8* %1, i8** %5
store i32 %2, i32* %6
%7 = load i8*, i8** %4
%8 = load i32, i32* @INT_MAX
%9 = load i8*, i8** %5
%10 = load i32, i32* %6
%11 = call i32 @_vsnprintf(i8* %7, i32 %8, i8* %9, i32 %10)
ret i32 %11
}

LLVM IR (-O2):
@INT_MAX = global i32 0
define i32 @_vsprintf(i8* %0, i8* %1, i32 %2) {
%4 = load i32, i32* @INT_MAX
%5 = tail call i32 @_vsnprintf(i8* %0, i32 %4, i8* %1, i32 %2)
ret i32 %5
}
OP(fd, c6) {
  illegal_1();
  op_c6();
}


x86 assembly (clang, -O0):
<OP>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    $0x0,%al
call   1030 <illegal_1@plt>
mov    $0x0,%al
call   1040 <op_c6@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<OP>:
push   %rax
xor    %eax,%eax
call   1030 <illegal_1@plt>
xor    %eax,%eax
pop    %rcx
jmp    1040 <op_c6@plt>

LLVM IR (-O0):
define i32 @OP(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
%6 = call i32 (...) @illegal_1()
%7 = call i32 (...) @op_c6()
%8 = load i32, i32* %3
ret i32 %8
}

LLVM IR (-O2):
define i32 @OP(i32 %0, i32 %1) {
%3 = tail call i32 (...) @illegal_1()
%4 = tail call i32 (...) @op_c6()
ret i32 undef
}
int fun476() { return 476; }


x86 assembly (clang, -O0):
<fun476>:
push   %rbp
mov    %rsp,%rbp
mov    $0x1dc,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<fun476>:
mov    $0x1dc,%eax
ret

LLVM IR (-O0):
define i32 @fun476() {
ret i32 476
}

LLVM IR (-O2):
define i32 @fun476() {
ret i32 476
}
/* Type definitions */
typedef int /*<<< orphan*/ va_list;

/* Variables and functions */
int vsprintf(char *, char const *, int /*<<< orphan*/);
int /*<<< orphan*/ xmon_write(void *, char *, int);
void xmon_vfprintf(void *f, const char *fmt, va_list ap) {
  static char xmon_buf[2048];
  int n;
  n = vsprintf(xmon_buf, fmt, ap);
  xmon_write(f, xmon_buf, n);
}


x86 assembly (clang, -O0):
<xmon_vfprintf>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
lea    0x2eff(%rip),%rdi
call   1030 <vsprintf@plt>
mov    %eax,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%edx
lea    0x2ee9(%rip),%rsi
call   1040 <xmon_write@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<xmon_vfprintf>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
lea    0x2f12(%rip),%r14
mov    %r14,%rdi
call   1030 <vsprintf@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %eax,%edx
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1040 <xmon_write@plt>

LLVM IR (-O0):
@xmon_vfprintf.xmon_buf = internal global [2048 x i8] zeroinitializer
define void @xmon_vfprintf(i8* %0, i8* %1, i32 %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i32
store i8* %0, i8** %4
store i8* %1, i8** %5
store i32 %2, i32* %6
%8 = load i8*, i8** %5
%9 = load i32, i32* %6
%10 = call i32 @vsprintf(i8* getelementptr inbounds ([2048 x i8], [2048 x i8]* @xmon_vfprintf.xmon_buf, i64 0, i64 0), i8* %8, i32 %9)
store i32 %10, i32* %7
%11 = load i8*, i8** %4
%12 = load i32, i32* %7
%13 = call i32 @xmon_write(i8* %11, i8* getelementptr inbounds ([2048 x i8], [2048 x i8]* @xmon_vfprintf.xmon_buf, i64 0, i64 0), i32 %12)
ret void
}

LLVM IR (-O2):
@xmon_vfprintf.xmon_buf = internal global [2048 x i8] zeroinitializer
define void @xmon_vfprintf(i8* %0, i8* nocapture %1, i32 %2) {
%4 = tail call i32 @vsprintf(i8* getelementptr inbounds ([2048 x i8], [2048 x i8]* @xmon_vfprintf.xmon_buf, i64 0, i64 0), i8* %1, i32 %2)
%5 = tail call i32 @xmon_write(i8* %0, i8* getelementptr inbounds ([2048 x i8], [2048 x i8]* @xmon_vfprintf.xmon_buf, i64 0, i64 0), i32 %4)
ret void
}
unsigned short _PyPy_get_387controlword(void) {
  unsigned short cw;
  __asm__ __volatile__("fnstcw %0" : "=m"(cw));
  return cw;
}


x86 assembly (clang, -O0):
<_PyPy_get_387controlword>:
push   %rbp
mov    %rsp,%rbp
fnstcw -0x2(%rbp)
movzwl -0x2(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<_PyPy_get_387controlword>:
fnstcw -0x2(%rsp)
movzwl -0x2(%rsp),%eax
ret

LLVM IR (-O0):
define zeroext i16 @_PyPy_get_387controlword() {
%1 = alloca i16
%2 = load i16, i16* %1
ret i16 %2
}

LLVM IR (-O2):
define zeroext i16 @_PyPy_get_387controlword() {
%1 = alloca i16
%2 = bitcast i16* %1 to i8*
%3 = load i16, i16* %1
ret i16 %3
}
/* Variables and functions */
int EINVAL;
__attribute__((visibility("default"))) int sd_get_seats(char ***seats) {
  return -EINVAL;
}


x86 assembly (clang, -O0):
<sd_get_seats>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
xor    %eax,%eax
mov    0x2ecf(%rip),%rcx
sub    (%rcx),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<sd_get_seats>:
mov    0x2ed9(%rip),%rcx
xor    %eax,%eax
sub    (%rcx),%eax
ret

LLVM IR (-O0):
@EINVAL = global i32 0
define i32 @sd_get_seats(i8*** %0) {
%2 = alloca i8***
store i8*** %0, i8**** %2
%3 = load i32, i32* @EINVAL
%4 = sub nsw i32 0, %3
ret i32 %4
}

LLVM IR (-O2):
@EINVAL = global i32 0
define i32 @sd_get_seats(i8*** nocapture readnone %0) {
%2 = load i32, i32* @EINVAL
%3 = sub nsw i32 0, %2
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void instructions(void) {
  printf("Enter your choice:\n"
         " 1 to insert an element into the list.\n"
         " 2 to delete an element from the list.\n"
         " 3 to end.\n");
}


x86 assembly (clang, -O0):
<instructions>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<instructions>:
lea    0xee9(%rip),%rdi
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [109 x i8] c"Enter your choice:\0A 1 to insert an element into the list.\0A 2 to delete an element from the list.\0A 3 to end.\0A\00"
define void @instructions() {
%1 = call i32 @printf(i8* getelementptr inbounds ([109 x i8], [109 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [108 x i8] c"Enter your choice:\0A 1 to insert an element into the list.\0A 2 to delete an element from the list.\0A 3 to end.\00"
define void @instructions() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([108 x i8], [108 x i8]* @str, i64 0, i64 0))
ret void
}
int execute_prlimit() { return 0; }


x86 assembly (clang, -O0):
<execute_prlimit>:
push   %rbp
mov    %rsp,%rbp
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<execute_prlimit>:
xor    %eax,%eax
ret

LLVM IR (-O0):
define i32 @execute_prlimit() {
ret i32 0
}

LLVM IR (-O2):
define i32 @execute_prlimit() {
ret i32 0
}
indreg0indreg1(r0, r1, x0, x1, p0, p1) int r0, r1;
int *p0, *p1;
{
  if ((*p0) <= (*p1))
    return 1;
  else
    return 0;
}


x86 assembly (clang, -O0):
<indreg0indreg1>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
mov    %r8,-0x20(%rbp)
mov    %r9,-0x28(%rbp)
mov    -0x20(%rbp),%rax
mov    (%rax),%eax
mov    -0x28(%rbp),%rcx
cmp    (%rcx),%eax
jg     1136 <indreg0indreg1+0x36>
movl   $0x1,-0x4(%rbp)
jmp    113d <indreg0indreg1+0x3d>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<indreg0indreg1>:
mov    (%r8),%ecx
xor    %eax,%eax
cmp    (%r9),%ecx
setle  %al
ret

LLVM IR (-O0):
define i32 @indreg0indreg1(i32 %0, i32 %1, i32 %2, i32 %3, i32* %4, i32* %5) {
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32*
%13 = alloca i32*
store i32 %0, i32* %8
store i32 %1, i32* %9
store i32 %2, i32* %10
store i32 %3, i32* %11
store i32* %4, i32** %12
store i32* %5, i32** %13
%14 = load i32*, i32** %12
%15 = load i32, i32* %14
%16 = load i32*, i32** %13
%17 = load i32, i32* %16
%18 = icmp sle i32 %15, %17
br i1 %18, label %19, label %20
19: ; preds = %6
store i32 1, i32* %7
br label %21
20: ; preds = %6
store i32 0, i32* %7
br label %21
21: ; preds = %20, %19
%22 = load i32, i32* %7
ret i32 %22
}

LLVM IR (-O2):
define i32 @indreg0indreg1(i32 %0, i32 %1, i32 %2, i32 %3, i32* nocapture %4, i32* nocapture %5) {
%7 = load i32, i32* %4
%8 = load i32, i32* %5
%9 = icmp sle i32 %7, %8
%10 = zext i1 %9 to i32
ret i32 %10
}
void no_write() {}


x86 assembly (clang, -O0):
<no_write>:
push   %rbp
mov    %rsp,%rbp
pop    %rbp
ret

x86 assembly (clang, -O2):
<no_write>:
ret

LLVM IR (-O0):
define void @no_write() {
ret void
}

LLVM IR (-O2):
define void @no_write() {
ret void
}
__attribute__((always_)) void acpi_fake_nodes(const struct bootnode *fake_nodes,
                                              int num_nodes) {}


x86 assembly (clang, -O0):
<acpi_fake_nodes>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
pop    %rbp
ret

x86 assembly (clang, -O2):
<acpi_fake_nodes>:
ret

LLVM IR (-O0):
%struct.bootnode = type opaque
define void @acpi_fake_nodes(%struct.bootnode* %0, i32 %1) {
%3 = alloca %struct.bootnode*
%4 = alloca i32
store %struct.bootnode* %0, %struct.bootnode** %3
store i32 %1, i32* %4
ret void
}

LLVM IR (-O2):
%struct.bootnode = type opaque
define void @acpi_fake_nodes(%struct.bootnode* nocapture %0, i32 %1) {
ret void
}
/* Variables and functions */
int i2c_smbus_write_byte(int, int);
int odroidI2CWrite(int fd, int data) { return i2c_smbus_write_byte(fd, data); }


x86 assembly (clang, -O0):
<odroidI2CWrite>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1030 <i2c_smbus_write_byte@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<odroidI2CWrite>:
jmp    1030 <i2c_smbus_write_byte@plt>

LLVM IR (-O0):
define i32 @odroidI2CWrite(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %3
%6 = load i32, i32* %4
%7 = call i32 @i2c_smbus_write_byte(i32 %5, i32 %6)
ret i32 %7
}

LLVM IR (-O2):
define i32 @odroidI2CWrite(i32 %0, i32 %1) {
%3 = tail call i32 @i2c_smbus_write_byte(i32 %0, i32 %1)
ret i32 %3
}
/* Variables and functions */
int fputc(int, int /*<<< orphan*/);
int /*<<< orphan*/ stdout;
int tty_putc(int c) { return fputc(c, stdout); }


x86 assembly (clang, -O0):
<tty_putc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
mov    0x2ebb(%rip),%rax
mov    (%rax),%esi
call   1030 <fputc@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<tty_putc>:
mov    0x2ec9(%rip),%rax
mov    (%rax),%esi
jmp    1030 <fputc@plt>

LLVM IR (-O0):
@stdout = global i32 0
define i32 @tty_putc(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = load i32, i32* @stdout
%5 = call i32 @fputc(i32 %3, i32 %4)
ret i32 %5
}

LLVM IR (-O2):
@stdout = global i32 0
define i32 @tty_putc(i32 %0) {
%2 = load i32, i32* @stdout
%3 = tail call i32 @fputc(i32 %0, i32 %2)
ret i32 %3
}