xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ VIDEO_SET_BLANK;
int ioctl(int, int /*<<< orphan*/, int);
int /*<<< orphan*/ perror(char *);
int videoBlank(int fd, int state) {
  int ans;
  if ((ans = ioctl(fd, VIDEO_SET_BLANK, state)) < 0) {
    perror("VIDEO BLANK: ");
    return -1;
  }
  return 0;
}


x86 assembly (clang, -O0):
<videoBlank>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%edi
mov    0x2eb0(%rip),%rax
mov    (%rax),%esi
mov    -0xc(%rbp),%edx
call   1030 <ioctl@plt>
mov    %eax,-0x10(%rbp)
cmp    $0x0,%eax
jge    1166 <videoBlank+0x46>
lea    0xeab(%rip),%rdi
call   1040 <perror@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    116d <videoBlank+0x4d>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<videoBlank>:
push   %rax
mov    %esi,%edx
mov    0x2ebe(%rip),%rax
mov    (%rax),%esi
call   1030 <ioctl@plt>
mov    %eax,%ecx
xor    %eax,%eax
test   %ecx,%ecx
js     113b <videoBlank+0x1b>
pop    %rcx
ret
lea    0xebe(%rip),%rdi
call   1040 <perror@plt>
mov    $0xffffffff,%eax
pop    %rcx
ret

LLVM IR (-O0):
@VIDEO_SET_BLANK = global i32 0
@.str = [14 x i8] c"VIDEO BLANK: \00"
define i32 @videoBlank(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
%7 = load i32, i32* %4
%8 = load i32, i32* @VIDEO_SET_BLANK
%9 = load i32, i32* %5
%10 = call i32 @ioctl(i32 %7, i32 %8, i32 %9)
store i32 %10, i32* %6
%11 = icmp slt i32 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = call i32 @perror(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
store i32 -1, i32* %3
br label %15
14: ; preds = %2
store i32 0, i32* %3
br label %15
15: ; preds = %14, %12
%16 = load i32, i32* %3
ret i32 %16
}

LLVM IR (-O2):
@VIDEO_SET_BLANK = global i32 0
@.str = [14 x i8] c"VIDEO BLANK: \00"
define i32 @videoBlank(i32 %0, i32 %1) {
%3 = load i32, i32* @VIDEO_SET_BLANK
%4 = tail call i32 @ioctl(i32 %0, i32 %3, i32 %1)
%5 = icmp slt i32 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %2
%7 = tail call i32 @perror(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
br label %8
8: ; preds = %2, %6
%9 = phi i32 [ -1, %6 ], [ 0, %2 ]
ret i32 %9
}
int pnpbios_interface_attach_device(struct pnp_bios_node *node) { return 0; }


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

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

LLVM IR (-O0):
%struct.pnp_bios_node = type opaque
define i32 @pnpbios_interface_attach_device(%struct.pnp_bios_node* %0) {
%2 = alloca %struct.pnp_bios_node*
store %struct.pnp_bios_node* %0, %struct.pnp_bios_node** %2
ret i32 0
}

LLVM IR (-O2):
%struct.pnp_bios_node = type opaque
define i32 @pnpbios_interface_attach_device(%struct.pnp_bios_node* nocapture readnone %0) {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ sprintf(char *, char *, unsigned char);
void sprint_orl_atRi(char *str, unsigned char i) {
  sprintf(str, "ORL   A, @R%X                    ", i);
}


x86 assembly (clang, -O0):
<sprint_orl_atRi>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %sil,%al
mov    %rdi,-0x8(%rbp)
mov    %al,-0x9(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xed3(%rip),%rsi
movzbl -0x9(%rbp),%edx
call   1030 <sprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sprint_orl_atRi>:
mov    %esi,%edx
lea    0xee7(%rip),%rsi
jmp    1030 <sprintf@plt>

LLVM IR (-O0):
@.str = [34 x i8] c"ORL A, @R%X \00"
define void @sprint_orl_atRi(i8* %0, i8 zeroext %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 @sprintf(i8* %5, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), i8 zeroext %6)
ret void
}

LLVM IR (-O2):
@.str = [34 x i8] c"ORL A, @R%X \00"
define void @sprint_orl_atRi(i8* nocapture writeonly %0, i8 zeroext %1) {
%3 = tail call i32 @sprintf(i8* dereferenceable(1) %0, i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), i8 zeroext %1)
ret void
}
/* Variables and functions */
scalar_t__ malloc(size_t);
void *superlu_malloc(size_t size) {
  void *buf;
  buf = (void *)malloc(size);
  return (buf);
}


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

x86 assembly (clang, -O2):
<superlu_malloc>:
jmp    1030 <malloc@plt>

LLVM IR (-O0):
define i8* @superlu_malloc(i64 %0) {
%2 = alloca i64
%3 = alloca i8*
store i64 %0, i64* %2
%4 = load i64, i64* %2
%5 = call i64 @malloc(i64 %4)
%6 = inttoptr i64 %5 to i8*
store i8* %6, i8** %3
%7 = load i8*, i8** %3
ret i8* %7
}

LLVM IR (-O2):
define i8* @superlu_malloc(i64 %0) {
%2 = tail call i64 @malloc(i64 %0)
%3 = inttoptr i64 %2 to i8*
ret i8* %3
}
/* Forward declarations */
typedef struct TYPE_4__ TYPE_2__;
typedef struct TYPE_3__ TYPE_1__;

/* Type definitions */
struct TYPE_3__ {
  scalar_t__ serial;
};
struct TYPE_4__ {
  TYPE_1__ xunmap;
};
typedef TYPE_2__ XEvent;

/* Variables and functions */
unsigned long get_XEvent_xunmap_serial(void *_p) {
  return (unsigned long)((XEvent *)_p)->xunmap.serial;
}


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

x86 assembly (clang, -O2):
<get_XEvent_xunmap_serial>:
mov    (%rdi),%rax
ret

LLVM IR (-O0):
%struct.TYPE_4__ = type { %struct.TYPE_3__ }
%struct.TYPE_3__ = type { i64 }
define i64 @get_XEvent_xunmap_serial(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = bitcast i8* %3 to %struct.TYPE_4__*
%5 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %4, i32 0, i32 0
%6 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %5, i32 0, i32 0
%7 = load i64, i64* %6
ret i64 %7
}

LLVM IR (-O2):
define i64 @get_XEvent_xunmap_serial(i8* nocapture %0) {
%2 = bitcast i8* %0 to i64*
%3 = load i64, i64* %2
ret i64 %3
}
char *stpcpy(register char *s1, const char *s2) {
  while ((*s1++ = *s2++) != 0)
    ;
  return s1 - 1;
}


x86 assembly (clang, -O0):
<stpcpy>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x10(%rbp)
mov    (%rax),%al
mov    -0x8(%rbp),%rcx
mov    %rcx,%rdx
add    $0x1,%rdx
mov    %rdx,-0x8(%rbp)
mov    %al,(%rcx)
movsbl %al,%eax
cmp    $0x0,%eax
je     113f <stpcpy+0x3f>
jmp    110c <stpcpy+0xc>
mov    -0x8(%rbp),%rax
add    $0xffffffffffffffff,%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<stpcpy>:
mov    %rdi,%rax
add    $0xffffffffffffffff,%rax
nopw   0x0(%rax,%rax,1)
movzbl (%rsi),%ecx
add    $0x1,%rsi
mov    %cl,0x1(%rax)
add    $0x1,%rax
test   %cl,%cl
jne    1110 <stpcpy+0x10>
ret

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

LLVM IR (-O2):
define i8* @stpcpy(i8* writeonly %0, i8* nocapture %1) {
br label %3
3: ; preds = %3, %2
%4 = phi i8* [ %0, %2 ], [ %8, %3 ]
%5 = phi i8* [ %1, %2 ], [ %6, %3 ]
%6 = getelementptr inbounds i8, i8* %5, i64 1
%7 = load i8, i8* %5
%8 = getelementptr inbounds i8, i8* %4, i64 1
store i8 %7, i8* %4
%9 = icmp eq i8 %7, 0
br i1 %9, label %10, label %3
10: ; preds = %3
ret i8* %4
}
void test56_On2_targetInit__I() {}


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

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

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

LLVM IR (-O2):
define void @test56_On2_targetInit__I() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ warnx(char *);
void md_init(void) {
  warnx("sysinst has not been properly ported to this platform");
}


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

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

LLVM IR (-O0):
@.str = [54 x i8] c"sysinst has not been properly ported to this platform\00"
define void @md_init() {
%1 = call i32 @warnx(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [54 x i8] c"sysinst has not been properly ported to this platform\00"
define void @md_init() {
%1 = tail call i32 @warnx(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int main(void) {
  int n = 1;
  if (n == 1)
    printf("n is one\n");
  else if (n == 2)
    printf("n is two\n");
  else if (n == 3)
    printf("n is three\n");
  else
    printf("n is not 123\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x8(%rbp)
cmpl   $0x1,-0x8(%rbp)
jne    1141 <main+0x31>
lea    0xec9(%rip),%rdi
call   1030 <printf@plt>
jmp    118d <main+0x7d>
cmpl   $0x2,-0x8(%rbp)
jne    115c <main+0x4c>
lea    0xeb8(%rip),%rdi
call   1030 <printf@plt>
jmp    1188 <main+0x78>
cmpl   $0x3,-0x8(%rbp)
jne    1177 <main+0x67>
lea    0xea7(%rip),%rdi
call   1030 <printf@plt>
jmp    1183 <main+0x73>
lea    0xea2(%rip),%rdi
call   1030 <printf@plt>
jmp    1188 <main+0x78>
jmp    118d <main+0x7d>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [10 x i8] c"n is one\0A\00"
@.str.1 = [10 x i8] c"n is two\0A\00"
@.str.2 = [12 x i8] c"n is three\0A\00"
@.str.3 = [14 x i8] c"n is not 123\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
store i32 1, i32* %2
%3 = load i32, i32* %2
%4 = icmp eq i32 %3, 1
br i1 %4, label %5, label %7
5: ; preds = %0
%6 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
br label %21
7: ; preds = %0
%8 = load i32, i32* %2
%9 = icmp eq i32 %8, 2
br i1 %9, label %10, label %12
10: ; preds = %7
%11 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
br label %20
12: ; preds = %7
%13 = load i32, i32* %2
%14 = icmp eq i32 %13, 3
br i1 %14, label %15, label %17
15: ; preds = %12
%16 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
br label %19
17: ; preds = %12
%18 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0))
br label %19
19: ; preds = %17, %15
br label %20
20: ; preds = %19, %10
br label %21
21: ; preds = %20, %5
ret i32 0
}

LLVM IR (-O2):
@str = [9 x i8] c"n is one\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str, i64 0, i64 0))
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ isbdigit(int);
void t_isbdigit_0xdb() {
  Assert_real((isbdigit(219) == 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_isbdigit.c",
              1100, ("isbdigit should be 0 for 0xdb"));
}


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

x86 assembly (clang, -O2):
<t_isbdigit_0xdb>:
push   %rax
mov    $0xdb,%edi
call   1040 <isbdigit@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf67(%rip),%rcx
mov    $0x44c,%edx
pop    %rax
jmp    1030 <Assert_real@plt>

LLVM IR (-O0):
@.str = [169 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_isbdigit.c\00"
@.str.1 = [30 x i8] c"isbdigit should be 0 for 0xdb\00"
define void @t_isbdigit_0xdb() {
%1 = call i64 @isbdigit(i32 219)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([169 x i8], [169 x i8]* @.str, i64 0, i64 0), i32 1100, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [169 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_isbdigit.c\00"
@.str.1 = [30 x i8] c"isbdigit should be 0 for 0xdb\00"
define void @t_isbdigit_0xdb() {
%1 = tail call i64 @isbdigit(i32 219)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = tail call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([169 x i8], [169 x i8]* @.str, i64 0, i64 0), i32 1100, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ _mm_stream_si64(void *, long long);
void test_stream_si64(long long x, void *y) { _mm_stream_si64(y, x); }


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

x86 assembly (clang, -O2):
<test_stream_si64>:
mov    %rdi,%rax
mov    %rsi,%rdi
mov    %rax,%rsi
jmp    1030 <_mm_stream_si64@plt>

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

LLVM IR (-O2):
define void @test_stream_si64(i64 %0, i8* %1) {
%3 = tail call i32 @_mm_stream_si64(i8* %1, i64 %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char const *);
int /*<<< orphan*/ stderr;
void printHelp(char const *argv[]) {
  fprintf(stderr, "%s [-d] [-n number of sentences] input_file.txt [...] \n",
          argv[0]);
}


x86 assembly (clang, -O0):
<printHelp>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2ebd(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rax
mov    (%rax),%rdx
lea    0xecd(%rip),%rsi
call   1030 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printHelp>:
mov    0x2ec9(%rip),%rax
mov    (%rax),%eax
mov    (%rdi),%rdx
lea    0xedd(%rip),%rsi
mov    %eax,%edi
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [56 x i8] c"%s [-d] [-n number of sentences] input_file.txt [...] \0A\00"
define void @printHelp(i8** %0) {
%2 = alloca i8**
store i8** %0, i8*** %2
%3 = load i32, i32* @stderr
%4 = load i8**, i8*** %2
%5 = getelementptr inbounds i8*, i8** %4, i64 0
%6 = load i8*, i8** %5
%7 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str, i64 0, i64 0), i8* %6)
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [56 x i8] c"%s [-d] [-n number of sentences] input_file.txt [...] \0A\00"
define void @printHelp(i8** nocapture %0) {
%2 = load i32, i32* @stderr
%3 = load i8*, i8** %0
%4 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str, i64 0, i64 0), i8* %3)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ a_0_55(int, char *);
void a_0_61(void) {
  { a_0_55(((((37)))), ". ?"); }
}


x86 assembly (clang, -O0):
<a_0_61>:
push   %rbp
mov    %rsp,%rbp
mov    $0x25,%edi
lea    0xee0(%rip),%rsi
call   1030 <a_0_55@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<a_0_61>:
lea    0xee9(%rip),%rsi
mov    $0x25,%edi
jmp    1030 <a_0_55@plt>

LLVM IR (-O0):
@.str = [4 x i8] c". ?\00"
define void @a_0_61() {
%1 = call i32 @a_0_55(i32 37, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [4 x i8] c". ?\00"
define void @a_0_61() {
%1 = tail call i32 @a_0_55(i32 37, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
ret void
}
int isProgressGroup(int i) {
  if (i == 3 || (i >= 10 && i <= 26))
    return 1;
  return 0;
}


x86 assembly (clang, -O0):
<isProgressGroup>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
cmpl   $0x3,-0x8(%rbp)
je     1125 <isProgressGroup+0x25>
cmpl   $0xa,-0x8(%rbp)
jl     1131 <isProgressGroup+0x31>
cmpl   $0x1a,-0x8(%rbp)
jg     1131 <isProgressGroup+0x31>
movl   $0x1,-0x4(%rbp)
jmp    1138 <isProgressGroup+0x38>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<isProgressGroup>:
cmp    $0x3,%edi
sete   %al
add    $0xfffffff6,%edi
cmp    $0x11,%edi
setb   %cl
or     %al,%cl
movzbl %cl,%eax
ret

LLVM IR (-O0):
define i32 @isProgressGroup(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
%5 = icmp eq i32 %4, 3
br i1 %5, label %12, label %6
6: ; preds = %1
%7 = load i32, i32* %3
%8 = icmp sge i32 %7, 10
br i1 %8, label %9, label %13
9: ; preds = %6
%10 = load i32, i32* %3
%11 = icmp sle i32 %10, 26
br i1 %11, label %12, label %13
12: ; preds = %9, %1
store i32 1, i32* %2
br label %14
13: ; preds = %9, %6
store i32 0, i32* %2
br label %14
14: ; preds = %13, %12
%15 = load i32, i32* %2
ret i32 %15
}

LLVM IR (-O2):
define i32 @isProgressGroup(i32 %0) {
%2 = icmp eq i32 %0, 3
%3 = add i32 %0, -10
%4 = icmp ult i32 %3, 17
%5 = or i1 %2, %4
%6 = zext i1 %5 to i32
ret i32 %6
}
void RTFileSetMode(void) {}


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

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

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

LLVM IR (-O2):
define void @RTFileSetMode() {
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ int8_t;

/* Variables and functions */
int /*<<< orphan*/ free(int /*<<< orphan*/ *);
void heap_free_Pz_N(int8_t *ptr) { free(ptr); }


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

x86 assembly (clang, -O2):
<heap_free_Pz_N>:
jmp    1030 <free@plt>

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

LLVM IR (-O2):
define void @heap_free_Pz_N(i32* nocapture %0) {
%2 = tail call i32 @free(i32* %0)
ret void
}
void g_signal_emit() {}


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

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

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

LLVM IR (-O2):
define void @g_signal_emit() {
ret void
}
signed int f3(signed int arg) { return arg; }


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

x86 assembly (clang, -O2):
<f3>:
mov    %edi,%eax
ret

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

LLVM IR (-O2):
define i32 @f3(i32 returned %0) {
ret i32 %0
}
char **backtrace_symbols(void *const *array, int size) { return 0; }


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

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

LLVM IR (-O0):
define i8** @backtrace_symbols(i8** %0, i32 %1) {
%3 = alloca i8**
%4 = alloca i32
store i8** %0, i8*** %3
store i32 %1, i32* %4
ret i8** null
}

LLVM IR (-O2):
define noalias i8** @backtrace_symbols(i8** nocapture readnone %0, i32 %1) {
ret i8** null
}
/* Variables and functions */
int /*<<< orphan*/ exit(int /*<<< orphan*/);
void shutdown_gra(int i) { exit(0); }


x86 assembly (clang, -O0):
<shutdown_gra>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
xor    %edi,%edi
call   1030 <exit@plt>

x86 assembly (clang, -O2):
<shutdown_gra>:
push   %rax
xor    %edi,%edi
call   1030 <exit@plt>

LLVM IR (-O0):
define void @shutdown_gra(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
define void @shutdown_gra(i32 %0) {
%2 = tail call i32 @exit(i32 0)
unreachable
}
int _xopt_get_size(const char *arg) {
  int size;
  for (size = 0; size < 2; size++) {
    if (arg[size] != '-') {
      break;
    }
  }
  return size;
}


x86 assembly (clang, -O0):
<_xopt_get_size>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0x2,-0xc(%rbp)
jge    1146 <_xopt_get_size+0x46>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x2d,%eax
je     1133 <_xopt_get_size+0x33>
jmp    1146 <_xopt_get_size+0x46>
jmp    1138 <_xopt_get_size+0x38>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    110f <_xopt_get_size+0xf>
mov    -0xc(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<_xopt_get_size>:
xor    %eax,%eax
cmpb   $0x2d,(%rdi)
jne    1113 <_xopt_get_size+0x13>
xor    %eax,%eax
cmpb   $0x2d,0x1(%rdi)
sete   %al
add    $0x1,%eax
ret

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

LLVM IR (-O2):
define i32 @_xopt_get_size(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 45
br i1 %3, label %4, label %9
4: ; preds = %1
%5 = getelementptr inbounds i8, i8* %0, i64 1
%6 = load i8, i8* %5
%7 = icmp eq i8 %6, 45
%8 = select i1 %7, i32 2, i32 1
br label %9
9: ; preds = %4, %1
%10 = phi i32 [ 0, %1 ], [ %8, %4 ]
ret i32 %10
}
/* Variables and functions */
int split(int *, int, int);
void quicksort(int z[], int lower, int upper) {
  int i;
  if (upper > lower) {
    i = split(z, lower, upper);
    quicksort(z, lower, i - 1);
    quicksort(z, i + 1, upper);
  }
}


x86 assembly (clang, -O0):
<quicksort>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
jle    1174 <quicksort+0x54>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
call   1040 <split@plt>
mov    %eax,-0x14(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x14(%rbp),%edx
sub    $0x1,%edx
call   1030 <quicksort@plt>
mov    -0x8(%rbp),%rdi
mov    -0x14(%rbp),%esi
add    $0x1,%esi
mov    -0x10(%rbp),%edx
call   1030 <quicksort@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<quicksort>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
cmp    %esi,%edx
jle    1166 <quicksort+0x46>
mov    %edx,%r14d
mov    %esi,%ebp
mov    %rdi,%r15
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %r15,%rdi
mov    %ebp,%esi
mov    %r14d,%edx
call   1040 <split@plt>
mov    %eax,%ebx
lea    -0x1(%rbx),%edx
mov    %r15,%rdi
mov    %ebp,%esi
call   1030 <quicksort@plt>
add    $0x1,%ebx
mov    %ebx,%ebp
cmp    %r14d,%ebx
jl     1140 <quicksort+0x20>
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
define void @quicksort(i32* %0, i32 %1, i32 %2) {
%4 = icmp sgt i32 %2, %1
br i1 %4, label %5, label %11
5: ; preds = %3, %5
%6 = phi i32 [ %9, %5 ], [ %1, %3 ]
%7 = tail call i32 @split(i32* %0, i32 %6, i32 %2)
%8 = add nsw i32 %7, -1
tail call void @quicksort(i32* %0, i32 %6, i32 %8)
%9 = add nsw i32 %7, 1
%10 = icmp slt i32 %9, %2
br i1 %10, label %5, label %11
11: ; preds = %5, %3
ret void
}
/* Variables and functions */
int /*<<< orphan*/ EXIT_FAILURE;
int /*<<< orphan*/ O_RDONLY;
int /*<<< orphan*/ err(int /*<<< orphan*/, char *);
int open(char *, int /*<<< orphan*/);
int open_kmsg_fd() {
  int fd = open("/proc/kmsg", O_RDONLY);
  if (fd < 0)
    err(EXIT_FAILURE, "open /proc/kmsg");
  return fd;
}


x86 assembly (clang, -O0):
<open_kmsg_fd>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    0x2eb9(%rip),%rax
mov    (%rax),%esi
lea    0xecd(%rip),%rdi
call   1040 <open@plt>
mov    %eax,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
jge    115f <open_kmsg_fd+0x3f>
mov    0x2e87(%rip),%rax
mov    (%rax),%edi
lea    0xea6(%rip),%rsi
call   1030 <err@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<open_kmsg_fd>:
push   %rbx
mov    0x2ec0(%rip),%rax
mov    (%rax),%esi
lea    0xed4(%rip),%rdi
call   1040 <open@plt>
mov    %eax,%ebx
test   %eax,%eax
jns    1151 <open_kmsg_fd+0x31>
mov    0x2e95(%rip),%rax
mov    (%rax),%edi
lea    0xeb4(%rip),%rsi
call   1030 <err@plt>
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [11 x i8] c"/proc/kmsg\00"
@O_RDONLY = global i32 0
@EXIT_FAILURE = global i32 0
@.str.1 = [16 x i8] c"open /proc/kmsg\00"
define i32 @open_kmsg_fd() {
%1 = alloca i32
%2 = load i32, i32* @O_RDONLY
%3 = call i32 @open(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %2)
store i32 %3, i32* %1
%4 = load i32, i32* %1
%5 = icmp slt i32 %4, 0
br i1 %5, label %6, label %9
6: ; preds = %0
%7 = load i32, i32* @EXIT_FAILURE
%8 = call i32 @err(i32 %7, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
br label %9
9: ; preds = %6, %0
%10 = load i32, i32* %1
ret i32 %10
}

LLVM IR (-O2):
@.str = [11 x i8] c"/proc/kmsg\00"
@O_RDONLY = global i32 0
@EXIT_FAILURE = global i32 0
@.str.1 = [16 x i8] c"open /proc/kmsg\00"
define i32 @open_kmsg_fd() {
%1 = load i32, i32* @O_RDONLY
%2 = tail call i32 @open(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = icmp slt i32 %2, 0
br i1 %3, label %4, label %7
4: ; preds = %0
%5 = load i32, i32* @EXIT_FAILURE
%6 = tail call i32 @err(i32 %5, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
br label %7
7: ; preds = %4, %0
ret i32 %2
}
/* Variables and functions */
char const *foo(char const *);
int main(void) {
  const char *input = "Bbb:";
  return foo(input) != input + 2;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <foo@plt>
mov    -0x10(%rbp),%rcx
add    $0x2,%rcx
cmp    %rcx,%rax
setne  %al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <foo@plt>
lea    0xede(%rip),%rdx
xor    %ecx,%ecx
cmp    %rdx,%rax
setne  %cl
mov    %ecx,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [5 x i8] c"Bbb:\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8*
store i32 0, i32* %1
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8** %2
%3 = load i8*, i8** %2
%4 = call i8* @foo(i8* %3)
%5 = load i8*, i8** %2
%6 = getelementptr inbounds i8, i8* %5, i64 2
%7 = icmp ne i8* %4, %6
%8 = zext i1 %7 to i32
ret i32 %8
}

LLVM IR (-O2):
@.str = [5 x i8] c"Bbb:\00"
define i32 @main() {
%1 = tail call i8* @foo(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%2 = icmp ne i8* %1, getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 2)
%3 = zext i1 %2 to i32
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ setvbuf(int /*<<< orphan*/, int /*<<< orphan*/, int,
                           int /*<<< orphan*/);
int /*<<< orphan*/ stdin;
int /*<<< orphan*/ stdout;
__attribute__((constructor)) void setup() {
  setvbuf(stdout, 0, 2, 0);
  setvbuf(stdin, 0, 2, 0);
}


x86 assembly (clang, -O0):
<setup>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ebd(%rip),%rax
mov    (%rax),%edi
xor    %ecx,%ecx
mov    $0x2,%edx
mov    %ecx,%esi
call   1030 <setvbuf@plt>
mov    0x2eb6(%rip),%rax
mov    (%rax),%edi
xor    %ecx,%ecx
mov    $0x2,%edx
mov    %ecx,%esi
call   1030 <setvbuf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<setup>:
push   %rax
mov    0x2ec0(%rip),%rax
mov    (%rax),%edi
xor    %esi,%esi
mov    $0x2,%edx
xor    %ecx,%ecx
call   1030 <setvbuf@plt>
mov    0x2eb9(%rip),%rax
mov    (%rax),%edi
xor    %esi,%esi
mov    $0x2,%edx
xor    %ecx,%ecx
pop    %rax
jmp    1030 <setvbuf@plt>

LLVM IR (-O0):
@stdout = global i32 0
@stdin = global i32 0
@llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @setup, i8* null }]
define void @setup() {
%1 = load i32, i32* @stdout
%2 = call i32 @setvbuf(i32 %1, i32 0, i32 2, i32 0)
%3 = load i32, i32* @stdin
%4 = call i32 @setvbuf(i32 %3, i32 0, i32 2, i32 0)
ret void
}

LLVM IR (-O2):
@stdout = global i32 0
@stdin = global i32 0
@llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @setup, i8* null }]
define void @setup() {
%1 = load i32, i32* @stdout
%2 = tail call i32 @setvbuf(i32 %1, i32 0, i32 2, i32 0)
%3 = load i32, i32* @stdin
%4 = tail call i32 @setvbuf(i32 %3, i32 0, i32 2, i32 0)
ret void
}
/* Type definitions */
struct symbol {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ error(char *, char const *);
int /*<<< orphan*/ st_search(char const *, struct symbol **);
struct symbol *symbol_generic(char const *);
struct symbol *stable_get(const char *name) {
  struct symbol *sy = NULL;
  if (!st_search(name, &sy)) {
    error("undefined reference to %s\n", name);
    sy = symbol_generic(name);
  }
  return sy;
}


x86 assembly (clang, -O0):
<stable_get>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
movq   $0x0,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
lea    -0x10(%rbp),%rsi
call   1040 <st_search@plt>
cmp    $0x0,%eax
jne    1177 <stable_get+0x47>
mov    -0x8(%rbp),%rsi
lea    0xe9b(%rip),%rdi
call   1050 <error@plt>
mov    -0x8(%rbp),%rdi
call   1030 <symbol_generic@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<stable_get>:
push   %rbx
sub    $0x10,%rsp
mov    %rdi,%rbx
movq   $0x0,0x8(%rsp)
lea    0x8(%rsp),%rsi
call   1040 <st_search@plt>
test   %eax,%eax
je     1156 <stable_get+0x26>
mov    0x8(%rsp),%rax
jmp    116d <stable_get+0x3d>
lea    0xea3(%rip),%rdi
mov    %rbx,%rsi
call   1050 <error@plt>
mov    %rbx,%rdi
call   1030 <symbol_generic@plt>
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
%struct.symbol = type { i32 }
@.str = [27 x i8] c"undefined reference to %s\0A\00"
define %struct.symbol* @stable_get(i8* %0) {
%2 = alloca i8*
%3 = alloca %struct.symbol*
store i8* %0, i8** %2
store %struct.symbol* null, %struct.symbol** %3
%4 = load i8*, i8** %2
%5 = call i32 @st_search(i8* %4, %struct.symbol** %3)
%6 = icmp ne i32 %5, 0
br i1 %6, label %12, label %7
7: ; preds = %1
%8 = load i8*, i8** %2
%9 = call i32 @error(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i8* %8)
%10 = load i8*, i8** %2
%11 = call %struct.symbol* @symbol_generic(i8* %10)
store %struct.symbol* %11, %struct.symbol** %3
br label %12
12: ; preds = %7, %1
%13 = load %struct.symbol*, %struct.symbol** %3
ret %struct.symbol* %13
}

LLVM IR (-O2):
%struct.symbol = type { i32 }
@.str = [27 x i8] c"undefined reference to %s\0A\00"
define %struct.symbol* @stable_get(i8* %0) {
%2 = alloca %struct.symbol*
%3 = bitcast %struct.symbol** %2 to i8*
store %struct.symbol* null, %struct.symbol** %2
%4 = call i32 @st_search(i8* %0, %struct.symbol** %2)
%5 = icmp eq i32 %4, 0
br i1 %5, label %8, label %6
6: ; preds = %1
%7 = load %struct.symbol*, %struct.symbol** %2
br label %11
8: ; preds = %1
%9 = call i32 @error(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i8* %0)
%10 = call %struct.symbol* @symbol_generic(i8* %0)
br label %11
11: ; preds = %6, %8
%12 = phi %struct.symbol* [ %7, %6 ], [ %10, %8 ]
ret %struct.symbol* %12
}
/* Variables and functions */
bool is_end(char c) { return c == '\0' || c == '\n' || c == '\r'; }


x86 assembly (clang, -O0):
<is_end>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%ecx
mov    $0x1,%al
cmp    $0x0,%ecx
mov    %al,-0x2(%rbp)
je     113b <is_end+0x3b>
movsbl -0x1(%rbp),%ecx
mov    $0x1,%al
cmp    $0xa,%ecx
mov    %al,-0x2(%rbp)
je     113b <is_end+0x3b>
movsbl -0x1(%rbp),%eax
cmp    $0xd,%eax
sete   %al
mov    %al,-0x2(%rbp)
mov    -0x2(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<is_end>:
mov    $0x1,%eax
test   %dil,%dil
je     1110 <is_end+0x10>
cmp    $0xa,%dil
jne    1111 <is_end+0x11>
ret
xor    %eax,%eax
cmp    $0xd,%dil
sete   %al
ret

LLVM IR (-O0):
define i32 @is_end(i8 signext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = load i8, i8* %2
%4 = sext i8 %3 to i32
%5 = icmp eq i32 %4, 0
br i1 %5, label %14, label %6
6: ; preds = %1
%7 = load i8, i8* %2
%8 = sext i8 %7 to i32
%9 = icmp eq i32 %8, 10
br i1 %9, label %14, label %10
10: ; preds = %6
%11 = load i8, i8* %2
%12 = sext i8 %11 to i32
%13 = icmp eq i32 %12, 13
br label %14
14: ; preds = %10, %6, %1
%15 = phi i1 [ true, %6 ], [ true, %1 ], [ %13, %10 ]
%16 = zext i1 %15 to i32
ret i32 %16
}

LLVM IR (-O2):
define i32 @is_end(i8 signext %0) {
switch i8 %0, label %2 [
i8 10, label %5
i8 0, label %5
]
2: ; preds = %1
%3 = icmp eq i8 %0, 13
%4 = zext i1 %3 to i32
br label %5
5: ; preds = %1, %1, %2
%6 = phi i32 [ 1, %1 ], [ %4, %2 ], [ 1, %1 ]
ret i32 %6
}
void set_printlevel(int lvl) {
  if (lvl < 0)
    lvl = 0;
}


x86 assembly (clang, -O0):
<set_printlevel>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
jge    1118 <set_printlevel+0x18>
movl   $0x0,-0x4(%rbp)
pop    %rbp
ret

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

LLVM IR (-O0):
define void @set_printlevel(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp slt i32 %3, 0
br i1 %4, label %5, label %6
5: ; preds = %1
store i32 0, i32* %2
br label %6
6: ; preds = %5, %1
ret void
}

LLVM IR (-O2):
define void @set_printlevel(i32 %0) {
ret void
}
/* Variables and functions */
int strcasecmp(char const *, char const *);
int rend_cmp_service_ids(const char *one, const char *two) {
  return strcasecmp(one, two);
}


x86 assembly (clang, -O0):
<rend_cmp_service_ids>:
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 <strcasecmp@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rend_cmp_service_ids>:
jmp    1030 <strcasecmp@plt>

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

LLVM IR (-O2):
define i32 @rend_cmp_service_ids(i8* nocapture %0, i8* nocapture %1) {
%3 = tail call i32 @strcasecmp(i8* %0, i8* %1)
ret i32 %3
}
/* Variables and functions */
scalar_t__ EOF;
scalar_t__ fputs(char const *, int /*<<< orphan*/);
int putchar(char);
int /*<<< orphan*/ stdout;
int puts(const char *s) {
  if (fputs(s, stdout) == EOF)
    return EOF;
  return putchar('\n');
}


x86 assembly (clang, -O0):
<puts>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    0x2ea1(%rip),%rax
mov    (%rax),%esi
call   1040 <fputs@plt>
mov    0x2ea3(%rip),%rcx
cmp    (%rcx),%rax
jne    1160 <puts+0x40>
mov    0x2e93(%rip),%rax
mov    (%rax),%rax
mov    %eax,-0x4(%rbp)
jmp    116d <puts+0x4d>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<puts>:
push   %rax
mov    0x2eb0(%rip),%rax
mov    (%rax),%esi
call   1040 <fputs@plt>
mov    0x2eb2(%rip),%rcx
cmp    (%rcx),%rax
jne    113d <puts+0x1d>
pop    %rcx
ret
mov    $0xa,%edi
pop    %rax
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@stdout = global i32 0
@EOF = global i64 0
define i32 @puts(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
store i8* %0, i8** %3
%4 = load i8*, i8** %3
%5 = load i32, i32* @stdout
%6 = call i64 @fputs(i8* %4, i32 %5)
%7 = load i64, i64* @EOF
%8 = icmp eq i64 %6, %7
br i1 %8, label %9, label %12
9: ; preds = %1
%10 = load i64, i64* @EOF
%11 = trunc i64 %10 to i32
store i32 %11, i32* %2
br label %14
12: ; preds = %1
%13 = call i32 @putchar(i8 signext 10)
store i32 %13, i32* %2
br label %14
14: ; preds = %12, %9
%15 = load i32, i32* %2
ret i32 %15
}

LLVM IR (-O2):
@stdout = global i32 0
@EOF = global i64 0
define i32 @puts(i8* %0) {
%2 = load i32, i32* @stdout
%3 = tail call i64 @fputs(i8* %0, i32 %2)
%4 = load i64, i64* @EOF
%5 = icmp eq i64 %3, %4
br i1 %5, label %6, label %8
6: ; preds = %1
%7 = trunc i64 %3 to i32
br label %10
8: ; preds = %1
%9 = tail call i32 @putchar(i8 signext 10)
br label %10
10: ; preds = %8, %6
%11 = phi i32 [ %7, %6 ], [ %9, %8 ]
ret i32 %11
}
/* Type definitions */
struct group {
  int dummy;
};

/* Variables and functions */
int getgrnam_r(const char *name, struct group *grp, char *buffer,
               size_t bufsize, struct group **result) {
  return 0;
}


x86 assembly (clang, -O0):
<getgrnam_r>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
xor    %eax,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
%struct.group = type { i32 }
define i32 @getgrnam_r(i8* %0, %struct.group* %1, i8* %2, i64 %3, %struct.group** %4) {
%6 = alloca i8*
%7 = alloca %struct.group*
%8 = alloca i8*
%9 = alloca i64
%10 = alloca %struct.group**
store i8* %0, i8** %6
store %struct.group* %1, %struct.group** %7
store i8* %2, i8** %8
store i64 %3, i64* %9
store %struct.group** %4, %struct.group*** %10
ret i32 0
}

LLVM IR (-O2):
%struct.group = type { i32 }
define i32 @getgrnam_r(i8* nocapture readnone %0, %struct.group* nocapture readnone %1, i8* nocapture readnone %2, i64 %3, %struct.group** nocapture readnone %4) {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *);
void fmsg(char *buf) { printf("%s\n", buf); }


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

x86 assembly (clang, -O2):
<fmsg>:
mov    %rdi,%rsi
lea    0xee6(%rip),%rdi
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [4 x i8] c"%s\0A\00"
define void @fmsg(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %3)
ret void
}

LLVM IR (-O2):
@.str = [4 x i8] c"%s\0A\00"
define void @fmsg(i8* %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %0)
ret void
}
void clock_init(void) {
  (*(volatile unsigned long *)0xE0100200) = 0x0;
  (*(volatile unsigned long *)0xE0100000) = 0x0000FFFF;
  (*(volatile unsigned long *)0xE0100008) = 0x0000FFFF;
  (*(volatile unsigned long *)0xE0100100) =
      (1 << 31 | 0x7d << 16 | 0x3 << 8 | 0x1);
  (*(volatile unsigned long *)0xE0100108) =
      (1 << 31 | 0x29b << 16 | 0xc << 8 | 0x1);
  (*(volatile unsigned long *)0xE0100200) = 0x10001111;
}


x86 assembly (clang, -O0):
<clock_init>:
push   %rbp
mov    %rsp,%rbp
mov    $0xe0100200,%eax
movq   $0x0,(%rax)
mov    $0xe0100000,%eax
movq   $0xffff,(%rax)
mov    $0xe0100008,%eax
movq   $0xffff,(%rax)
mov    $0xe0100100,%eax
movq   $0xffffffff807d0301,(%rax)
mov    $0xe0100108,%eax
movq   $0xffffffff829b0c01,(%rax)
mov    $0xe0100200,%eax
movq   $0x10001111,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<clock_init>:
mov    $0xe0100200,%eax
movq   $0x0,(%rax)
movq   $0xffff,-0x200(%rax)
movq   $0xffff,-0x1f8(%rax)
movq   $0xffffffff807d0301,-0x100(%rax)
01 03 7d 80
movq   $0xffffffff829b0c01,-0xf8(%rax)
01 0c 9b 82
movq   $0x10001111,(%rax)
ret

LLVM IR (-O0):
define void @clock_init() {
store volatile i64 0, i64* inttoptr (i64 3759145472 to i64*)
store volatile i64 65535, i64* inttoptr (i64 3759144960 to i64*)
store volatile i64 65535, i64* inttoptr (i64 3759144968 to i64*)
store volatile i64 -2139290879, i64* inttoptr (i64 3759145216 to i64*)
store volatile i64 -2103768063, i64* inttoptr (i64 3759145224 to i64*)
store volatile i64 268439825, i64* inttoptr (i64 3759145472 to i64*)
ret void
}

LLVM IR (-O2):
define void @clock_init() {
store volatile i64 0, i64* inttoptr (i64 3759145472 to i64*)
store volatile i64 65535, i64* inttoptr (i64 3759144960 to i64*)
store volatile i64 65535, i64* inttoptr (i64 3759144968 to i64*)
store volatile i64 -2139290879, i64* inttoptr (i64 3759145216 to i64*)
store volatile i64 -2103768063, i64* inttoptr (i64 3759145224 to i64*)
store volatile i64 268439825, i64* inttoptr (i64 3759145472 to i64*)
ret void
}
/* Variables and functions */
float floorf(float const);
float stdlib_base_floorf(const float x) { return floorf(x); }


x86 assembly (clang, -O0):
<stdlib_base_floorf>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
call   1030 <floorf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<stdlib_base_floorf>:
jmp    1030 <floorf@plt>

LLVM IR (-O0):
define float @stdlib_base_floorf(float %0) {
%2 = alloca float
store float %0, float* %2
%3 = load float, float* %2
%4 = call float @llvm.floor.f32(float %3)
ret float %4
}

LLVM IR (-O2):
define float @stdlib_base_floorf(float %0) {
%2 = tail call float @llvm.floor.f32(float %0)
ret float %2
}
double deriv(double y1, double y2, double step) {
  double dydx;
  dydx = (y2 - y1) / (2 * step);
  return dydx;
}


x86 assembly (clang, -O0):
<deriv>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  -0x10(%rbp),%xmm0
subsd  -0x8(%rbp),%xmm0
movsd  0xedb(%rip),%xmm1
mulsd  -0x18(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<deriv>:
subsd  %xmm0,%xmm1
addsd  %xmm2,%xmm2
divsd  %xmm2,%xmm1
movapd %xmm1,%xmm0
ret

LLVM IR (-O0):
define double @deriv(double %0, double %1, double %2) {
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca double
store double %0, double* %4
store double %1, double* %5
store double %2, double* %6
%8 = load double, double* %5
%9 = load double, double* %4
%10 = fsub double %8, %9
%11 = load double, double* %6
%12 = fmul double 2.000000e+00, %11
%13 = fdiv double %10, %12
store double %13, double* %7
%14 = load double, double* %7
ret double %14
}

LLVM IR (-O2):
define double @deriv(double %0, double %1, double %2) {
%4 = fsub double %1, %0
%5 = fmul double %2, 2.000000e+00
%6 = fdiv double %4, %5
ret double %6
}
/* Variables and functions */
int /*<<< orphan*/ memset(char *, int /*<<< orphan*/, size_t);
void __e8_zero_mem(char *v, size_t l) { memset(v, 0, l); }


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

x86 assembly (clang, -O2):
<__e8_zero_mem>:
mov    %rsi,%rdx
xor    %esi,%esi
jmp    1030 <memset@plt>

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

LLVM IR (-O2):
define void @__e8_zero_mem(i8* %0, i64 %1) {
%3 = tail call i32 @memset(i8* %0, i32 0, i64 %1)
ret void
}
/* Variables and functions */
int ePar(int);
int eImpar(int numero) {
  if (numero == 0)
    return 0;
  else
    return ePar(numero - 1);
}


x86 assembly (clang, -O0):
<eImpar>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jne    1131 <eImpar+0x21>
movl   $0x0,-0x4(%rbp)
jmp    113f <eImpar+0x2f>
mov    -0x8(%rbp),%edi
sub    $0x1,%edi
call   1030 <ePar@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<eImpar>:
test   %edi,%edi
je     111c <eImpar+0xc>
add    $0xffffffff,%edi
jmp    1030 <ePar@plt>
xor    %eax,%eax
ret

LLVM IR (-O0):
define i32 @eImpar(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
%5 = icmp eq i32 %4, 0
br i1 %5, label %6, label %7
6: ; preds = %1
store i32 0, i32* %2
br label %11
7: ; preds = %1
%8 = load i32, i32* %3
%9 = sub nsw i32 %8, 1
%10 = call i32 @ePar(i32 %9)
store i32 %10, i32* %2
br label %11
11: ; preds = %7, %6
%12 = load i32, i32* %2
ret i32 %12
}

LLVM IR (-O2):
define i32 @eImpar(i32 %0) {
%2 = icmp eq i32 %0, 0
br i1 %2, label %6, label %3
3: ; preds = %1
%4 = add nsw i32 %0, -1
%5 = tail call i32 @ePar(i32 %4)
br label %6
6: ; preds = %1, %3
%7 = phi i32 [ %5, %3 ], [ 0, %1 ]
ret i32 %7
}
void f_a(int i) {}


x86 assembly (clang, -O0):
<f_a>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
pop    %rbp
ret

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

LLVM IR (-O0):
define void @f_a(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
ret void
}

LLVM IR (-O2):
define void @f_a(i32 %0) {
ret void
}
void __attribute__((warning(
    "curl_easy_setopt expects a curl_debug_callback argument for this option")))
__attribute__((unused)) __attribute__((no))
_curl_easy_setopt_err_debug_cb(void) {
  __asm__("");
}


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

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

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

LLVM IR (-O2):
define void @_curl_easy_setopt_err_debug_cb() {
tail call void asm sideeffect "", "~{dirflag},~{fpsr},~{flags}"()
ret void
}