xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ le_write32(void *, unsigned char);
int /*<<< orphan*/ le_write_float(char **, float const);
void write_altitude(void *ptr, const float alt) {
  char buf[sizeof(float)];
  unsigned char *i = (unsigned char *)&buf;
  le_write_float(&buf, alt);
  le_write32(ptr, i[0] << 24 | i[3] << 16 | i[2] << 8 | i[1]);
}


x86 assembly (clang, -O0):
<write_altitude>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
movss  %xmm0,-0xc(%rbp)
lea    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
lea    -0x10(%rbp),%rdi
movss  -0xc(%rbp),%xmm0
call   1030 <le_write_float@plt>
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rax
movzbl (%rax),%eax
shl    $0x18,%eax
mov    -0x18(%rbp),%rcx
movzbl 0x3(%rcx),%ecx
shl    $0x10,%ecx
or     %ecx,%eax
mov    -0x18(%rbp),%rcx
movzbl 0x2(%rcx),%ecx
shl    $0x8,%ecx
or     %ecx,%eax
mov    -0x18(%rbp),%rcx
movzbl 0x1(%rcx),%ecx
or     %ecx,%eax
movzbl %al,%esi
call   1040 <le_write32@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<write_altitude>:
push   %rbx
sub    $0x10,%rsp
mov    %rdi,%rbx
lea    0xc(%rsp),%rdi
call   1030 <le_write_float@plt>
movzbl 0xd(%rsp),%esi
mov    %rbx,%rdi
call   1040 <le_write32@plt>
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define void @write_altitude(i8* %0, float %1) {
%3 = alloca i8*
%4 = alloca float
%5 = alloca [4 x i8]
%6 = alloca i8*
store i8* %0, i8** %3
store float %1, float* %4
%7 = bitcast [4 x i8]* %5 to i8*
store i8* %7, i8** %6
%8 = bitcast [4 x i8]* %5 to i8**
%9 = load float, float* %4
%10 = call i32 @le_write_float(i8** %8, float %9)
%11 = load i8*, i8** %3
%12 = load i8*, i8** %6
%13 = getelementptr inbounds i8, i8* %12, i64 0
%14 = load i8, i8* %13
%15 = zext i8 %14 to i32
%16 = shl i32 %15, 24
%17 = load i8*, i8** %6
%18 = getelementptr inbounds i8, i8* %17, i64 3
%19 = load i8, i8* %18
%20 = zext i8 %19 to i32
%21 = shl i32 %20, 16
%22 = or i32 %16, %21
%23 = load i8*, i8** %6
%24 = getelementptr inbounds i8, i8* %23, i64 2
%25 = load i8, i8* %24
%26 = zext i8 %25 to i32
%27 = shl i32 %26, 8
%28 = or i32 %22, %27
%29 = load i8*, i8** %6
%30 = getelementptr inbounds i8, i8* %29, i64 1
%31 = load i8, i8* %30
%32 = zext i8 %31 to i32
%33 = or i32 %28, %32
%34 = trunc i32 %33 to i8
%35 = call i32 @le_write32(i8* %11, i8 zeroext %34)
ret void
}

LLVM IR (-O2):
define void @write_altitude(i8* %0, float %1) {
%3 = alloca [4 x i8]
%4 = getelementptr inbounds [4 x i8], [4 x i8]* %3, i64 0, i64 0
%5 = bitcast [4 x i8]* %3 to i8**
%6 = call i32 @le_write_float(i8** %5, float %1)
%7 = getelementptr inbounds [4 x i8], [4 x i8]* %3, i64 0, i64 1
%8 = load i8, i8* %7
%9 = call i32 @le_write32(i8* %0, i8 zeroext %8)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ initAaVal();
int /*<<< orphan*/ initNtChars();
int /*<<< orphan*/ initNtCompTable();
int /*<<< orphan*/ initNtMixedCaseChars();
int /*<<< orphan*/ initNtVal();
void seq_init() {
  static int opened = 0;
  if (!opened) {
    initNtVal();
    initAaVal();
    initNtChars();
    initNtMixedCaseChars();
    initNtCompTable();
    opened = 1;
  }
}


x86 assembly (clang, -O0):
<seq_init>:
push   %rbp
mov    %rsp,%rbp
cmpl   $0x0,0x2ef1(%rip)
jne    118e <seq_init+0x3e>
mov    $0x0,%al
call   1050 <initNtVal@plt>
mov    $0x0,%al
call   1040 <initAaVal@plt>
mov    $0x0,%al
call   1030 <initNtChars@plt>
mov    $0x0,%al
call   1060 <initNtMixedCaseChars@plt>
mov    $0x0,%al
call   1070 <initNtCompTable@plt>
movl   $0x1,0x2ebe(%rip)
pop    %rbp
ret

x86 assembly (clang, -O2):
<seq_init>:
push   %rax
cmpb   $0x0,0x2ef4(%rip)
jne    1184 <seq_init+0x34>
xor    %eax,%eax
call   1050 <initNtVal@plt>
xor    %eax,%eax
call   1040 <initAaVal@plt>
xor    %eax,%eax
call   1030 <initNtChars@plt>
xor    %eax,%eax
call   1060 <initNtMixedCaseChars@plt>
xor    %eax,%eax
call   1070 <initNtCompTable@plt>
movb   $0x1,0x2ec8(%rip)
pop    %rax
ret

LLVM IR (-O0):
@seq_init.opened = internal global i32 0
define void @seq_init() {
%1 = load i32, i32* @seq_init.opened
%2 = icmp ne i32 %1, 0
br i1 %2, label %9, label %3
3: ; preds = %0
%4 = call i32 (...) @initNtVal()
%5 = call i32 (...) @initAaVal()
%6 = call i32 (...) @initNtChars()
%7 = call i32 (...) @initNtMixedCaseChars()
%8 = call i32 (...) @initNtCompTable()
store i32 1, i32* @seq_init.opened
br label %9
9: ; preds = %3, %0
ret void
}

LLVM IR (-O2):
@seq_init.opened = internal unnamed_addr global i1 false
define void @seq_init() {
%1 = load i1, i1* @seq_init.opened
br i1 %1, label %8, label %2
2: ; preds = %0
%3 = tail call i32 (...) @initNtVal()
%4 = tail call i32 (...) @initAaVal()
%5 = tail call i32 (...) @initNtChars()
%6 = tail call i32 (...) @initNtMixedCaseChars()
%7 = tail call i32 (...) @initNtCompTable()
store i1 true, i1* @seq_init.opened
br label %8
8: ; preds = %2, %0
ret void
}
/* Variables and functions */
char *gettext(char *);
int /*<<< orphan*/ printf(char *);
void printUsage() {
  printf(gettext(
      "Usage: e4rat-lite-preload [ option(s) ]\n"
      "\n"
      "-V --version                           print version and exit\n"
      "-h --help                              print help and exit\n"
      "\n"
      "-i --initfile <path to file>           alternate init file\n"
      "-s --startuplog <path to file>         alternate startup log file"
      "\n"));
}


x86 assembly (clang, -O0):
<printUsage>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<printUsage>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
pop    %rax
jmp    1040 <printf@plt>

LLVM IR (-O0):
@.str = [289 x i8] c"Usage: e4rat-lite-preload [ option(s) ]\0A\0A-V --version print version and exit\0A-h --help print help and exit\0A\0A-i --initfile <path to file> alternate init file\0A-s --startuplog <path to file> alternate startup log file\0A\00"
define void @printUsage() {
%1 = call i8* @gettext(i8* getelementptr inbounds ([289 x i8], [289 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* %1)
ret void
}

LLVM IR (-O2):
@.str = [289 x i8] c"Usage: e4rat-lite-preload [ option(s) ]\0A\0A-V --version print version and exit\0A-h --help print help and exit\0A\0A-i --initfile <path to file> alternate init file\0A-s --startuplog <path to file> alternate startup log file\0A\00"
define void @printUsage() {
%1 = tail call i8* @gettext(i8* getelementptr inbounds ([289 x i8], [289 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @printf(i8* dereferenceable(1) %1)
ret void
}
void check_memory_gfile_c(void) {}


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

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

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

LLVM IR (-O2):
define void @check_memory_gfile_c() {
ret void
}
unsigned int count_lines(const char *file) {
  unsigned int cpt = 0;
  if (*file == '\0')
    return cpt;
  while (*file++)
    cpt += (*file == '\n');
  --file;
  return cpt + (*file != '\n');
}


x86 assembly (clang, -O0):
<count_lines>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
jne    112a <count_lines+0x2a>
mov    -0x14(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    118b <count_lines+0x8b>
jmp    112f <count_lines+0x2f>
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x10(%rbp)
cmpb   $0x0,(%rax)
je     1164 <count_lines+0x64>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0xa,%eax
sete   %al
and    $0x1,%al
movzbl %al,%eax
add    -0x14(%rbp),%eax
mov    %eax,-0x14(%rbp)
jmp    112f <count_lines+0x2f>
mov    -0x10(%rbp),%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0x10(%rbp)
mov    -0x14(%rbp),%eax
mov    -0x10(%rbp),%rcx
movsbl (%rcx),%ecx
cmp    $0xa,%ecx
setne  %cl
and    $0x1,%cl
movzbl %cl,%ecx
add    %ecx,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<count_lines>:
cmpb   $0x0,(%rdi)
je     1129 <count_lines+0x29>
add    $0x1,%rdi
xor    %eax,%eax
nopl   0x0(%rax,%rax,1)
movzbl (%rdi),%ecx
xor    %edx,%edx
cmp    $0xa,%cl
sete   %dl
add    %edx,%eax
add    $0x1,%rdi
test   %cl,%cl
jne    1110 <count_lines+0x10>
add    $0x1,%eax
ret
xor    %eax,%eax
ret

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

LLVM IR (-O2):
define i32 @count_lines(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %15, label %4
4: ; preds = %1, %4
%5 = phi i8* [ %7, %4 ], [ %0, %1 ]
%6 = phi i32 [ %11, %4 ], [ 0, %1 ]
%7 = getelementptr inbounds i8, i8* %5, i64 1
%8 = load i8, i8* %7
%9 = icmp eq i8 %8, 10
%10 = zext i1 %9 to i32
%11 = add i32 %6, %10
%12 = icmp eq i8 %8, 0
br i1 %12, label %13, label %4
13: ; preds = %4
%14 = add i32 %11, 1
br label %15
15: ; preds = %1, %13
%16 = phi i32 [ %14, %13 ], [ 0, %1 ]
ret i32 %16
}
/* Variables and functions */
int /*<<< orphan*/ uninit_audio();
int /*<<< orphan*/ uninit_video_input();
void uninit_drivers(void) {
  uninit_audio();
  uninit_video_input();
}


x86 assembly (clang, -O0):
<uninit_drivers>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1040 <uninit_audio@plt>
mov    $0x0,%al
call   1030 <uninit_video_input@plt>
pop    %rbp
ret

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

LLVM IR (-O0):
define void @uninit_drivers() {
%1 = call i32 (...) @uninit_audio()
%2 = call i32 (...) @uninit_video_input()
ret void
}

LLVM IR (-O2):
define void @uninit_drivers() {
%1 = tail call i32 (...) @uninit_audio()
%2 = tail call i32 (...) @uninit_video_input()
ret void
}
int main() {
  int i;
#pragma acc parallel loop
  for (i = 0; i < 8; i++)
    ;
#pragma acc parallel loop
  for (i = 0; i < 8; i++)
    ;
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x8,-0x8(%rbp)
jge    112f <main+0x2f>
jmp    1121 <main+0x21>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1112 <main+0x12>
movl   $0x0,-0x8(%rbp)
cmpl   $0x8,-0x8(%rbp)
jge    1153 <main+0x53>
jmp    1145 <main+0x45>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1136 <main+0x36>
xor    %eax,%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @main() {
ret i32 0
}
void RandomFunc(unsigned short input[1], unsigned short output[1]) {
  unsigned short state[1];
  unsigned short local1;
  {
    state[0UL] = input[0UL] + (unsigned short)2885;
    local1 = 0UL;
    while (local1 < 1UL) {
      if (state[0UL] > local1) {
      }
      local1 += 2UL;
    }
    output[0UL] = state[0UL] * 371143069UL;
  }
}


x86 assembly (clang, -O0):
<RandomFunc>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movzwl (%rax),%eax
add    $0xb45,%eax
mov    %ax,-0x12(%rbp)
movw   $0x0,-0x14(%rbp)
movzwl -0x14(%rbp),%eax
cmp    $0x1,%rax
jae    1156 <RandomFunc+0x56>
movzwl -0x12(%rbp),%eax
movzwl -0x14(%rbp),%ecx
cmp    %ecx,%eax
jle    1145 <RandomFunc+0x45>
jmp    1145 <RandomFunc+0x45>
movzwl -0x14(%rbp),%eax
add    $0x2,%rax
mov    %ax,-0x14(%rbp)
jmp    1122 <RandomFunc+0x22>
movzwl -0x12(%rbp),%eax
imul   $0x161f319d,%rax,%rax
mov    %ax,%cx
mov    -0x10(%rbp),%rax
mov    %cx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<RandomFunc>:
movzwl (%rdi),%eax
imul   $0x319d,%eax,%eax
add    $0x1e51,%eax
mov    %ax,(%rsi)
ret

LLVM IR (-O0):
define void @RandomFunc(i16* %0, i16* %1) {
%3 = alloca i16*
%4 = alloca i16*
%5 = alloca [1 x i16]
%6 = alloca i16
store i16* %0, i16** %3
store i16* %1, i16** %4
%7 = load i16*, i16** %3
%8 = getelementptr inbounds i16, i16* %7, i64 0
%9 = load i16, i16* %8
%10 = zext i16 %9 to i32
%11 = add nsw i32 %10, 2885
%12 = trunc i32 %11 to i16
%13 = getelementptr inbounds [1 x i16], [1 x i16]* %5, i64 0, i64 0
store i16 %12, i16* %13
store i16 0, i16* %6
br label %14
14: ; preds = %26, %2
%15 = load i16, i16* %6
%16 = zext i16 %15 to i64
%17 = icmp ult i64 %16, 1
br i1 %17, label %18, label %31
18: ; preds = %14
%19 = getelementptr inbounds [1 x i16], [1 x i16]* %5, i64 0, i64 0
%20 = load i16, i16* %19
%21 = zext i16 %20 to i32
%22 = load i16, i16* %6
%23 = zext i16 %22 to i32
%24 = icmp sgt i32 %21, %23
br i1 %24, label %25, label %26
25: ; preds = %18
br label %26
26: ; preds = %25, %18
%27 = load i16, i16* %6
%28 = zext i16 %27 to i64
%29 = add i64 %28, 2
%30 = trunc i64 %29 to i16
store i16 %30, i16* %6
br label %14
31: ; preds = %14
%32 = getelementptr inbounds [1 x i16], [1 x i16]* %5, i64 0, i64 0
%33 = load i16, i16* %32
%34 = zext i16 %33 to i64
%35 = mul i64 %34, 371143069
%36 = trunc i64 %35 to i16
%37 = load i16*, i16** %4
%38 = getelementptr inbounds i16, i16* %37, i64 0
store i16 %36, i16* %38
ret void
}

LLVM IR (-O2):
define void @RandomFunc(i16* nocapture %0, i16* nocapture writeonly %1) {
%3 = load i16, i16* %0
%4 = mul i16 %3, 12701
%5 = add i16 %4, 7761
store i16 %5, i16* %1
ret void
}
int si_si_test(int data) {
  printf("Entered %s:\n", __FUNCTION__);
  printf("Data In: %d\n", data);
  printf("Exited  %s:\n", __FUNCTION__);
  return data;
}


x86 assembly (clang, -O0):
<si_si_test>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
lea    0xede(%rip),%rdi
lea    0xee4(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%esi
lea    0xede(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xedd(%rip),%rdi
lea    0xebe(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<si_si_test>:
push   %r14
push   %rbx
push   %rax
mov    %edi,%ebx
lea    0xee3(%rip),%rdi
lea    0xee9(%rip),%r14
mov    %r14,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xee3(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xee0(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %ebx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [13 x i8] c"Entered %s:\0A\00"
@__FUNCTION__.si_si_test = [11 x i8] c"si_si_test\00"
@.str.1 = [13 x i8] c"Data In: %d\0A\00"
@.str.2 = [13 x i8] c"Exited %s:\0A\00"
define i32 @si_si_test(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @__FUNCTION__.si_si_test, i64 0, i64 0))
%4 = load i32, i32* %2
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i32 %4)
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @__FUNCTION__.si_si_test, i64 0, i64 0))
%7 = load i32, i32* %2
ret i32 %7
}

LLVM IR (-O2):
@.str = [13 x i8] c"Entered %s:\0A\00"
@__FUNCTION__.si_si_test = [11 x i8] c"si_si_test\00"
@.str.1 = [13 x i8] c"Data In: %d\0A\00"
@.str.2 = [13 x i8] c"Exited %s:\0A\00"
define i32 @si_si_test(i32 returned %0) {
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @__FUNCTION__.si_si_test, i64 0, i64 0))
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i32 %0)
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @__FUNCTION__.si_si_test, i64 0, i64 0))
ret i32 %0
}
/* Variables and functions */
int /*<<< orphan*/ HplAtm128InterruptPinP__0__IrqSignal__fired();
void HplAtm128InterruptSigP__IntSig0__fired(void) {
  HplAtm128InterruptPinP__0__IrqSignal__fired();
}


x86 assembly (clang, -O0):
<HplAtm128InterruptSigP__IntSig0__fired>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <HplAtm128InterruptPinP__0__IrqSignal__fired@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<HplAtm128InterruptSigP__IntSig0__fired>:
xor    %eax,%eax
jmp    1030 <HplAtm128InterruptPinP__0__IrqSignal__fired@plt>

LLVM IR (-O0):
define void @HplAtm128InterruptSigP__IntSig0__fired() {
%1 = call i32 (...) @HplAtm128InterruptPinP__0__IrqSignal__fired()
ret void
}

LLVM IR (-O2):
define void @HplAtm128InterruptSigP__IntSig0__fired() {
%1 = tail call i32 (...) @HplAtm128InterruptPinP__0__IrqSignal__fired()
ret void
}
int main() {
  char word[] = "Win";
  int *wordInt = &word;
  printf("Size of int %ld, size of char %ld, size of word %ld.\n", sizeof(int),
         sizeof(char), sizeof(word));
  printf("Result of string to int: %d.\n", *wordInt);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    0xedb(%rip),%eax
mov    %eax,-0x8(%rbp)
lea    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
lea    0xecd(%rip),%rdi
mov    $0x4,%ecx
mov    $0x1,%edx
mov    %rcx,%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%esi
lea    0xee2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
mov    $0x4,%esi
mov    $0x1,%edx
mov    $0x4,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf01(%rip),%rdi
mov    $0x6e6957,%esi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@__const.main.word = [4 x i8] c"Win\00"
@.str = [54 x i8] c"Size of int %ld, size of char %ld, size of word %ld.\0A\00"
@.str.1 = [30 x i8] c"Result of string to int: %d.\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [4 x i8]
%3 = alloca i32*
store i32 0, i32* %1
%4 = bitcast [4 x i8]* %2 to i8*
%5 = bitcast [4 x i8]* %2 to i32*
store i32* %5, i32** %3
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str, i64 0, i64 0), i64 4, i64 1, i64 4)
%7 = load i32*, i32** %3
%8 = load i32, i32* %7
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0), i32 %8)
ret i32 0
}

LLVM IR (-O2):
@.str = [54 x i8] c"Size of int %ld, size of char %ld, size of word %ld.\0A\00"
@.str.1 = [30 x i8] c"Result of string to int: %d.\0A\00"
define i32 @main() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @.str, i64 0, i64 0), i64 4, i64 1, i64 4)
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0), i32 7235927)
ret i32 0
}
int bor(int x, int y) { return x || y; }


x86 assembly (clang, -O0):
<bor>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    $0x1,%al
cmpl   $0x0,-0x4(%rbp)
mov    %al,-0x9(%rbp)
jne    1123 <bor+0x23>
cmpl   $0x0,-0x8(%rbp)
setne  %al
mov    %al,-0x9(%rbp)
mov    -0x9(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<bor>:
xor    %eax,%eax
or     %esi,%edi
setne  %al
ret

LLVM IR (-O0):
define i32 @bor(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 = icmp ne i32 %5, 0
br i1 %6, label %10, label %7
7: ; preds = %2
%8 = load i32, i32* %4
%9 = icmp ne i32 %8, 0
br label %10
10: ; preds = %7, %2
%11 = phi i1 [ true, %2 ], [ %9, %7 ]
%12 = zext i1 %11 to i32
ret i32 %12
}

LLVM IR (-O2):
define i32 @bor(i32 %0, i32 %1) {
%3 = or i32 %1, %0
%4 = icmp ne i32 %3, 0
%5 = zext i1 %4 to i32
ret i32 %5
}
void HALT() {}


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

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

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

LLVM IR (-O2):
define void @HALT() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ mcsetstate(int /*<<< orphan*/, int /*<<< orphan*/,
                              int /*<<< orphan*/, int /*<<< orphan*/,
                              int /*<<< orphan*/, int, int /*<<< orphan*/,
                              int /*<<< orphan*/, int /*<<< orphan*/,
                              int /*<<< orphan*/, int /*<<< orphan*/, int);
void mcgenstate(void) { mcsetstate(0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1); }


x86 assembly (clang, -O0):
<mcgenstate>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
xor    %r8d,%r8d
mov    $0x1,%r9d
mov    %r8d,%edi
mov    %r8d,%esi
mov    %r8d,%edx
mov    %r8d,%ecx
movl   $0x0,(%rsp)
movl   $0x0,0x8(%rsp)
movl   $0x0,0x10(%rsp)
movl   $0x0,0x18(%rsp)
movl   $0x0,0x20(%rsp)
movl   $0x1,0x28(%rsp)
call   1030 <mcsetstate@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mcgenstate>:
push   %rax
xor    %edi,%edi
xor    %esi,%esi
xor    %edx,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
mov    $0x1,%r9d
push   $0x1
push   $0x0
push   $0x0
push   $0x0
push   $0x0
push   $0x0
call   1030 <mcsetstate@plt>
add    $0x30,%rsp
pop    %rax
ret

LLVM IR (-O0):
define void @mcgenstate() {
%1 = call i32 @mcsetstate(i32 0, i32 0, i32 0, i32 0, i32 0, i32 1, i32 0, i32 0, i32 0, i32 0, i32 0, i32 1)
ret void
}

LLVM IR (-O2):
define void @mcgenstate() {
%1 = tail call i32 @mcsetstate(i32 0, i32 0, i32 0, i32 0, i32 0, i32 1, i32 0, i32 0, i32 0, i32 0, i32 0, i32 1)
ret void
}
/* Variables and functions */
int perform_check(char const *, int, int, int /*<<< orphan*/);
int ft_checkfile(const char *str) { return (perform_check(str, -1, 1, 0)); }


x86 assembly (clang, -O0):
<ft_checkfile>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0xffffffff,%esi
mov    $0x1,%edx
xor    %ecx,%ecx
call   1030 <perform_check@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ft_checkfile>:
mov    $0xffffffff,%esi
mov    $0x1,%edx
xor    %ecx,%ecx
jmp    1030 <perform_check@plt>

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

LLVM IR (-O2):
define i32 @ft_checkfile(i8* %0) {
%2 = tail call i32 @perform_check(i8* %0, i32 -1, i32 1, i32 0)
ret i32 %2
}
/* Variables and functions */
int /*<<< orphan*/ debug(char *, ...);
int G132_f(char *s) {
  debug("G132_f(const char *s) is not yet implemented!\n");
  debug("%s\n", s);
  return 1;
}


x86 assembly (clang, -O0):
<G132_f>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xedd(%rip),%rdi
mov    $0x0,%al
call   1030 <debug@plt>
mov    -0x8(%rbp),%rsi
lea    0xefa(%rip),%rdi
mov    $0x0,%al
call   1030 <debug@plt>
mov    $0x1,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<G132_f>:
push   %rbx
mov    %rdi,%rbx
lea    0xee5(%rip),%rdi
xor    %eax,%eax
call   1030 <debug@plt>
lea    0xf06(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <debug@plt>
mov    $0x1,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [47 x i8] c"G132_f(const char *s) is not yet implemented!\0A\00"
@.str.1 = [4 x i8] c"%s\0A\00"
define i32 @G132_f(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 (i8*, ...) @debug(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0))
%4 = load i8*, i8** %2
%5 = call i32 (i8*, ...) @debug(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %4)
ret i32 1
}

LLVM IR (-O2):
@.str = [47 x i8] c"G132_f(const char *s) is not yet implemented!\0A\00"
@.str.1 = [4 x i8] c"%s\0A\00"
define i32 @G132_f(i8* %0) {
%2 = tail call i32 (i8*, ...) @debug(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 (i8*, ...) @debug(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %0)
ret i32 1
}
/* Variables and functions */
char *format_initial_capital(char *, char *);
char *mnemonic2upper_case(char *d, char *s) {
  return format_initial_capital(d, s);
}


x86 assembly (clang, -O0):
<mnemonic2upper_case>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1030 <format_initial_capital@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mnemonic2upper_case>:
jmp    1030 <format_initial_capital@plt>

LLVM IR (-O0):
define i8* @mnemonic2upper_case(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 i8* @format_initial_capital(i8* %5, i8* %6)
ret i8* %7
}

LLVM IR (-O2):
define i8* @mnemonic2upper_case(i8* %0, i8* %1) {
%3 = tail call i8* @format_initial_capital(i8* %0, i8* %1)
ret i8* %3
}
/* Variables and functions */
int /*<<< orphan*/ test_check_add_test();
void test_check_add_test_constructor(void) { test_check_add_test(); }


x86 assembly (clang, -O0):
<test_check_add_test_constructor>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <test_check_add_test@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_check_add_test_constructor>:
xor    %eax,%eax
jmp    1030 <test_check_add_test@plt>

LLVM IR (-O0):
define void @test_check_add_test_constructor() {
%1 = call i32 (...) @test_check_add_test()
ret void
}

LLVM IR (-O2):
define void @test_check_add_test_constructor() {
%1 = tail call i32 (...) @test_check_add_test()
ret void
}
/* Variables and functions */
int _ada_use_c2phc4c(int, int *, int *, double *, int /*<<< orphan*/);
int mapcon_solve_system(int puretopdim) {
  int *b, fail;
  double *c;
  fail = _ada_use_c2phc4c(430, &puretopdim, b, c, 0);
  return fail;
}


x86 assembly (clang, -O0):
<mapcon_solve_system>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x10(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    $0x1ae,%edi
lea    -0x4(%rbp),%rsi
xor    %r8d,%r8d
call   1030 <_ada_use_c2phc4c@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mapcon_solve_system>:
push   %rax
mov    %edi,0x4(%rsp)
lea    0x4(%rsp),%rsi
mov    $0x1ae,%edi
xor    %r8d,%r8d
call   1030 <_ada_use_c2phc4c@plt>
pop    %rcx
ret

LLVM IR (-O0):
define i32 @mapcon_solve_system(i32 %0) {
%2 = alloca i32
%3 = alloca i32*
%4 = alloca i32
%5 = alloca double*
store i32 %0, i32* %2
%6 = load i32*, i32** %3
%7 = load double*, double** %5
%8 = call i32 @_ada_use_c2phc4c(i32 430, i32* %2, i32* %6, double* %7, i32 0)
store i32 %8, i32* %4
%9 = load i32, i32* %4
ret i32 %9
}

LLVM IR (-O2):
define i32 @mapcon_solve_system(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = call i32 @_ada_use_c2phc4c(i32 430, i32* %2, i32* undef, double* undef, i32 0)
ret i32 %3
}
void ExttDIDAuxTable(void) {}


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

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

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

LLVM IR (-O2):
define void @ExttDIDAuxTable() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ abort();
int /*<<< orphan*/ exit(int /*<<< orphan*/);
scalar_t__ sub();
int main() {
  if (sub() != 0)
    abort();
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1050 <sub@plt>
cmp    $0x0,%rax
je     1157 <main+0x27>
mov    $0x0,%al
call   1030 <abort@plt>
xor    %edi,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1050 <sub@plt>
test   %rax,%rax
jne    1144 <main+0x14>
xor    %edi,%edi
call   1040 <exit@plt>
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i64 (...) @sub()
%3 = icmp ne i64 %2, 0
br i1 %3, label %4, label %6
4: ; preds = %0
%5 = call i32 (...) @abort()
unreachable
6: ; preds = %0
%7 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i64 (...) @sub()
%2 = icmp eq i64 %1, 0
br i1 %2, label %5, label %3
3: ; preds = %0
%4 = tail call i32 (...) @abort()
unreachable
5: ; preds = %0
%6 = tail call i32 @exit(i32 0)
unreachable
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ isupper(int);
void t_isupper_0x0b() {
  Assert_real((isupper(11) == 0),
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/"
              "dg/z88dk/test/suites/ctype/test_isupper.c",
              60, ("isupper should be 0 for 0x0b"));
}


x86 assembly (clang, -O0):
<t_isupper_0x0b>:
push   %rbp
mov    %rsp,%rbp
mov    $0xb,%edi
call   1030 <isupper@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
lea    0xebf(%rip),%rsi
mov    $0x3c,%edx
lea    0xf5b(%rip),%rcx
call   1040 <Assert_real@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<t_isupper_0x0b>:
push   %rax
mov    $0xb,%edi
call   1030 <isupper@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf66(%rip),%rcx
mov    $0x3c,%edx
pop    %rax
jmp    1040 <Assert_real@plt>

LLVM IR (-O0):
@.str = [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isupper.c\00"
@.str.1 = [29 x i8] c"isupper should be 0 for 0x0b\00"
define void @t_isupper_0x0b() {
%1 = call i64 @isupper(i32 11)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 60, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isupper.c\00"
@.str.1 = [29 x i8] c"isupper should be 0 for 0x0b\00"
define void @t_isupper_0x0b() {
%1 = tail call i64 @isupper(i32 11)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = tail call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 60, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
ret void
}
double rk31sdk_get_sdio_wifi_voltage(void) {
  double voltage;
  voltage = 3000;
  return voltage;
}


x86 assembly (clang, -O0):
<rk31sdk_get_sdio_wifi_voltage>:
push   %rbp
mov    %rsp,%rbp
movsd  0xef4(%rip),%xmm0
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
pop    %rbp
ret

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

LLVM IR (-O0):
define double @rk31sdk_get_sdio_wifi_voltage() {
%1 = alloca double
store double 3.000000e+03, double* %1
%2 = load double, double* %1
ret double %2
}

LLVM IR (-O2):
define double @rk31sdk_get_sdio_wifi_voltage() {
ret double 3.000000e+03
}
int test_imm_C8int32_reg(int val) { return ((val) & (0xC8 << 0)) ? -20 : -40; }


x86 assembly (clang, -O0):
<test_imm_C8int32_reg>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edx
and    $0xc8,%edx
mov    $0xffffffd8,%eax
mov    $0xffffffec,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_imm_C8int32_reg>:
test   $0xc8,%dil
mov    $0xffffffd8,%ecx
mov    $0xffffffec,%eax
cmove  %ecx,%eax
ret

LLVM IR (-O0):
define i32 @test_imm_C8int32_reg(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = and i32 %3, 200
%5 = icmp ne i32 %4, 0
%6 = zext i1 %5 to i64
%7 = select i1 %5, i32 -20, i32 -40
ret i32 %7
}

LLVM IR (-O2):
define i32 @test_imm_C8int32_reg(i32 %0) {
%2 = and i32 %0, 200
%3 = icmp eq i32 %2, 0
%4 = select i1 %3, i32 -40, i32 -20
ret i32 %4
}
/* Variables and functions */
const char *lookup(const char *extension) { return NULL; }


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

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

LLVM IR (-O0):
define i8* @lookup(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
ret i8* null
}

LLVM IR (-O2):
define noalias i8* @lookup(i8* nocapture readnone %0) {
ret i8* null
}
int findletter(int ch, int size, char letters[size]) {
  int i;
  for (i = 0; i < size; i++)
    if (*(letters + i) == ch)
      return 1;
  return 0;
}


x86 assembly (clang, -O0):
<findletter>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1155 <findletter+0x55>
mov    -0x18(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    -0x8(%rbp),%eax
jne    1142 <findletter+0x42>
movl   $0x1,-0x4(%rbp)
jmp    115c <findletter+0x5c>
jmp    1147 <findletter+0x47>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1115 <findletter+0x15>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<findletter>:
test   %esi,%esi
jle    1121 <findletter+0x21>
mov    %esi,%eax
xor    %ecx,%ecx
nopl   0x0(%rax,%rax,1)
movsbl (%rdx,%rcx,1),%esi
cmp    %edi,%esi
je     1124 <findletter+0x24>
add    $0x1,%rcx
cmp    %rcx,%rax
jne    1110 <findletter+0x10>
xor    %eax,%eax
ret
mov    $0x1,%eax
ret

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

LLVM IR (-O2):
define i32 @findletter(i32 %0, i32 %1, i8* nocapture %2) {
%4 = icmp sgt i32 %1, 0
br i1 %4, label %5, label %16
5: ; preds = %3
%6 = zext i32 %1 to i64
br label %9
7: ; preds = %9
%8 = icmp eq i64 %15, %6
br i1 %8, label %16, label %9
9: ; preds = %5, %7
%10 = phi i64 [ 0, %5 ], [ %15, %7 ]
%11 = getelementptr inbounds i8, i8* %2, i64 %10
%12 = load i8, i8* %11
%13 = sext i8 %12 to i32
%14 = icmp eq i32 %13, %0
%15 = add nuw nsw i64 %10, 1
br i1 %14, label %16, label %7
16: ; preds = %9, %7, %3
%17 = phi i32 [ 0, %3 ], [ 0, %7 ], [ 1, %9 ]
ret i32 %17
}
/* Variables and functions */
int /*<<< orphan*/ auth_makeresponse(char *, char *, char *);
scalar_t__ strcmp(char *, char *);
int auth_checkresponse(char *response, char *challenge, char *secret) {
  char correctresponse[(2 * (16) + 6)];
  auth_makeresponse(challenge, secret, correctresponse);
  return (strcmp(response, correctresponse) == 0);
}


x86 assembly (clang, -O0):
<auth_checkresponse>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
lea    -0x40(%rbp),%rdx
call   1040 <auth_makeresponse@plt>
mov    -0x8(%rbp),%rdi
lea    -0x40(%rbp),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<auth_checkresponse>:
push   %r14
push   %rbx
sub    $0x28,%rsp
mov    %rdi,%rbx
mov    %rsp,%r14
mov    %rsi,%rdi
mov    %rdx,%rsi
mov    %r14,%rdx
call   1040 <auth_makeresponse@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1030 <strcmp@plt>
xor    %ecx,%ecx
test   %rax,%rax
sete   %cl
mov    %ecx,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define i32 @auth_checkresponse(i8* %0, i8* %1, i8* %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca [38 x i8]
store i8* %0, i8** %4
store i8* %1, i8** %5
store i8* %2, i8** %6
%8 = load i8*, i8** %5
%9 = load i8*, i8** %6
%10 = getelementptr inbounds [38 x i8], [38 x i8]* %7, i64 0, i64 0
%11 = call i32 @auth_makeresponse(i8* %8, i8* %9, i8* %10)
%12 = load i8*, i8** %4
%13 = getelementptr inbounds [38 x i8], [38 x i8]* %7, i64 0, i64 0
%14 = call i64 @strcmp(i8* %12, i8* %13)
%15 = icmp eq i64 %14, 0
%16 = zext i1 %15 to i32
ret i32 %16
}

LLVM IR (-O2):
define i32 @auth_checkresponse(i8* %0, i8* %1, i8* %2) {
%4 = alloca [38 x i8]
%5 = getelementptr inbounds [38 x i8], [38 x i8]* %4, i64 0, i64 0
%6 = call i32 @auth_makeresponse(i8* %1, i8* %2, i8* %5)
%7 = call i64 @strcmp(i8* %0, i8* %5)
%8 = icmp eq i64 %7, 0
%9 = zext i1 %8 to i32
ret i32 %9
}
/* Type definitions */
union bpf_attr {
  int map_fd;
  int /*<<< orphan*/ next_key;
  int /*<<< orphan*/ key;
};
typedef int /*<<< orphan*/ attr;

/* Variables and functions */
int /*<<< orphan*/ BPF_MAP_GET_NEXT_KEY;
int /*<<< orphan*/ ptr_to_u64(void *);
int syscall(int, int /*<<< orphan*/, union bpf_attr *, int);
int bpf_get_next_key(int fd, void *key, void *next_key) {
  union bpf_attr attr = {
      .map_fd = fd,
      .key = ptr_to_u64(key),
      .next_key = ptr_to_u64(next_key),
  };
  return syscall(321, BPF_MAP_GET_NEXT_KEY, &attr, sizeof(attr));
}


x86 assembly (clang, -O0):
<bpf_get_next_key>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
call   1030 <ptr_to_u64@plt>
mov    %eax,-0x20(%rbp)
mov    0x2ea2(%rip),%rax
mov    (%rax),%esi
mov    $0x141,%edi
lea    -0x20(%rbp),%rdx
mov    $0x4,%ecx
call   1040 <syscall@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<bpf_get_next_key>:
push   %rax
mov    %rdx,%rdi
call   1030 <ptr_to_u64@plt>
mov    %eax,(%rsp)
mov    0x2eb5(%rip),%rax
mov    (%rax),%esi
mov    %rsp,%rdx
mov    $0x141,%edi
mov    $0x4,%ecx
call   1040 <syscall@plt>
pop    %rcx
ret

LLVM IR (-O0):
%union.bpf_attr = type { i32 }
@BPF_MAP_GET_NEXT_KEY = global i32 0
define i32 @bpf_get_next_key(i32 %0, i8* %1, i8* %2) {
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca %union.bpf_attr
store i32 %0, i32* %4
store i8* %1, i8** %5
store i8* %2, i8** %6
%8 = bitcast %union.bpf_attr* %7 to i32*
%9 = load i8*, i8** %6
%10 = call i32 @ptr_to_u64(i8* %9)
store i32 %10, i32* %8
%11 = load i32, i32* @BPF_MAP_GET_NEXT_KEY
%12 = call i32 @syscall(i32 321, i32 %11, %union.bpf_attr* %7, i32 4)
ret i32 %12
}

LLVM IR (-O2):
%union.bpf_attr = type { i32 }
@BPF_MAP_GET_NEXT_KEY = global i32 0
define i32 @bpf_get_next_key(i32 %0, i8* nocapture readnone %1, i8* %2) {
%4 = alloca %union.bpf_attr
%5 = bitcast %union.bpf_attr* %4 to i8*
%6 = getelementptr inbounds %union.bpf_attr, %union.bpf_attr* %4, i64 0, i32 0
%7 = tail call i32 @ptr_to_u64(i8* %2)
store i32 %7, i32* %6
%8 = load i32, i32* @BPF_MAP_GET_NEXT_KEY
%9 = call i32 @syscall(i32 321, i32 %8, %union.bpf_attr* %4, i32 4)
ret i32 %9
}
/* Variables and functions */
int /*<<< orphan*/ SIGINT;
int /*<<< orphan*/ sig_block(int /*<<< orphan*/);
extern void sig_int_block(void) { sig_block(SIGINT); }


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

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

LLVM IR (-O0):
@SIGINT = global i32 0
define void @sig_int_block() {
%1 = load i32, i32* @SIGINT
%2 = call i32 @sig_block(i32 %1)
ret void
}

LLVM IR (-O2):
@SIGINT = global i32 0
define void @sig_int_block() {
%1 = load i32, i32* @SIGINT
%2 = tail call i32 @sig_block(i32 %1)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ openme_callback(char *, void *);
extern void OPENME_CALLBACK_F(char *event_name, void *params) {
  openme_callback(event_name, params);
}


x86 assembly (clang, -O0):
<OPENME_CALLBACK_F>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1030 <openme_callback@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<OPENME_CALLBACK_F>:
jmp    1030 <openme_callback@plt>

LLVM IR (-O0):
define void @OPENME_CALLBACK_F(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 i32 @openme_callback(i8* %5, i8* %6)
ret void
}

LLVM IR (-O2):
define void @OPENME_CALLBACK_F(i8* %0, i8* %1) {
%3 = tail call i32 @openme_callback(i8* %0, i8* %1)
ret void
}
void XCreateFontSet() {}


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

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

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

LLVM IR (-O2):
define void @XCreateFontSet() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ free(char *);
void parameters_free(int argc, char *argv[]) {
  int i;
  for (i = 0; i < argc; i++)
    free(argv[i]);
}


x86 assembly (clang, -O0):
<parameters_free>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1151 <parameters_free+0x41>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   1030 <free@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1126 <parameters_free+0x16>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<parameters_free>:
push   %r15
push   %r14
push   %rbx
test   %edi,%edi
jle    1142 <parameters_free+0x32>
mov    %rsi,%r14
mov    %edi,%r15d
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    (%r14,%rbx,8),%rdi
call   1030 <free@plt>
add    $0x1,%rbx
cmp    %rbx,%r15
jne    1130 <parameters_free+0x20>
pop    %rbx
pop    %r14
pop    %r15
ret

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

LLVM IR (-O2):
define void @parameters_free(i32 %0, i8** nocapture %1) {
%3 = icmp sgt i32 %0, 0
br i1 %3, label %4, label %13
4: ; preds = %2
%5 = zext i32 %0 to i64
br label %6
6: ; preds = %4, %6
%7 = phi i64 [ 0, %4 ], [ %11, %6 ]
%8 = getelementptr inbounds i8*, i8** %1, i64 %7
%9 = load i8*, i8** %8
%10 = tail call i32 @free(i8* %9)
%11 = add nuw nsw i64 %7, 1
%12 = icmp eq i64 %11, %5
br i1 %12, label %13, label %6
13: ; preds = %6, %2
ret void
}
/* Type definitions */
typedef scalar_t__ uint16_t;
typedef int /*<<< orphan*/ field;

/* Variables and functions */
scalar_t__ ntohs(scalar_t__);
int stun_attr_add_str(unsigned char *, size_t *, int, unsigned char *, int);
int stun_attr_add_channel_number_str(unsigned char *buf, size_t *len,
                                     uint16_t chnumber) {
  uint16_t field[2];
  field[0] = ntohs(chnumber);
  field[1] = 0;
  return stun_attr_add_str(buf, len, (0x000C), (unsigned char *)(field),
                           sizeof(field));
}


x86 assembly (clang, -O0):
<stun_attr_add_channel_number_str>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
call   1040 <ntohs@plt>
mov    %rax,-0x30(%rbp)
movq   $0x0,-0x28(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    -0x30(%rbp),%rcx
mov    $0xc,%edx
mov    $0x10,%r8d
call   1030 <stun_attr_add_str@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<stun_attr_add_channel_number_str>:
push   %r14
push   %rbx
sub    $0x18,%rsp
mov    %rsi,%r14
mov    %rdi,%rbx
mov    %rdx,%rdi
call   1040 <ntohs@plt>
mov    %rax,(%rsp)
movq   $0x0,0x8(%rsp)
mov    %rsp,%rcx
mov    %rbx,%rdi
mov    %r14,%rsi
mov    $0xc,%edx
mov    $0x10,%r8d
call   1030 <stun_attr_add_str@plt>
add    $0x18,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define i32 @stun_attr_add_channel_number_str(i8* %0, i64* %1, i64 %2) {
%4 = alloca i8*
%5 = alloca i64*
%6 = alloca i64
%7 = alloca [2 x i64]
store i8* %0, i8** %4
store i64* %1, i64** %5
store i64 %2, i64* %6
%8 = load i64, i64* %6
%9 = call i64 @ntohs(i64 %8)
%10 = getelementptr inbounds [2 x i64], [2 x i64]* %7, i64 0, i64 0
store i64 %9, i64* %10
%11 = getelementptr inbounds [2 x i64], [2 x i64]* %7, i64 0, i64 1
store i64 0, i64* %11
%12 = load i8*, i8** %4
%13 = load i64*, i64** %5
%14 = getelementptr inbounds [2 x i64], [2 x i64]* %7, i64 0, i64 0
%15 = bitcast i64* %14 to i8*
%16 = call i32 @stun_attr_add_str(i8* %12, i64* %13, i32 12, i8* %15, i32 16)
ret i32 %16
}

LLVM IR (-O2):
define i32 @stun_attr_add_channel_number_str(i8* %0, i64* %1, i64 %2) {
%4 = alloca [2 x i64]
%5 = bitcast [2 x i64]* %4 to i8*
%6 = tail call i64 @ntohs(i64 %2)
%7 = getelementptr inbounds [2 x i64], [2 x i64]* %4, i64 0, i64 0
store i64 %6, i64* %7
%8 = getelementptr inbounds [2 x i64], [2 x i64]* %4, i64 0, i64 1
store i64 0, i64* %8
%9 = call i32 @stun_attr_add_str(i8* %0, i64* %1, i32 12, i8* %5, i32 16)
ret i32 %9
}