xunge/DecIR huggingface dataset:
/* Type definitions */
typedef int uint8_t;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, int);
void fwritehexbuffraw(uint8_t bufflen, uint8_t *buff, FILE *fhd) {
  int p;
  for (p = 0; p < bufflen; p++) {
    fprintf(fhd, "%02x", buff[p]);
  }
  return;
}


x86 assembly (clang, -O0):
<fwritehexbuffraw>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    115f <fwritehexbuffraw+0x4f>
mov    -0x18(%rbp),%rdi
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
lea    0xeb4(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    112a <fwritehexbuffraw+0x1a>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fwritehexbuffraw>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
test   %edi,%edi
jle    1148 <fwritehexbuffraw+0x38>
mov    %rdx,%r14
mov    %rsi,%r12
mov    %edi,%r13d
xor    %ebx,%ebx
lea    0xed1(%rip),%r15
nop
mov    (%r12,%rbx,4),%edx
mov    %r14,%rdi
mov    %r15,%rsi
call   1030 <fprintf@plt>
add    $0x1,%rbx
cmp    %rbx,%r13
jne    1130 <fwritehexbuffraw+0x20>
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [5 x i8] c"%02x\00"
define void @fwritehexbuffraw(i32 %0, i32* %1, i32* %2) {
%4 = alloca i32
%5 = alloca i32*
%6 = alloca i32*
%7 = alloca i32
store i32 %0, i32* %4
store i32* %1, i32** %5
store i32* %2, i32** %6
store i32 0, i32* %7
br label %8
8: ; preds = %20, %3
%9 = load i32, i32* %7
%10 = load i32, i32* %4
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %23
12: ; preds = %8
%13 = load i32*, i32** %6
%14 = load i32*, i32** %5
%15 = load i32, i32* %7
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i32, i32* %14, i64 %16
%18 = load i32, i32* %17
%19 = call i32 @fprintf(i32* %13, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 %18)
br label %20
20: ; preds = %12
%21 = load i32, i32* %7
%22 = add nsw i32 %21, 1
store i32 %22, i32* %7
br label %8
23: ; preds = %8
ret void
}

LLVM IR (-O2):
@.str = [5 x i8] c"%02x\00"
define void @fwritehexbuffraw(i32 %0, i32* nocapture %1, i32* nocapture %2) {
%4 = icmp sgt i32 %0, 0
br i1 %4, label %5, label %14
5: ; preds = %3
%6 = zext i32 %0 to i64
br label %7
7: ; preds = %5, %7
%8 = phi i64 [ 0, %5 ], [ %12, %7 ]
%9 = getelementptr inbounds i32, i32* %1, i64 %8
%10 = load i32, i32* %9
%11 = tail call i32 @fprintf(i32* %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 %10)
%12 = add nuw nsw i64 %8, 1
%13 = icmp eq i64 %12, %6
br i1 %13, label %14, label %7
14: ; preds = %7, %3
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;

/* Variables and functions */
int /*<<< orphan*/ MC_avg_mmx(int, int, int /*<<< orphan*/ *,
                              int /*<<< orphan*/ const *, int);
void MC_avg_o_8_mmx(uint8_t *dest, const uint8_t *ref, int stride, int height) {
  MC_avg_mmx(8, height, dest, ref, stride);
}


x86 assembly (clang, -O0):
<MC_avg_o_8_mmx>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
mov    -0x18(%rbp),%esi
mov    -0x8(%rbp),%rdx
mov    -0x10(%rbp),%rcx
mov    -0x14(%rbp),%r8d
mov    $0x8,%edi
call   1030 <MC_avg_mmx@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<MC_avg_o_8_mmx>:
mov    %edx,%r8d
mov    %rsi,%rax
mov    %rdi,%rdx
mov    $0x8,%edi
mov    %ecx,%esi
mov    %rax,%rcx
jmp    1030 <MC_avg_mmx@plt>

LLVM IR (-O0):
define void @MC_avg_o_8_mmx(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* %8
%10 = load i32*, i32** %5
%11 = load i32*, i32** %6
%12 = load i32, i32* %7
%13 = call i32 @MC_avg_mmx(i32 8, i32 %9, i32* %10, i32* %11, i32 %12)
ret void
}

LLVM IR (-O2):
define void @MC_avg_o_8_mmx(i32* %0, i32* %1, i32 %2, i32 %3) {
%5 = tail call i32 @MC_avg_mmx(i32 8, i32 %3, i32* %0, i32* %1, i32 %2)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ C67_asm(char *, int, int, int /*<<< orphan*/);
void C67_STW_PTR(int r, int r2) { C67_asm("STW.D *", r, r2, 0); }


x86 assembly (clang, -O0):
<C67_STW_PTR>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%esi
mov    -0x8(%rbp),%edx
lea    0xed5(%rip),%rdi
xor    %ecx,%ecx
call   1030 <C67_asm@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<C67_STW_PTR>:
mov    %esi,%edx
mov    %edi,%esi
lea    0xee5(%rip),%rdi
xor    %ecx,%ecx
jmp    1030 <C67_asm@plt>

LLVM IR (-O0):
@.str = [8 x i8] c"STW.D *\00"
define void @C67_STW_PTR(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %3
%6 = load i32, i32* %4
%7 = call i32 @C67_asm(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 %5, i32 %6, i32 0)
ret void
}

LLVM IR (-O2):
@.str = [8 x i8] c"STW.D *\00"
define void @C67_STW_PTR(i32 %0, i32 %1) {
%3 = tail call i32 @C67_asm(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 %0, i32 %1, i32 0)
ret void
}
main() {
  float const nan = __builtin_nanf("");
  float const abc = 5;
  if (abc == nan)
    return 1;
  if (nan == nan)
    return 2;
  if (abc != nan)
    ;
  else
    return 3;
  if (nan != nan)
    ;
  else
    return 4;
  if (abc > nan)
    return 5;
  if (abc >= nan)
    return 6;
  if (abc < nan)
    return 7;
  if (abc <= nan)
    return 8;
  if (nan > nan)
    return 9;
  if (nan >= nan)
    return 10;
  if (nan < nan)
    return 11;
  if (nan <= nan)
    return 12;
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
movss  0xef1(%rip),%xmm0
movss  %xmm0,-0x8(%rbp)
movss  0xee0(%rip),%xmm0
movss  %xmm0,-0xc(%rbp)
xor    %eax,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca float
store i32 0, i32* %1
store float 0x7FF8000000000000, float* %2
store float 5.000000e+00, float* %3
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ fun1(char *, char *);
int main() {
  fun1("alice", "bob");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
lea    0xed9(%rip),%rsi
call   1030 <fun1@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
@.str = [6 x i8] c"alice\00"
@.str.1 = [4 x i8] c"bob\00"
define i32 @main() {
%1 = tail call i32 @fun1(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
ret i32 0
}
/* Variables and functions */
int S_IRUSR;
int S_IWUSR;
int /*<<< orphan*/ failure(char *, int);
scalar_t__ mkdir(char *, int);
int /*<<< orphan*/ respond(int /*<<< orphan*/, char *, int);
void postd(char *uri, int socketfd) {
  if (mkdir(uri, S_IRUSR | S_IWUSR))
    failure("500 mkdir failed", socketfd);
  else
    respond(0, "text", socketfd);
}


x86 assembly (clang, -O0):
<postd>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rdi
mov    0x2e8e(%rip),%rax
mov    (%rax),%esi
mov    0x2e95(%rip),%rax
or     (%rax),%esi
call   1040 <mkdir@plt>
cmp    $0x0,%rax
je     1178 <postd+0x48>
mov    -0xc(%rbp),%esi
lea    0xe92(%rip),%rdi
call   1050 <failure@plt>
jmp    1189 <postd+0x59>
mov    -0xc(%rbp),%edx
xor    %edi,%edi
lea    0xe8d(%rip),%rsi
call   1030 <respond@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<postd>:
push   %rbx
mov    %esi,%ebx
mov    0x2e9e(%rip),%rax
mov    0x2ea7(%rip),%rcx
mov    (%rcx),%esi
or     (%rax),%esi
call   1040 <mkdir@plt>
test   %rax,%rax
je     115e <postd+0x2e>
lea    0xeaa(%rip),%rdi
mov    %ebx,%esi
pop    %rbx
jmp    1050 <failure@plt>
lea    0xeac(%rip),%rsi
xor    %edi,%edi
mov    %ebx,%edx
pop    %rbx
jmp    1030 <respond@plt>

LLVM IR (-O0):
@S_IRUSR = global i32 0
@S_IWUSR = global i32 0
@.str = [17 x i8] c"500 mkdir failed\00"
@.str.1 = [5 x i8] c"text\00"
define void @postd(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
%6 = load i32, i32* @S_IRUSR
%7 = load i32, i32* @S_IWUSR
%8 = or i32 %6, %7
%9 = call i64 @mkdir(i8* %5, i32 %8)
%10 = icmp ne i64 %9, 0
br i1 %10, label %11, label %14
11: ; preds = %2
%12 = load i32, i32* %4
%13 = call i32 @failure(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 %12)
br label %17
14: ; preds = %2
%15 = load i32, i32* %4
%16 = call i32 @respond(i32 0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %15)
br label %17
17: ; preds = %14, %11
ret void
}

LLVM IR (-O2):
@S_IRUSR = global i32 0
@S_IWUSR = global i32 0
@.str = [17 x i8] c"500 mkdir failed\00"
@.str.1 = [5 x i8] c"text\00"
define void @postd(i8* nocapture %0, i32 %1) {
%3 = load i32, i32* @S_IRUSR
%4 = load i32, i32* @S_IWUSR
%5 = or i32 %4, %3
%6 = tail call i64 @mkdir(i8* %0, i32 %5)
%7 = icmp eq i64 %6, 0
br i1 %7, label %10, label %8
8: ; preds = %2
%9 = tail call i32 @failure(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 %1)
br label %12
10: ; preds = %2
%11 = tail call i32 @respond(i32 0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %1)
br label %12
12: ; preds = %10, %8
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ sigset_t;

/* Variables and functions */
int /*<<< orphan*/ SIGTERM;
int /*<<< orphan*/ SIGUSR1;
int /*<<< orphan*/ SIG_BLOCK;
int /*<<< orphan*/ pthread_sigmask(int /*<<< orphan*/, int /*<<< orphan*/ *,
                                   int /*<<< orphan*/ *);
int /*<<< orphan*/ sigaddset(int /*<<< orphan*/ *, int /*<<< orphan*/);
int /*<<< orphan*/ sigemptyset(int /*<<< orphan*/ *);
void block_sigusr1(void) {
  sigset_t set;
  sigemptyset(&set);
  sigaddset(&set, SIGUSR1);
  sigaddset(&set, SIGTERM);
  pthread_sigmask(SIG_BLOCK, &set, NULL);
}


x86 assembly (clang, -O0):
<block_sigusr1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    -0x4(%rbp),%rdi
call   1030 <sigemptyset@plt>
mov    0x2ea0(%rip),%rax
mov    (%rax),%esi
lea    -0x4(%rbp),%rdi
call   1050 <sigaddset@plt>
mov    0x2e86(%rip),%rax
mov    (%rax),%esi
lea    -0x4(%rbp),%rdi
call   1050 <sigaddset@plt>
mov    0x2e64(%rip),%rax
mov    (%rax),%edi
lea    -0x4(%rbp),%rsi
xor    %eax,%eax
mov    %eax,%edx
call   1040 <pthread_sigmask@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<block_sigusr1>:
push   %rbx
sub    $0x10,%rsp
lea    0xc(%rsp),%rbx
mov    %rbx,%rdi
call   1030 <sigemptyset@plt>
mov    0x2e9f(%rip),%rax
mov    (%rax),%esi
mov    %rbx,%rdi
call   1050 <sigaddset@plt>
mov    0x2e86(%rip),%rax
mov    (%rax),%esi
mov    %rbx,%rdi
call   1050 <sigaddset@plt>
mov    0x2e65(%rip),%rax
mov    (%rax),%edi
mov    %rbx,%rsi
xor    %edx,%edx
call   1040 <pthread_sigmask@plt>
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@SIGUSR1 = global i32 0
@SIGTERM = global i32 0
@SIG_BLOCK = global i32 0
define void @block_sigusr1() {
%1 = alloca i32
%2 = call i32 @sigemptyset(i32* %1)
%3 = load i32, i32* @SIGUSR1
%4 = call i32 @sigaddset(i32* %1, i32 %3)
%5 = load i32, i32* @SIGTERM
%6 = call i32 @sigaddset(i32* %1, i32 %5)
%7 = load i32, i32* @SIG_BLOCK
%8 = call i32 @pthread_sigmask(i32 %7, i32* %1, i32* null)
ret void
}

LLVM IR (-O2):
@SIGUSR1 = global i32 0
@SIGTERM = global i32 0
@SIG_BLOCK = global i32 0
define void @block_sigusr1() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = call i32 @sigemptyset(i32* %1)
%4 = load i32, i32* @SIGUSR1
%5 = call i32 @sigaddset(i32* %1, i32 %4)
%6 = load i32, i32* @SIGTERM
%7 = call i32 @sigaddset(i32* %1, i32 %6)
%8 = load i32, i32* @SIG_BLOCK
%9 = call i32 @pthread_sigmask(i32 %8, i32* %1, i32* null)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ perror(char *);
void *shmat(int, int /*<<< orphan*/ *, int /*<<< orphan*/);
void *Shmat(int shmid) {
  void *p = NULL;
  ;
  if (0 > (p = shmat(shmid, NULL, 0))) {
    perror("[Server] shmat");
    return (void *)(-1);
  }
  return p;
}


x86 assembly (clang, -O0):
<Shmat>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0xc(%rbp)
movq   $0x0,-0x18(%rbp)
mov    -0xc(%rbp),%edi
xor    %eax,%eax
mov    %eax,%esi
xor    %edx,%edx
call   1040 <shmat@plt>
mov    %rax,%rcx
mov    %rcx,-0x18(%rbp)
xor    %eax,%eax
cmp    %rcx,%rax
jbe    116f <Shmat+0x4f>
lea    0xea6(%rip),%rdi
call   1030 <perror@plt>
mov    $0xffffffffffffffff,%rax
mov    %rax,-0x8(%rbp)
jmp    1177 <Shmat+0x57>
mov    -0x18(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [15 x i8] c"[Server] shmat\00"
define i8* @Shmat(i32 %0) {
%2 = alloca i8*
%3 = alloca i32
%4 = alloca i8*
store i32 %0, i32* %3
store i8* null, i8** %4
%5 = load i32, i32* %3
%6 = call i8* @shmat(i32 %5, i32* null, i32 0)
store i8* %6, i8** %4
%7 = icmp ugt i8* null, %6
br i1 %7, label %8, label %10
8: ; preds = %1
%9 = call i32 @perror(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
store i8* inttoptr (i64 -1 to i8*), i8** %2
br label %12
10: ; preds = %1
%11 = load i8*, i8** %4
store i8* %11, i8** %2
br label %12
12: ; preds = %10, %8
%13 = load i8*, i8** %2
ret i8* %13
}

LLVM IR (-O2):
define i8* @Shmat(i32 %0) {
%2 = tail call i8* @shmat(i32 %0, i32* null, i32 0)
ret i8* %2
}
void foo611(int p) {}


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

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

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

LLVM IR (-O2):
define void @foo611(i32 %0) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ ReverseGPIOP__0__In__makeOutput();
void ReverseGPIOP__0__Out__makeOutput(void) {
  ReverseGPIOP__0__In__makeOutput();
}


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

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

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

LLVM IR (-O2):
define void @ReverseGPIOP__0__Out__makeOutput() {
%1 = tail call i32 (...) @ReverseGPIOP__0__In__makeOutput()
ret void
}
char *skip_blanks(string)
char *string;
{
  while (*string && isspace(*string))
    string++;
  return string;
}


x86 assembly (clang, -O0):
<skip_blanks>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x9(%rbp)
je     1146 <skip_blanks+0x36>
mov    -0x8(%rbp),%rax
movsbl (%rax),%edi
call   1030 <isspace@plt>
cmp    $0x0,%eax
setne  %al
mov    %al,-0x9(%rbp)
mov    -0x9(%rbp),%al
test   $0x1,%al
jne    1156 <skip_blanks+0x46>
jmp    1167 <skip_blanks+0x57>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    111c <skip_blanks+0xc>
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<skip_blanks>:
push   %rbx
mov    %rdi,%rbx
mov    (%rdi),%al
test   %al,%al
je     1138 <skip_blanks+0x28>
nopw   0x0(%rax,%rax,1)
movsbl %al,%edi
call   1030 <isspace@plt>
test   %eax,%eax
je     1138 <skip_blanks+0x28>
movzbl 0x1(%rbx),%eax
add    $0x1,%rbx
test   %al,%al
jne    1120 <skip_blanks+0x10>
mov    %rbx,%rax
pop    %rbx
ret

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

LLVM IR (-O2):
define i8* @skip_blanks(i8* %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %14, label %4
4: ; preds = %1, %10
%5 = phi i8 [ %12, %10 ], [ %2, %1 ]
%6 = phi i8* [ %11, %10 ], [ %0, %1 ]
%7 = sext i8 %5 to i32
%8 = tail call i32 @isspace(i32 %7)
%9 = icmp eq i32 %8, 0
br i1 %9, label %14, label %10
10: ; preds = %4
%11 = getelementptr inbounds i8, i8* %6, i64 1
%12 = load i8, i8* %11
%13 = icmp eq i8 %12, 0
br i1 %13, label %14, label %4
14: ; preds = %4, %10, %1
%15 = phi i8* [ %0, %1 ], [ %11, %10 ], [ %6, %4 ]
ret i8* %15
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *);
int /*<<< orphan*/ scanf(char *, double *);
double leCoeficiente(char *msg) {
  double el;
  printf("\n%s: ", msg);
  scanf("%lf", &el);
  return el;
}


x86 assembly (clang, -O0):
<leCoeficiente>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xec9(%rip),%rdi
call   1030 <printf@plt>
lea    0xec3(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1040 <scanf@plt>
movsd  -0x10(%rbp),%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<leCoeficiente>:
push   %rax
mov    %rdi,%rsi
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
lea    0xecf(%rip),%rdi
mov    %rsp,%rsi
call   1040 <scanf@plt>
movsd  (%rsp),%xmm0
pop    %rax
ret

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

LLVM IR (-O2):
@.str = [6 x i8] c"\0A%s: \00"
@.str.1 = [4 x i8] c"%lf\00"
define double @leCoeficiente(i8* %0) {
%2 = alloca double
%3 = bitcast double* %2 to i8*
%4 = tail call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %0)
%5 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %2)
%6 = load double, double* %2
ret double %6
}
/* Variables and functions */
int write(int, void const *, int);
int Serialize_WriteData(int Stream, const void *Data, int Bytes) {
  return write(Stream, Data, Bytes);
}


x86 assembly (clang, -O0):
<Serialize_WriteData>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1030 <write@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Serialize_WriteData>:
jmp    1030 <write@plt>

LLVM IR (-O0):
define i32 @Serialize_WriteData(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 @write(i32 %7, i8* %8, i32 %9)
ret i32 %10
}

LLVM IR (-O2):
define i32 @Serialize_WriteData(i32 %0, i8* nocapture %1, i32 %2) {
%4 = tail call i32 @write(i32 %0, i8* %1, i32 %2)
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ l1_cache_operate_on_line(int, unsigned int);
__attribute__((always_)) void l1_cache_flush(unsigned addr) {
  l1_cache_operate_on_line((4), addr);
}


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

x86 assembly (clang, -O2):
<l1_cache_flush>:
mov    %edi,%esi
mov    $0x4,%edi
jmp    1030 <l1_cache_operate_on_line@plt>

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

LLVM IR (-O2):
define void @l1_cache_flush(i32 %0) {
%2 = tail call i32 @l1_cache_operate_on_line(i32 4, i32 %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, char *);
void usage_error(char *name) {
  printf("Usage:  %s (-h)\n  data to stdin and stats to stdout.\n", name);
  exit(0);
}


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

x86 assembly (clang, -O2):
<usage_error>:
push   %rax
mov    %rdi,%rsi
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
xor    %edi,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [54 x i8] c"Usage: %s (-h)\0A data to stdin and stats to stdout.\0A\00"
define void @usage_error(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str, i64 0, i64 0), i8* %3)
%5 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@.str = [54 x i8] c"Usage: %s (-h)\0A data to stdin and stats to stdout.\0A\00"
define void @usage_error(i8* %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str, i64 0, i64 0), i8* %0)
%3 = tail call i32 @exit(i32 0)
unreachable
}
/* Variables and functions */
float atof(char *);
float CFloatChars(char *Sorc) { return atof(Sorc); }


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

x86 assembly (clang, -O2):
<CFloatChars>:
jmp    1030 <atof@plt>

LLVM IR (-O0):
define float @CFloatChars(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call float @atof(i8* %3)
ret float %4
}

LLVM IR (-O2):
define float @CFloatChars(i8* nocapture %0) {
%2 = tail call float @atof(i8* %0)
ret float %2
}
/* Variables and functions */
int /*<<< orphan*/ freopen(int /*<<< orphan*/ *, char *, int /*<<< orphan*/);
int /*<<< orphan*/ stdin;
int /*<<< orphan*/ stdout;
void prepare_stdio_steams(void) {
  freopen(NULL, "rb", stdin);
  freopen(NULL, "wb", stdout);
}


x86 assembly (clang, -O0):
<prepare_stdio_steams>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ecd(%rip),%rax
mov    (%rax),%edx
xor    %eax,%eax
mov    %eax,%edi
lea    0xed8(%rip),%rsi
call   1030 <freopen@plt>
mov    0x2ea4(%rip),%rax
mov    (%rax),%edx
xor    %eax,%eax
mov    %eax,%edi
lea    0xec2(%rip),%rsi
call   1030 <freopen@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<prepare_stdio_steams>:
push   %rax
mov    0x2ed0(%rip),%rax
mov    (%rax),%edx
lea    0xedf(%rip),%rsi
xor    %edi,%edi
call   1030 <freopen@plt>
mov    0x2ea9(%rip),%rax
mov    (%rax),%edx
lea    0xecb(%rip),%rsi
xor    %edi,%edi
pop    %rax
jmp    1030 <freopen@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"rb\00"
@stdin = global i32 0
@.str.1 = [3 x i8] c"wb\00"
@stdout = global i32 0
define void @prepare_stdio_steams() {
%1 = load i32, i32* @stdin
%2 = call i32 @freopen(i32* null, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = load i32, i32* @stdout
%4 = call i32 @freopen(i32* null, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %3)
ret void
}

LLVM IR (-O2):
@.str = [3 x i8] c"rb\00"
@stdin = global i32 0
@.str.1 = [3 x i8] c"wb\00"
@stdout = global i32 0
define void @prepare_stdio_steams() {
%1 = load i32, i32* @stdin
%2 = tail call i32 @freopen(i32* null, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = load i32, i32* @stdout
%4 = tail call i32 @freopen(i32* null, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %3)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printMinusRow();
int /*<<< orphan*/ printf(char *);
void printWelcome() {
  printMinusRow();
  printf("\n\t\t\tG E L D A U T O M A T\n");
  printMinusRow();
  printf("\n");
}


x86 assembly (clang, -O0):
<printWelcome>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <printMinusRow@plt>
lea    0xece(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1030 <printMinusRow@plt>
lea    0xed4(%rip),%rdi
call   1040 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<printWelcome>:
push   %rax
xor    %eax,%eax
call   1030 <printMinusRow@plt>
lea    0xec1(%rip),%rdi
call   1050 <puts@plt>
xor    %eax,%eax
call   1030 <printMinusRow@plt>
mov    $0xa,%edi
pop    %rax
jmp    1040 <putchar@plt>

LLVM IR (-O0):
@.str = [27 x i8] c"\0A\09\09\09G E L D A U T O M A T\0A\00"
@.str.1 = [2 x i8] c"\0A\00"
define void @printWelcome() {
%1 = call i32 (...) @printMinusRow()
%2 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0))
%3 = call i32 (...) @printMinusRow()
%4 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [26 x i8] c"\0A\09\09\09G E L D A U T O M A T\00"
define void @printWelcome() {
%1 = tail call i32 (...) @printMinusRow()
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 (...) @printMinusRow()
%4 = tail call i32 @putchar(i32 10)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ __m128;

/* Variables and functions */
int /*<<< orphan*/ _mm_store_ss(float *, int /*<<< orphan*/);
void test_mm_store_ss(float *x, __m128 y) { _mm_store_ss(x, y); }


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

x86 assembly (clang, -O2):
<test_mm_store_ss>:
jmp    1030 <_mm_store_ss@plt>

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

LLVM IR (-O2):
define void @test_mm_store_ss(float* %0, i32 %1) {
%3 = tail call i32 @_mm_store_ss(float* %0, i32 %1)
ret void
}
double MPHtoKTS(double MPH) {
  double KTS = 0.8689762 * MPH;
  return KTS;
}


x86 assembly (clang, -O0):
<MPHtoKTS>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  0xeef(%rip),%xmm0
mulsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<MPHtoKTS>:
mulsd  0xef8(%rip),%xmm0
ret

LLVM IR (-O0):
define double @MPHtoKTS(double %0) {
%2 = alloca double
%3 = alloca double
store double %0, double* %2
%4 = load double, double* %2
%5 = fmul double 0x3FEBCEA72D00134B, %4
store double %5, double* %3
%6 = load double, double* %3
ret double %6
}

LLVM IR (-O2):
define double @MPHtoKTS(double %0) {
%2 = fmul double %0, 0x3FEBCEA72D00134B
ret double %2
}
/* Type definitions */
typedef scalar_t__ uint8_t;
typedef scalar_t__ uint32_t;

/* Variables and functions */
scalar_t__ *utf8_next_symbol(scalar_t__ *);
uint32_t utf8_strlen(const char *str) {
  uint32_t i = 0;
  uint8_t *ch = (uint8_t *)str;
  for (; *ch; i++) {
    ch = utf8_next_symbol(ch);
  }
  return i;
}


x86 assembly (clang, -O0):
<utf8_strlen>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
movq   $0x0,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
cmpq   $0x0,(%rax)
je     1158 <utf8_strlen+0x48>
mov    -0x18(%rbp),%rdi
call   1030 <utf8_next_symbol@plt>
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    112c <utf8_strlen+0x1c>
mov    -0x10(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<utf8_strlen>:
push   %rbx
cmpq   $0x0,(%rdi)
je     1134 <utf8_strlen+0x24>
mov    %rdi,%rax
xor    %ebx,%ebx
nopl   0x0(%rax)
mov    %rax,%rdi
call   1030 <utf8_next_symbol@plt>
add    $0x1,%rbx
cmpq   $0x0,(%rax)
jne    1120 <utf8_strlen+0x10>
jmp    1136 <utf8_strlen+0x26>
xor    %ebx,%ebx
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
define i64 @utf8_strlen(i8* %0) {
%2 = alloca i8*
%3 = alloca i64
%4 = alloca i64*
store i8* %0, i8** %2
store i64 0, i64* %3
%5 = load i8*, i8** %2
%6 = bitcast i8* %5 to i64*
store i64* %6, i64** %4
br label %7
7: ; preds = %14, %1
%8 = load i64*, i64** %4
%9 = load i64, i64* %8
%10 = icmp ne i64 %9, 0
br i1 %10, label %11, label %17
11: ; preds = %7
%12 = load i64*, i64** %4
%13 = call i64* @utf8_next_symbol(i64* %12)
store i64* %13, i64** %4
br label %14
14: ; preds = %11
%15 = load i64, i64* %3
%16 = add nsw i64 %15, 1
store i64 %16, i64* %3
br label %7
17: ; preds = %7
%18 = load i64, i64* %3
ret i64 %18
}

LLVM IR (-O2):
define i64 @utf8_strlen(i8* %0) {
%2 = bitcast i8* %0 to i64*
%3 = load i64, i64* %2
%4 = icmp eq i64 %3, 0
br i1 %4, label %12, label %5
5: ; preds = %1, %5
%6 = phi i64* [ %8, %5 ], [ %2, %1 ]
%7 = phi i64 [ %9, %5 ], [ 0, %1 ]
%8 = tail call i64* @utf8_next_symbol(i64* %6)
%9 = add nuw nsw i64 %7, 1
%10 = load i64, i64* %8
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %5
12: ; preds = %5, %1
%13 = phi i64 [ 0, %1 ], [ %9, %5 ]
ret i64 %13
}
void __attribute__((no)) HEX00_sequtilsDatInit(void) {}


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

x86 assembly (clang, -O2):
ret

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

LLVM IR (-O2):
define void @HEX00_sequtilsDatInit() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ f1();
void use_s1() { f1(); }


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

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

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

LLVM IR (-O2):
define void @use_s1() {
%1 = tail call i32 (...) @f1()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
mysighandler(int sigNo) { printf("I am a signal %d handler\n", sigNo); }


x86 assembly (clang, -O0):
<mysighandler>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    -0x8(%rbp),%esi
lea    0xedb(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mysighandler>:
mov    %edi,%esi
lea    0xee7(%rip),%rdi
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [26 x i8] c"I am a signal %d handler\0A\00"
define i32 @mysighandler(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
%5 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), i32 %4)
%6 = load i32, i32* %2
ret i32 %6
}

LLVM IR (-O2):
@.str = [26 x i8] c"I am a signal %d handler\0A\00"
define i32 @mysighandler(i32 %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), i32 %0)
ret i32 undef
}
/* Variables and functions */
int /*<<< orphan*/ memset(char *, int /*<<< orphan*/, int);
int /*<<< orphan*/ printf(char *, int);
int main() {
  int a[5];
  memset((char *)a, 0, 5);
  printf("%d\n", a[4]);
  a[4] = 0;
  a[4]++;
  printf("%d\n", a[4]);
  return 0;
}


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

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x20,%rsp
mov    %rsp,%rdi
xor    %esi,%esi
mov    $0x5,%edx
call   1040 <memset@plt>
mov    0x10(%rsp),%esi
lea    0xec1(%rip),%rbx
mov    %rbx,%rdi
call   1030 <printf@plt>
movl   $0x1,0x10(%rsp)
mov    %rbx,%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbx
ret

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

LLVM IR (-O2):
@.str = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca [5 x i32]
%2 = bitcast [5 x i32]* %1 to i8*
%3 = call i32 @memset(i8* %2, i32 0, i32 5)
%4 = getelementptr inbounds [5 x i32], [5 x i32]* %1, i64 0, i64 4
%5 = load i32, i32* %4
%6 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %5)
store i32 1, i32* %4
%7 = 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 /*<<< orphan*/ printf(char *, int, int);
int inicializa(int batalhoes[20]) {
  for (int i = 0; i < 20; i++) {
    batalhoes[i] = (20 - i) * 50;
    if (0 >= 3) {
      printf("Inicializei: [%d]=%d\n", i, ((20 - i) * 50));
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<inicializa>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0x14,-0xc(%rbp)
jge    113d <inicializa+0x3d>
mov    $0x14,%eax
sub    -0xc(%rbp),%eax
imul   $0x32,%eax,%edx
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    110f <inicializa+0xf>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<inicializa>:
movaps 0xef9(%rip),%xmm0
movups %xmm0,(%rdi)
movaps 0xeff(%rip),%xmm0
movups %xmm0,0x10(%rdi)
movaps 0xf04(%rip),%xmm0
movups %xmm0,0x20(%rdi)
movaps 0xf09(%rip),%xmm0
movups %xmm0,0x30(%rdi)
movaps 0xf0e(%rip),%xmm0
movups %xmm0,0x40(%rdi)
xor    %eax,%eax
ret

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

LLVM IR (-O2):
define i32 @inicializa(i32* nocapture writeonly %0) {
%2 = bitcast i32* %0 to <4 x i32>*
store <4 x i32> <i32 1000, i32 950, i32 900, i32 850>, <4 x i32>* %2
%3 = getelementptr inbounds i32, i32* %0, i64 4
%4 = bitcast i32* %3 to <4 x i32>*
store <4 x i32> <i32 800, i32 750, i32 700, i32 650>, <4 x i32>* %4
%5 = getelementptr inbounds i32, i32* %0, i64 8
%6 = bitcast i32* %5 to <4 x i32>*
store <4 x i32> <i32 600, i32 550, i32 500, i32 450>, <4 x i32>* %6
%7 = getelementptr inbounds i32, i32* %0, i64 12
%8 = bitcast i32* %7 to <4 x i32>*
store <4 x i32> <i32 400, i32 350, i32 300, i32 250>, <4 x i32>* %8
%9 = getelementptr inbounds i32, i32* %0, i64 16
%10 = bitcast i32* %9 to <4 x i32>*
store <4 x i32> <i32 200, i32 150, i32 100, i32 50>, <4 x i32>* %10
ret i32 0
}
int cmp_int(const void *p1, const void *p2) {
  return *(const int *)p1 - *(const int *)p2;
}


x86 assembly (clang, -O0):
<cmp_int>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
mov    -0x10(%rbp),%rcx
sub    (%rcx),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<cmp_int>:
mov    (%rdi),%eax
sub    (%rsi),%eax
ret

LLVM IR (-O0):
define i32 @cmp_int(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 = bitcast i8* %5 to i32*
%7 = load i32, i32* %6
%8 = load i8*, i8** %4
%9 = bitcast i8* %8 to i32*
%10 = load i32, i32* %9
%11 = sub nsw i32 %7, %10
ret i32 %11
}

LLVM IR (-O2):
define i32 @cmp_int(i8* nocapture %0, i8* nocapture %1) {
%3 = bitcast i8* %0 to i32*
%4 = load i32, i32* %3
%5 = bitcast i8* %1 to i32*
%6 = load i32, i32* %5
%7 = sub nsw i32 %4, %6
ret i32 %7
}
/* Type definitions */
typedef int /*<<< orphan*/ val;

/* Variables and functions */
int /*<<< orphan*/ _doread(unsigned int, unsigned char, unsigned char,
                           unsigned char *, int);
unsigned char do_smbus_read_byte(unsigned smbus_io_base, unsigned char device,
                                 unsigned char address) {
  unsigned char val = 0;
  _doread(smbus_io_base, device, address, &val, sizeof(val));
  return val;
}


x86 assembly (clang, -O0):
<do_smbus_read_byte>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dl,%al
mov    %sil,%cl
mov    %edi,-0x4(%rbp)
mov    %cl,-0x5(%rbp)
mov    %al,-0x6(%rbp)
movb   $0x0,-0x7(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x5(%rbp),%al
lea    -0x7(%rbp),%rcx
mov    $0x1,%r8d
movzbl %al,%esi
movzbl -0x6(%rbp),%edx
call   1030 <_doread@plt>
movzbl -0x7(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<do_smbus_read_byte>:
push   %rax
movb   $0x0,0x7(%rsp)
lea    0x7(%rsp),%rcx
mov    $0x1,%r8d
call   1030 <_doread@plt>
mov    0x7(%rsp),%al
pop    %rcx
ret

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

LLVM IR (-O2):
define zeroext i8 @do_smbus_read_byte(i32 %0, i8 zeroext %1, i8 zeroext %2) {
%4 = alloca i8
store i8 0, i8* %4
%5 = call i32 @_doread(i32 %0, i8 zeroext %1, i8 zeroext %2, i8* %4, i32 1)
%6 = load i8, i8* %4
ret i8 %6
}
/* Type definitions */
typedef int x;

/* Variables and functions */
int /*<<< orphan*/ printf(char *, unsigned int);
int main(int argc, char const *argv[]) {
  unsigned int x = 23;
  printf("%d\n", (x) & ((x)-1));
  printf("%d\n", ((x | (x - 1)) + 1) & x);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x17,-0x14(%rbp)
mov    -0x14(%rbp),%esi
mov    -0x14(%rbp),%eax
sub    $0x1,%eax
and    %eax,%esi
lea    0xec1(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%esi
mov    -0x14(%rbp),%eax
sub    $0x1,%eax
or     %eax,%esi
add    $0x1,%esi
and    -0x14(%rbp),%esi
lea    0xea4(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [4 x i8] c"%d\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 23, i32* %6
%7 = load i32, i32* %6
%8 = load i32, i32* %6
%9 = sub i32 %8, 1
%10 = and i32 %7, %9
%11 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %10)
%12 = load i32, i32* %6
%13 = load i32, i32* %6
%14 = sub i32 %13, 1
%15 = or i32 %12, %14
%16 = add i32 %15, 1
%17 = load i32, i32* %6
%18 = and i32 %16, %17
%19 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %18)
ret i32 0
}

LLVM IR (-O2):
@.str = [4 x i8] c"%d\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 22)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 16)
ret i32 0
}
void gtk_entry_set_completion() {}


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

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

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

LLVM IR (-O2):
define void @gtk_entry_set_completion() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int /*<<< orphan*/ scanf(char *, int *);
int main() {
  int a;
  scanf("%d", &a);
  if (a % 2 != 1) {
    printf("%d\n", a + 1);
  } else {
    printf("%d\n", a);
  }
  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>
mov    -0x8(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x1,%edx
je     116a <main+0x4a>
mov    -0x8(%rbp),%esi
add    $0x1,%esi
lea    0xea3(%rip),%rdi
call   1030 <printf@plt>
jmp    1179 <main+0x59>
mov    -0x8(%rbp),%esi
lea    0xe8f(%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>
mov    0x4(%rsp),%eax
mov    %eax,%ecx
shr    $0x1f,%ecx
add    %eax,%ecx
and    $0xfffffffe,%ecx
mov    %eax,%edx
sub    %ecx,%edx
xor    %esi,%esi
cmp    $0x1,%edx
setne  %sil
add    %eax,%esi
lea    0xead(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%4 = load i32, i32* %1
%5 = srem i32 %4, 2
%6 = icmp ne i32 %5, 1
%7 = zext i1 %6 to i32
%8 = add nsw i32 %4, %7
%9 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %8)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ Cyc_Absyndump_dump_char(int);
void Cyc_Absyndump_dump_semi() {
  ({ Cyc_Absyndump_dump_char((int)';'); });
}


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

x86 assembly (clang, -O2):
<Cyc_Absyndump_dump_semi>:
mov    $0x3b,%edi
jmp    1030 <Cyc_Absyndump_dump_char@plt>

LLVM IR (-O0):
define void @Cyc_Absyndump_dump_semi() {
%1 = alloca i32
%2 = call i32 @Cyc_Absyndump_dump_char(i32 59)
store i32 %2, i32* %1
%3 = load i32, i32* %1
ret void
}

LLVM IR (-O2):
define void @Cyc_Absyndump_dump_semi() {
%1 = tail call i32 @Cyc_Absyndump_dump_char(i32 59)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printk(char *);
int fputc(int character, void **stream) {
  printk("Write fputc()\n");
  return 0;
}


x86 assembly (clang, -O0):
<fputc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xeda(%rip),%rdi
call   1030 <printk@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [15 x i8] c"Write fputc()\0A\00"
define i32 @fputc(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
store i32 %0, i32* %3
store i8** %1, i8*** %4
%5 = call i32 @printk(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [15 x i8] c"Write fputc()\0A\00"
define i32 @fputc(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @printk(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
ret i32 0
}
/* Variables and functions */
char *dou2pre(double);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, double *);
int main(void) {
  double a = -72.1;
  scanf("%lf", &a);
  char *ai;
  ai = dou2pre(a);
  printf("%s\n", ai);
  printf("12345678901234567890123456789012\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movsd  0xeb9(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
lea    0xeb5(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1040 <scanf@plt>
movsd  -0x10(%rbp),%xmm0
call   1050 <dou2pre@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rsi
lea    0xe97(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe8d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
movabs $0xc052066666666666,%rax
06 52 c0
mov    %rax,(%rsp)
lea    0xeba(%rip),%rdi
mov    %rsp,%rsi
call   1040 <scanf@plt>
movsd  (%rsp),%xmm0
call   1050 <dou2pre@plt>
mov    %rax,%rdi
call   1030 <puts@plt>
lea    0xe9d(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [4 x i8] c"%lf\00"
@.str.1 = [4 x i8] c"%s\0A\00"
@.str.2 = [34 x i8] c"12345678901234567890123456789012\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca double
%3 = alloca i8*
store i32 0, i32* %1
store double -7.210000e+01, double* %2
%4 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double* %2)
%5 = load double, double* %2
%6 = call i8* @dou2pre(double %5)
store i8* %6, i8** %3
%7 = load i8*, i8** %3
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %7)
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [4 x i8] c"%lf\00"
@str = [33 x i8] c"12345678901234567890123456789012\00"
define i32 @main() {
%1 = alloca double
%2 = bitcast double* %1 to i8*
store double -7.210000e+01, double* %1
%3 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double* %1)
%4 = load double, double* %1
%5 = call i8* @dou2pre(double %4)
%6 = call i32 @puts(i8* dereferenceable(1) %5)
%7 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str, i64 0, i64 0))
ret i32 0
}
void test59_InitTestM2_targetInit__I() {}


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

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

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

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