xunge/DecIR huggingface dataset:
/* Variables and functions */
int _ada_use_c2phc4c(int, int *, int *, double *, int /*<<< orphan*/);
int solcon_length_standard_solution_string(int k, int *n) {
  int fail;
  double *c;
  fail = _ada_use_c2phc4c(200, &k, n, c, 0);
  return fail;
}


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

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

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

LLVM IR (-O2):
define i32 @solcon_length_standard_solution_string(i32 %0, i32* %1) {
%3 = alloca i32
store i32 %0, i32* %3
%4 = call i32 @_ada_use_c2phc4c(i32 200, i32* %3, i32* %1, double* undef, i32 0)
ret i32 %4
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ Encode(int, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ putc(int /*<<< orphan*/, int /*<<< orphan*/ *);
void write_encoded(int n, FILE *fp) {
  putc(((n < 0) ? Encode(-n, (0x40), fp) : Encode(n, 0, fp)), fp);
}


x86 assembly (clang, -O0):
<write_encoded>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x0,-0x4(%rbp)
jge    1154 <write_encoded+0x34>
xor    %edi,%edi
sub    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rdx
mov    $0x40,%esi
call   1040 <Encode@plt>
mov    %eax,-0x14(%rbp)
jmp    1165 <write_encoded+0x45>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rdx
xor    %esi,%esi
call   1040 <Encode@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1030 <putc@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<write_encoded>:
push   %rbx
mov    %rsi,%rbx
test   %edi,%edi
js     112c <write_encoded+0xc>
xor    %esi,%esi
jmp    1133 <write_encoded+0x13>
neg    %edi
mov    $0x40,%esi
mov    %rbx,%rdx
call   1040 <Encode@plt>
mov    %eax,%edi
mov    %rbx,%rsi
pop    %rbx
jmp    1030 <putc@plt>

LLVM IR (-O0):
define void @write_encoded(i32 %0, i32* %1) {
%3 = alloca i32
%4 = alloca i32*
store i32 %0, i32* %3
store i32* %1, i32** %4
%5 = load i32, i32* %3
%6 = icmp slt i32 %5, 0
br i1 %6, label %7, label %12
7: ; preds = %2
%8 = load i32, i32* %3
%9 = sub nsw i32 0, %8
%10 = load i32*, i32** %4
%11 = call i32 @Encode(i32 %9, i32 64, i32* %10)
br label %16
12: ; preds = %2
%13 = load i32, i32* %3
%14 = load i32*, i32** %4
%15 = call i32 @Encode(i32 %13, i32 0, i32* %14)
br label %16
16: ; preds = %12, %7
%17 = phi i32 [ %11, %7 ], [ %15, %12 ]
%18 = load i32*, i32** %4
%19 = call i32 @putc(i32 %17, i32* %18)
ret void
}

LLVM IR (-O2):
define void @write_encoded(i32 %0, i32* %1) {
%3 = icmp slt i32 %0, 0
br i1 %3, label %4, label %7
4: ; preds = %2
%5 = sub nsw i32 0, %0
%6 = tail call i32 @Encode(i32 %5, i32 64, i32* %1)
br label %9
7: ; preds = %2
%8 = tail call i32 @Encode(i32 %0, i32 0, i32* %1)
br label %9
9: ; preds = %7, %4
%10 = phi i32 [ %6, %4 ], [ %8, %7 ]
%11 = tail call i32 @putc(i32 %10, i32* %1)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;

/* Variables and functions */
uint8_t *ses_config_sub_enclosure(uint8_t *data) { return data + 8; }


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

x86 assembly (clang, -O2):
<ses_config_sub_enclosure>:
lea    0x20(%rdi),%rax
ret

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

LLVM IR (-O2):
define i32* @ses_config_sub_enclosure(i32* readnone %0) {
%2 = getelementptr inbounds i32, i32* %0, i64 8
ret i32* %2
}
int t1(float *f, int i, void (*f1)(double), void (*f2)(float, float)) {
  f1(3.0);
  f[i] = f[i + 1];
  f2(2.5f, 3.5f);
}


x86 assembly (clang, -O0):
<t1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
movsd  0xee9(%rip),%xmm0
call   *-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
movss  0xeb7(%rip),%xmm0
movss  0xeb3(%rip),%xmm1
call   *-0x28(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<t1>:
push   %rbp
push   %r14
push   %rbx
mov    %rcx,%r14
mov    %esi,%ebp
mov    %rdi,%rbx
movsd  0xeec(%rip),%xmm0
call   *%rdx
movslq %ebp,%rax
movss  0x4(%rbx,%rax,4),%xmm0
movss  %xmm0,(%rbx,%rax,4)
movss  0xedc(%rip),%xmm0
movss  0xed8(%rip),%xmm1
mov    %r14,%rax
pop    %rbx
pop    %r14
pop    %rbp
jmp    *%rax

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

LLVM IR (-O2):
define i32 @t1(float* nocapture %0, i32 %1, void (double)* nocapture %2, void (float, float)* nocapture %3) {
tail call void %2(double 3.000000e+00)
%5 = add nsw i32 %1, 1
%6 = sext i32 %5 to i64
%7 = getelementptr inbounds float, float* %0, i64 %6
%8 = load float, float* %7
%9 = sext i32 %1 to i64
%10 = getelementptr inbounds float, float* %0, i64 %9
store float %8, float* %10
tail call void %3(float 2.500000e+00, float 3.500000e+00)
ret i32 undef
}
/* Variables and functions */
float logf(float);
float Log2Thres(float x, float Thres) {
  return logf(x > Thres ? x : Thres) / (0.6931471805599453f);
}


x86 assembly (clang, -O0):
<Log2Thres>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  -0x4(%rbp),%xmm0
ucomiss -0x8(%rbp),%xmm0
jbe    1140 <Log2Thres+0x30>
movss  -0x4(%rbp),%xmm0
movss  %xmm0,-0xc(%rbp)
jmp    114a <Log2Thres+0x3a>
movss  -0x8(%rbp),%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0xc(%rbp),%xmm0
call   1030 <logf@plt>
movss  0xea4(%rip),%xmm1
divss  %xmm1,%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Log2Thres>:
push   %rax
maxss  %xmm1,%xmm0
call   1030 <logf@plt>
divss  0xede(%rip),%xmm0
pop    %rax
ret

LLVM IR (-O0):
define float @Log2Thres(float %0, float %1) {
%3 = alloca float
%4 = alloca float
store float %0, float* %3
store float %1, float* %4
%5 = load float, float* %3
%6 = load float, float* %4
%7 = fcmp ogt float %5, %6
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = load float, float* %3
br label %12
10: ; preds = %2
%11 = load float, float* %4
br label %12
12: ; preds = %10, %8
%13 = phi float [ %9, %8 ], [ %11, %10 ]
%14 = call float @logf(float %13)
%15 = fdiv float %14, 0x3FE62E4300000000
ret float %15
}

LLVM IR (-O2):
define float @Log2Thres(float %0, float %1) {
%3 = fcmp ogt float %0, %1
%4 = select i1 %3, float %0, float %1
%5 = tail call float @logf(float %4)
%6 = fdiv float %5, 0x3FE62E4300000000
ret float %6
}
/* Variables and functions */
int arrayf_recfft(float *, float *, int);
int arrayf_fft(float *xr, float *xi, int n) {
  return (arrayf_recfft(xr, xi, n));
}


x86 assembly (clang, -O0):
<arrayf_fft>:
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   1030 <arrayf_recfft@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<arrayf_fft>:
jmp    1030 <arrayf_recfft@plt>

LLVM IR (-O0):
define i32 @arrayf_fft(float* %0, float* %1, i32 %2) {
%4 = alloca float*
%5 = alloca float*
%6 = alloca i32
store float* %0, float** %4
store float* %1, float** %5
store i32 %2, i32* %6
%7 = load float*, float** %4
%8 = load float*, float** %5
%9 = load i32, i32* %6
%10 = call i32 @arrayf_recfft(float* %7, float* %8, i32 %9)
ret i32 %10
}

LLVM IR (-O2):
define i32 @arrayf_fft(float* %0, float* %1, i32 %2) {
%4 = tail call i32 @arrayf_recfft(float* %0, float* %1, i32 %2)
ret i32 %4
}
/* Type definitions */
struct stat {
  int dummy;
};

/* Variables and functions */
int lstat(char const *, struct stat *);
int stat(char const *, struct stat *);
int fossil_stat(const char *zFilename, struct stat *buf, int isWd) {
  if (isWd && true) {
    return lstat(zFilename, buf);
  } else {
    return stat(zFilename, buf);
  }
}


x86 assembly (clang, -O0):
<fossil_stat>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %edx,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
je     1152 <fossil_stat+0x32>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1030 <lstat@plt>
mov    %eax,-0x4(%rbp)
jmp    1162 <fossil_stat+0x42>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1040 <stat@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fossil_stat>:
test   %edx,%edx
je     1129 <fossil_stat+0x9>
jmp    1030 <lstat@plt>
jmp    1040 <stat@plt>

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

LLVM IR (-O2):
%struct.stat = type { i32 }
define i32 @fossil_stat(i8* nocapture %0, %struct.stat* nocapture %1, i32 %2) {
%4 = icmp eq i32 %2, 0
br i1 %4, label %7, label %5
5: ; preds = %3
%6 = tail call i32 @lstat(i8* %0, %struct.stat* %1)
br label %9
7: ; preds = %3
%8 = tail call i32 @stat(i8* %0, %struct.stat* %1)
br label %9
9: ; preds = %7, %5
%10 = phi i32 [ %6, %5 ], [ %8, %7 ]
ret i32 %10
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, void *, size_t);
void write_handler(void *rm_addr, size_t size) {
  printf("*** WRITE_HANDLER *** rm_addr = %p, size = %d\n", rm_addr, size);
}


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

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

LLVM IR (-O0):
@.str = [47 x i8] c"*** WRITE_HANDLER *** rm_addr = %p, size = %d\0A\00"
define void @write_handler(i8* %0, i64 %1) {
%3 = alloca i8*
%4 = alloca i64
store i8* %0, i8** %3
store i64 %1, i64* %4
%5 = load i8*, i8** %3
%6 = load i64, i64* %4
%7 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0), i8* %5, i64 %6)
ret void
}

LLVM IR (-O2):
@.str = [47 x i8] c"*** WRITE_HANDLER *** rm_addr = %p, size = %d\0A\00"
define void @write_handler(i8* %0, i64 %1) {
%3 = tail call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0), i8* %0, i64 %1)
ret void
}
/* Variables and functions */
int newDbGetLastupdateDevicesDev(int, int);
int newDbGetLastupdateLamp(void) { return newDbGetLastupdateDevicesDev(6, 6); }


x86 assembly (clang, -O0):
<newDbGetLastupdateLamp>:
push   %rbp
mov    %rsp,%rbp
mov    $0x6,%esi
mov    %esi,%edi
call   1030 <newDbGetLastupdateDevicesDev@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<newDbGetLastupdateLamp>:
mov    $0x6,%edi
mov    $0x6,%esi
jmp    1030 <newDbGetLastupdateDevicesDev@plt>

LLVM IR (-O0):
define i32 @newDbGetLastupdateLamp() {
%1 = call i32 @newDbGetLastupdateDevicesDev(i32 6, i32 6)
ret i32 %1
}

LLVM IR (-O2):
define i32 @newDbGetLastupdateLamp() {
%1 = tail call i32 @newDbGetLastupdateDevicesDev(i32 6, i32 6)
ret i32 %1
}
/* Variables and functions */
int /*<<< orphan*/ timer_init();
int /*<<< orphan*/ uart_init(int);
void board_init() {
  timer_init();
  uart_init((0x10009000));
}


x86 assembly (clang, -O0):
<board_init>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1040 <timer_init@plt>
mov    $0x10009000,%edi
call   1030 <uart_init@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<board_init>:
push   %rax
xor    %eax,%eax
call   1040 <timer_init@plt>
mov    $0x10009000,%edi
pop    %rax
jmp    1030 <uart_init@plt>

LLVM IR (-O0):
define void @board_init() {
%1 = call i32 (...) @timer_init()
%2 = call i32 @uart_init(i32 268472320)
ret void
}

LLVM IR (-O2):
define void @board_init() {
%1 = tail call i32 (...) @timer_init()
%2 = tail call i32 @uart_init(i32 268472320)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ mock_push(int /*<<< orphan*/);
int /*<<< orphan*/ pack_glXClientInfo(int /*<<< orphan*/ *);
void glXClientInfo() {
  { mock_push(pack_glXClientInfo(NULL)); };
}


x86 assembly (clang, -O0):
<glXClientInfo>:
push   %rbp
mov    %rsp,%rbp
xor    %eax,%eax
mov    %eax,%edi
call   1030 <pack_glXClientInfo@plt>
mov    %eax,%edi
call   1040 <mock_push@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<glXClientInfo>:
push   %rax
xor    %edi,%edi
call   1030 <pack_glXClientInfo@plt>
mov    %eax,%edi
pop    %rax
jmp    1040 <mock_push@plt>

LLVM IR (-O0):
define void @glXClientInfo() {
%1 = call i32 @pack_glXClientInfo(i32* null)
%2 = call i32 @mock_push(i32 %1)
ret void
}

LLVM IR (-O2):
define void @glXClientInfo() {
%1 = tail call i32 @pack_glXClientInfo(i32* null)
%2 = tail call i32 @mock_push(i32 %1)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ send_msg(char *, int /*<<< orphan*/);
int /*<<< orphan*/ strlen(char *);
void send_error(char *error_message) {
  send_msg(error_message, strlen(error_message));
}


x86 assembly (clang, -O0):
<send_error>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0x10(%rbp),%rdi
mov    %eax,%esi
call   1040 <send_msg@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<send_error>:
push   %rbx
mov    %rdi,%rbx
call   1030 <strlen@plt>
mov    %rbx,%rdi
mov    %eax,%esi
pop    %rbx
jmp    1040 <send_msg@plt>

LLVM IR (-O0):
define void @send_error(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = load i8*, i8** %2
%5 = call i32 @strlen(i8* %4)
%6 = call i32 @send_msg(i8* %3, i32 %5)
ret void
}

LLVM IR (-O2):
define void @send_error(i8* %0) {
%2 = tail call i32 @strlen(i8* %0)
%3 = tail call i32 @send_msg(i8* %0, i32 %2)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ wchar_t;
typedef int /*<<< orphan*/ va_list;

/* Variables and functions */
int __infer_nondet_int();
int vwprintf(const wchar_t *format, va_list arg) {
  int res;
  res = __infer_nondet_int();
  if (res < 0)
    while (1)
      ;
  return res;
}


x86 assembly (clang, -O0):
<vwprintf>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    $0x0,%al
call   1030 <__infer_nondet_int@plt>
mov    %eax,-0x10(%rbp)
cmpl   $0x0,-0x10(%rbp)
jge    113d <vwprintf+0x2d>
jmp    1138 <vwprintf+0x28>
jmp    1138 <vwprintf+0x28>
mov    -0x10(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<vwprintf>:
push   %rax
xor    %eax,%eax
call   1030 <__infer_nondet_int@plt>
test   %eax,%eax
js     1120 <vwprintf+0x10>
pop    %rcx
ret
xchg   %ax,%ax
jmp    1120 <vwprintf+0x10>

LLVM IR (-O0):
define i32 @vwprintf(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 (...) @__infer_nondet_int()
store i32 %6, i32* %5
%7 = load i32, i32* %5
%8 = icmp slt i32 %7, 0
br i1 %8, label %9, label %11
9: ; preds = %2
br label %10
10: ; preds = %9, %10
br label %10
11: ; preds = %2
%12 = load i32, i32* %5
ret i32 %12
}

LLVM IR (-O2):
define i32 @vwprintf(i32* nocapture readnone %0, i32 %1) {
%3 = tail call i32 (...) @__infer_nondet_int()
%4 = icmp slt i32 %3, 0
br i1 %4, label %5, label %6
5: ; preds = %2, %5
br label %5
6: ; preds = %2
ret i32 %3
}
int capture_w(const char *carg, void *pvar) {
  int *p = pvar;
  if (!p)
    return 1;
  *p = 'w';
  return 0;
}


x86 assembly (clang, -O0):
<capture_w>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
jne    112b <capture_w+0x2b>
movl   $0x1,-0x4(%rbp)
jmp    113c <capture_w+0x3c>
mov    -0x20(%rbp),%rax
movl   $0x77,(%rax)
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<capture_w>:
test   %rsi,%rsi
je     110e <capture_w+0xe>
movl   $0x77,(%rsi)
xor    %eax,%eax
ret
mov    $0x1,%eax
ret

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

LLVM IR (-O2):
define i32 @capture_w(i8* nocapture readnone %0, i8* writeonly %1) {
%3 = icmp eq i8* %1, null
br i1 %3, label %6, label %4
4: ; preds = %2
%5 = bitcast i8* %1 to i32*
store i32 119, i32* %5
br label %6
6: ; preds = %2, %4
%7 = phi i32 [ 0, %4 ], [ 1, %2 ]
ret i32 %7
}
void rop3_90_1_0(unsigned char *D, unsigned char S, unsigned char T) {
  unsigned char stk1;
  stk1 = *D ^ T;
  *D = (stk1 & (~S)) | (*D & S);
}


x86 assembly (clang, -O0):
<rop3_90_1_0>:
push   %rbp
mov    %rsp,%rbp
mov    %dl,%al
mov    %sil,%cl
mov    %rdi,-0x8(%rbp)
mov    %cl,-0x9(%rbp)
mov    %al,-0xa(%rbp)
mov    -0x8(%rbp),%rax
movzbl (%rax),%eax
movzbl -0xa(%rbp),%ecx
xor    %ecx,%eax
mov    %al,-0xb(%rbp)
movzbl -0xb(%rbp),%eax
movzbl -0x9(%rbp),%ecx
xor    $0xffffffff,%ecx
and    %ecx,%eax
mov    -0x8(%rbp),%rcx
movzbl (%rcx),%ecx
movzbl -0x9(%rbp),%edx
and    %edx,%ecx
or     %ecx,%eax
mov    %al,%cl
mov    -0x8(%rbp),%rax
mov    %cl,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<rop3_90_1_0>:
mov    (%rdi),%al
xor    %al,%dl
xor    %dl,%al
and    %sil,%al
xor    %dl,%al
mov    %al,(%rdi)
ret

LLVM IR (-O0):
define void @rop3_90_1_0(i8* %0, i8 zeroext %1, i8 zeroext %2) {
%4 = alloca i8*
%5 = alloca i8
%6 = alloca i8
%7 = alloca i8
store i8* %0, i8** %4
store i8 %1, i8* %5
store i8 %2, i8* %6
%8 = load i8*, i8** %4
%9 = load i8, i8* %8
%10 = zext i8 %9 to i32
%11 = load i8, i8* %6
%12 = zext i8 %11 to i32
%13 = xor i32 %10, %12
%14 = trunc i32 %13 to i8
store i8 %14, i8* %7
%15 = load i8, i8* %7
%16 = zext i8 %15 to i32
%17 = load i8, i8* %5
%18 = zext i8 %17 to i32
%19 = xor i32 %18, -1
%20 = and i32 %16, %19
%21 = load i8*, i8** %4
%22 = load i8, i8* %21
%23 = zext i8 %22 to i32
%24 = load i8, i8* %5
%25 = zext i8 %24 to i32
%26 = and i32 %23, %25
%27 = or i32 %20, %26
%28 = trunc i32 %27 to i8
%29 = load i8*, i8** %4
store i8 %28, i8* %29
ret void
}

LLVM IR (-O2):
define void @rop3_90_1_0(i8* nocapture %0, i8 zeroext %1, i8 zeroext %2) {
%4 = load i8, i8* %0
%5 = xor i8 %4, %2
%6 = xor i8 %1, -1
%7 = and i8 %5, %6
%8 = and i8 %4, %1
%9 = or i8 %7, %8
store i8 %9, i8* %0
ret void
}
double mandel(double _Complex C) {
  int py;
  C = (__extension__ 1.0iF) * (double)py;
  return cabs(C);
}


x86 assembly (clang, -O0):
<mandel>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movsd  %xmm0,-0x10(%rbp)
movsd  %xmm1,-0x8(%rbp)
cvtsi2sdl -0x14(%rbp),%xmm2
xorps  %xmm1,%xmm1
mulsd  %xmm2,%xmm1
movsd  0xeca(%rip),%xmm0
mulsd  %xmm2,%xmm0
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm0,-0x8(%rbp)
movsd  -0x10(%rbp),%xmm1
movsd  -0x8(%rbp),%xmm0
movsd  %xmm1,-0x28(%rbp)
movsd  %xmm0,-0x20(%rbp)
movsd  -0x28(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm1
call   1030 <cabs@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mandel>:
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
jmp    1030 <cabs@plt>

LLVM IR (-O0):
define double @mandel(double %0, double %1) {
%3 = alloca { double, double }
%4 = alloca i32
%5 = alloca { double, double }
%6 = getelementptr inbounds { double, double }, { double, double }* %3, i32 0, i32 0
store double %0, double* %6
%7 = getelementptr inbounds { double, double }, { double, double }* %3, i32 0, i32 1
store double %1, double* %7
%8 = load i32, i32* %4
%9 = sitofp i32 %8 to double
%10 = fmul double 0.000000e+00, %9
%11 = fmul double 1.000000e+00, %9
%12 = getelementptr inbounds { double, double }, { double, double }* %3, i32 0, i32 0
%13 = getelementptr inbounds { double, double }, { double, double }* %3, i32 0, i32 1
store double %10, double* %12
store double %11, double* %13
%14 = getelementptr inbounds { double, double }, { double, double }* %3, i32 0, i32 0
%15 = load double, double* %14
%16 = getelementptr inbounds { double, double }, { double, double }* %3, i32 0, i32 1
%17 = load double, double* %16
%18 = getelementptr inbounds { double, double }, { double, double }* %5, i32 0, i32 0
%19 = getelementptr inbounds { double, double }, { double, double }* %5, i32 0, i32 1
store double %15, double* %18
store double %17, double* %19
%20 = getelementptr inbounds { double, double }, { double, double }* %5, i32 0, i32 0
%21 = load double, double* %20
%22 = getelementptr inbounds { double, double }, { double, double }* %5, i32 0, i32 1
%23 = load double, double* %22
%24 = call double @cabs(double %21, double %23)
ret double %24
}

LLVM IR (-O2):
define double @mandel(double %0, double %1) {
%3 = tail call double @cabs(double 0.000000e+00, double 0.000000e+00)
ret double %3
}
/* Variables and functions */
scalar_t__ EINTR;
int dup2(int, int);
scalar_t__ errno;
int restartableDup2(int fd_from, int fd_to) {
  int err;
  do {
    do {
      err = dup2(fd_from, fd_to);
    } while ((err == -1) && (errno == EINTR));
  } while (0);
  return err;
}


x86 assembly (clang, -O0):
<restartableDup2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
jmp    1123 <restartableDup2+0x13>
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1030 <dup2@plt>
mov    %eax,-0xc(%rbp)
xor    %eax,%eax
cmpl   $0xffffffff,-0xc(%rbp)
mov    %al,-0xd(%rbp)
jne    115a <restartableDup2+0x4a>
mov    0x2e99(%rip),%rax
mov    (%rax),%rax
mov    0x2e87(%rip),%rcx
cmp    (%rcx),%rax
sete   %al
mov    %al,-0xd(%rbp)
mov    -0xd(%rbp),%al
test   $0x1,%al
jne    1123 <restartableDup2+0x13>
jmp    116a <restartableDup2+0x5a>
mov    -0xc(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<restartableDup2>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %esi,%ebx
mov    %edi,%ebp
mov    0x2ebe(%rip),%r14
mov    0x2eaf(%rip),%r15
nopl   0x0(%rax)
mov    %ebp,%edi
mov    %ebx,%esi
call   1030 <dup2@plt>
cmp    $0xffffffff,%eax
jne    1146 <restartableDup2+0x36>
mov    (%r15),%rcx
cmp    %rcx,(%r14)
je     1130 <restartableDup2+0x20>
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@errno = global i64 0
@EINTR = global i64 0
define i32 @restartableDup2(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
br label %6
6: ; preds = %2
br label %7
7: ; preds = %18, %6
%8 = load i32, i32* %3
%9 = load i32, i32* %4
%10 = call i32 @dup2(i32 %8, i32 %9)
store i32 %10, i32* %5
br label %11
11: ; preds = %7
%12 = load i32, i32* %5
%13 = icmp eq i32 %12, -1
br i1 %13, label %14, label %18
14: ; preds = %11
%15 = load i64, i64* @errno
%16 = load i64, i64* @EINTR
%17 = icmp eq i64 %15, %16
br label %18
18: ; preds = %14, %11
%19 = phi i1 [ false, %11 ], [ %17, %14 ]
br i1 %19, label %7, label %20
20: ; preds = %18
br label %21
21: ; preds = %20
%22 = load i32, i32* %5
ret i32 %22
}

LLVM IR (-O2):
@errno = global i64 0
@EINTR = global i64 0
define i32 @restartableDup2(i32 %0, i32 %1) {
br label %3
3: ; preds = %3, %2
%4 = tail call i32 @dup2(i32 %0, i32 %1)
%5 = icmp eq i32 %4, -1
%6 = load i64, i64* @errno
%7 = load i64, i64* @EINTR
%8 = icmp eq i64 %6, %7
%9 = select i1 %5, i1 %8, i1 false
br i1 %9, label %3, label %10
10: ; preds = %3
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, float);
int /*<<< orphan*/ scanf(char *, float *);
int main() {
  float input_1;
  scanf("%f", &input_1);
  printf("%.3f", input_1);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
movss  -0x8(%rbp),%xmm0
lea    0xeb8(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1040 <scanf@plt>
movss  0x4(%rsp),%xmm0
lea    0xec4(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@.str = [3 x i8] c"%f\00"
@.str.1 = [5 x i8] c"%.3f\00"
define i32 @main() {
%1 = alloca float
%2 = bitcast float* %1 to i8*
%3 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %1)
%4 = load float, float* %1
%5 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), float %4)
ret i32 0
}
void return_c_string_in_argument_with_length(const char **arg, int *len) {
  *arg = "returned_c_string_in_argument_with_length BUT NOT THIS PART";
  *len = 38;
}


x86 assembly (clang, -O0):
<return_c_string_in_argument_with_length>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
lea    0xee9(%rip),%rcx
mov    %rcx,(%rax)
mov    -0x10(%rbp),%rax
movl   $0x26,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<return_c_string_in_argument_with_length>:
lea    0xef9(%rip),%rax
mov    %rax,(%rdi)
movl   $0x26,(%rsi)
ret

LLVM IR (-O0):
@.str = [60 x i8] c"returned_c_string_in_argument_with_length BUT NOT THIS PART\00"
define void @return_c_string_in_argument_with_length(i8** %0, i32* %1) {
%3 = alloca i8**
%4 = alloca i32*
store i8** %0, i8*** %3
store i32* %1, i32** %4
%5 = load i8**, i8*** %3
store i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str, i64 0, i64 0), i8** %5
%6 = load i32*, i32** %4
store i32 38, i32* %6
ret void
}

LLVM IR (-O2):
@.str = [60 x i8] c"returned_c_string_in_argument_with_length BUT NOT THIS PART\00"
define void @return_c_string_in_argument_with_length(i8** nocapture writeonly %0, i32* nocapture writeonly %1) {
store i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str, i64 0, i64 0), i8** %0
store i32 38, i32* %1
ret void
}
long double test_atanhl(long double x) { return __builtin_atanhl(x); }


x86 assembly (clang, -O0):
<test_atanhl>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
fldt   0x10(%rbp)
fstpt  -0x10(%rbp)
fldt   -0x10(%rbp)
mov    %rsp,%rax
fstpt  (%rax)
call   1030 <atanhl@plt>
fld    %st(0)
fstp   %st(0)
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_atanhl>:
jmp    1030 <atanhl@plt>

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

LLVM IR (-O2):
define x86_fp80 @test_atanhl(x86_fp80 %0) {
%2 = tail call x86_fp80 @atanhl(x86_fp80 %0)
ret x86_fp80 %2
}
/* Variables and functions */
int /*<<< orphan*/ ngen(char *, char *, int);
void cgstorlb(int n) { ngen("%s\t%%al,%d(%%ebp)", "movb", n); }


x86 assembly (clang, -O0):
<cgstorlb>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edx
lea    0xedb(%rip),%rdi
lea    0xee6(%rip),%rsi
call   1030 <ngen@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cgstorlb>:
mov    %edi,%edx
lea    0xee7(%rip),%rdi
lea    0xef2(%rip),%rsi
jmp    1030 <ngen@plt>

LLVM IR (-O0):
@.str = [18 x i8] c"%s\09%%al,%d(%%ebp)\00"
@.str.1 = [5 x i8] c"movb\00"
define void @cgstorlb(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @ngen(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %3)
ret void
}

LLVM IR (-O2):
@.str = [18 x i8] c"%s\09%%al,%d(%%ebp)\00"
@.str.1 = [5 x i8] c"movb\00"
define void @cgstorlb(i32 %0) {
%2 = tail call i32 @ngen(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %0)
ret void
}
/* Type definitions */
typedef int uint64_t;

/* Variables and functions */
uint64_t shra(uint64_t a, uint64_t dabits) {
  uint64_t high = 0;
  uint64_t low = 0;
  dabits = dabits % 64;
  if (dabits == 0) {
    return a;
  }
  low = a >> dabits;
  high = a << (64 - dabits);
  return high | low;
}


x86 assembly (clang, -O0):
<shra>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0xc(%rbp),%eax
mov    $0x40,%ecx
cltd
idiv   %ecx
mov    %edx,-0xc(%rbp)
cmpl   $0x0,-0xc(%rbp)
jne    113b <shra+0x3b>
mov    -0x8(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    115f <shra+0x5f>
mov    -0x8(%rbp),%eax
mov    -0xc(%rbp),%ecx
sar    %cl,%eax
mov    %eax,-0x14(%rbp)
mov    -0x8(%rbp),%eax
mov    $0x40,%ecx
sub    -0xc(%rbp),%ecx
shl    %cl,%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
or     -0x14(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<shra>:
lea    0x3f(%rsi),%eax
test   %esi,%esi
cmovns %esi,%eax
and    $0xffffffc0,%eax
sub    %eax,%esi
mov    %edi,%edx
mov    %esi,%ecx
sar    %cl,%edx
neg    %cl
mov    %edi,%eax
shl    %cl,%eax
or     %edx,%eax
test   %esi,%esi
cmove  %edi,%eax
ret

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

LLVM IR (-O2):
define i32 @shra(i32 %0, i32 %1) {
%3 = srem i32 %1, 64
%4 = icmp eq i32 %3, 0
%5 = ashr i32 %0, %3
%6 = sub nsw i32 64, %3
%7 = shl i32 %0, %6
%8 = or i32 %7, %5
%9 = select i1 %4, i32 %0, i32 %8
ret i32 %9
}
/* Type definitions */
typedef int uint8_t;
typedef int /*<<< orphan*/ int16_t;

/* Variables and functions */
int /*<<< orphan*/ htons(int /*<<< orphan*/);
void minipack_pack_int16(void *ptr, int16_t value, size_t *sz) {
  *sz = 3;
  *((uint8_t *)ptr) = 0xD1;
  *((int16_t *)(ptr + 1)) = htons(value);
}


x86 assembly (clang, -O0):
<minipack_pack_int16>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x18(%rbp),%rax
movq   $0x3,(%rax)
mov    -0x8(%rbp),%rax
movl   $0xd1,(%rax)
mov    -0xc(%rbp),%edi
call   1030 <htons@plt>
mov    %eax,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x1(%rax)
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<minipack_pack_int16>:
push   %rbx
mov    %rdi,%rbx
movq   $0x3,(%rdx)
movl   $0xd1,(%rdi)
mov    %esi,%edi
call   1030 <htons@plt>
mov    %eax,0x1(%rbx)
pop    %rbx
ret

LLVM IR (-O0):
define void @minipack_pack_int16(i8* %0, i32 %1, i64* %2) {
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i64*
store i8* %0, i8** %4
store i32 %1, i32* %5
store i64* %2, i64** %6
%7 = load i64*, i64** %6
store i64 3, i64* %7
%8 = load i8*, i8** %4
%9 = bitcast i8* %8 to i32*
store i32 209, i32* %9
%10 = load i32, i32* %5
%11 = call i32 @htons(i32 %10)
%12 = load i8*, i8** %4
%13 = getelementptr i8, i8* %12, i64 1
%14 = bitcast i8* %13 to i32*
store i32 %11, i32* %14
ret void
}

LLVM IR (-O2):
define void @minipack_pack_int16(i8* nocapture writeonly %0, i32 %1, i64* nocapture writeonly %2) {
store i64 3, i64* %2
%4 = bitcast i8* %0 to i32*
store i32 209, i32* %4
%5 = tail call i32 @htons(i32 %1)
%6 = getelementptr i8, i8* %0, i64 1
%7 = bitcast i8* %6 to i32*
store i32 %5, i32* %7
ret void
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int /*<<< orphan*/, char *, int, char *);
int /*<<< orphan*/ isgraph(int);
void t_isgraph_0x53() {
  Assert_real((isgraph(83)),
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/"
              "dg/z88dk/test/suites/ctype/test_isgraph.c",
              420, ("isgraph should be 1 for S"));
}


x86 assembly (clang, -O0):
<t_isgraph_0x53>:
push   %rbp
mov    %rsp,%rbp
mov    $0x53,%edi
call   1040 <isgraph@plt>
mov    %eax,%edi
lea    0xec9(%rip),%rsi
mov    $0x1a4,%edx
lea    0xf65(%rip),%rcx
call   1030 <Assert_real@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<t_isgraph_0x53>:
push   %rax
mov    $0x53,%edi
call   1040 <isgraph@plt>
lea    0xece(%rip),%rsi
lea    0xf6f(%rip),%rcx
mov    %eax,%edi
mov    $0x1a4,%edx
pop    %rax
jmp    1030 <Assert_real@plt>

LLVM IR (-O0):
@.str = [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isgraph.c\00"
@.str.1 = [26 x i8] c"isgraph should be 1 for S\00"
define void @t_isgraph_0x53() {
%1 = call i32 @isgraph(i32 83)
%2 = call i32 @Assert_real(i32 %1, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 420, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isgraph.c\00"
@.str.1 = [26 x i8] c"isgraph should be 1 for S\00"
define void @t_isgraph_0x53() {
%1 = tail call i32 @isgraph(i32 83)
%2 = tail call i32 @Assert_real(i32 %1, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 420, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ uint32_t;

/* Variables and functions */
int /*<<< orphan*/ internal_fiat_secp256k1_msat(uintptr_t);
void fiat_secp256k1_msat(uint32_t out1[9]) {
  internal_fiat_secp256k1_msat((uintptr_t)out1);
}


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

x86 assembly (clang, -O2):
<fiat_secp256k1_msat>:
jmp    1030 <internal_fiat_secp256k1_msat@plt>

LLVM IR (-O0):
define void @fiat_secp256k1_msat(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = ptrtoint i32* %3 to i64
%5 = call i32 @internal_fiat_secp256k1_msat(i64 %4)
ret void
}

LLVM IR (-O2):
define void @fiat_secp256k1_msat(i32* %0) {
%2 = ptrtoint i32* %0 to i64
%3 = tail call i32 @internal_fiat_secp256k1_msat(i64 %2)
ret void
}
void gtk_text_iter_get_buffer() {}


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

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

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

LLVM IR (-O2):
define void @gtk_text_iter_get_buffer() {
ret void
}
void gdk_visual_get_best_with_depth() {}


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

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

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

LLVM IR (-O2):
define void @gdk_visual_get_best_with_depth() {
ret void
}
/* Type definitions */
struct Hero {
  int dummy;
};
struct Ability {
  int dummy;
};

/* Variables and functions */
float damage_RollAttack(struct Hero *);
float QinJunQiangFa_damage(struct Ability *self, struct Hero *attacker,
                           struct Hero *target) {
  return damage_RollAttack(attacker) * (float)(1.50);
}


x86 assembly (clang, -O0):
<QinJunQiangFa_damage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <damage_RollAttack@plt>
movss  0xecb(%rip),%xmm1
mulss  %xmm1,%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<QinJunQiangFa_damage>:
push   %rax
mov    %rsi,%rdi
call   1030 <damage_RollAttack@plt>
mulss  0xedf(%rip),%xmm0
pop    %rax
ret

LLVM IR (-O0):
%struct.Ability = type { i32 }
%struct.Hero = type { i32 }
define float @QinJunQiangFa_damage(%struct.Ability* %0, %struct.Hero* %1, %struct.Hero* %2) {
%4 = alloca %struct.Ability*
%5 = alloca %struct.Hero*
%6 = alloca %struct.Hero*
store %struct.Ability* %0, %struct.Ability** %4
store %struct.Hero* %1, %struct.Hero** %5
store %struct.Hero* %2, %struct.Hero** %6
%7 = load %struct.Hero*, %struct.Hero** %5
%8 = call float @damage_RollAttack(%struct.Hero* %7)
%9 = fmul float %8, 1.500000e+00
ret float %9
}

LLVM IR (-O2):
%struct.Ability = type { i32 }
%struct.Hero = type { i32 }
define float @QinJunQiangFa_damage(%struct.Ability* nocapture readnone %0, %struct.Hero* %1, %struct.Hero* nocapture readnone %2) {
%4 = tail call float @damage_RollAttack(%struct.Hero* %1)
%5 = fmul float %4, 1.500000e+00
ret float %5
}
/* Variables and functions */
scalar_t__ strcmp(char const *, char *);
int isSUB(const char *comm) { return strcmp(comm, "sub") == 0; }


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

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

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

LLVM IR (-O2):
@.str = [4 x i8] c"sub\00"
define i32 @isSUB(i8* %0) {
%2 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%3 = icmp eq i64 %2, 0
%4 = zext i1 %3 to i32
ret i32 %4
}
/* Variables and functions */
char *stdc_E40BA755(char *, char const *);
char *strtok(char *str, const char *delimiters) {
  return stdc_E40BA755(str, delimiters);
}


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

x86 assembly (clang, -O2):
<strtok>:
jmp    1030 <stdc_E40BA755@plt>

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

LLVM IR (-O2):
define i8* @strtok(i8* %0, i8* %1) {
%3 = tail call i8* @stdc_E40BA755(i8* %0, i8* %1)
ret i8* %3
}
int ti_dx_start(double const *options) { return (int)options[0] - 1; }


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

x86 assembly (clang, -O2):
<ti_dx_start>:
cvttsd2si (%rdi),%eax
add    $0xffffffff,%eax
ret

LLVM IR (-O0):
define i32 @ti_dx_start(double* %0) {
%2 = alloca double*
store double* %0, double** %2
%3 = load double*, double** %2
%4 = getelementptr inbounds double, double* %3, i64 0
%5 = load double, double* %4
%6 = fptosi double %5 to i32
%7 = sub nsw i32 %6, 1
ret i32 %7
}

LLVM IR (-O2):
define i32 @ti_dx_start(double* nocapture %0) {
%2 = load double, double* %0
%3 = fptosi double %2 to i32
%4 = add nsw i32 %3, -1
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ d3(int);
void d2(int n) { d3(n); }


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

x86 assembly (clang, -O2):
<d2>:
jmp    1030 <d3@plt>

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

LLVM IR (-O2):
define void @d2(i32 %0) {
%2 = tail call i32 @d3(i32 %0)
ret void
}
/* Variables and functions */
int foo(int *);
int bar(int *p) { return foo(p); }


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

x86 assembly (clang, -O2):
<bar>:
jmp    1030 <foo@plt>

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

LLVM IR (-O2):
define i32 @bar(i32* %0) {
%2 = tail call i32 @foo(i32* %0)
ret i32 %2
}
/* Variables and functions */
int /*<<< orphan*/ fromEnv(char *, char *);
int /*<<< orphan*/ readOptions(int /*<<< orphan*/, int /*<<< orphan*/);
void readOptionSettings() { readOptions(fromEnv("HUGSFLAGS", ""), 0); }


x86 assembly (clang, -O0):
<readOptionSettings>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
lea    0xed7(%rip),%rsi
call   1030 <fromEnv@plt>
mov    %eax,%edi
xor    %esi,%esi
call   1040 <readOptions@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<readOptionSettings>:
push   %rax
lea    0xed8(%rip),%rdi
lea    0xeda(%rip),%rsi
call   1030 <fromEnv@plt>
mov    %eax,%edi
xor    %esi,%esi
pop    %rax
jmp    1040 <readOptions@plt>

LLVM IR (-O0):
@.str = [10 x i8] c"HUGSFLAGS\00"
@.str.1 = [1 x i8] zeroinitializer
define void @readOptionSettings() {
%1 = call i32 @fromEnv(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%2 = call i32 @readOptions(i32 %1, i32 0)
ret void
}

LLVM IR (-O2):
@.str = [10 x i8] c"HUGSFLAGS\00"
@.str.1 = [1 x i8] zeroinitializer
define void @readOptionSettings() {
%1 = tail call i32 @fromEnv(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 @readOptions(i32 %1, i32 0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ __uClibc_start_main(int, char **, char **,
                                       int /*<<< orphan*/ *,
                                       int /*<<< orphan*/ *);
void __attribute__((__noreturn__))
__uClibc_main(int argc, char **argv, char **envp) {
  __uClibc_start_main(argc, argv, envp, NULL, NULL);
}


x86 assembly (clang, -O0):
<__uClibc_main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
xor    %eax,%eax
mov    %eax,%r8d
mov    %r8,%rcx
call   1030 <__uClibc_start_main@plt>

x86 assembly (clang, -O2):
<__uClibc_main>:
push   %rax
xor    %ecx,%ecx
xor    %r8d,%r8d
call   1030 <__uClibc_start_main@plt>

LLVM IR (-O0):
define void @__uClibc_main(i32 %0, i8** %1, i8** %2) {
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8**
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i8** %2, i8*** %6
%7 = load i32, i32* %4
%8 = load i8**, i8*** %5
%9 = load i8**, i8*** %6
%10 = call i32 @__uClibc_start_main(i32 %7, i8** %8, i8** %9, i32* null, i32* null)
unreachable
}

LLVM IR (-O2):
define void @__uClibc_main(i32 %0, i8** %1, i8** %2) {
%4 = tail call i32 @__uClibc_start_main(i32 %0, i8** %1, i8** %2, i32* null, i32* null)
unreachable
}