xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ EXIT_FAILURE;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ perror(char *);
void die(char *s) {
  perror(s);
  exit(EXIT_FAILURE);
}


x86 assembly (clang, -O0):
<die>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <perror@plt>
mov    0x2ea4(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<die>:
push   %rax
call   1030 <perror@plt>
mov    0x2eb3(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@EXIT_FAILURE = global i32 0
define void @die(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @perror(i8* %3)
%5 = load i32, i32* @EXIT_FAILURE
%6 = call i32 @exit(i32 %5)
unreachable
}

LLVM IR (-O2):
@EXIT_FAILURE = global i32 0
define void @die(i8* nocapture %0) {
%2 = tail call i32 @perror(i8* %0)
%3 = load i32, i32* @EXIT_FAILURE
%4 = tail call i32 @exit(i32 %3)
unreachable
}
/* Variables and functions */
int read(int, char *, int);
int get_response(int socket, char *response, int response_length) {
  int read_size = read(socket, response, response_length);
  if (read_size == -1) {
    return -1;
  } else {
    response[read_size] = '\0';
    return 0;
  }
}


x86 assembly (clang, -O0):
<get_response>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1030 <read@plt>
mov    %eax,-0x18(%rbp)
cmpl   $0xffffffff,-0x18(%rbp)
jne    114a <get_response+0x3a>
movl   $0xffffffff,-0x4(%rbp)
jmp    115d <get_response+0x4d>
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
movb   $0x0,(%rax,%rcx,1)
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_response>:
push   %rbx
mov    %rsi,%rbx
call   1030 <read@plt>
cmp    $0xffffffff,%eax
je     1128 <get_response+0x18>
cltq
movb   $0x0,(%rbx,%rax,1)
xor    %eax,%eax
pop    %rbx
ret
mov    $0xffffffff,%eax
pop    %rbx
ret

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

LLVM IR (-O2):
define i32 @get_response(i32 %0, i8* nocapture %1, i32 %2) {
%4 = tail call i32 @read(i32 %0, i8* %1, i32 %2)
%5 = icmp eq i32 %4, -1
br i1 %5, label %9, label %6
6: ; preds = %3
%7 = sext i32 %4 to i64
%8 = getelementptr inbounds i8, i8* %1, i64 %7
store i8 0, i8* %8
br label %9
9: ; preds = %3, %6
%10 = phi i32 [ 0, %6 ], [ -1, %3 ]
ret i32 %10
}
void pinmux_disable_setting(struct pinctrl_setting const *setting) {}


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

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

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

LLVM IR (-O2):
%struct.pinctrl_setting = type opaque
define void @pinmux_disable_setting(%struct.pinctrl_setting* nocapture %0) {
ret void
}
void set_fpu_rounding_mode(int round __attribute__((unused))) {}


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

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

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

LLVM IR (-O2):
define void @set_fpu_rounding_mode(i32 %0) {
ret void
}
/* Type definitions */
struct lvmcache_vginfo {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ _update_cache_vginfo_lock_state(struct lvmcache_vginfo *,
                                                   int);
struct lvmcache_vginfo *vginfo_from_vgname(char const *, void *);
void _update_cache_lock_state(const char *vgname, int locked) {
  struct lvmcache_vginfo *vginfo;
  if (!(vginfo = vginfo_from_vgname(vgname, ((void *)0))))
    return;
  _update_cache_vginfo_lock_state(vginfo, locked);
}


x86 assembly (clang, -O0):
<_update_cache_lock_state>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1040 <vginfo_from_vgname@plt>
mov    %rax,-0x18(%rbp)
cmp    $0x0,%rax
jne    114f <_update_cache_lock_state+0x2f>
jmp    115b <_update_cache_lock_state+0x3b>
mov    -0x18(%rbp),%rdi
mov    -0xc(%rbp),%esi
call   1030 <_update_cache_vginfo_lock_state@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_update_cache_lock_state>:
push   %rbx
mov    %esi,%ebx
xor    %esi,%esi
call   1040 <vginfo_from_vgname@plt>
test   %rax,%rax
je     113a <_update_cache_lock_state+0x1a>
mov    %rax,%rdi
mov    %ebx,%esi
pop    %rbx
jmp    1030 <_update_cache_vginfo_lock_state@plt>
pop    %rbx
ret

LLVM IR (-O0):
%struct.lvmcache_vginfo = type { i32 }
define void @_update_cache_lock_state(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
%5 = alloca %struct.lvmcache_vginfo*
store i8* %0, i8** %3
store i32 %1, i32* %4
%6 = load i8*, i8** %3
%7 = call %struct.lvmcache_vginfo* @vginfo_from_vgname(i8* %6, i8* null)
store %struct.lvmcache_vginfo* %7, %struct.lvmcache_vginfo** %5
%8 = icmp ne %struct.lvmcache_vginfo* %7, null
br i1 %8, label %10, label %9
9: ; preds = %2
br label %14
10: ; preds = %2
%11 = load %struct.lvmcache_vginfo*, %struct.lvmcache_vginfo** %5
%12 = load i32, i32* %4
%13 = call i32 @_update_cache_vginfo_lock_state(%struct.lvmcache_vginfo* %11, i32 %12)
br label %14
14: ; preds = %10, %9
ret void
}

LLVM IR (-O2):
%struct.lvmcache_vginfo = type { i32 }
define void @_update_cache_lock_state(i8* %0, i32 %1) {
%3 = tail call %struct.lvmcache_vginfo* @vginfo_from_vgname(i8* %0, i8* null)
%4 = icmp eq %struct.lvmcache_vginfo* %3, null
br i1 %4, label %7, label %5
5: ; preds = %2
%6 = tail call i32 @_update_cache_vginfo_lock_state(%struct.lvmcache_vginfo* %3, i32 %1)
br label %7
7: ; preds = %2, %5
ret void
}
/* Variables and functions */
int /*<<< orphan*/ uiMessage(int, char *, char *, int, char *);
void uiError(char *text, int errnum, char *errtext) {
  uiMessage(1, "%s (%d): %s", text, errnum, errtext);
}


x86 assembly (clang, -O0):
<uiError>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rdx
mov    -0xc(%rbp),%ecx
mov    -0x18(%rbp),%r8
mov    $0x1,%edi
lea    0xec6(%rip),%rsi
call   1030 <uiMessage@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<uiError>:
mov    %rdx,%r8
mov    %esi,%ecx
mov    %rdi,%rdx
lea    0xee1(%rip),%rsi
mov    $0x1,%edi
jmp    1030 <uiMessage@plt>

LLVM IR (-O0):
@.str = [12 x i8] c"%s (%d): %s\00"
define void @uiError(i8* %0, i32 %1, i8* %2) {
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i8*
store i8* %0, i8** %4
store i32 %1, i32* %5
store i8* %2, i8** %6
%7 = load i8*, i8** %4
%8 = load i32, i32* %5
%9 = load i8*, i8** %6
%10 = call i32 @uiMessage(i32 1, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* %7, i32 %8, i8* %9)
ret void
}

LLVM IR (-O2):
@.str = [12 x i8] c"%s (%d): %s\00"
define void @uiError(i8* %0, i32 %1, i8* %2) {
%4 = tail call i32 @uiMessage(i32 1, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* %0, i32 %1, i8* %2)
ret void
}
/* Type definitions */
struct ipc_msg {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ assert(int /*<<< orphan*/);
int destroy_ipc_msg(struct ipc_msg *);
int discard_server_msg(struct ipc_msg *msg) {
  assert(msg != NULL);
  return destroy_ipc_msg(msg);
}


x86 assembly (clang, -O0):
<discard_server_msg>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
setne  %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
mov    -0x8(%rbp),%rdi
call   1030 <destroy_ipc_msg@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<discard_server_msg>:
push   %rbx
mov    %rdi,%rbx
xor    %edi,%edi
test   %rbx,%rbx
setne  %dil
call   1040 <assert@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <destroy_ipc_msg@plt>

LLVM IR (-O0):
%struct.ipc_msg = type { i32 }
define i32 @discard_server_msg(%struct.ipc_msg* %0) {
%2 = alloca %struct.ipc_msg*
store %struct.ipc_msg* %0, %struct.ipc_msg** %2
%3 = load %struct.ipc_msg*, %struct.ipc_msg** %2
%4 = icmp ne %struct.ipc_msg* %3, null
%5 = zext i1 %4 to i32
%6 = call i32 @assert(i32 %5)
%7 = load %struct.ipc_msg*, %struct.ipc_msg** %2
%8 = call i32 @destroy_ipc_msg(%struct.ipc_msg* %7)
ret i32 %8
}

LLVM IR (-O2):
%struct.ipc_msg = type { i32 }
define i32 @discard_server_msg(%struct.ipc_msg* %0) {
%2 = icmp ne %struct.ipc_msg* %0, null
%3 = zext i1 %2 to i32
%4 = tail call i32 @assert(i32 %3)
%5 = tail call i32 @destroy_ipc_msg(%struct.ipc_msg* %0)
ret i32 %5
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ SEEK_SET;
int /*<<< orphan*/ clearerr(int /*<<< orphan*/ *);
scalar_t__ errno;
int /*<<< orphan*/ fseek(int /*<<< orphan*/ *, long, int /*<<< orphan*/);
void rewind(FILE *fp) {
  (void)fseek(fp, 0L, SEEK_SET);
  clearerr(fp);
  errno = 0;
}


x86 assembly (clang, -O0):
<rewind>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    0x2ea1(%rip),%rax
mov    (%rax),%edx
xor    %eax,%eax
mov    %eax,%esi
call   1040 <fseek@plt>
mov    -0x8(%rbp),%rdi
call   1030 <clearerr@plt>
mov    0x2e8e(%rip),%rax
movq   $0x0,(%rax)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rewind>:
push   %rbx
mov    %rdi,%rbx
mov    0x2ead(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   1040 <fseek@plt>
mov    %rbx,%rdi
call   1030 <clearerr@plt>
mov    0x2e9d(%rip),%rax
movq   $0x0,(%rax)
pop    %rbx
ret

LLVM IR (-O0):
@SEEK_SET = global i32 0
@errno = global i64 0
define void @rewind(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = load i32, i32* @SEEK_SET
%5 = call i32 @fseek(i32* %3, i64 0, i32 %4)
%6 = load i32*, i32** %2
%7 = call i32 @clearerr(i32* %6)
store i64 0, i64* @errno
ret void
}

LLVM IR (-O2):
@SEEK_SET = global i32 0
@errno = global i64 0
define void @rewind(i32* nocapture %0) {
%2 = load i32, i32* @SEEK_SET
%3 = tail call i32 @fseek(i32* %0, i64 0, i32 %2)
%4 = tail call i32 @clearerr(i32* %0)
store i64 0, i64* @errno
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ pthread_attr_t;

/* Variables and functions */
int _pthread_get_state(int /*<<< orphan*/ *, int);
int pthread_attr_getinheritsched(pthread_attr_t *a, int *flag) {
  *flag = _pthread_get_state(a, 0x08);
  return 0;
}


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

x86 assembly (clang, -O2):
<pthread_attr_getinheritsched>:
push   %rbx
mov    %rsi,%rbx
mov    $0x8,%esi
call   1030 <_pthread_get_state@plt>
mov    %eax,(%rbx)
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @pthread_attr_getinheritsched(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 = call i32 @_pthread_get_state(i32* %5, i32 8)
%7 = load i32*, i32** %4
store i32 %6, i32* %7
ret i32 0
}

LLVM IR (-O2):
define i32 @pthread_attr_getinheritsched(i32* %0, i32* nocapture writeonly %1) {
%3 = tail call i32 @_pthread_get_state(i32* %0, i32 8)
store i32 %3, i32* %1
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ TOSH_MAKE_HUM_PWR_OUTPUT();
void HUMIDITY_MAKE_PWR_OUTPUT() { TOSH_MAKE_HUM_PWR_OUTPUT(); }


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

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

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

LLVM IR (-O2):
define void @HUMIDITY_MAKE_PWR_OUTPUT() {
%1 = tail call i32 (...) @TOSH_MAKE_HUM_PWR_OUTPUT()
ret void
}
int f3(unsigned a, unsigned b) {
  long long c;
  return __builtin_mul_overflow(a, b, &c);
}


x86 assembly (clang, -O0):
<f3>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%ecx
mov    -0x8(%rbp),%eax
mov    %ecx,%ecx
mov    %eax,%eax
imul   %rax,%rcx
seto   %al
mov    %rcx,-0x10(%rbp)
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<f3>:
mov    %edi,%ecx
mov    %esi,%edx
xor    %eax,%eax
imul   %rcx,%rdx
seto   %al
ret

LLVM IR (-O0):
define i32 @f3(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i64
store i32 %0, i32* %3
store i32 %1, i32* %4
%6 = load i32, i32* %3
%7 = load i32, i32* %4
%8 = zext i32 %6 to i64
%9 = zext i32 %7 to i64
%10 = call { i64, i1 } @llvm.smul.with.overflow.i64(i64 %8, i64 %9)
%11 = extractvalue { i64, i1 } %10, 1
%12 = extractvalue { i64, i1 } %10, 0
store i64 %12, i64* %5
%13 = zext i1 %11 to i32
ret i32 %13
}

LLVM IR (-O2):
define i32 @f3(i32 %0, i32 %1) {
%3 = zext i32 %0 to i64
%4 = zext i32 %1 to i64
%5 = tail call { i64, i1 } @llvm.smul.with.overflow.i64(i64 %3, i64 %4)
%6 = extractvalue { i64, i1 } %5, 1
%7 = zext i1 %6 to i32
ret i32 %7
}
/* Variables and functions */
int /*<<< orphan*/ clearScreen();
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ perror(char const *);
void die(const char *s) {
  clearScreen();
  perror(s);
  exit(1);
}


x86 assembly (clang, -O0):
<die>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    $0x0,%al
call   1030 <clearScreen@plt>
mov    -0x8(%rbp),%rdi
call   1040 <perror@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<die>:
push   %rbx
mov    %rdi,%rbx
xor    %eax,%eax
call   1030 <clearScreen@plt>
mov    %rbx,%rdi
call   1040 <perror@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
define void @die(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 (...) @clearScreen()
%4 = load i8*, i8** %2
%5 = call i32 @perror(i8* %4)
%6 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
define void @die(i8* nocapture %0) {
%2 = tail call i32 (...) @clearScreen()
%3 = tail call i32 @perror(i8* %0)
%4 = tail call i32 @exit(i32 1)
unreachable
}
/* Variables and functions */
int /*<<< orphan*/ endwin();
void nmstermio_restore_terminal(void) { endwin(); }


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

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

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

LLVM IR (-O2):
define void @nmstermio_restore_terminal() {
%1 = tail call i32 (...) @endwin()
ret void
}
/* Variables and functions */
int tuner_get_rssi(void *, int *);
int bbm_com_tuner_get_rssi(void *handle, int *rssi) {
  int res;
  res = tuner_get_rssi(handle, rssi);
  return res;
}


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

x86 assembly (clang, -O2):
<bbm_com_tuner_get_rssi>:
jmp    1030 <tuner_get_rssi@plt>

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

LLVM IR (-O2):
define i32 @bbm_com_tuner_get_rssi(i8* %0, i32* %1) {
%3 = tail call i32 @tuner_get_rssi(i8* %0, i32* %1)
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ strncmp(char const *, char *, int);
const char *ci20_manufacturer_long(const char mfr[2], const char *def) {
  if (!strncmp(mfr, "NP", 2))
    return "Nopa";
  return def;
}


x86 assembly (clang, -O0):
<ci20_manufacturer_long>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xed5(%rip),%rsi
mov    $0x2,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    114e <ci20_manufacturer_long+0x3e>
lea    0xebe(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1156 <ci20_manufacturer_long+0x46>
mov    -0x18(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ci20_manufacturer_long>:
push   %rbx
mov    %rsi,%rbx
lea    0xee5(%rip),%rsi
mov    $0x2,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
lea    0xed5(%rip),%rax
cmovne %rbx,%rax
pop    %rbx
ret

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

LLVM IR (-O2):
@.str = [3 x i8] c"NP\00"
@.str.1 = [5 x i8] c"Nopa\00"
define i8* @ci20_manufacturer_long(i8* %0, i8* readnone %1) {
%3 = tail call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 2)
%4 = icmp eq i32 %3, 0
%5 = select i1 %4, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* %1
ret i8* %5
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, char *);
int /*<<< orphan*/ hexbasenl(int /*<<< orphan*/ *, void const *, int);
void hexbase(FILE *fp, const void *ptr, int len) {
  hexbasenl(fp, ptr, len);
  fprintf(fp, "%s\n", "");
}


x86 assembly (clang, -O0):
<hexbase>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1040 <hexbasenl@plt>
mov    -0x8(%rbp),%rdi
lea    0xeb2(%rip),%rsi
lea    0xeae(%rip),%rdx
call   1030 <fprintf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<hexbase>:
push   %rbx
mov    %rdi,%rbx
call   1040 <hexbasenl@plt>
lea    0xed0(%rip),%rsi
lea    0xecc(%rip),%rdx
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@.str = [4 x i8] c"%s\0A\00"
@.str.1 = [1 x i8] zeroinitializer
define void @hexbase(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 i8*, i8** %5
%9 = load i32, i32* %6
%10 = call i32 @hexbasenl(i32* %7, i8* %8, i32 %9)
%11 = load i32*, i32** %4
%12 = call i32 @fprintf(i32* %11, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [4 x i8] c"%s\0A\00"
@.str.1 = [1 x i8] zeroinitializer
define void @hexbase(i32* %0, i8* %1, i32 %2) {
%4 = tail call i32 @hexbasenl(i32* %0, i8* %1, i32 %2)
%5 = tail call i32 @fprintf(i32* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Variables and functions */
scalar_t__ is_ctl(char const);
char *__skip_ctl(const char *s) {
  while (is_ctl(*s))
    s++;
  return (char *)s;
}


x86 assembly (clang, -O0):
<__skip_ctl>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%edi
call   1030 <is_ctl@plt>
cmp    $0x0,%rax
je     1143 <__skip_ctl+0x33>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    111c <__skip_ctl+0xc>
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<__skip_ctl>:
push   %rbx
mov    %rdi,%rbx
add    $0xffffffffffffffff,%rbx
nopl   0x0(%rax,%rax,1)
movsbl 0x1(%rbx),%edi
add    $0x1,%rbx
call   1030 <is_ctl@plt>
test   %rax,%rax
jne    1120 <__skip_ctl+0x10>
mov    %rbx,%rax
pop    %rbx
ret

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

LLVM IR (-O2):
define i8* @__skip_ctl(i8* %0) {
br label %2
2: ; preds = %2, %1
%3 = phi i8* [ %0, %1 ], [ %7, %2 ]
%4 = load i8, i8* %3
%5 = tail call i64 @is_ctl(i8 signext %4)
%6 = icmp eq i64 %5, 0
%7 = getelementptr inbounds i8, i8* %3, i64 1
br i1 %6, label %8, label %2
8: ; preds = %2
ret i8* %3
}
double fflop(int mx, int my, int mz) {
  return ((double)(mz - 2) * (double)(my - 2) * (double)(mx - 2) * 34.0);
}


x86 assembly (clang, -O0):
<fflop>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    -0xc(%rbp),%eax
sub    $0x2,%eax
cvtsi2sd %eax,%xmm0
mov    -0x8(%rbp),%eax
sub    $0x2,%eax
cvtsi2sd %eax,%xmm1
mulsd  %xmm1,%xmm0
mov    -0x4(%rbp),%eax
sub    $0x2,%eax
cvtsi2sd %eax,%xmm1
mulsd  %xmm1,%xmm0
movsd  0xec5(%rip),%xmm1
mulsd  %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<fflop>:
add    $0xfffffffe,%edx
cvtsi2sd %edx,%xmm1
add    $0xfffffffe,%esi
cvtsi2sd %esi,%xmm2
add    $0xfffffffe,%edi
cvtsi2sd %edi,%xmm0
mulsd  %xmm1,%xmm2
mulsd  %xmm2,%xmm0
mulsd  0xedb(%rip),%xmm0
ret

LLVM IR (-O0):
define double @fflop(i32 %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%7 = load i32, i32* %6
%8 = sub nsw i32 %7, 2
%9 = sitofp i32 %8 to double
%10 = load i32, i32* %5
%11 = sub nsw i32 %10, 2
%12 = sitofp i32 %11 to double
%13 = fmul double %9, %12
%14 = load i32, i32* %4
%15 = sub nsw i32 %14, 2
%16 = sitofp i32 %15 to double
%17 = fmul double %13, %16
%18 = fmul double %17, 3.400000e+01
ret double %18
}

LLVM IR (-O2):
define double @fflop(i32 %0, i32 %1, i32 %2) {
%4 = add nsw i32 %2, -2
%5 = sitofp i32 %4 to double
%6 = add nsw i32 %1, -2
%7 = sitofp i32 %6 to double
%8 = fmul double %7, %5
%9 = add nsw i32 %0, -2
%10 = sitofp i32 %9 to double
%11 = fmul double %8, %10
%12 = fmul double %11, 3.400000e+01
ret double %12
}
/* Type definitions */
typedef int /*<<< orphan*/ uint;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fwrite(int /*<<< orphan*/ *, int, int, int /*<<< orphan*/ *);
void image_to_bin(uint *buff, char *fname, int size) {
  FILE *fd;
  fd = fopen(fname, "wb");
  fwrite(buff, 1, size, fd);
  fclose(fd);
}


x86 assembly (clang, -O0):
<image_to_bin>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xeb2(%rip),%rsi
call   1040 <fopen@plt>
mov    %rax,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x14(%rbp),%edx
mov    -0x20(%rbp),%rcx
mov    $0x1,%esi
call   1050 <fwrite@plt>
mov    -0x20(%rbp),%rdi
call   1030 <fclose@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<image_to_bin>:
push   %rbp
push   %r14
push   %rbx
mov    %edx,%r14d
mov    %rsi,%rax
mov    %rdi,%rbx
lea    0xebc(%rip),%rsi
mov    %rax,%rdi
call   1040 <fopen@plt>
mov    %rax,%rbp
mov    %rbx,%rdi
mov    $0x1,%esi
mov    %r14d,%edx
mov    %rax,%rcx
call   1050 <fwrite@plt>
mov    %rbp,%rdi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1030 <fclose@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"wb\00"
define void @image_to_bin(i32* %0, i8* %1, i32 %2) {
%4 = alloca i32*
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i32*
store i32* %0, i32** %4
store i8* %1, i8** %5
store i32 %2, i32* %6
%8 = load i8*, i8** %5
%9 = call i32* @fopen(i8* %8, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
store i32* %9, i32** %7
%10 = load i32*, i32** %4
%11 = load i32, i32* %6
%12 = load i32*, i32** %7
%13 = call i32 @fwrite(i32* %10, i32 1, i32 %11, i32* %12)
%14 = load i32*, i32** %7
%15 = call i32 @fclose(i32* %14)
ret void
}

LLVM IR (-O2):
@.str = [3 x i8] c"wb\00"
define void @image_to_bin(i32* nocapture %0, i8* nocapture %1, i32 %2) {
%4 = tail call i32* @fopen(i8* %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%5 = tail call i32 @fwrite(i32* %0, i32 1, i32 %2, i32* %4)
%6 = tail call i32 @fclose(i32* %4)
ret void
}
int test_imm_63int64_highword_mem(long long *val) {
  return ((*val >> 32) & (0x63 << 0)) ? -20 : -40;
}


x86 assembly (clang, -O0):
<test_imm_63int64_highword_mem>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%rdx
sar    $0x20,%rdx
and    $0x63,%rdx
mov    $0xffffffd8,%eax
mov    $0xffffffec,%ecx
cmp    $0x0,%rdx
cmovne %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_imm_63int64_highword_mem>:
testb  $0x63,0x4(%rdi)
mov    $0xffffffd8,%ecx
mov    $0xffffffec,%eax
cmove  %ecx,%eax
ret

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

LLVM IR (-O2):
define i32 @test_imm_63int64_highword_mem(i64* nocapture %0) {
%2 = load i64, i64* %0
%3 = and i64 %2, 425201762304
%4 = icmp eq i64 %3, 0
%5 = select i1 %4, i32 -40, i32 -20
ret i32 %5
}
void initialize18F() {}


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

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

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

LLVM IR (-O2):
define void @initialize18F() {
ret void
}
void ls_cost_nm4_decref(void) {}


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

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

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

LLVM IR (-O2):
define void @ls_cost_nm4_decref() {
ret void
}
void free_chmatrix(char **m, long nrl, long nrh, long ncl, long nch) {
  free((m[nrl] + ncl - 1));
  free((m + nrl - 1));
}


x86 assembly (clang, -O0):
<free_chmatrix>:
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
add    -0x20(%rbp),%rdi
add    $0xffffffffffffffff,%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_chmatrix>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
mov    (%rdi,%rsi,8),%rax
lea    (%rax,%rcx,1),%rdi
add    $0xffffffffffffffff,%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_chmatrix(i8** %0, i64 %1, i64 %2, i64 %3, i64 %4) {
%6 = alloca i8**
%7 = alloca i64
%8 = alloca i64
%9 = alloca i64
%10 = alloca i64
store i8** %0, i8*** %6
store i64 %1, i64* %7
store i64 %2, i64* %8
store i64 %3, i64* %9
store i64 %4, i64* %10
%11 = load i8**, i8*** %6
%12 = load i64, i64* %7
%13 = getelementptr inbounds i8*, i8** %11, i64 %12
%14 = load i8*, i8** %13
%15 = load i64, i64* %9
%16 = getelementptr inbounds i8, i8* %14, i64 %15
%17 = getelementptr inbounds i8, i8* %16, i64 -1
%18 = load i8**, i8*** %6
%19 = load i64, i64* %7
%20 = getelementptr inbounds i8*, i8** %18, i64 %19
%21 = getelementptr inbounds i8*, i8** %20, i64 -1
%22 = bitcast i8** %21 to i8*
ret void
}

LLVM IR (-O2):
define void @free_chmatrix(i8** nocapture %0, i64 %1, i64 %2, i64 %3, i64 %4) {
%6 = getelementptr inbounds i8*, i8** %0, i64 %1
%7 = load i8*, i8** %6
%8 = getelementptr inbounds i8, i8* %7, i64 %3
%9 = getelementptr inbounds i8, i8* %8, i64 -1
tail call void @free(i8* %9)
%10 = getelementptr inbounds i8*, i8** %6, i64 -1
%11 = bitcast i8** %10 to i8*
tail call void @free(i8* %11)
ret void
}
void set_piece(int piece, int row, int col, int **board) {
  board[row - 1][8 - col] = piece;
}


x86 assembly (clang, -O0):
<set_piece>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %rcx,-0x18(%rbp)
mov    -0x4(%rbp),%edx
mov    -0x18(%rbp),%rax
mov    -0x8(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
mov    $0x8,%ecx
sub    -0xc(%rbp),%ecx
movslq %ecx,%rcx
mov    %edx,(%rax,%rcx,4)
pop    %rbp
ret

x86 assembly (clang, -O2):
<set_piece>:
movslq %esi,%rax
mov    -0x8(%rcx,%rax,8),%rax
mov    $0x8,%ecx
sub    %edx,%ecx
movslq %ecx,%rcx
mov    %edi,(%rax,%rcx,4)
ret

LLVM IR (-O0):
define void @set_piece(i32 %0, i32 %1, i32 %2, i32** %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32**
store i32 %0, i32* %5
store i32 %1, i32* %6
store i32 %2, i32* %7
store i32** %3, i32*** %8
%9 = load i32, i32* %5
%10 = load i32**, i32*** %8
%11 = load i32, i32* %6
%12 = sub nsw i32 %11, 1
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i32*, i32** %10, i64 %13
%15 = load i32*, i32** %14
%16 = load i32, i32* %7
%17 = sub nsw i32 8, %16
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i32, i32* %15, i64 %18
store i32 %9, i32* %19
ret void
}

LLVM IR (-O2):
define void @set_piece(i32 %0, i32 %1, i32 %2, i32** nocapture %3) {
%5 = add nsw i32 %1, -1
%6 = sext i32 %5 to i64
%7 = getelementptr inbounds i32*, i32** %3, i64 %6
%8 = load i32*, i32** %7
%9 = sub nsw i32 8, %2
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds i32, i32* %8, i64 %10
store i32 %0, i32* %11
ret void
}
/* Variables and functions */
int str_icmp(char const *, char const *);
int object_category_table_cmp(const void *a, const void *b) {
  const char *i = *((const char **)a);
  const char *j = *((const char **)b);
  return str_icmp(i, j);
}


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

x86 assembly (clang, -O2):
<object_category_table_cmp>:
mov    (%rdi),%rdi
mov    (%rsi),%rsi
jmp    1030 <str_icmp@plt>

LLVM IR (-O0):
define i32 @object_category_table_cmp(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%7 = load i8*, i8** %3
%8 = bitcast i8* %7 to i8**
%9 = load i8*, i8** %8
store i8* %9, i8** %5
%10 = load i8*, i8** %4
%11 = bitcast i8* %10 to i8**
%12 = load i8*, i8** %11
store i8* %12, i8** %6
%13 = load i8*, i8** %5
%14 = load i8*, i8** %6
%15 = call i32 @str_icmp(i8* %13, i8* %14)
ret i32 %15
}

LLVM IR (-O2):
define i32 @object_category_table_cmp(i8* nocapture %0, i8* nocapture %1) {
%3 = bitcast i8* %0 to i8**
%4 = load i8*, i8** %3
%5 = bitcast i8* %1 to i8**
%6 = load i8*, i8** %5
%7 = tail call i32 @str_icmp(i8* %4, i8* %6)
ret i32 %7
}
/* Variables and functions */
int /*<<< orphan*/ umfpack_dl_defaults(double *);
void umf4zdef(double Control[20]) { umfpack_dl_defaults(Control); }


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

x86 assembly (clang, -O2):
<umf4zdef>:
jmp    1030 <umfpack_dl_defaults@plt>

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

LLVM IR (-O2):
define void @umf4zdef(double* %0) {
%2 = tail call i32 @umfpack_dl_defaults(double* %0)
ret void
}
/* Variables and functions */
unsigned int hasPPafterTheOffset2(unsigned int, int);
int getLastPage2Offset(unsigned int startOffset, int limit) {
  int offset = 0;
  while ((startOffset = hasPPafterTheOffset2(startOffset, limit)) != 0) {
    offset = startOffset;
  }
  return offset;
}


x86 assembly (clang, -O0):
<getLastPage2Offset>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1030 <hasPPafterTheOffset2@plt>
mov    %eax,-0x4(%rbp)
cmp    $0x0,%eax
je     1147 <getLastPage2Offset+0x37>
mov    -0x4(%rbp),%eax
mov    %eax,-0xc(%rbp)
jmp    1125 <getLastPage2Offset+0x15>
mov    -0xc(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<getLastPage2Offset>:
push   %rbp
push   %rbx
push   %rax
mov    %esi,%ebx
mov    %edi,%eax
xor    %ecx,%ecx
nopl   0x0(%rax)
mov    %ecx,%ebp
mov    %eax,%edi
mov    %ebx,%esi
call   1030 <hasPPafterTheOffset2@plt>
mov    %eax,%ecx
test   %eax,%eax
jne    1120 <getLastPage2Offset+0x10>
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

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

LLVM IR (-O2):
define i32 @getLastPage2Offset(i32 %0, i32 %1) {
br label %3
3: ; preds = %3, %2
%4 = phi i32 [ %0, %2 ], [ %6, %3 ]
%5 = phi i32 [ 0, %2 ], [ %6, %3 ]
%6 = tail call i32 @hasPPafterTheOffset2(i32 %4, i32 %1)
%7 = icmp eq i32 %6, 0
br i1 %7, label %8, label %3
8: ; preds = %3
ret i32 %5
}
/* Variables and functions */
int invert(int /*<<< orphan*/, int, int);
int /*<<< orphan*/ printf(char *, int);
int main() {
  printf("%d\n", invert(0, 2, 3));
  return 0;
}


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

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

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

LLVM IR (-O2):
@.str = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = tail call i32 @invert(i32 0, i32 2, i32 3)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %1)
ret i32 0
}
/* Variables and functions */
int rand();
int random_number(int start, int end) {
  int random_num;
  random_num = (rand() % ((end - start))) + start;
  return random_num;
}


x86 assembly (clang, -O0):
<random_number>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    $0x0,%al
call   1030 <rand@plt>
mov    -0x8(%rbp),%ecx
sub    -0x4(%rbp),%ecx
cltd
idiv   %ecx
add    -0x4(%rbp),%edx
mov    %edx,-0xc(%rbp)
mov    -0xc(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<random_number>:
push   %rbp
push   %rbx
push   %rax
mov    %esi,%ebx
mov    %edi,%ebp
xor    %eax,%eax
call   1030 <rand@plt>
sub    %ebp,%ebx
cltd
idiv   %ebx
add    %edx,%ebp
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define i32 @random_number(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%6 = call i32 (...) @rand()
%7 = load i32, i32* %4
%8 = load i32, i32* %3
%9 = sub nsw i32 %7, %8
%10 = srem i32 %6, %9
%11 = load i32, i32* %3
%12 = add nsw i32 %10, %11
store i32 %12, i32* %5
%13 = load i32, i32* %5
ret i32 %13
}

LLVM IR (-O2):
define i32 @random_number(i32 %0, i32 %1) {
%3 = tail call i32 (...) @rand()
%4 = sub nsw i32 %1, %0
%5 = srem i32 %3, %4
%6 = add nsw i32 %5, %0
ret i32 %6
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int main(void) {
  printf("name_to_handle_at and open_by_handle_at seem to be unsupported by "
         "your libc.\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%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 = [78 x i8] c"name_to_handle_at and open_by_handle_at seem to be unsupported by your libc.\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @printf(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@str = [77 x i8] c"name_to_handle_at and open_by_handle_at seem to be unsupported by your libc.\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([77 x i8], [77 x i8]* @str, i64 0, i64 0))
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ handle_39(int /*<<< orphan*/);
int gen_39() { handle_39(0); }


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

x86 assembly (clang, -O2):
<gen_39>:
xor    %edi,%edi
jmp    1030 <handle_39@plt>

LLVM IR (-O0):
define i32 @gen_39() {
%1 = alloca i32
%2 = call i32 @handle_39(i32 0)
%3 = load i32, i32* %1
ret i32 %3
}

LLVM IR (-O2):
define i32 @gen_39() {
%1 = tail call i32 @handle_39(i32 0)
ret i32 undef
}
/* Variables and functions */
int t();
int main() { return t() + t() + t(); }


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

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
xor    %eax,%eax
call   1030 <t@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1030 <t@plt>
mov    %eax,%ebp
add    %ebx,%ebp
xor    %eax,%eax
call   1030 <t@plt>
add    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @t()
%3 = call i32 (...) @t()
%4 = add nsw i32 %2, %3
%5 = call i32 (...) @t()
%6 = add nsw i32 %4, %5
ret i32 %6
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @t()
%2 = tail call i32 (...) @t()
%3 = add nsw i32 %2, %1
%4 = tail call i32 (...) @t()
%5 = add nsw i32 %3, %4
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ isspace(char);
int is_line_blank(char *line) {
  char *p;
  for (p = line; *p; p++) {
    if (!isspace(*p))
      return 0;
  }
  return 1;
}


x86 assembly (clang, -O0):
<is_line_blank>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
cmpb   $0x0,(%rax)
je     1168 <is_line_blank+0x58>
mov    -0x18(%rbp),%rax
movsbl (%rax),%edi
call   1030 <isspace@plt>
cmp    $0x0,%eax
jne    1152 <is_line_blank+0x42>
movl   $0x0,-0x4(%rbp)
jmp    116f <is_line_blank+0x5f>
jmp    1157 <is_line_blank+0x47>
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
jmp    1124 <is_line_blank+0x14>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @is_line_blank(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %13, label %7
4: ; preds = %7
%5 = load i8, i8* %12
%6 = icmp eq i8 %5, 0
br i1 %6, label %13, label %7
7: ; preds = %1, %4
%8 = phi i8 [ %5, %4 ], [ %2, %1 ]
%9 = phi i8* [ %12, %4 ], [ %0, %1 ]
%10 = tail call i32 @isspace(i8 signext %8)
%11 = icmp eq i32 %10, 0
%12 = getelementptr inbounds i8, i8* %9, i64 1
br i1 %11, label %13, label %4
13: ; preds = %7, %4, %1
%14 = phi i32 [ 1, %1 ], [ 1, %4 ], [ 0, %7 ]
ret i32 %14
}
int is_first_id_letter(int c) {
  return (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || c == '$' ||
         c == '_' || c == '/' || c == '\\';
}


x86 assembly (clang, -O0):
<is_first_id_letter>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
cmpl   $0x61,-0x4(%rbp)
jl     1120 <is_first_id_letter+0x20>
mov    $0x1,%al
cmpl   $0x7a,-0x4(%rbp)
mov    %al,-0x5(%rbp)
jle    1170 <is_first_id_letter+0x70>
cmpl   $0x41,-0x4(%rbp)
jl     1139 <is_first_id_letter+0x39>
mov    $0x1,%al
cmpl   $0x5a,-0x4(%rbp)
mov    %al,-0x5(%rbp)
jle    1170 <is_first_id_letter+0x70>
mov    $0x1,%al
cmpl   $0x24,-0x4(%rbp)
mov    %al,-0x5(%rbp)
je     1170 <is_first_id_letter+0x70>
mov    $0x1,%al
cmpl   $0x5f,-0x4(%rbp)
mov    %al,-0x5(%rbp)
je     1170 <is_first_id_letter+0x70>
mov    $0x1,%al
cmpl   $0x2f,-0x4(%rbp)
mov    %al,-0x5(%rbp)
je     1170 <is_first_id_letter+0x70>
cmpl   $0x5c,-0x4(%rbp)
sete   %al
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<is_first_id_letter>:
mov    %edi,%ecx
and    $0xffffffdf,%ecx
add    $0xffffffbf,%ecx
mov    $0x1,%eax
cmp    $0x1a,%ecx
jb     112a <is_first_id_letter+0x2a>
lea    -0x24(%rdi),%ecx
cmp    $0x3b,%ecx
ja     112b <is_first_id_letter+0x2b>
movabs $0x800000000000801,%rdx
bt     %rcx,%rdx
jae    112b <is_first_id_letter+0x2b>
ret
xor    %eax,%eax
cmp    $0x5c,%edi
sete   %al
ret

LLVM IR (-O0):
define i32 @is_first_id_letter(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp sge i32 %3, 97
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load i32, i32* %2
%7 = icmp sle i32 %6, 122
br i1 %7, label %26, label %8
8: ; preds = %5, %1
%9 = load i32, i32* %2
%10 = icmp sge i32 %9, 65
br i1 %10, label %11, label %14
11: ; preds = %8
%12 = load i32, i32* %2
%13 = icmp sle i32 %12, 90
br i1 %13, label %26, label %14
14: ; preds = %11, %8
%15 = load i32, i32* %2
%16 = icmp eq i32 %15, 36
br i1 %16, label %26, label %17
17: ; preds = %14
%18 = load i32, i32* %2
%19 = icmp eq i32 %18, 95
br i1 %19, label %26, label %20
20: ; preds = %17
%21 = load i32, i32* %2
%22 = icmp eq i32 %21, 47
br i1 %22, label %26, label %23
23: ; preds = %20
%24 = load i32, i32* %2
%25 = icmp eq i32 %24, 92
br label %26
26: ; preds = %23, %20, %17, %14, %11, %5
%27 = phi i1 [ true, %20 ], [ true, %17 ], [ true, %14 ], [ true, %11 ], [ true, %5 ], [ %25, %23 ]
%28 = zext i1 %27 to i32
ret i32 %28
}

LLVM IR (-O2):
define i32 @is_first_id_letter(i32 %0) {
%2 = and i32 %0, -33
%3 = add i32 %2, -65
%4 = icmp ult i32 %3, 26
br i1 %4, label %9, label %5
5: ; preds = %1
switch i32 %0, label %6 [
i32 95, label %9
i32 47, label %9
i32 36, label %9
]
6: ; preds = %5
%7 = icmp eq i32 %0, 92
%8 = zext i1 %7 to i32
br label %9
9: ; preds = %5, %5, %5, %1, %6
%10 = phi i32 [ %8, %6 ], [ 1, %1 ], [ 1, %5 ], [ 1, %5 ], [ 1, %5 ]
ret i32 %10
}
/* Variables and functions */
int exp(double const);
double logistic_activate(const double x) { return 1. / (1. + exp(-x)); }


x86 assembly (clang, -O0):
<logistic_activate>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
call   1030 <exp@plt>
cvtsi2sd %eax,%xmm0
movsd  0xeb6(%rip),%xmm1
addsd  %xmm0,%xmm1
movsd  0xeaa(%rip),%xmm0
divsd  %xmm1,%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<logistic_activate>:
push   %rax
xorps  0xee8(%rip),%xmm0
call   1030 <exp@plt>
cvtsi2sd %eax,%xmm1
movsd  0xee7(%rip),%xmm0
addsd  %xmm0,%xmm1
divsd  %xmm1,%xmm0
pop    %rax
ret

LLVM IR (-O0):
define double @logistic_activate(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = load double, double* %2
%4 = fneg double %3
%5 = call i32 @exp(double %4)
%6 = sitofp i32 %5 to double
%7 = fadd double 1.000000e+00, %6
%8 = fdiv double 1.000000e+00, %7
ret double %8
}

LLVM IR (-O2):
define double @logistic_activate(double %0) {
%2 = fneg double %0
%3 = tail call i32 @exp(double %2)
%4 = sitofp i32 %3 to double
%5 = fadd double %4, 1.000000e+00
%6 = fdiv double 1.000000e+00, %5
ret double %6
}