xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ func();
void main(void) {
  int x;
  func();
  return;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1030 <func@plt>
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define void @main() {
%1 = alloca i32
%2 = call i32 (...) @func()
ret void
}

LLVM IR (-O2):
define void @main() {
%1 = tail call i32 (...) @func()
ret void
}
/* Variables and functions */
#define SIGINT 128
int /*<<< orphan*/ handleSIGINT();
void signalsHandler(int signo) {
  switch (signo) {
  case SIGINT:
    handleSIGINT();
    break;
  default:
    return;
  }
}


x86 assembly (clang, -O0):
<signalsHandler>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
sub    $0x80,%eax
jne    113a <signalsHandler+0x2a>
jmp    112e <signalsHandler+0x1e>
mov    $0x0,%al
call   1030 <handleSIGINT@plt>
jmp    113f <signalsHandler+0x2f>
jmp    113f <signalsHandler+0x2f>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<signalsHandler>:
cmp    $0x80,%edi
jne    111f <signalsHandler+0xf>
xor    %eax,%eax
jmp    1030 <handleSIGINT@plt>
ret

LLVM IR (-O0):
define void @signalsHandler(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
switch i32 %3, label %6 [
i32 128, label %4
]
4: ; preds = %1
%5 = call i32 (...) @handleSIGINT()
br label %7
6: ; preds = %1
br label %7
7: ; preds = %6, %4
ret void
}

LLVM IR (-O2):
define void @signalsHandler(i32 %0) {
%2 = icmp eq i32 %0, 128
br i1 %2, label %3, label %5
3: ; preds = %1
%4 = tail call i32 (...) @handleSIGINT()
br label %5
5: ; preds = %1, %3
ret void
}
/* Variables and functions */
scalar_t__ strcmp(char const *, char const *);
int eq_str(const char *a, const char *b) { return strcmp(a, b) == 0; }


x86 assembly (clang, -O0):
<eq_str>:
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 <strcmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<eq_str>:
push   %rax
call   1030 <strcmp@plt>
xor    %ecx,%ecx
test   %rax,%rax
sete   %cl
mov    %ecx,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @eq_str(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%5 = load i8*, i8** %3
%6 = load i8*, i8** %4
%7 = call i64 @strcmp(i8* %5, i8* %6)
%8 = icmp eq i64 %7, 0
%9 = zext i1 %8 to i32
ret i32 %9
}

LLVM IR (-O2):
define i32 @eq_str(i8* %0, i8* %1) {
%3 = tail call i64 @strcmp(i8* %0, i8* %1)
%4 = icmp eq i64 %3, 0
%5 = zext i1 %4 to i32
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ go_south_east(int *, int *);
int /*<<< orphan*/ printf(char *, int, int);
int main() {
  int latitude = 32;
  int longitude = -64;
  go_south_east(&latitude, &longitude);
  printf("Now at: (%i, %i)\n", latitude, longitude);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x20,-0x8(%rbp)
movl   $0xffffffc0,-0xc(%rbp)
lea    -0x8(%rbp),%rdi
lea    -0xc(%rbp),%rsi
call   1040 <go_south_east@plt>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    0xea9(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
movl   $0x20,0x4(%rsp)
movl   $0xffffffc0,(%rsp)
lea    0x4(%rsp),%rdi
mov    %rsp,%rsi
call   1040 <go_south_east@plt>
mov    0x4(%rsp),%esi
mov    (%rsp),%edx
lea    0xeb5(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [18 x i8] c"Now at: (%i, %i)\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
store i32 32, i32* %2
store i32 -64, i32* %3
%4 = call i32 @go_south_east(i32* %2, i32* %3)
%5 = load i32, i32* %2
%6 = load i32, i32* %3
%7 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 %5, i32 %6)
ret i32 0
}

LLVM IR (-O2):
@.str = [18 x i8] c"Now at: (%i, %i)\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = bitcast i32* %1 to i8*
store i32 32, i32* %1
%4 = bitcast i32* %2 to i8*
store i32 -64, i32* %2
%5 = call i32 @go_south_east(i32* %1, i32* %2)
%6 = load i32, i32* %1
%7 = load i32, i32* %2
%8 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 %6, i32 %7)
ret i32 0
}
void iwl_dump_nic_event_log(struct iwl_priv *priv) {}


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

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

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

LLVM IR (-O2):
%struct.iwl_priv = type opaque
define void @iwl_dump_nic_event_log(%struct.iwl_priv* nocapture %0) {
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ uint32_t;
typedef int /*<<< orphan*/ int32_t;

/* Variables and functions */
int /*<<< orphan*/ _mm_cvtt_ss2si(int /*<<< orphan*/);
int /*<<< orphan*/ _mm_load_ss(float *);
int32_t determ_trunc_float_int(uint32_t a) {
  return _mm_cvtt_ss2si(_mm_load_ss((float *)&a));
}


x86 assembly (clang, -O0):
<determ_trunc_float_int>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
lea    -0x4(%rbp),%rdi
call   1040 <_mm_load_ss@plt>
mov    %eax,%edi
call   1030 <_mm_cvtt_ss2si@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<determ_trunc_float_int>:
push   %rax
mov    %edi,0x4(%rsp)
lea    0x4(%rsp),%rdi
call   1040 <_mm_load_ss@plt>
mov    %eax,%edi
call   1030 <_mm_cvtt_ss2si@plt>
pop    %rcx
ret

LLVM IR (-O0):
define i32 @determ_trunc_float_int(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = bitcast i32* %2 to float*
%4 = call i32 @_mm_load_ss(float* %3)
%5 = call i32 @_mm_cvtt_ss2si(i32 %4)
ret i32 %5
}

LLVM IR (-O2):
define i32 @determ_trunc_float_int(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = bitcast i32* %2 to float*
%4 = call i32 @_mm_load_ss(float* %3)
%5 = call i32 @_mm_cvtt_ss2si(i32 %4)
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ free(void *);
void free_dax(void *val) {
  if (val)
    free(val);
}


x86 assembly (clang, -O0):
<free_dax>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     1130 <free_dax+0x20>
mov    -0x8(%rbp),%rdi
call   1030 <free@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<free_dax>:
test   %rdi,%rdi
je     111a <free_dax+0xa>
jmp    1030 <free@plt>
ret

LLVM IR (-O0):
define void @free_dax(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = icmp ne i8* %3, null
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load i8*, i8** %2
%7 = call i32 @free(i8* %6)
br label %8
8: ; preds = %5, %1
ret void
}

LLVM IR (-O2):
define void @free_dax(i8* %0) {
%2 = icmp eq i8* %0, null
br i1 %2, label %5, label %3
3: ; preds = %1
%4 = tail call i32 @free(i8* %0)
br label %5
5: ; preds = %3, %1
ret void
}
/* Variables and functions */
int /*<<< orphan*/ EXIT_SUCCESS;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *);
void mrsh_exit(char **args) {
  printf("\n");
  exit(EXIT_SUCCESS);
}


x86 assembly (clang, -O0):
<mrsh_exit>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xecd(%rip),%rdi
call   1030 <printf@plt>
mov    0x2ea1(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<mrsh_exit>:
push   %rax
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x2eae(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

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

LLVM IR (-O2):
@EXIT_SUCCESS = global i32 0
define void @mrsh_exit(i8** nocapture readnone %0) {
%2 = tail call i32 @putchar(i32 10)
%3 = load i32, i32* @EXIT_SUCCESS
%4 = tail call i32 @exit(i32 %3)
unreachable
}
int main(int argc, char **argv) {
  long double x = 1.48734 + (long double)argc;
  return (int)__builtin_sqrtl(x);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x28(%rbp)
fildl  -0x28(%rbp)
fldl   0xecb(%rip)
faddp  %st,%st(1)
fstpt  -0x20(%rbp)
fldt   -0x20(%rbp)
mov    %rsp,%rax
fstpt  (%rax)
call   1030 <sqrtl@plt>
fld    %st(0)
fstp   %st(0)
fnstcw -0x2a(%rbp)
movzwl -0x2a(%rbp),%eax
or     $0xc00,%eax
mov    %ax,-0x2c(%rbp)
fldcw  -0x2c(%rbp)
fistpl -0x24(%rbp)
fldcw  -0x2a(%rbp)
mov    -0x24(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x28,%rsp
mov    %edi,0x20(%rsp)
fildl  0x20(%rsp)
faddl  0xede(%rip)
fstpt  (%rsp)
call   1030 <sqrtl@plt>
fnstcw 0x1c(%rsp)
movzwl 0x1c(%rsp),%eax
or     $0xc00,%eax
mov    %ax,0x1e(%rsp)
fldcw  0x1e(%rsp)
fistpl 0x24(%rsp)
fldcw  0x1c(%rsp)
mov    0x24(%rsp),%eax
add    $0x28,%rsp
ret

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca x86_fp80
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%7 = load i32, i32* %4
%8 = sitofp i32 %7 to x86_fp80
%9 = fadd x86_fp80 0xK3FFFBE612839042D9000, %8
store x86_fp80 %9, x86_fp80* %6
%10 = load x86_fp80, x86_fp80* %6
%11 = call x86_fp80 @sqrtl(x86_fp80 %10)
%12 = fptosi x86_fp80 %11 to i32
ret i32 %12
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = sitofp i32 %0 to x86_fp80
%4 = fadd x86_fp80 %3, 0xK3FFFBE612839042D9000
%5 = tail call x86_fp80 @sqrtl(x86_fp80 %4)
%6 = fptosi x86_fp80 %5 to i32
ret i32 %6
}
/* Variables and functions */
void *shmat(int, void *, int /*<<< orphan*/);
void *get_shmem_pointer(int shmid) { return shmat(shmid, (void *)0, 0); }


x86 assembly (clang, -O0):
<get_shmem_pointer>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
xor    %eax,%eax
mov    %eax,%esi
xor    %edx,%edx
call   1030 <shmat@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_shmem_pointer>:
xor    %esi,%esi
xor    %edx,%edx
jmp    1030 <shmat@plt>

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

LLVM IR (-O2):
define i8* @get_shmem_pointer(i32 %0) {
%2 = tail call i8* @shmat(i32 %0, i8* null, i32 0)
ret i8* %2
}
void fa57(void) {
P0A:
  goto P0A;
  ({
    a:
      ({
        P012A:
          goto P012A;
          0;
      });
    P01B:
      goto P01B;
      ({
        p013A:
          goto p013A;
          goto a;
        P013A:
          goto P013A;
          0;
      });
    P01C:
      goto P01C;
      0;
  });
P0B:
  goto P0B;
  ({
    P02A:
      goto P02A;
      ({
        P024A:
          goto P024A;
          0;
      });
    P02B:
      goto P02B;
      ({
        P025A:
          goto P025A;
          0;
      });
    P02C:
      goto P02C;
      0;
  });
P0C:
  goto P0C;
  0;
P0D:
  goto P0D;
}


x86 assembly (clang, -O0):
<fa57>:
push   %rbp
mov    %rsp,%rbp
jmp    1104 <fa57+0x4>

x86 assembly (clang, -O2):
<fa57>:
jmp    1100 <fa57>

LLVM IR (-O0):
define void @fa57() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
br label %7
7: ; preds = %7, %0
br label %7
8: ; No predecessors!
br label %9
9: ; preds = %8
br label %10
10: ; preds = %10, %9
br label %10
11: ; preds = %11
br label %11
12: ; No predecessors!
br label %13
13: ; preds = %13, %12
br label %13
14: ; preds = %14
br label %14
15: ; preds = %15
br label %15
16: ; preds = %16
br label %16
17: ; No predecessors!
br label %18
18: ; preds = %18, %17
br label %18
19: ; No predecessors!
br label %20
20: ; preds = %20, %19
br label %20
21: ; preds = %21
br label %21
22: ; No predecessors!
br label %23
23: ; preds = %23, %22
br label %23
24: ; preds = %24
br label %24
25: ; preds = %25
br label %25
26: ; preds = %26
br label %26
}

LLVM IR (-O2):
define void @fa57() {
br label %1
1: ; preds = %1, %0
br label %1
}
/* Variables and functions */
int /*<<< orphan*/ _exit(int);
int strlen(char const *);
int /*<<< orphan*/ write(int, char const *, int);
void u_fatal(const char *msg) {
  write(2,
        "urlader"
        ": ",
        sizeof("urlader"
               ": ") -
            1);
  write(2, msg, strlen(msg));
  write(2, "\n", 1);
  _exit(1);
}


x86 assembly (clang, -O0):
<u_fatal>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    $0x2,%edi
lea    0xeb8(%rip),%rsi
mov    $0x9,%edx
call   1040 <write@plt>
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1050 <strlen@plt>
mov    -0x10(%rbp),%rsi
mov    %eax,%edx
mov    $0x2,%edi
call   1040 <write@plt>
mov    $0x2,%edi
lea    0xe8b(%rip),%rsi
mov    $0x1,%edx
call   1040 <write@plt>
mov    $0x1,%edi
call   1030 <_exit@plt>

x86 assembly (clang, -O2):
<u_fatal>:
push   %rbx
mov    %rdi,%rbx
lea    0xec5(%rip),%rsi
mov    $0x2,%edi
mov    $0x9,%edx
call   1040 <write@plt>
mov    %rbx,%rdi
call   1050 <strlen@plt>
mov    $0x2,%edi
mov    %rbx,%rsi
mov    %eax,%edx
call   1040 <write@plt>
lea    0xea2(%rip),%rsi
mov    $0x2,%edi
mov    $0x1,%edx
call   1040 <write@plt>
mov    $0x1,%edi
call   1030 <_exit@plt>

LLVM IR (-O0):
@.str = [10 x i8] c"urlader: \00"
@.str.1 = [2 x i8] c"\0A\00"
define void @u_fatal(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 @write(i32 2, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 9)
%4 = load i8*, i8** %2
%5 = load i8*, i8** %2
%6 = call i32 @strlen(i8* %5)
%7 = call i32 @write(i32 2, i8* %4, i32 %6)
%8 = call i32 @write(i32 2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32 1)
%9 = call i32 @_exit(i32 1)
unreachable
}

LLVM IR (-O2):
@.str = [10 x i8] c"urlader: \00"
@.str.1 = [2 x i8] c"\0A\00"
define void @u_fatal(i8* %0) {
%2 = tail call i32 @write(i32 2, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 9)
%3 = tail call i32 @strlen(i8* %0)
%4 = tail call i32 @write(i32 2, i8* %0, i32 %3)
%5 = tail call i32 @write(i32 2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32 1)
%6 = tail call i32 @_exit(i32 1)
unreachable
}
/* Type definitions */
typedef int /*<<< orphan*/ pthread_key_t;

/* Variables and functions */
int pthread_key_delete(pthread_key_t key) {}


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

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

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

LLVM IR (-O2):
define i32 @pthread_key_delete(i32 %0) {
ret i32 undef
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int, int);
int main(void) {
  int x = 1;
  int y = 2;
  printf("x = %d, y = %d\n", x, y);
  do {
    int temp = x;
    x = y;
    y = temp;
  } while (0);
  printf("x = %d, y = %d\n", x, y);
  return 0;
}


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

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

LLVM IR (-O0):
@.str = [16 x i8] c"x = %d, y = %d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
store i32 1, i32* %2
store i32 2, i32* %3
%5 = load i32, i32* %2
%6 = load i32, i32* %3
%7 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32 %5, i32 %6)
br label %8
8: ; preds = %0
%9 = load i32, i32* %2
store i32 %9, i32* %4
%10 = load i32, i32* %3
store i32 %10, i32* %2
%11 = load i32, i32* %4
store i32 %11, i32* %3
br label %12
12: ; preds = %8
%13 = load i32, i32* %2
%14 = load i32, i32* %3
%15 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32 %13, i32 %14)
ret i32 0
}

LLVM IR (-O2):
@.str = [16 x i8] c"x = %d, y = %d\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32 1, i32 2)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32 2, i32 1)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *);
void exitfunc24(void) {
  printf("Executing exitfunc24.\n");
  exit(0);
}


x86 assembly (clang, -O0):
<exitfunc24>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
xor    %edi,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<exitfunc24>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [23 x i8] c"Executing exitfunc24.\0A\00"
define void @exitfunc24() {
%1 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@str = [22 x i8] c"Executing exitfunc24.\00"
define void @exitfunc24() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @exit(i32 0)
unreachable
}
/* Type definitions */
struct mailimf_date_time {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ free(struct mailimf_date_time *);
void mailimf_date_time_free(struct mailimf_date_time *date_time) {
  free(date_time);
}


x86 assembly (clang, -O0):
<mailimf_date_time_free>:
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):
<mailimf_date_time_free>:
jmp    1030 <free@plt>

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

LLVM IR (-O2):
%struct.mailimf_date_time = type { i32 }
define void @mailimf_date_time_free(%struct.mailimf_date_time* nocapture %0) {
%2 = tail call i32 @free(%struct.mailimf_date_time* %0)
ret void
}
/* Variables and functions */
int _ada_use_c2phc4c(int, int *, int *, double *, int /*<<< orphan*/);
int numbtrop_dobldobl_dimension(int *dim) {
  int fail, *b;
  double *c;
  fail = _ada_use_c2phc4c(730, dim, b, c, 0);
  return fail;
}


x86 assembly (clang, -O0):
<numbtrop_dobldobl_dimension>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    $0x2da,%edi
xor    %r8d,%r8d
call   1030 <_ada_use_c2phc4c@plt>
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<numbtrop_dobldobl_dimension>:
mov    %rdi,%rsi
mov    $0x2da,%edi
xor    %r8d,%r8d
jmp    1030 <_ada_use_c2phc4c@plt>

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

LLVM IR (-O2):
define i32 @numbtrop_dobldobl_dimension(i32* %0) {
%2 = tail call i32 @_ada_use_c2phc4c(i32 730, i32* %0, i32* undef, double* undef, i32 0)
ret i32 %2
}
/* Variables and functions */
int /*<<< orphan*/ logDebug(char *, int, int);
int send(int, void const *, int, int /*<<< orphan*/);
int ipsend(int sd, const void *buf, int len) {
  logDebug("ipsend(%d, buf, %d)\n", sd, len);
  return send(sd, buf, len, 0);
}


x86 assembly (clang, -O0):
<ipsend>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x4(%rbp),%esi
mov    -0x14(%rbp),%edx
lea    0xec1(%rip),%rdi
call   1040 <logDebug@plt>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
xor    %ecx,%ecx
call   1030 <send@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ipsend>:
push   %rbp
push   %r14
push   %rbx
mov    %edx,%ebx
mov    %rsi,%r14
mov    %edi,%ebp
lea    0xece(%rip),%rdi
mov    %ebp,%esi
call   1040 <logDebug@plt>
mov    %ebp,%edi
mov    %r14,%rsi
mov    %ebx,%edx
xor    %ecx,%ecx
pop    %rbx
pop    %r14
pop    %rbp
jmp    1030 <send@plt>

LLVM IR (-O0):
@.str = [21 x i8] c"ipsend(%d, buf, %d)\0A\00"
define i32 @ipsend(i32 %0, i8* %1, i32 %2) {
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i32
store i32 %0, i32* %4
store i8* %1, i8** %5
store i32 %2, i32* %6
%7 = load i32, i32* %4
%8 = load i32, i32* %6
%9 = call i32 @logDebug(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i32 %7, i32 %8)
%10 = load i32, i32* %4
%11 = load i8*, i8** %5
%12 = load i32, i32* %6
%13 = call i32 @send(i32 %10, i8* %11, i32 %12, i32 0)
ret i32 %13
}

LLVM IR (-O2):
@.str = [21 x i8] c"ipsend(%d, buf, %d)\0A\00"
define i32 @ipsend(i32 %0, i8* %1, i32 %2) {
%4 = tail call i32 @logDebug(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i32 %0, i32 %2)
%5 = tail call i32 @send(i32 %0, i8* %1, i32 %2, i32 0)
ret i32 %5
}
int mus_little_endian_int(unsigned char *inp) {
  int o;
  unsigned char *outp;
  outp = (unsigned char *)&o;
  outp[0] = inp[3];
  outp[1] = inp[2];
  outp[2] = inp[1];
  outp[3] = inp[0];
  return (o);
}


x86 assembly (clang, -O0):
<mus_little_endian_int>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
lea    -0xc(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%rax
mov    0x3(%rax),%cl
mov    -0x18(%rbp),%rax
mov    %cl,(%rax)
mov    -0x8(%rbp),%rax
mov    0x2(%rax),%cl
mov    -0x18(%rbp),%rax
mov    %cl,0x1(%rax)
mov    -0x8(%rbp),%rax
mov    0x1(%rax),%cl
mov    -0x18(%rbp),%rax
mov    %cl,0x2(%rax)
mov    -0x8(%rbp),%rax
mov    (%rax),%cl
mov    -0x18(%rbp),%rax
mov    %cl,0x3(%rax)
mov    -0xc(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<mus_little_endian_int>:
mov    (%rdi),%eax
bswap  %eax
ret

LLVM IR (-O0):
define i32 @mus_little_endian_int(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
%4 = alloca i8*
store i8* %0, i8** %2
%5 = bitcast i32* %3 to i8*
store i8* %5, i8** %4
%6 = load i8*, i8** %2
%7 = getelementptr inbounds i8, i8* %6, i64 3
%8 = load i8, i8* %7
%9 = load i8*, i8** %4
%10 = getelementptr inbounds i8, i8* %9, i64 0
store i8 %8, i8* %10
%11 = load i8*, i8** %2
%12 = getelementptr inbounds i8, i8* %11, i64 2
%13 = load i8, i8* %12
%14 = load i8*, i8** %4
%15 = getelementptr inbounds i8, i8* %14, i64 1
store i8 %13, i8* %15
%16 = load i8*, i8** %2
%17 = getelementptr inbounds i8, i8* %16, i64 1
%18 = load i8, i8* %17
%19 = load i8*, i8** %4
%20 = getelementptr inbounds i8, i8* %19, i64 2
store i8 %18, i8* %20
%21 = load i8*, i8** %2
%22 = getelementptr inbounds i8, i8* %21, i64 0
%23 = load i8, i8* %22
%24 = load i8*, i8** %4
%25 = getelementptr inbounds i8, i8* %24, i64 3
store i8 %23, i8* %25
%26 = load i32, i32* %3
ret i32 %26
}

LLVM IR (-O2):
define i32 @mus_little_endian_int(i8* nocapture %0) {
%2 = getelementptr inbounds i8, i8* %0, i64 3
%3 = load i8, i8* %2
%4 = getelementptr inbounds i8, i8* %0, i64 2
%5 = load i8, i8* %4
%6 = getelementptr inbounds i8, i8* %0, i64 1
%7 = load i8, i8* %6
%8 = load i8, i8* %0
%9 = zext i8 %8 to i32
%10 = shl nuw i32 %9, 24
%11 = zext i8 %7 to i32
%12 = shl nuw nsw i32 %11, 16
%13 = zext i8 %5 to i32
%14 = shl nuw nsw i32 %13, 8
%15 = zext i8 %3 to i32
%16 = or i32 %14, %15
%17 = or i32 %16, %12
%18 = or i32 %17, %10
ret i32 %18
}
double fbnot(double a) { return ~(int)a; }


x86 assembly (clang, -O0):
<fbnot>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
cvttsd2si -0x8(%rbp),%eax
xor    $0xffffffff,%eax
cvtsi2sd %eax,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<fbnot>:
cvttsd2si %xmm0,%eax
not    %eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
ret

LLVM IR (-O0):
define double @fbnot(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = load double, double* %2
%4 = fptosi double %3 to i32
%5 = xor i32 %4, -1
%6 = sitofp i32 %5 to double
ret double %6
}

LLVM IR (-O2):
define double @fbnot(double %0) {
%2 = fptosi double %0 to i32
%3 = xor i32 %2, -1
%4 = sitofp i32 %3 to double
ret double %4
}
void GPIOPinIntClear(unsigned long ulPort, unsigned long ulPins) {
  ;
  (*((volatile unsigned long *)(0x40010414))) |= ulPins;
}


x86 assembly (clang, -O0):
<GPIOPinIntClear>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    $0x40010414,%ecx
mov    (%rcx),%rcx
or     %rax,%rcx
mov    $0x40010414,%eax
mov    %rcx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<GPIOPinIntClear>:
or     %rsi,0x40010414
40
ret

LLVM IR (-O0):
define void @GPIOPinIntClear(i64 %0, i64 %1) {
%3 = alloca i64
%4 = alloca i64
store i64 %0, i64* %3
store i64 %1, i64* %4
%5 = load i64, i64* %4
%6 = load volatile i64, i64* inttoptr (i64 1073808404 to i64*)
%7 = or i64 %6, %5
store volatile i64 %7, i64* inttoptr (i64 1073808404 to i64*)
ret void
}

LLVM IR (-O2):
define void @GPIOPinIntClear(i64 %0, i64 %1) {
%3 = load volatile i64, i64* inttoptr (i64 1073808404 to i64*)
%4 = or i64 %3, %1
store volatile i64 %4, i64* inttoptr (i64 1073808404 to i64*)
ret void
}
int foo() { return 0x42; }


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

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

LLVM IR (-O0):
define i32 @foo() {
ret i32 66
}

LLVM IR (-O2):
define i32 @foo() {
ret i32 66
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ test_mmap(char *, int);
int main() {
  char filename[] = "records.dat";
  test_mmap(filename, 43);
  printf("\ndone\n");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    0xed1(%rip),%rax
mov    %rax,-0xc(%rbp)
mov    0xecf(%rip),%eax
mov    %eax,-0x4(%rbp)
lea    -0xc(%rbp),%rdi
mov    $0x2b,%esi
call   1040 <test_mmap@plt>
lea    0xebb(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
movabs $0x2e7364726f636572,%rax
64 73 2e
mov    %rax,0x8(%rsp)
movl   $0x746164,0x10(%rsp)
lea    0x8(%rsp),%rdi
mov    $0x2b,%esi
call   1040 <test_mmap@plt>
lea    0xebb(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
@__const.main.filename = [12 x i8] c"records.dat\00"
@.str = [7 x i8] c"\0Adone\0A\00"
define i32 @main() {
%1 = alloca [12 x i8]
%2 = bitcast [12 x i8]* %1 to i8*
%3 = getelementptr inbounds [12 x i8], [12 x i8]* %1, i64 0, i64 0
%4 = call i32 @test_mmap(i8* %3, i32 43)
%5 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@__const.main.filename = [12 x i8] c"records.dat\00"
@str = [6 x i8] c"\0Adone\00"
define i32 @main() {
%1 = alloca [12 x i8]
%2 = getelementptr inbounds [12 x i8], [12 x i8]* %1, i64 0, i64 0
%3 = call i32 @test_mmap(i8* %2, i32 43)
%4 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str, i64 0, i64 0))
ret i32 0
}
void gtk_tooltips_get_type() {}


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

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

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

LLVM IR (-O2):
define void @gtk_tooltips_get_type() {
ret void
}
void pcp_print_softnet_stats(struct activity *a, int curr) {}


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

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

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

LLVM IR (-O2):
%struct.activity = type opaque
define void @pcp_print_softnet_stats(%struct.activity* nocapture %0, i32 %1) {
ret void
}
void rtc_sysfs_add_device(struct rtc_device *rtc) {}


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

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

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

LLVM IR (-O2):
%struct.rtc_device = type opaque
define void @rtc_sysfs_add_device(%struct.rtc_device* nocapture %0) {
ret void
}
void flush_tmregs_to_thread(struct task_struct *tsk) {}


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

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

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

LLVM IR (-O2):
%struct.task_struct = type opaque
define void @flush_tmregs_to_thread(%struct.task_struct* nocapture %0) {
ret void
}
__attribute__((no, noclone)) int f5(void *a, long long b, int c, char **d,
                                    char **e, char **f, const char *g,
                                    long long h, int *i) {
  asm volatile("" : : "r"(a), "r"(b), "r"(c), "r"(d) : "memory");
  asm volatile("" : : "r"(e), "r"(f), "r"(g), "r"(h) : "memory");
  asm volatile("" : : "r"(i) : "memory");
  return 0;
}


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

x86 assembly (clang, -O2):
<f5>:
mov    0x18(%rsp),%r10
mov    0x8(%rsp),%r11
mov    0x10(%rsp),%rax
xor    %eax,%eax
ret

LLVM IR (-O0):
define i32 @f5(i8* %0, i64 %1, i32 %2, i8** %3, i8** %4, i8** %5, i8* %6, i64 %7, i32* %8) {
%10 = alloca i8*
%11 = alloca i64
%12 = alloca i32
%13 = alloca i8**
%14 = alloca i8**
%15 = alloca i8**
%16 = alloca i8*
%17 = alloca i64
%18 = alloca i32*
store i8* %0, i8** %10
store i64 %1, i64* %11
store i32 %2, i32* %12
store i8** %3, i8*** %13
store i8** %4, i8*** %14
store i8** %5, i8*** %15
store i8* %6, i8** %16
store i64 %7, i64* %17
store i32* %8, i32** %18
%19 = load i8*, i8** %10
%20 = load i64, i64* %11
%21 = load i32, i32* %12
%22 = load i8**, i8*** %13
%23 = load i8**, i8*** %14
%24 = load i8**, i8*** %15
%25 = load i8*, i8** %16
%26 = load i64, i64* %17
%27 = load i32*, i32** %18
ret i32 0
}

LLVM IR (-O2):
define i32 @f5(i8* %0, i64 %1, i32 %2, i8** %3, i8** %4, i8** %5, i8* %6, i64 %7, i32* %8) {
tail call void asm sideeffect "", "r,r,r,r,~{memory},~{dirflag},~{fpsr},~{flags}"(i8* %0, i64 %1, i32 %2, i8** %3)
tail call void asm sideeffect "", "r,r,r,r,~{memory},~{dirflag},~{fpsr},~{flags}"(i8** %4, i8** %5, i8* %6, i64 %7)
tail call void asm sideeffect "", "r,~{memory},~{dirflag},~{fpsr},~{flags}"(i32* %8)
ret i32 0
}
/* Variables and functions */
int syscall(int, int, char const *, int, char const *, int);
int linkat(int fd1, const char *existing, int fd2, const char *new, int flag) {
  return syscall(330, fd1, existing, fd2, new, flag);
}


x86 assembly (clang, -O0):
<linkat>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8d,-0x24(%rbp)
mov    -0x4(%rbp),%esi
mov    -0x10(%rbp),%rdx
mov    -0x14(%rbp),%ecx
mov    -0x20(%rbp),%r8
mov    -0x24(%rbp),%r9d
mov    $0x14a,%edi
call   1030 <syscall@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<linkat>:
mov    %r8d,%r9d
mov    %rcx,%r8
mov    %edx,%ecx
mov    %rsi,%rdx
mov    %edi,%esi
mov    $0x14a,%edi
jmp    1030 <syscall@plt>

LLVM IR (-O0):
define i32 @linkat(i32 %0, i8* %1, i32 %2, i8* %3, i32 %4) {
%6 = alloca i32
%7 = alloca i8*
%8 = alloca i32
%9 = alloca i8*
%10 = alloca i32
store i32 %0, i32* %6
store i8* %1, i8** %7
store i32 %2, i32* %8
store i8* %3, i8** %9
store i32 %4, i32* %10
%11 = load i32, i32* %6
%12 = load i8*, i8** %7
%13 = load i32, i32* %8
%14 = load i8*, i8** %9
%15 = load i32, i32* %10
%16 = call i32 @syscall(i32 330, i32 %11, i8* %12, i32 %13, i8* %14, i32 %15)
ret i32 %16
}

LLVM IR (-O2):
define i32 @linkat(i32 %0, i8* %1, i32 %2, i8* %3, i32 %4) {
%6 = tail call i32 @syscall(i32 330, i32 %0, i8* %1, i32 %2, i8* %3, i32 %4)
ret i32 %6
}
/* Variables and functions */
int /*<<< orphan*/ errno;
int sockprint(int, char *, char *, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ strerror(int /*<<< orphan*/);
int sockerror(int fd, char *what) {
  return sockprint(fd, "error on %s: %s (%d)\r\n", what, strerror(errno),
                   errno);
}


x86 assembly (clang, -O0):
<sockerror>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    0x2e9c(%rip),%rax
mov    (%rax),%edi
call   1040 <strerror@plt>
mov    -0x1c(%rbp),%edi
mov    -0x18(%rbp),%rdx
mov    %eax,%ecx
mov    0x2e85(%rip),%rax
mov    (%rax),%r8d
lea    0xe9b(%rip),%rsi
call   1030 <sockprint@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sockerror>:
push   %rbp
push   %r14
push   %rbx
mov    %rsi,%rbx
mov    %edi,%ebp
mov    0x2eb0(%rip),%r14
mov    (%r14),%edi
call   1040 <strerror@plt>
mov    (%r14),%r8d
lea    0xebe(%rip),%rsi
mov    %ebp,%edi
mov    %rbx,%rdx
mov    %eax,%ecx
pop    %rbx
pop    %r14
pop    %rbp
jmp    1030 <sockprint@plt>

LLVM IR (-O0):
@.str = [23 x i8] c"error on %s: %s (%d)\0D\0A\00"
@errno = global i32 0
define i32 @sockerror(i32 %0, i8* %1) {
%3 = alloca i32
%4 = alloca i8*
store i32 %0, i32* %3
store i8* %1, i8** %4
%5 = load i32, i32* %3
%6 = load i8*, i8** %4
%7 = load i32, i32* @errno
%8 = call i32 @strerror(i32 %7)
%9 = load i32, i32* @errno
%10 = call i32 @sockprint(i32 %5, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i8* %6, i32 %8, i32 %9)
ret i32 %10
}

LLVM IR (-O2):
@.str = [23 x i8] c"error on %s: %s (%d)\0D\0A\00"
@errno = global i32 0
define i32 @sockerror(i32 %0, i8* %1) {
%3 = load i32, i32* @errno
%4 = tail call i32 @strerror(i32 %3)
%5 = load i32, i32* @errno
%6 = tail call i32 @sockprint(i32 %0, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i8* %1, i32 %4, i32 %5)
ret i32 %6
}
/* Variables and functions */
int /*<<< orphan*/ SEQ_CHN_PRESSURE(int /*<<< orphan*/, int, int);
void seq_channelpressure(int chn, int pressure) {
  SEQ_CHN_PRESSURE(0, chn, pressure);
}


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

x86 assembly (clang, -O2):
<seq_channelpressure>:
mov    %esi,%edx
mov    %edi,%esi
xor    %edi,%edi
jmp    1030 <SEQ_CHN_PRESSURE@plt>

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

LLVM IR (-O2):
define void @seq_channelpressure(i32 %0, i32 %1) {
%3 = tail call i32 @SEQ_CHN_PRESSURE(i32 0, i32 %0, i32 %1)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int _pclose(int /*<<< orphan*/ *);
int pclose(FILE *f) { return _pclose(f); }


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

x86 assembly (clang, -O2):
<pclose>:
jmp    1030 <_pclose@plt>

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

LLVM IR (-O2):
define i32 @pclose(i32* %0) {
%2 = tail call i32 @_pclose(i32* %0)
ret i32 %2
}
/* Variables and functions */
int /*<<< orphan*/ sendCmd(int, unsigned char);
void setbackLight(unsigned char red, unsigned char green, unsigned char blue) {
  sendCmd(0xfd, red);
  sendCmd(0xfc, green);
  sendCmd(0xfb, blue);
}


x86 assembly (clang, -O0):
<setbackLight>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dl,%al
mov    %sil,%cl
mov    %dil,%dl
mov    %dl,-0x1(%rbp)
mov    %cl,-0x2(%rbp)
mov    %al,-0x3(%rbp)
mov    $0xfd,%edi
movzbl -0x1(%rbp),%esi
call   1030 <sendCmd@plt>
mov    $0xfc,%edi
movzbl -0x2(%rbp),%esi
call   1030 <sendCmd@plt>
mov    $0xfb,%edi
movzbl -0x3(%rbp),%esi
call   1030 <sendCmd@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<setbackLight>:
push   %rbp
push   %rbx
push   %rax
mov    %edx,%ebx
mov    %esi,%ebp
mov    %edi,%esi
mov    $0xfd,%edi
call   1030 <sendCmd@plt>
mov    $0xfc,%edi
mov    %ebp,%esi
call   1030 <sendCmd@plt>
mov    $0xfb,%edi
mov    %ebx,%esi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1030 <sendCmd@plt>

LLVM IR (-O0):
define void @setbackLight(i8 zeroext %0, i8 zeroext %1, i8 zeroext %2) {
%4 = alloca i8
%5 = alloca i8
%6 = alloca i8
store i8 %0, i8* %4
store i8 %1, i8* %5
store i8 %2, i8* %6
%7 = load i8, i8* %4
%8 = call i32 @sendCmd(i32 253, i8 zeroext %7)
%9 = load i8, i8* %5
%10 = call i32 @sendCmd(i32 252, i8 zeroext %9)
%11 = load i8, i8* %6
%12 = call i32 @sendCmd(i32 251, i8 zeroext %11)
ret void
}

LLVM IR (-O2):
define void @setbackLight(i8 zeroext %0, i8 zeroext %1, i8 zeroext %2) {
%4 = tail call i32 @sendCmd(i32 253, i8 zeroext %0)
%5 = tail call i32 @sendCmd(i32 252, i8 zeroext %1)
%6 = tail call i32 @sendCmd(i32 251, i8 zeroext %2)
ret void
}
unsigned int fact_tail(unsigned int n, unsigned int a) {
  if (n < 0)
    return 0;
  else if (n == 0)
    return 1;
  else if (n == 1)
    return a;
  else
    return fact_tail(n - 1, n * a);
}


x86 assembly (clang, -O0):
<fact_tail>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
cmpl   $0x0,-0x8(%rbp)
jae    1134 <fact_tail+0x24>
movl   $0x0,-0x4(%rbp)
jmp    1174 <fact_tail+0x64>
cmpl   $0x0,-0x8(%rbp)
jne    114a <fact_tail+0x3a>
movl   $0x1,-0x4(%rbp)
jmp    1174 <fact_tail+0x64>
cmpl   $0x1,-0x8(%rbp)
jne    115f <fact_tail+0x4f>
mov    -0xc(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1174 <fact_tail+0x64>
mov    -0x8(%rbp),%edi
sub    $0x1,%edi
mov    -0x8(%rbp),%esi
imul   -0xc(%rbp),%esi
call   1030 <fact_tail@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fact_tail>:
mov    %esi,%eax
test   %edi,%edi
je     111f <fact_tail+0x1f>
cs nopw 0x0(%rax,%rax,1)
cmp    $0x1,%edi
je     1124 <fact_tail+0x24>
imul   %edi,%eax
add    $0xffffffff,%edi
test   %edi,%edi
jne    1110 <fact_tail+0x10>
mov    $0x1,%eax
ret

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

LLVM IR (-O2):
define i32 @fact_tail(i32 %0, i32 %1) {
br label %3
3: ; preds = %6, %2
%4 = phi i32 [ %0, %2 ], [ %7, %6 ]
%5 = phi i32 [ %1, %2 ], [ %8, %6 ]
switch i32 %4, label %6 [
i32 0, label %9
i32 1, label %10
]
6: ; preds = %3
%7 = add i32 %4, -1
%8 = mul i32 %5, %4
br label %3
9: ; preds = %3
br label %10
10: ; preds = %3, %9
%11 = phi i32 [ 1, %9 ], [ %5, %3 ]
ret i32 %11
}
/* Variables and functions */
int /*<<< orphan*/ detab(int *);
int /*<<< orphan*/ settab(int, char **, int *);
int main(int argc, char *argv[]) {
  int tab[100];
  settab(argc, argv, tab);
  detab(tab);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1a0,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
lea    -0x1a0(%rbp),%rdx
call   1030 <settab@plt>
lea    -0x1a0(%rbp),%rdi
call   1040 <detab@plt>
xor    %eax,%eax
add    $0x1a0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x190,%rsp
mov    %rsp,%rbx
mov    %rbx,%rdx
call   1030 <settab@plt>
mov    %rbx,%rdi
call   1040 <detab@plt>
xor    %eax,%eax
add    $0x190,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
%5 = alloca [100 x i32]
store i32 %0, i32* %3
store i8** %1, i8*** %4
%6 = load i32, i32* %3
%7 = load i8**, i8*** %4
%8 = getelementptr inbounds [100 x i32], [100 x i32]* %5, i64 0, i64 0
%9 = call i32 @settab(i32 %6, i8** %7, i32* %8)
%10 = getelementptr inbounds [100 x i32], [100 x i32]* %5, i64 0, i64 0
%11 = call i32 @detab(i32* %10)
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca [100 x i32]
%4 = bitcast [100 x i32]* %3 to i8*
%5 = getelementptr inbounds [100 x i32], [100 x i32]* %3, i64 0, i64 0
%6 = call i32 @settab(i32 %0, i8** %1, i32* %5)
%7 = call i32 @detab(i32* %5)
ret i32 0
}
int power9_offcore_num(void) { return (3); }


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

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

LLVM IR (-O0):
define i32 @power9_offcore_num() {
ret i32 3
}

LLVM IR (-O2):
define i32 @power9_offcore_num() {
ret i32 3
}
/* Variables and functions */
int /*<<< orphan*/ log_get_latest_rglogfile(char *, char *, int);
int /*<<< orphan*/ log_recovery(char *, char *, int);
int log_recov_rg(char *rgip, int rgport) {
  char logfile[256];
  if (!log_get_latest_rglogfile(logfile, rgip, rgport)) {
    return 1;
  }
  log_recovery(logfile, rgip, rgport);
  return 1;
}


x86 assembly (clang, -O0):
<log_recov_rg>:
push   %rbp
mov    %rsp,%rbp
sub    $0x120,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
lea    -0x120(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1030 <log_get_latest_rglogfile@plt>
cmp    $0x0,%eax
jne    115a <log_recov_rg+0x3a>
movl   $0x1,-0x4(%rbp)
jmp    1174 <log_recov_rg+0x54>
lea    -0x120(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1040 <log_recovery@plt>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x120,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<log_recov_rg>:
push   %rbp
push   %rbx
sub    $0x108,%rsp
mov    %esi,%ebp
mov    %rdi,%rbx
mov    %rsp,%rdi
mov    %rbx,%rsi
mov    %ebp,%edx
call   1030 <log_get_latest_rglogfile@plt>
test   %eax,%eax
je     114c <log_recov_rg+0x2c>
mov    %rsp,%rdi
mov    %rbx,%rsi
mov    %ebp,%edx
call   1040 <log_recovery@plt>
mov    $0x1,%eax
add    $0x108,%rsp
pop    %rbx
pop    %rbp
ret

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

LLVM IR (-O2):
define i32 @log_recov_rg(i8* %0, i32 %1) {
%3 = alloca [256 x i8]
%4 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 0
%5 = call i32 @log_get_latest_rglogfile(i8* %4, i8* %0, i32 %1)
%6 = icmp eq i32 %5, 0
br i1 %6, label %9, label %7
7: ; preds = %2
%8 = call i32 @log_recovery(i8* %4, i8* %0, i32 %1)
br label %9
9: ; preds = %2, %7
ret i32 1
}
/* Variables and functions */
int /*<<< orphan*/ Banner(int);
int /*<<< orphan*/ ProcessArgv(int, char **);
int /*<<< orphan*/ ProcessPortList();
int /*<<< orphan*/ Usage();
int main(int argc, char *argv[]) {
  if (argc < 2) {
    Banner(0);
    Usage();
  } else {
    Banner(1);
  }
  ProcessArgv(argc, argv);
  while (1)
    ProcessPortList();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
jge    1173 <main+0x33>
xor    %edi,%edi
call   1060 <Banner@plt>
mov    $0x0,%al
call   1030 <Usage@plt>
jmp    117d <main+0x3d>
mov    $0x1,%edi
call   1060 <Banner@plt>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1040 <ProcessArgv@plt>
mov    $0x0,%al
call   1050 <ProcessPortList@plt>
jmp    1189 <main+0x49>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %edi,%ebp
cmp    $0x1,%edi
jg     115d <main+0x1d>
xor    %edi,%edi
call   1060 <Banner@plt>
xor    %eax,%eax
call   1030 <Usage@plt>
jmp    1167 <main+0x27>
mov    $0x1,%edi
call   1060 <Banner@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
call   1040 <ProcessArgv@plt>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1050 <ProcessPortList@plt>
jmp    1180 <main+0x40>

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

LLVM IR (-O2):
define i32 @main(i32 %0, i8** %1) {
%3 = icmp slt i32 %0, 2
br i1 %3, label %4, label %7
4: ; preds = %2
%5 = tail call i32 @Banner(i32 0)
%6 = tail call i32 (...) @Usage()
br label %9
7: ; preds = %2
%8 = tail call i32 @Banner(i32 1)
br label %9
9: ; preds = %7, %4
%10 = tail call i32 @ProcessArgv(i32 %0, i8** %1)
br label %11
11: ; preds = %9, %11
%12 = tail call i32 (...) @ProcessPortList()
br label %11
}