xunge/DecIR huggingface dataset:
int strcmp(const char *s1, const char *s2) {
  while (*s1 == *s2++)
    if (*s1++ == '\0')
      return 0;
  return *(const unsigned char *)s1 - *(const unsigned char *)(s2 - 1);
}


x86 assembly (clang, -O0):
<strcmp>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
mov    -0x18(%rbp),%rcx
mov    %rcx,%rdx
add    $0x1,%rdx
mov    %rdx,-0x18(%rbp)
movsbl (%rcx),%ecx
cmp    %ecx,%eax
jne    1159 <strcmp+0x59>
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x10(%rbp)
movsbl (%rax),%eax
cmp    $0x0,%eax
jne    1154 <strcmp+0x54>
movl   $0x0,-0x4(%rbp)
jmp    116d <strcmp+0x6d>
jmp    110c <strcmp+0xc>
mov    -0x10(%rbp),%rax
movzbl (%rax),%eax
mov    -0x18(%rbp),%rcx
movzbl -0x1(%rcx),%ecx
sub    %ecx,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<strcmp>:
xor    %ecx,%ecx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movzbl (%rdi,%rcx,1),%eax
movzbl (%rsi,%rcx,1),%edx
cmp    %dl,%al
jne    1127 <strcmp+0x27>
add    $0x1,%rcx
test   %eax,%eax
jne    1110 <strcmp+0x10>
xor    %eax,%eax
ret
sub    %edx,%eax
ret

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

LLVM IR (-O2):
define i32 @strcmp(i8* nocapture %0, i8* nocapture %1) {
br label %3
3: ; preds = %9, %2
%4 = phi i8* [ %0, %2 ], [ %11, %9 ]
%5 = phi i8* [ %1, %2 ], [ %10, %9 ]
%6 = load i8, i8* %4
%7 = load i8, i8* %5
%8 = icmp eq i8 %6, %7
br i1 %8, label %9, label %13
9: ; preds = %3
%10 = getelementptr inbounds i8, i8* %5, i64 1
%11 = getelementptr inbounds i8, i8* %4, i64 1
%12 = icmp eq i8 %6, 0
br i1 %12, label %17, label %3
13: ; preds = %3
%14 = zext i8 %6 to i32
%15 = zext i8 %7 to i32
%16 = sub nsw i32 %14, %15
br label %17
17: ; preds = %9, %13
%18 = phi i32 [ %16, %13 ], [ 0, %9 ]
ret i32 %18
}
/* Variables and functions */
unsigned char *malloc(int);
int /*<<< orphan*/ map_memory(unsigned char *, int, int);
int /*<<< orphan*/ write_mem(int, int, int);
void configure_hardware() {
  unsigned char *arm_tp_data = malloc(4096);
  map_memory(arm_tp_data, 0xffff1000, 4096);
  write_mem(4, 0xffff1020, 0x9000);
}


x86 assembly (clang, -O0):
<configure_hardware>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x1000,%edi
call   1030 <malloc@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0xffff1000,%esi
mov    $0x1000,%edx
call   1050 <map_memory@plt>
mov    $0x4,%edi
mov    $0xffff1020,%esi
mov    $0x9000,%edx
call   1040 <write_mem@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<configure_hardware>:
push   %rax
mov    $0x1000,%edi
call   1030 <malloc@plt>
mov    %rax,%rdi
mov    $0xffff1000,%esi
mov    $0x1000,%edx
call   1050 <map_memory@plt>
mov    $0x4,%edi
mov    $0xffff1020,%esi
mov    $0x9000,%edx
pop    %rax
jmp    1040 <write_mem@plt>

LLVM IR (-O0):
define void @configure_hardware() {
%1 = alloca i8*
%2 = call i8* @malloc(i32 4096)
store i8* %2, i8** %1
%3 = load i8*, i8** %1
%4 = call i32 @map_memory(i8* %3, i32 -61440, i32 4096)
%5 = call i32 @write_mem(i32 4, i32 -61408, i32 36864)
ret void
}

LLVM IR (-O2):
define void @configure_hardware() {
%1 = tail call dereferenceable_or_null(4096) i8* @malloc(i32 4096)
%2 = tail call i32 @map_memory(i8* %1, i32 -61440, i32 4096)
%3 = tail call i32 @write_mem(i32 4, i32 -61408, i32 36864)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ keyMode(unsigned char, int /*<<< orphan*/,
                           int /*<<< orphan*/);
void menuMode(int item) { keyMode((unsigned char)item, 0, 0); }


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

x86 assembly (clang, -O2):
<menuMode>:
movzbl %dil,%edi
xor    %esi,%esi
xor    %edx,%edx
jmp    1030 <keyMode@plt>

LLVM IR (-O0):
define void @menuMode(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = trunc i32 %3 to i8
%5 = call i32 @keyMode(i8 zeroext %4, i32 0, i32 0)
ret void
}

LLVM IR (-O2):
define void @menuMode(i32 %0) {
%2 = trunc i32 %0 to i8
%3 = tail call i32 @keyMode(i8 zeroext %2, i32 0, i32 0)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ DSA;
typedef int /*<<< orphan*/ BN_MONT_CTX;
typedef int /*<<< orphan*/ BN_CTX;
typedef int /*<<< orphan*/ BIGNUM;

/* Variables and functions */
int deadcafe_bn_mod_exp(int /*<<< orphan*/ *, int /*<<< orphan*/ *,
                        int /*<<< orphan*/ const *, int /*<<< orphan*/ const *);
int deadcafe_dsa_bn_mod_exp(DSA *dsa __attribute__((unused)), BIGNUM *r,
                            BIGNUM *a, const BIGNUM *p, const BIGNUM *m,
                            BN_CTX *ctx __attribute__((unused)),
                            BN_MONT_CTX *m_ctx __attribute__((unused))) {
  return deadcafe_bn_mod_exp(r, a, p, m);
}


x86 assembly (clang, -O0):
<deadcafe_dsa_bn_mod_exp>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%rdx
mov    -0x28(%rbp),%rcx
call   1030 <deadcafe_bn_mod_exp@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<deadcafe_dsa_bn_mod_exp>:
mov    %rsi,%rdi
mov    %rdx,%rsi
mov    %rcx,%rdx
mov    %r8,%rcx
jmp    1030 <deadcafe_bn_mod_exp@plt>

LLVM IR (-O0):
define i32 @deadcafe_dsa_bn_mod_exp(i32* %0, i32* %1, i32* %2, i32* %3, i32* %4, i32* %5, i32* %6) {
%8 = alloca i32*
%9 = alloca i32*
%10 = alloca i32*
%11 = alloca i32*
%12 = alloca i32*
%13 = alloca i32*
%14 = alloca i32*
store i32* %0, i32** %8
store i32* %1, i32** %9
store i32* %2, i32** %10
store i32* %3, i32** %11
store i32* %4, i32** %12
store i32* %5, i32** %13
store i32* %6, i32** %14
%15 = load i32*, i32** %9
%16 = load i32*, i32** %10
%17 = load i32*, i32** %11
%18 = load i32*, i32** %12
%19 = call i32 @deadcafe_bn_mod_exp(i32* %15, i32* %16, i32* %17, i32* %18)
ret i32 %19
}

LLVM IR (-O2):
define i32 @deadcafe_dsa_bn_mod_exp(i32* nocapture readnone %0, i32* %1, i32* %2, i32* %3, i32* %4, i32* nocapture readnone %5, i32* nocapture readnone %6) {
%8 = tail call i32 @deadcafe_bn_mod_exp(i32* %1, i32* %2, i32* %3, i32* %4)
ret i32 %8
}
/* Variables and functions */
int /*<<< orphan*/ Sys_failure(char *);
int raise(int);
void Raise(int sig) {
  int retval;
  retval = raise(sig);
  if (retval != 0)
    Sys_failure("raise");
}


x86 assembly (clang, -O0):
<Raise>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <raise@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
je     114c <Raise+0x2c>
lea    0xeb9(%rip),%rdi
call   1040 <Sys_failure@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Raise>:
push   %rax
call   1030 <raise@plt>
test   %eax,%eax
je     1137 <Raise+0x17>
lea    0xecf(%rip),%rdi
pop    %rax
jmp    1040 <Sys_failure@plt>
pop    %rax
ret

LLVM IR (-O0):
@.str = [6 x i8] c"raise\00"
define void @Raise(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
%4 = load i32, i32* %2
%5 = call i32 @raise(i32 %4)
store i32 %5, i32* %3
%6 = load i32, i32* %3
%7 = icmp ne i32 %6, 0
br i1 %7, label %8, label %10
8: ; preds = %1
%9 = call i32 @Sys_failure(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
br label %10
10: ; preds = %8, %1
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"raise\00"
define void @Raise(i32 %0) {
%2 = tail call i32 @raise(i32 %0)
%3 = icmp eq i32 %2, 0
br i1 %3, label %6, label %4
4: ; preds = %1
%5 = tail call i32 @Sys_failure(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
br label %6
6: ; preds = %4, %1
ret void
}
void remove_character_enter(char *str) {
  char garbage = '\n';
  char *src, *dst;
  for (src = dst = str; *src != '\0'; src++) {
    *dst = *src;
    if (*dst != garbage)
      dst++;
  }
  *dst = '\0';
}


x86 assembly (clang, -O0):
<remove_character_enter>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movb   $0xa,-0x9(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1169 <remove_character_enter+0x69>
mov    -0x18(%rbp),%rax
mov    (%rax),%cl
mov    -0x20(%rbp),%rax
mov    %cl,(%rax)
mov    -0x20(%rbp),%rax
movsbl (%rax),%eax
movsbl -0x9(%rbp),%ecx
cmp    %ecx,%eax
je     1153 <remove_character_enter+0x53>
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
jmp    1158 <remove_character_enter+0x58>
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
jmp    1118 <remove_character_enter+0x18>
mov    -0x20(%rbp),%rax
movb   $0x0,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<remove_character_enter>:
mov    (%rdi),%cl
test   %cl,%cl
je     1128 <remove_character_enter+0x28>
lea    0x1(%rdi),%rax
nopw   0x0(%rax,%rax,1)
mov    %cl,(%rdi)
xor    %edx,%edx
cmp    $0xa,%cl
setne  %dl
add    %rdx,%rdi
movzbl (%rax),%ecx
add    $0x1,%rax
test   %cl,%cl
jne    1110 <remove_character_enter+0x10>
movb   $0x0,(%rdi)
ret

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

LLVM IR (-O2):
define void @remove_character_enter(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %14, label %4
4: ; preds = %1, %4
%5 = phi i8 [ %12, %4 ], [ %2, %1 ]
%6 = phi i8* [ %10, %4 ], [ %0, %1 ]
%7 = phi i8* [ %11, %4 ], [ %0, %1 ]
store i8 %5, i8* %6
%8 = icmp ne i8 %5, 10
%9 = zext i1 %8 to i64
%10 = getelementptr i8, i8* %6, i64 %9
%11 = getelementptr inbounds i8, i8* %7, i64 1
%12 = load i8, i8* %11
%13 = icmp eq i8 %12, 0
br i1 %13, label %14, label %4
14: ; preds = %4, %1
%15 = phi i8* [ %0, %1 ], [ %10, %4 ]
store i8 0, i8* %15
ret void
}
const char *dmap_version_string(void) {
  return "1"
         "."
         "2"
         "."
         "1";
}


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

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

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

LLVM IR (-O2):
@.str = [6 x i8] c"1.2.1\00"
define i8* @dmap_version_string() {
ret i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0)
}
/* Variables and functions */
int /*<<< orphan*/ clear_screen();
int /*<<< orphan*/ print(char *);
void main() {
  char *video_memory = (char *)0xb8000;
  *video_memory = 'X';
  clear_screen();
  print("Hola que tal");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0xb8000,%eax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movb   $0x58,(%rax)
mov    $0x0,%al
call   1040 <clear_screen@plt>
lea    0xeba(%rip),%rdi
call   1030 <print@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
movb   $0x58,0xb8000
58
xor    %eax,%eax
call   1040 <clear_screen@plt>
lea    0xec9(%rip),%rdi
pop    %rax
jmp    1030 <print@plt>

LLVM IR (-O0):
@.str = [13 x i8] c"Hola que tal\00"
define void @main() {
%1 = alloca i8*
store i8* inttoptr (i64 753664 to i8*), i8** %1
%2 = load i8*, i8** %1
store i8 88, i8* %2
%3 = call i32 (...) @clear_screen()
%4 = call i32 @print(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [13 x i8] c"Hola que tal\00"
define void @main() {
store i8 88, i8* inttoptr (i64 753664 to i8*)
%1 = tail call i32 (...) @clear_screen()
%2 = tail call i32 @print(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int main() {
  int btc = 0;
  int *a;
  printf("hello world!\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
lea    0xed3(%rip),%rdi
call   1030 <printf@plt>
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 = [14 x i8] c"hello world!\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32*
store i32 0, i32* %1
store i32 0, i32* %2
%4 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@str = [13 x i8] c"hello world!\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str, i64 0, i64 0))
ret i32 0
}
void drm_iommu_detach_device(struct drm_device *drm_dev,
                             struct device *subdrv_dev) {}


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

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

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

LLVM IR (-O2):
%struct.drm_device = type opaque
%struct.device = type opaque
define void @drm_iommu_detach_device(%struct.drm_device* nocapture %0, %struct.device* nocapture %1) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ free(char *);
int /*<<< orphan*/ popup_notify(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ save_config(int, char **);
void save_config_with_popup(void) {
  char *err_msg = NULL;
  (void)save_config(1, &err_msg);
  popup_notify(0, "%s", err_msg);
  free(err_msg);
}


x86 assembly (clang, -O0):
<save_config_with_popup>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movq   $0x0,-0x8(%rbp)
mov    $0x1,%edi
lea    -0x8(%rbp),%rsi
call   1050 <save_config@plt>
mov    -0x8(%rbp),%rdx
xor    %edi,%edi
lea    0xea5(%rip),%rsi
call   1040 <popup_notify@plt>
mov    -0x8(%rbp),%rdi
call   1030 <free@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<save_config_with_popup>:
push   %rax
movq   $0x0,(%rsp)
mov    %rsp,%rsi
mov    $0x1,%edi
call   1050 <save_config@plt>
mov    (%rsp),%rdx
lea    0xeaf(%rip),%rsi
xor    %edi,%edi
call   1040 <popup_notify@plt>
mov    (%rsp),%rdi
call   1030 <free@plt>
pop    %rax
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%s\00"
define void @save_config_with_popup() {
%1 = alloca i8*
store i8* null, i8** %1
%2 = call i32 @save_config(i32 1, i8** %1)
%3 = load i8*, i8** %1
%4 = call i32 @popup_notify(i32 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %3)
%5 = load i8*, i8** %1
%6 = call i32 @free(i8* %5)
ret void
}

LLVM IR (-O2):
@.str = [3 x i8] c"%s\00"
define void @save_config_with_popup() {
%1 = alloca i8*
%2 = bitcast i8** %1 to i8*
store i8* null, i8** %1
%3 = call i32 @save_config(i32 1, i8** %1)
%4 = load i8*, i8** %1
%5 = call i32 @popup_notify(i32 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %4)
%6 = load i8*, i8** %1
%7 = call i32 @free(i8* %6)
ret void
}
void free_imatrix(m, nrl, nrh, ncl, nch) int **m;
long nch, ncl, nrh, nrl;
{
  free((char *)(m[nrl] + ncl - 1));
  free((char *)(m + nrl - 1));
}


x86 assembly (clang, -O0):
<free_imatrix>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    -0x8(%rbp),%rax
mov    -0x10(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    -0x20(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rdi
add    $0xfffffffffffffffc,%rdi
call   1030 <free@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rdi
add    $0xfffffffffffffff8,%rdi
call   1030 <free@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<free_imatrix>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
mov    (%rdi,%rsi,8),%rax
lea    (%rax,%rcx,4),%rdi
add    $0xfffffffffffffffc,%rdi
call   1030 <free@plt>
lea    (%rbx,%r14,8),%rdi
add    $0xfffffffffffffff8,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <free@plt>

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

LLVM IR (-O2):
define void @free_imatrix(i32** nocapture %0, i64 %1, i64 %2, i64 %3, i64 %4) {
%6 = getelementptr inbounds i32*, i32** %0, i64 %1
%7 = load i32*, i32** %6
%8 = getelementptr inbounds i32, i32* %7, i64 %3
%9 = getelementptr inbounds i32, i32* %8, i64 -1
%10 = bitcast i32* %9 to i8*
tail call void @free(i8* %10)
%11 = getelementptr inbounds i32*, i32** %6, i64 -1
%12 = bitcast i32** %11 to i8*
tail call void @free(i8* %12)
ret void
}
/* Variables and functions */
int type1(int *, int /*<<< orphan*/, int, int /*<<< orphan*/,
          int /*<<< orphan*/, int /*<<< orphan*/ *, int /*<<< orphan*/ *);
int More(void *v) {
  int *msgvec = v;
  return (type1(msgvec, 0, 1, 0, 0, NULL, NULL));
}


x86 assembly (clang, -O0):
<More>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
xor    %r8d,%r8d
mov    $0x1,%edx
xor    %eax,%eax
mov    %eax,%r9d
mov    %r8d,%esi
mov    %r8d,%ecx
movq   $0x0,(%rsp)
call   1030 <type1@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<More>:
push   %rax
movq   $0x0,(%rsp)
xor    %esi,%esi
mov    $0x1,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
call   1030 <type1@plt>
pop    %rcx
ret

LLVM IR (-O0):
define i32 @More(i8* %0) {
%2 = alloca i8*
%3 = alloca i32*
store i8* %0, i8** %2
%4 = load i8*, i8** %2
%5 = bitcast i8* %4 to i32*
store i32* %5, i32** %3
%6 = load i32*, i32** %3
%7 = call i32 @type1(i32* %6, i32 0, i32 1, i32 0, i32 0, i32* null, i32* null)
ret i32 %7
}

LLVM IR (-O2):
define i32 @More(i8* %0) {
%2 = bitcast i8* %0 to i32*
%3 = tail call i32 @type1(i32* %2, i32 0, i32 1, i32 0, i32 0, i32* null, i32* null)
ret i32 %3
}
/* Type definitions */
typedef int /*<<< orphan*/ uint64_t;

/* Variables and functions */
int /*<<< orphan*/ rgph_f2u32(float);
int /*<<< orphan*/ rgph_u64_xxh64s_u32(int /*<<< orphan*/, uintptr_t);
uint64_t rgph_u64_xxh64s_f32(float value, uintptr_t seed) {
  return rgph_u64_xxh64s_u32(rgph_f2u32(value), seed);
}


x86 assembly (clang, -O0):
<rgph_u64_xxh64s_f32>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  %xmm0,-0x4(%rbp)
mov    %rdi,-0x10(%rbp)
movss  -0x4(%rbp),%xmm0
call   1030 <rgph_f2u32@plt>
mov    %eax,%edi
mov    -0x10(%rbp),%rsi
call   1040 <rgph_u64_xxh64s_u32@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rgph_u64_xxh64s_f32>:
push   %rbx
mov    %rdi,%rbx
call   1030 <rgph_f2u32@plt>
mov    %eax,%edi
mov    %rbx,%rsi
pop    %rbx
jmp    1040 <rgph_u64_xxh64s_u32@plt>

LLVM IR (-O0):
define i32 @rgph_u64_xxh64s_f32(float %0, i64 %1) {
%3 = alloca float
%4 = alloca i64
store float %0, float* %3
store i64 %1, i64* %4
%5 = load float, float* %3
%6 = call i32 @rgph_f2u32(float %5)
%7 = load i64, i64* %4
%8 = call i32 @rgph_u64_xxh64s_u32(i32 %6, i64 %7)
ret i32 %8
}

LLVM IR (-O2):
define i32 @rgph_u64_xxh64s_f32(float %0, i64 %1) {
%3 = tail call i32 @rgph_f2u32(float %0)
%4 = tail call i32 @rgph_u64_xxh64s_u32(i32 %3, i64 %1)
ret i32 %4
}
void hpet_info(int argc, const char **argv) {}


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

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

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

LLVM IR (-O2):
define void @hpet_info(i32 %0, i8** nocapture %1) {
ret void
}
/* Type definitions */
struct syn_audioif {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ syn_aif_stop(struct syn_audioif *);
void syn_aif_free(struct syn_audioif *self) { syn_aif_stop(self); }


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

x86 assembly (clang, -O2):
<syn_aif_free>:
jmp    1030 <syn_aif_stop@plt>

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

LLVM IR (-O2):
%struct.syn_audioif = type { i32 }
define void @syn_aif_free(%struct.syn_audioif* %0) {
%2 = tail call i32 @syn_aif_stop(%struct.syn_audioif* %0)
ret void
}
unsigned char f95(unsigned char x, unsigned int y) {
  return (x << (8 * sizeof(unsigned char) - y)) + (x >> y);
}


x86 assembly (clang, -O0):
<f95>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x1(%rbp)
mov    %esi,-0x8(%rbp)
movzbl -0x1(%rbp),%eax
mov    -0x8(%rbp),%ecx
mov    %ecx,%edx
mov    $0x8,%ecx
sub    %rdx,%rcx
shl    %cl,%eax
movzbl -0x1(%rbp),%edx
mov    -0x8(%rbp),%ecx
sar    %cl,%edx
mov    %edx,%ecx
add    %ecx,%eax
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<f95>:
mov    $0x8,%cl
sub    %sil,%cl
mov    %edi,%eax
shl    %cl,%eax
mov    %esi,%ecx
shr    %cl,%edi
add    %edi,%eax
ret

LLVM IR (-O0):
define zeroext i8 @f95(i8 zeroext %0, i32 %1) {
%3 = alloca i8
%4 = alloca i32
store i8 %0, i8* %3
store i32 %1, i32* %4
%5 = load i8, i8* %3
%6 = zext i8 %5 to i32
%7 = load i32, i32* %4
%8 = zext i32 %7 to i64
%9 = sub i64 8, %8
%10 = trunc i64 %9 to i32
%11 = shl i32 %6, %10
%12 = load i8, i8* %3
%13 = zext i8 %12 to i32
%14 = load i32, i32* %4
%15 = ashr i32 %13, %14
%16 = add nsw i32 %11, %15
%17 = trunc i32 %16 to i8
ret i8 %17
}

LLVM IR (-O2):
define zeroext i8 @f95(i8 zeroext %0, i32 %1) {
%3 = zext i8 %0 to i32
%4 = sub i32 8, %1
%5 = shl i32 %3, %4
%6 = lshr i32 %3, %1
%7 = add nsw i32 %5, %6
%8 = trunc i32 %7 to i8
ret i8 %8
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void usage(void) {
  printf("recv - Utility for the get file interface\n\n");
  printf("Usage:\n"
         "\trecv -d <command>\n\n");
  printf("Options:\n"
         "\t-d <device>        Select the device\n"
         "\t-h, --help         Display help\n"
         "\n");
}


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

x86 assembly (clang, -O2):
<usage>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xf07(%rip),%rdi
call   1030 <puts@plt>
lea    0xf16(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [44 x i8] c"recv - Utility for the get file interface\0A\0A\00"
@.str.1 = [28 x i8] c"Usage:\0A\09recv -d <command>\0A\0A\00"
@.str.2 = [82 x i8] c"Options:\0A\09-d <device> Select the device\0A\09-h, --help Display help\0A\0A\00"
define void @usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str.2, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [43 x i8] c"recv - Utility for the get file interface\0A\00"
@str.3 = [27 x i8] c"Usage:\0A\09recv -d <command>\0A\00"
@str.4 = [81 x i8] c"Options:\0A\09-d <device> Select the device\0A\09-h, --help Display help\0A\00"
define void @usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.3, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([81 x i8], [81 x i8]* @str.4, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ MAP_LOCKED;
int /*<<< orphan*/ do_file_clean(int /*<<< orphan*/, char *);
void file_clean_mlocked(void) {
  do_file_clean(MAP_LOCKED, "file clean mlocked");
}


x86 assembly (clang, -O0):
<file_clean_mlocked>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ec5(%rip),%rax
mov    (%rax),%edi
lea    0xedc(%rip),%rsi
call   1030 <do_file_clean@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<file_clean_mlocked>:
mov    0x2ec9(%rip),%rax
mov    (%rax),%edi
lea    0xee0(%rip),%rsi
jmp    1030 <do_file_clean@plt>

LLVM IR (-O0):
@MAP_LOCKED = global i32 0
@.str = [19 x i8] c"file clean mlocked\00"
define void @file_clean_mlocked() {
%1 = load i32, i32* @MAP_LOCKED
%2 = call i32 @do_file_clean(i32 %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@MAP_LOCKED = global i32 0
@.str = [19 x i8] c"file clean mlocked\00"
define void @file_clean_mlocked() {
%1 = load i32, i32* @MAP_LOCKED
%2 = tail call i32 @do_file_clean(i32 %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *, long);
int /*<<< orphan*/ stderr;
void show(char *name, long value) { fprintf(stderr, "%s: %ld\n", name, value); }


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

x86 assembly (clang, -O2):
<show>:
mov    %rsi,%rcx
mov    %rdi,%rdx
mov    0x2ec3(%rip),%rax
mov    (%rax),%edi
lea    0xeda(%rip),%rsi
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [9 x i8] c"%s: %ld\0A\00"
define void @show(i8* %0, i64 %1) {
%3 = alloca i8*
%4 = alloca i64
store i8* %0, i8** %3
store i64 %1, i64* %4
%5 = load i32, i32* @stderr
%6 = load i8*, i8** %3
%7 = load i64, i64* %4
%8 = call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* %6, i64 %7)
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [9 x i8] c"%s: %ld\0A\00"
define void @show(i8* %0, i64 %1) {
%3 = load i32, i32* @stderr
%4 = tail call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* %0, i64 %1)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ ls();
void l_s() { ls(); }


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

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

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

LLVM IR (-O2):
define void @l_s() {
%1 = tail call i32 (...) @ls()
ret void
}
int tls13_server_message_hash_send(struct tls13_ctx *ctx) { return 1; }


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

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

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

LLVM IR (-O2):
%struct.tls13_ctx = type opaque
define i32 @tls13_server_message_hash_send(%struct.tls13_ctx* nocapture readnone %0) {
ret i32 1
}
/* Variables and functions */
int _ada_use_c2phc(int, int *, int *, double *);
int syscon_add_dobldobl_term(int i, int n, int *exp, double *c) {
  int a[2], fail;
  a[0] = n;
  a[1] = i;
  fail = _ada_use_c2phc(336, a, exp, c);
  return fail;
}


x86 assembly (clang, -O0):
<syscon_add_dobldobl_term>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
mov    %rcx,-0x18(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x1c(%rbp)
lea    -0x20(%rbp),%rsi
mov    -0x10(%rbp),%rdx
mov    -0x18(%rbp),%rcx
mov    $0x150,%edi
call   1030 <_ada_use_c2phc@plt>
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<syscon_add_dobldobl_term>:
push   %rax
mov    %esi,(%rsp)
mov    %edi,0x4(%rsp)
mov    %rsp,%rsi
mov    $0x150,%edi
call   1030 <_ada_use_c2phc@plt>
pop    %rcx
ret

LLVM IR (-O0):
define i32 @syscon_add_dobldobl_term(i32 %0, i32 %1, i32* %2, double* %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32*
%8 = alloca double*
%9 = alloca [2 x i32]
%10 = alloca i32
store i32 %0, i32* %5
store i32 %1, i32* %6
store i32* %2, i32** %7
store double* %3, double** %8
%11 = load i32, i32* %6
%12 = getelementptr inbounds [2 x i32], [2 x i32]* %9, i64 0, i64 0
store i32 %11, i32* %12
%13 = load i32, i32* %5
%14 = getelementptr inbounds [2 x i32], [2 x i32]* %9, i64 0, i64 1
store i32 %13, i32* %14
%15 = getelementptr inbounds [2 x i32], [2 x i32]* %9, i64 0, i64 0
%16 = load i32*, i32** %7
%17 = load double*, double** %8
%18 = call i32 @_ada_use_c2phc(i32 336, i32* %15, i32* %16, double* %17)
store i32 %18, i32* %10
%19 = load i32, i32* %10
ret i32 %19
}

LLVM IR (-O2):
define i32 @syscon_add_dobldobl_term(i32 %0, i32 %1, i32* %2, double* %3) {
%5 = alloca [2 x i32]
%6 = bitcast [2 x i32]* %5 to i8*
%7 = getelementptr inbounds [2 x i32], [2 x i32]* %5, i64 0, i64 0
store i32 %1, i32* %7
%8 = getelementptr inbounds [2 x i32], [2 x i32]* %5, i64 0, i64 1
store i32 %0, i32* %8
%9 = call i32 @_ada_use_c2phc(i32 336, i32* %7, i32* %2, double* %3)
ret i32 %9
}
/* Variables and functions */
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, char *);
int /*<<< orphan*/ stdout;
void report_end(void) {
  printf("\r%-79.79s\r", "");
  fflush(stdout);
}


x86 assembly (clang, -O0):
<report_end>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
lea    0xed8(%rip),%rsi
call   1030 <printf@plt>
mov    0x2ea2(%rip),%rax
mov    (%rax),%edi
call   1040 <fflush@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<report_end>:
push   %rax
lea    0xed8(%rip),%rdi
lea    0xedb(%rip),%rsi
call   1030 <printf@plt>
mov    0x2ea5(%rip),%rax
mov    (%rax),%edi
pop    %rax
jmp    1040 <fflush@plt>

LLVM IR (-O0):
@.str = [11 x i8] c"\0D%-79.79s\0D\00"
@.str.1 = [1 x i8] zeroinitializer
@stdout = global i32 0
define void @report_end() {
%1 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%2 = load i32, i32* @stdout
%3 = call i32 @fflush(i32 %2)
ret void
}

LLVM IR (-O2):
@.str = [11 x i8] c"\0D%-79.79s\0D\00"
@.str.1 = [1 x i8] zeroinitializer
@stdout = global i32 0
define void @report_end() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%2 = load i32, i32* @stdout
%3 = tail call i32 @fflush(i32 %2)
ret void
}
int condition_blank(char c) {
  return c == ' ' || c == '\t' || c == '\n' || c == '\r';
}


x86 assembly (clang, -O0):
<condition_blank>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%ecx
mov    $0x1,%al
cmp    $0x20,%ecx
mov    %al,-0x2(%rbp)
je     114d <condition_blank+0x4d>
movsbl -0x1(%rbp),%ecx
mov    $0x1,%al
cmp    $0x9,%ecx
mov    %al,-0x2(%rbp)
je     114d <condition_blank+0x4d>
movsbl -0x1(%rbp),%ecx
mov    $0x1,%al
cmp    $0xa,%ecx
mov    %al,-0x2(%rbp)
je     114d <condition_blank+0x4d>
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):
<condition_blank>:
cmp    $0x20,%dil
ja     1120 <condition_blank+0x20>
mov    $0x1,%eax
movzbl %dil,%ecx
movabs $0x100000600,%rdx
bt     %rcx,%rdx
jae    1120 <condition_blank+0x20>
ret
xor    %eax,%eax
cmp    $0xd,%dil
sete   %al
ret

LLVM IR (-O0):
define i32 @condition_blank(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, 32
br i1 %5, label %18, label %6
6: ; preds = %1
%7 = load i8, i8* %2
%8 = sext i8 %7 to i32
%9 = icmp eq i32 %8, 9
br i1 %9, label %18, label %10
10: ; preds = %6
%11 = load i8, i8* %2
%12 = sext i8 %11 to i32
%13 = icmp eq i32 %12, 10
br i1 %13, label %18, label %14
14: ; preds = %10
%15 = load i8, i8* %2
%16 = sext i8 %15 to i32
%17 = icmp eq i32 %16, 13
br label %18
18: ; preds = %14, %10, %6, %1
%19 = phi i1 [ true, %10 ], [ true, %6 ], [ true, %1 ], [ %17, %14 ]
%20 = zext i1 %19 to i32
ret i32 %20
}

LLVM IR (-O2):
define i32 @condition_blank(i8 signext %0) {
switch i8 %0, label %2 [
i8 32, label %5
i8 10, label %5
i8 9, label %5
]
2: ; preds = %1
%3 = icmp eq i8 %0, 13
%4 = zext i1 %3 to i32
br label %5
5: ; preds = %1, %1, %1, %2
%6 = phi i32 [ 1, %1 ], [ %4, %2 ], [ 1, %1 ], [ 1, %1 ]
ret i32 %6
}
/* Type definitions */
struct memorycontainer {
  int dummy;
};

/* Variables and functions */
struct memorycontainer *createExpression(int, struct memorycontainer *,
                                         struct memorycontainer *);
struct memorycontainer *
createNeqExpression(struct memorycontainer *expression1,
                    struct memorycontainer *expression2) {
  return createExpression(0x05, expression1, expression2);
}


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

x86 assembly (clang, -O2):
<createNeqExpression>:
mov    %rsi,%rdx
mov    %rdi,%rsi
mov    $0x5,%edi
jmp    1030 <createExpression@plt>

LLVM IR (-O0):
%struct.memorycontainer = type { i32 }
define %struct.memorycontainer* @createNeqExpression(%struct.memorycontainer* %0, %struct.memorycontainer* %1) {
%3 = alloca %struct.memorycontainer*
%4 = alloca %struct.memorycontainer*
store %struct.memorycontainer* %0, %struct.memorycontainer** %3
store %struct.memorycontainer* %1, %struct.memorycontainer** %4
%5 = load %struct.memorycontainer*, %struct.memorycontainer** %3
%6 = load %struct.memorycontainer*, %struct.memorycontainer** %4
%7 = call %struct.memorycontainer* @createExpression(i32 5, %struct.memorycontainer* %5, %struct.memorycontainer* %6)
ret %struct.memorycontainer* %7
}

LLVM IR (-O2):
%struct.memorycontainer = type { i32 }
define %struct.memorycontainer* @createNeqExpression(%struct.memorycontainer* %0, %struct.memorycontainer* %1) {
%3 = tail call %struct.memorycontainer* @createExpression(i32 5, %struct.memorycontainer* %0, %struct.memorycontainer* %1)
ret %struct.memorycontainer* %3
}
int ischaracter(char buf[8]) { return (buf[0] > ' ' && buf[0] != 127); }


x86 assembly (clang, -O0):
<ischaracter>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x20,%ecx
mov    %al,-0x9(%rbp)
jle    112d <ischaracter+0x2d>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x7f,%eax
setne  %al
mov    %al,-0x9(%rbp)
mov    -0x9(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<ischaracter>:
mov    (%rdi),%cl
add    $0xdf,%cl
xor    %eax,%eax
cmp    $0x5e,%cl
setb   %al
ret

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

LLVM IR (-O2):
define i32 @ischaracter(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = add i8 %2, -33
%4 = icmp ult i8 %3, 94
%5 = zext i1 %4 to i32
ret i32 %5
}
long sign_long(long num) {
  return ((((((num))) <= (((0)))) ? (((((num))) < (((0)))) ? ((-1)) : ((0)))
                                  : ((1))));
}


x86 assembly (clang, -O0):
<sign_long>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
jg     112d <sign_long+0x2d>
mov    -0x8(%rbp),%rdx
xor    %eax,%eax
mov    $0xffffffff,%ecx
cmp    $0x0,%rdx
cmovl  %ecx,%eax
mov    %eax,-0xc(%rbp)
jmp    113a <sign_long+0x3a>
mov    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    113a <sign_long+0x3a>
mov    -0xc(%rbp),%eax
cltq
pop    %rbp
ret

x86 assembly (clang, -O2):
<sign_long>:
mov    %rdi,%rcx
sar    $0x3f,%rcx
test   %rdi,%rdi
mov    $0x1,%eax
cmovle %rcx,%rax
ret

LLVM IR (-O0):
define i64 @sign_long(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i64, i64* %2
%4 = icmp sle i64 %3, 0
br i1 %4, label %5, label %10
5: ; preds = %1
%6 = load i64, i64* %2
%7 = icmp slt i64 %6, 0
%8 = zext i1 %7 to i64
%9 = select i1 %7, i32 -1, i32 0
br label %11
10: ; preds = %1
br label %11
11: ; preds = %10, %5
%12 = phi i32 [ %9, %5 ], [ 1, %10 ]
%13 = sext i32 %12 to i64
ret i64 %13
}

LLVM IR (-O2):
define i64 @sign_long(i64 %0) {
%2 = icmp slt i64 %0, 1
%3 = ashr i64 %0, 63
%4 = select i1 %2, i64 %3, i64 1
ret i64 %4
}
void SHOW_DEQUE_NODE_ADDRESS(const char *s, void *n) {}


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

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

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

LLVM IR (-O2):
define void @SHOW_DEQUE_NODE_ADDRESS(i8* nocapture %0, i8* nocapture %1) {
ret void
}
/* Type definitions */
struct lb {
  int dummy;
};

/* Variables and functions */
int lb_discr(struct lb *, int /*<<< orphan*/, char *, int, char *,
             int /*<<< orphan*/, char *, void const *);
int lb_hyphen(struct lb *p, int width, const void *info) {
  return lb_discr(p, 0, "", width, "-", 0, "", info);
}


x86 assembly (clang, -O0):
<lb_hyphen>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%ecx
mov    -0x18(%rbp),%rax
xor    %r9d,%r9d
lea    0xec9(%rip),%r10
lea    0xec1(%rip),%r8
mov    %r9d,%esi
mov    %r10,%rdx
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
call   1030 <lb_discr@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<lb_hyphen>:
push   %rax
mov    %rdx,%rax
mov    %esi,%ecx
lea    0xee4(%rip),%rdx
lea    0xedc(%rip),%r8
xor    %esi,%esi
xor    %r9d,%r9d
push   %rax
push   %rdx
call   1030 <lb_discr@plt>
add    $0x10,%rsp
pop    %rcx
ret

LLVM IR (-O0):
%struct.lb = type { i32 }
@.str = [1 x i8] zeroinitializer
@.str.1 = [2 x i8] c"-\00"
define i32 @lb_hyphen(%struct.lb* %0, i32 %1, i8* %2) {
%4 = alloca %struct.lb*
%5 = alloca i32
%6 = alloca i8*
store %struct.lb* %0, %struct.lb** %4
store i32 %1, i32* %5
store i8* %2, i8** %6
%7 = load %struct.lb*, %struct.lb** %4
%8 = load i32, i32* %5
%9 = load i8*, i8** %6
%10 = call i32 @lb_discr(%struct.lb* %7, i32 0, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i32 %8, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32 0, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8* %9)
ret i32 %10
}

LLVM IR (-O2):
%struct.lb = type { i32 }
@.str = [1 x i8] zeroinitializer
@.str.1 = [2 x i8] c"-\00"
define i32 @lb_hyphen(%struct.lb* %0, i32 %1, i8* %2) {
%4 = tail call i32 @lb_discr(%struct.lb* %0, i32 0, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i32 %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32 0, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8* %2)
ret i32 %4
}
/* Type definitions */
struct stat {
  int /*<<< orphan*/ st_mode;
};

/* Variables and functions */
int S_ISREG(int /*<<< orphan*/);
scalar_t__ stat(char const *, struct stat *);
int is_file(const char *path) {
  struct stat st;
  if (path && stat(path, &st) >= 0)
    return S_ISREG(st.st_mode);
  return 0;
}


x86 assembly (clang, -O0):
<is_file>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     115e <is_file+0x3e>
mov    -0x10(%rbp),%rdi
lea    -0x18(%rbp),%rsi
call   1030 <stat@plt>
cmp    $0x0,%rax
jl     115e <is_file+0x3e>
mov    -0x18(%rbp),%edi
call   1040 <S_ISREG@plt>
mov    %eax,-0x4(%rbp)
jmp    1165 <is_file+0x45>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<is_file>:
push   %rbx
sub    $0x10,%rsp
xor    %ebx,%ebx
test   %rdi,%rdi
je     1146 <is_file+0x26>
lea    0x8(%rsp),%rsi
call   1030 <stat@plt>
test   %rax,%rax
js     1146 <is_file+0x26>
mov    0x8(%rsp),%edi
call   1040 <S_ISREG@plt>
mov    %eax,%ebx
mov    %ebx,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
%struct.stat = type { i32 }
define i32 @is_file(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca %struct.stat
store i8* %0, i8** %3
%5 = load i8*, i8** %3
%6 = icmp ne i8* %5, null
br i1 %6, label %7, label %15
7: ; preds = %1
%8 = load i8*, i8** %3
%9 = call i64 @stat(i8* %8, %struct.stat* %4)
%10 = icmp sge i64 %9, 0
br i1 %10, label %11, label %15
11: ; preds = %7
%12 = getelementptr inbounds %struct.stat, %struct.stat* %4, i32 0, i32 0
%13 = load i32, i32* %12
%14 = call i32 @S_ISREG(i32 %13)
store i32 %14, i32* %2
br label %16
15: ; preds = %7, %1
store i32 0, i32* %2
br label %16
16: ; preds = %15, %11
%17 = load i32, i32* %2
ret i32 %17
}

LLVM IR (-O2):
%struct.stat = type { i32 }
define i32 @is_file(i8* %0) {
%2 = alloca %struct.stat
%3 = bitcast %struct.stat* %2 to i8*
%4 = icmp eq i8* %0, null
br i1 %4, label %12, label %5
5: ; preds = %1
%6 = call i64 @stat(i8* %0, %struct.stat* %2)
%7 = icmp sgt i64 %6, -1
br i1 %7, label %8, label %12
8: ; preds = %5
%9 = getelementptr inbounds %struct.stat, %struct.stat* %2, i64 0, i32 0
%10 = load i32, i32* %9
%11 = call i32 @S_ISREG(i32 %10)
br label %12
12: ; preds = %1, %5, %8
%13 = phi i32 [ %11, %8 ], [ 0, %5 ], [ 0, %1 ]
ret i32 %13
}
/* Type definitions */
struct hwtest_ctx {
  int dummy;
};

/* Variables and functions */
int nv84_ptherm_prep(struct hwtest_ctx *);
int nv84_read_temperature_prep(struct hwtest_ctx *ctx) {
  return nv84_ptherm_prep(ctx);
}


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

x86 assembly (clang, -O2):
<nv84_read_temperature_prep>:
jmp    1030 <nv84_ptherm_prep@plt>

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

LLVM IR (-O2):
%struct.hwtest_ctx = type { i32 }
define i32 @nv84_read_temperature_prep(%struct.hwtest_ctx* %0) {
%2 = tail call i32 @nv84_ptherm_prep(%struct.hwtest_ctx* %0)
ret i32 %2
}
/* Variables and functions */
int /*<<< orphan*/ errno;
int /*<<< orphan*/ printf(char *, char const *, char *);
char *strerror(int /*<<< orphan*/);
void perror(const char *str) {
  if (!str)
    str = "";
  printf("%s: %s\n", str, strerror(errno));
}


x86 assembly (clang, -O0):
<perror>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
jne    1142 <perror+0x22>
lea    0xec9(%rip),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    0x2e8f(%rip),%rax
mov    (%rax),%edi
call   1040 <strerror@plt>
mov    -0x10(%rbp),%rsi
mov    %rax,%rdx
lea    0xe9a(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<perror>:
push   %rbx
test   %rdi,%rdi
lea    0xedc(%rip),%rbx
cmovne %rdi,%rbx
mov    0x2eaa(%rip),%rax
mov    (%rax),%edi
call   1040 <strerror@plt>
lea    0xebc(%rip),%rdi
mov    %rbx,%rsi
mov    %rax,%rdx
pop    %rbx
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [1 x i8] zeroinitializer
@.str.1 = [8 x i8] c"%s: %s\0A\00"
@errno = global i32 0
define void @perror(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 %6, label %5
5: ; preds = %1
store i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8** %2
br label %6
6: ; preds = %5, %1
%7 = load i8*, i8** %2
%8 = load i32, i32* @errno
%9 = call i8* @strerror(i32 %8)
%10 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8* %7, i8* %9)
ret void
}

LLVM IR (-O2):
@.str = [1 x i8] zeroinitializer
@.str.1 = [8 x i8] c"%s: %s\0A\00"
@errno = global i32 0
define void @perror(i8* %0) {
%2 = icmp eq i8* %0, null
%3 = select i1 %2, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8* %0
%4 = load i32, i32* @errno
%5 = tail call i8* @strerror(i32 %4)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8* %3, i8* %5)
ret void
}
int do_544() { return 544; }


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

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

LLVM IR (-O0):
define i32 @do_544() {
ret i32 544
}

LLVM IR (-O2):
define i32 @do_544() {
ret i32 544
}