xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
int main(int argc, char *argv[]) {
  fprintf(stderr, "The SVC library is not available\n");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0x2eba(%rip),%rax
mov    (%rax),%edi
lea    0xed1(%rip),%rsi
call   1030 <fprintf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    0x2ec8(%rip),%rax
mov    (%rax),%edi
lea    0xedf(%rip),%rsi
call   1030 <fprintf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@stderr = global i32 0
@.str = [34 x i8] c"The SVC library is not available\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
store i32 %0, i32* %3
store i8** %1, i8*** %4
%5 = load i32, i32* @stderr
%6 = call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [34 x i8] c"The SVC library is not available\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = load i32, i32* @stderr
%4 = tail call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0))
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ curs_set(int);
int /*<<< orphan*/ echo();
int /*<<< orphan*/ getstr(char *);
int /*<<< orphan*/ move(int, int);
void getkeyval(char *key, char *val) {
  echo();
  curs_set(1);
  move(1, 5);
  getstr(key);
  move(2, 7);
  getstr(val);
}


x86 assembly (clang, -O0):
<getkeyval>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x0,%al
call   1030 <echo@plt>
mov    $0x1,%edi
call   1050 <curs_set@plt>
mov    $0x1,%edi
mov    $0x5,%esi
call   1060 <move@plt>
mov    -0x8(%rbp),%rdi
call   1040 <getstr@plt>
mov    $0x2,%edi
mov    $0x7,%esi
call   1060 <move@plt>
mov    -0x10(%rbp),%rdi
call   1040 <getstr@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<getkeyval>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
xor    %eax,%eax
call   1030 <echo@plt>
mov    $0x1,%edi
call   1050 <curs_set@plt>
mov    $0x1,%edi
mov    $0x5,%esi
call   1060 <move@plt>
mov    %rbx,%rdi
call   1040 <getstr@plt>
mov    $0x2,%edi
mov    $0x7,%esi
call   1060 <move@plt>
mov    %r14,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1040 <getstr@plt>

LLVM IR (-O0):
define void @getkeyval(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%5 = call i32 (...) @echo()
%6 = call i32 @curs_set(i32 1)
%7 = call i32 @move(i32 1, i32 5)
%8 = load i8*, i8** %3
%9 = call i32 @getstr(i8* %8)
%10 = call i32 @move(i32 2, i32 7)
%11 = load i8*, i8** %4
%12 = call i32 @getstr(i8* %11)
ret void
}

LLVM IR (-O2):
define void @getkeyval(i8* %0, i8* %1) {
%3 = tail call i32 (...) @echo()
%4 = tail call i32 @curs_set(i32 1)
%5 = tail call i32 @move(i32 1, i32 5)
%6 = tail call i32 @getstr(i8* %0)
%7 = tail call i32 @move(i32 2, i32 7)
%8 = tail call i32 @getstr(i8* %1)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;
typedef unsigned int uint64_t;

/* Variables and functions */
int /*<<< orphan*/ memcpy(unsigned int *, int /*<<< orphan*/ const *, int);
uint64_t _wyr4(const uint8_t *p) {
  unsigned v;
  memcpy(&v, p, 4);
  return v;
}


x86 assembly (clang, -O0):
<_wyr4>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdi
mov    $0x4,%edx
call   1030 <memcpy@plt>
mov    -0xc(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_wyr4>:
push   %rax
mov    %rdi,%rsi
lea    0x4(%rsp),%rdi
mov    $0x4,%edx
call   1030 <memcpy@plt>
mov    0x4(%rsp),%eax
pop    %rcx
ret

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

LLVM IR (-O2):
define i32 @_wyr4(i32* %0) {
%2 = alloca i32
%3 = bitcast i32* %2 to i8*
%4 = call i32 @memcpy(i32* %2, i32* %0, i32 4)
%5 = load i32, i32* %2
ret i32 %5
}
int test_imm_5Euint8_reg(unsigned char val) {
  return ((val) & (-0x5E << 0)) ? -20 : -40;
}


x86 assembly (clang, -O0):
<test_imm_5Euint8_reg>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movzbl -0x1(%rbp),%edx
and    $0xffffffa2,%edx
mov    $0xffffffd8,%eax
mov    $0xffffffec,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_imm_5Euint8_reg>:
test   $0xa2,%dil
mov    $0xffffffd8,%ecx
mov    $0xffffffec,%eax
cmove  %ecx,%eax
ret

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

LLVM IR (-O2):
define i32 @test_imm_5Euint8_reg(i8 zeroext %0) {
%2 = and i8 %0, -94
%3 = icmp eq i8 %2, 0
%4 = select i1 %3, i32 -40, i32 -20
ret i32 %4
}
/* Type definitions */
typedef int /*<<< orphan*/ time_t;

/* Variables and functions */
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
time_t runtime_time() { return time(NULL); }


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

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

LLVM IR (-O0):
define i32 @runtime_time() {
%1 = call i32 @time(i32* null)
ret i32 %1
}

LLVM IR (-O2):
define i32 @runtime_time() {
%1 = tail call i32 @time(i32* null)
ret i32 %1
}
int isadigit(c)
register c;
{ return (c >= '0' && c <= '9'); }


x86 assembly (clang, -O0):
<isadigit>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
xor    %eax,%eax
cmpl   $0x30,-0x4(%rbp)
mov    %al,-0x5(%rbp)
jl     1120 <isadigit+0x20>
cmpl   $0x39,-0x4(%rbp)
setle  %al
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<isadigit>:
add    $0xffffffd0,%edi
xor    %eax,%eax
cmp    $0xa,%edi
setb   %al
ret

LLVM IR (-O0):
define i32 @isadigit(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp sge i32 %3, 48
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load i32, i32* %2
%7 = icmp sle i32 %6, 57
br label %8
8: ; preds = %5, %1
%9 = phi i1 [ false, %1 ], [ %7, %5 ]
%10 = zext i1 %9 to i32
ret i32 %10
}

LLVM IR (-O2):
define i32 @isadigit(i32 %0) {
%2 = add i32 %0, -48
%3 = icmp ult i32 %2, 10
%4 = zext i1 %3 to i32
ret i32 %4
}
void isakmp_ph2delete_stub(p) void *p;
{ isakmp_ph2delete((struct ph2handle *)p); }


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

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

LLVM IR (-O0):
%struct.ph2handle = type opaque
define void @isakmp_ph2delete_stub(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = bitcast i8* %3 to %struct.ph2handle*
%5 = call i32 (%struct.ph2handle*, ...) bitcast (i32 (...)* @isakmp_ph2delete to i32 (%struct.ph2handle*, ...)*)(%struct.ph2handle* %4)
ret void
}

LLVM IR (-O2):
%struct.ph2handle = type opaque
define void @isakmp_ph2delete_stub(i8* %0) {
%2 = bitcast i8* %0 to %struct.ph2handle*
%3 = tail call i32 (%struct.ph2handle*, ...) bitcast (i32 (...)* @isakmp_ph2delete to i32 (%struct.ph2handle*, ...)*)(%struct.ph2handle* %2)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ LV_DoDrive();
void LV_DoStuff() { LV_DoDrive(); }


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

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

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

LLVM IR (-O2):
define void @LV_DoStuff() {
%1 = tail call i32 (...) @LV_DoDrive()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ cmd_cpu(void *);
int /*<<< orphan*/ cmd_net(void *);
void show_stat(void) {
  cmd_net(((void *)0));
  cmd_cpu(((void *)0));
}


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

x86 assembly (clang, -O2):
<show_stat>:
push   %rax
xor    %edi,%edi
call   1030 <cmd_net@plt>
xor    %edi,%edi
pop    %rax
jmp    1040 <cmd_cpu@plt>

LLVM IR (-O0):
define void @show_stat() {
%1 = call i32 @cmd_net(i8* null)
%2 = call i32 @cmd_cpu(i8* null)
ret void
}

LLVM IR (-O2):
define void @show_stat() {
%1 = tail call i32 @cmd_net(i8* null)
%2 = tail call i32 @cmd_cpu(i8* null)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;

/* Variables and functions */
int /*<<< orphan*/ exit(int);
int read(int /*<<< orphan*/, int /*<<< orphan*/ *, int);
int /*<<< orphan*/ toupper(int /*<<< orphan*/);
uint8_t getkey(void) {
  uint8_t c;
  if (read(0, &c, 1) < 1)
    exit(1);
  return toupper(c);
}


x86 assembly (clang, -O0):
<getkey>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
xor    %edi,%edi
lea    -0x4(%rbp),%rsi
mov    $0x1,%edx
call   1040 <read@plt>
cmp    $0x1,%eax
jge    115b <getkey+0x2b>
mov    $0x1,%edi
call   1050 <exit@plt>
mov    -0x4(%rbp),%edi
call   1030 <toupper@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<getkey>:
push   %rax
lea    0x4(%rsp),%rsi
xor    %edi,%edi
mov    $0x1,%edx
call   1040 <read@plt>
test   %eax,%eax
jle    1150 <getkey+0x20>
mov    0x4(%rsp),%edi
pop    %rax
jmp    1030 <toupper@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
define i32 @getkey() {
%1 = alloca i32
%2 = call i32 @read(i32 0, i32* %1, i32 1)
%3 = icmp slt i32 %2, 1
br i1 %3, label %4, label %6
4: ; preds = %0
%5 = call i32 @exit(i32 1)
unreachable
6: ; preds = %0
%7 = load i32, i32* %1
%8 = call i32 @toupper(i32 %7)
ret i32 %8
}

LLVM IR (-O2):
define i32 @getkey() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = call i32 @read(i32 0, i32* %1, i32 1)
%4 = icmp slt i32 %3, 1
br i1 %4, label %5, label %7
5: ; preds = %0
%6 = tail call i32 @exit(i32 1)
unreachable
7: ; preds = %0
%8 = load i32, i32* %1
%9 = tail call i32 @toupper(i32 %8)
ret i32 %9
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *);
void usage(char *program) { printf("%s [port]\n", program); }


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

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

LLVM IR (-O0):
@.str = [11 x i8] c"%s [port]\0A\00"
define void @usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* %3)
ret void
}

LLVM IR (-O2):
@.str = [11 x i8] c"%s [port]\0A\00"
define void @usage(i8* %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* %0)
ret void
}
void test45_Test1_pollen__run__E() {}


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

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

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

LLVM IR (-O2):
define void @test45_Test1_pollen__run__E() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ store(char);
char *copy_line(char *lp) {
  while (*lp != '\0') {
    store(*lp);
    lp++;
  }
  return lp;
}


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

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

LLVM IR (-O0):
define i8* @copy_line(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
br label %3
3: ; preds = %8, %1
%4 = load i8*, i8** %2
%5 = load i8, i8* %4
%6 = 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 = call i32 @store(i8 signext %10)
%12 = load i8*, i8** %2
%13 = getelementptr inbounds i8, i8* %12, i32 1
store i8* %13, i8** %2
br label %3
14: ; preds = %3
%15 = load i8*, i8** %2
ret i8* %15
}

LLVM IR (-O2):
define i8* @copy_line(i8* %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %11, label %4
4: ; preds = %1, %4
%5 = phi i8 [ %9, %4 ], [ %2, %1 ]
%6 = phi i8* [ %8, %4 ], [ %0, %1 ]
%7 = tail call i32 @store(i8 signext %5)
%8 = getelementptr inbounds i8, i8* %6, i64 1
%9 = load i8, i8* %8
%10 = icmp eq i8 %9, 0
br i1 %10, label %11, label %4
11: ; preds = %4, %1
%12 = phi i8* [ %0, %1 ], [ %8, %4 ]
ret i8* %12
}
/* Variables and functions */
int abs(int /*<<< orphan*/);
int /*<<< orphan*/ random();
double random_double() { return (abs(random()) + 1) / 1000000.0; }


x86 assembly (clang, -O0):
<random_double>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1040 <random@plt>
mov    %eax,%edi
call   1030 <abs@plt>
add    $0x1,%eax
cvtsi2sd %eax,%xmm0
movsd  0xebf(%rip),%xmm1
divsd  %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<random_double>:
push   %rax
xor    %eax,%eax
call   1030 <random@plt>
mov    %eax,%ecx
neg    %ecx
cmovs  %eax,%ecx
add    $0x1,%ecx
cvtsi2sd %ecx,%xmm0
divsd  0xed2(%rip),%xmm0
pop    %rax
ret

LLVM IR (-O0):
define double @random_double() {
%1 = call i32 (...) @random()
%2 = call i32 @abs(i32 %1)
%3 = add nsw i32 %2, 1
%4 = sitofp i32 %3 to double
%5 = fdiv double %4, 1.000000e+06
ret double %5
}

LLVM IR (-O2):
define double @random_double() {
%1 = tail call i32 (...) @random()
%2 = tail call i32 @llvm.abs.i32(i32 %1, i1 true)
%3 = add nuw nsw i32 %2, 1
%4 = sitofp i32 %3 to double
%5 = fdiv double %4, 1.000000e+06
ret double %5
}
/* Variables and functions */
int /*<<< orphan*/ record_state(int /*<<< orphan*/);
void record_beq() { record_state(0); }


x86 assembly (clang, -O0):
<record_beq>:
push   %rbp
mov    %rsp,%rbp
xor    %edi,%edi
call   1030 <record_state@plt>
pop    %rbp
ret

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

LLVM IR (-O0):
define void @record_beq() {
%1 = call i32 @record_state(i32 0)
ret void
}

LLVM IR (-O2):
define void @record_beq() {
%1 = tail call i32 @record_state(i32 0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ InitGraph(char *, int, int);
int /*<<< orphan*/ LoadZone(char *);
int /*<<< orphan*/ VPE_Config(int, int);
int /*<<< orphan*/ VPE_Init();
int /*<<< orphan*/ VPE_Start();
void _vpe_inicio(char *fichero, char *buffer, int ancho, int alto) {
  InitGraph(buffer, ancho, alto);
  VPE_Init();
  VPE_Config(ancho, alto);
  LoadZone(fichero);
  VPE_Start();
}


x86 assembly (clang, -O0):
<_vpe_inicio>:
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    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
call   1040 <InitGraph@plt>
mov    $0x0,%al
call   1060 <VPE_Init@plt>
mov    -0x14(%rbp),%edi
mov    -0x18(%rbp),%esi
call   1050 <VPE_Config@plt>
mov    -0x8(%rbp),%rdi
call   1030 <LoadZone@plt>
mov    $0x0,%al
call   1070 <VPE_Start@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_vpe_inicio>:
push   %rbp
push   %r14
push   %rbx
mov    %ecx,%ebx
mov    %edx,%ebp
mov    %rdi,%r14
mov    %rsi,%rdi
mov    %edx,%esi
mov    %ecx,%edx
call   1040 <InitGraph@plt>
xor    %eax,%eax
call   1060 <VPE_Init@plt>
mov    %ebp,%edi
mov    %ebx,%esi
call   1050 <VPE_Config@plt>
mov    %r14,%rdi
call   1030 <LoadZone@plt>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %rbp
jmp    1070 <VPE_Start@plt>

LLVM IR (-O0):
define void @_vpe_inicio(i8* %0, i8* %1, i32 %2, i32 %3) {
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i32
store i8* %0, i8** %5
store i8* %1, i8** %6
store i32 %2, i32* %7
store i32 %3, i32* %8
%9 = load i8*, i8** %6
%10 = load i32, i32* %7
%11 = load i32, i32* %8
%12 = call i32 @InitGraph(i8* %9, i32 %10, i32 %11)
%13 = call i32 (...) @VPE_Init()
%14 = load i32, i32* %7
%15 = load i32, i32* %8
%16 = call i32 @VPE_Config(i32 %14, i32 %15)
%17 = load i8*, i8** %5
%18 = call i32 @LoadZone(i8* %17)
%19 = call i32 (...) @VPE_Start()
ret void
}

LLVM IR (-O2):
define void @_vpe_inicio(i8* %0, i8* %1, i32 %2, i32 %3) {
%5 = tail call i32 @InitGraph(i8* %1, i32 %2, i32 %3)
%6 = tail call i32 (...) @VPE_Init()
%7 = tail call i32 @VPE_Config(i32 %2, i32 %3)
%8 = tail call i32 @LoadZone(i8* %0)
%9 = tail call i32 (...) @VPE_Start()
ret void
}
void ARGBPolynomialRow_SSE2() {}


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

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

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

LLVM IR (-O2):
define void @ARGBPolynomialRow_SSE2() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ clang_analyzer_eval(int /*<<< orphan*/);
int /*<<< orphan*/ isascii(int);
int /*<<< orphan*/ isspace(int);
void test_isspace(int x) {
  if (!isascii(x))
    return;
  char y = x;
  if (y == ' ')
    clang_analyzer_eval(isspace(x));
}


x86 assembly (clang, -O0):
<test_isspace>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1040 <isascii@plt>
cmp    $0x0,%eax
jne    1151 <test_isspace+0x21>
jmp    1173 <test_isspace+0x43>
mov    -0x4(%rbp),%eax
mov    %al,-0x5(%rbp)
movsbl -0x5(%rbp),%eax
cmp    $0x20,%eax
jne    1173 <test_isspace+0x43>
mov    -0x4(%rbp),%edi
call   1030 <isspace@plt>
mov    %eax,%edi
call   1050 <clang_analyzer_eval@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_isspace>:
cmp    $0x20,%edi
jne    1138 <test_isspace+0x18>
push   %rax
mov    $0x20,%edi
call   1030 <isspace@plt>
mov    %eax,%edi
pop    %rax
jmp    1040 <clang_analyzer_eval@plt>
ret

LLVM IR (-O0):
define void @test_isspace(i32 %0) {
%2 = alloca i32
%3 = alloca i8
store i32 %0, i32* %2
%4 = load i32, i32* %2
%5 = call i32 @isascii(i32 %4)
%6 = icmp ne i32 %5, 0
br i1 %6, label %8, label %7
7: ; preds = %1
br label %18
8: ; preds = %1
%9 = load i32, i32* %2
%10 = trunc i32 %9 to i8
store i8 %10, i8* %3
%11 = load i8, i8* %3
%12 = sext i8 %11 to i32
%13 = icmp eq i32 %12, 32
br i1 %13, label %14, label %18
14: ; preds = %8
%15 = load i32, i32* %2
%16 = call i32 @isspace(i32 %15)
%17 = call i32 @clang_analyzer_eval(i32 %16)
br label %18
18: ; preds = %7, %14, %8
ret void
}

LLVM IR (-O2):
define void @test_isspace(i32 %0) {
%2 = icmp eq i32 %0, 32
br i1 %2, label %3, label %6
3: ; preds = %1
%4 = tail call i32 @isspace(i32 32)
%5 = tail call i32 @clang_analyzer_eval(i32 %4)
br label %6
6: ; preds = %3, %1
ret void
}
/* Variables and functions */
int check_arg_count(int, int);
int /*<<< orphan*/ report_count(int);
int /*<<< orphan*/ report_error(char *);
void cmd_mvadd_wchnstr(int nargs, char **args) {
  if (check_arg_count(nargs, 1) == 1)
    return;
  report_count(1);
  report_error("UNSUPPORTED");
}


x86 assembly (clang, -O0):
<cmd_mvadd_wchnstr>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x4(%rbp),%edi
mov    $0x1,%esi
call   1030 <check_arg_count@plt>
cmp    $0x1,%eax
jne    115a <cmd_mvadd_wchnstr+0x2a>
jmp    1170 <cmd_mvadd_wchnstr+0x40>
mov    $0x1,%edi
call   1040 <report_count@plt>
lea    0xe95(%rip),%rdi
call   1050 <report_error@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cmd_mvadd_wchnstr>:
push   %rax
mov    $0x1,%esi
call   1030 <check_arg_count@plt>
cmp    $0x1,%eax
jne    1142 <cmd_mvadd_wchnstr+0x12>
pop    %rax
ret
mov    $0x1,%edi
call   1040 <report_count@plt>
lea    0xead(%rip),%rdi
pop    %rax
jmp    1050 <report_error@plt>

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

LLVM IR (-O2):
@.str = [12 x i8] c"UNSUPPORTED\00"
define void @cmd_mvadd_wchnstr(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @check_arg_count(i32 %0, i32 1)
%4 = icmp eq i32 %3, 1
br i1 %4, label %8, label %5
5: ; preds = %2
%6 = tail call i32 @report_count(i32 1)
%7 = tail call i32 @report_error(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
br label %8
8: ; preds = %2, %5
ret void
}
int fa(int a, int b, int c, int d, int e, int f, int g) { return 0; }


x86 assembly (clang, -O0):
<fa>:
push   %rbp
mov    %rsp,%rbp
mov    0x10(%rbp),%eax
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    %r8d,-0x14(%rbp)
mov    %r9d,-0x18(%rbp)
xor    %eax,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @fa(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 %6) {
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
store i32 %0, i32* %8
store i32 %1, i32* %9
store i32 %2, i32* %10
store i32 %3, i32* %11
store i32 %4, i32* %12
store i32 %5, i32* %13
store i32 %6, i32* %14
ret i32 0
}

LLVM IR (-O2):
define i32 @fa(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 %6) {
ret i32 0
}
void freeCharMatrix(char **matrix, int number) {
  int loop = 0;
  for (loop = 0; loop < number; loop++) {
    free(matrix[loop]);
  }
  free(matrix);
}


x86 assembly (clang, -O0):
<freeCharMatrix>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1158 <freeCharMatrix+0x48>
mov    -0x8(%rbp),%rax
movslq -0x10(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   1030 <free@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    112d <freeCharMatrix+0x1d>
mov    -0x8(%rbp),%rdi
call   1030 <free@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<freeCharMatrix>:
push   %r15
push   %r14
push   %rbx
mov    %rdi,%r14
test   %esi,%esi
jle    1142 <freeCharMatrix+0x32>
mov    %esi,%r15d
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    (%r14,%rbx,8),%rdi
call   1030 <free@plt>
add    $0x1,%rbx
cmp    %rbx,%r15
jne    1130 <freeCharMatrix+0x20>
mov    %r14,%rdi
pop    %rbx
pop    %r14
pop    %r15
jmp    1030 <free@plt>

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

LLVM IR (-O2):
define void @freeCharMatrix(i8** nocapture %0, i32 %1) {
%3 = icmp sgt i32 %1, 0
br i1 %3, label %4, label %12
4: ; preds = %2
%5 = zext i32 %1 to i64
br label %6
6: ; preds = %4, %6
%7 = phi i64 [ 0, %4 ], [ %10, %6 ]
%8 = getelementptr inbounds i8*, i8** %0, i64 %7
%9 = load i8*, i8** %8
tail call void @free(i8* %9)
%10 = add nuw nsw i64 %7, 1
%11 = icmp eq i64 %10, %5
br i1 %11, label %12, label %6
12: ; preds = %6, %2
%13 = bitcast i8** %0 to i8*
tail call void @free(i8* %13)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
void println(char s[], int len) {
  for (int i = 0; i < len; i++) {
    printf("%c", s[i]);
  }
  printf("\n");
}


x86 assembly (clang, -O0):
<println>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    115a <println+0x4a>
mov    -0x8(%rbp),%rax
movslq -0x10(%rbp),%rcx
movsbl (%rax,%rcx,1),%esi
lea    0xebb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1126 <println+0x16>
lea    0xea2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<println>:
push   %r15
push   %r14
push   %rbx
test   %esi,%esi
jle    1143 <println+0x33>
mov    %rdi,%r14
mov    %esi,%r15d
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movsbl (%r14,%rbx,1),%edi
call   1030 <putchar@plt>
add    $0x1,%rbx
cmp    %rbx,%r15
jne    1130 <println+0x20>
mov    $0xa,%edi
pop    %rbx
pop    %r14
pop    %r15
jmp    1030 <putchar@plt>

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

LLVM IR (-O2):
define void @println(i8* nocapture %0, i32 %1) {
%3 = icmp sgt i32 %1, 0
br i1 %3, label %4, label %6
4: ; preds = %2
%5 = zext i32 %1 to i64
br label %8
6: ; preds = %8, %2
%7 = tail call i32 @putchar(i32 10)
ret void
8: ; preds = %4, %8
%9 = phi i64 [ 0, %4 ], [ %14, %8 ]
%10 = getelementptr inbounds i8, i8* %0, i64 %9
%11 = load i8, i8* %10
%12 = sext i8 %11 to i32
%13 = tail call i32 @putchar(i32 %12)
%14 = add nuw nsw i64 %9, 1
%15 = icmp eq i64 %14, %5
br i1 %15, label %6, label %8
}
/* Variables and functions */
void *mem_unmanaged_realloc(void *, size_t);
void *_unmanaged_reallocate(void *memory, size_t old_size, size_t new_size) {
  return mem_unmanaged_realloc(memory, new_size);
}


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

x86 assembly (clang, -O2):
<_unmanaged_reallocate>:
mov    %rdx,%rsi
jmp    1030 <mem_unmanaged_realloc@plt>

LLVM IR (-O0):
define i8* @_unmanaged_reallocate(i8* %0, i64 %1, i64 %2) {
%4 = alloca i8*
%5 = alloca i64
%6 = alloca i64
store i8* %0, i8** %4
store i64 %1, i64* %5
store i64 %2, i64* %6
%7 = load i8*, i8** %4
%8 = load i64, i64* %6
%9 = call i8* @mem_unmanaged_realloc(i8* %7, i64 %8)
ret i8* %9
}

LLVM IR (-O2):
define i8* @_unmanaged_reallocate(i8* %0, i64 %1, i64 %2) {
%4 = tail call i8* @mem_unmanaged_realloc(i8* %0, i64 %2)
ret i8* %4
}
void RTSocketRelease(void) {}


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

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

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

LLVM IR (-O2):
define void @RTSocketRelease() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ trigger();
int main(int argc, char **argv, char **envp) {
  trigger();
  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)
mov    %rdx,-0x18(%rbp)
mov    $0x0,%al
call   1030 <trigger@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1030 <trigger@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1, i8** %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i8**
%7 = alloca i8**
store i32 0, i32* %4
store i32 %0, i32* %5
store i8** %1, i8*** %6
store i8** %2, i8*** %7
%8 = call i32 (...) @trigger()
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1, i8** nocapture readnone %2) {
%4 = tail call i32 (...) @trigger()
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ halt();
int main(int argc, char *argv[]) { halt(); }


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

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1030 <halt@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
store i32 %0, i32* %3
store i8** %1, i8*** %4
%5 = call i32 (...) @halt()
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @halt()
ret i32 0
}
/* Variables and functions */
int getche();
int /*<<< orphan*/ printf(char *, int);
scalar_t__ termiosavailable();
int main() {
  while (termiosavailable())
    printf("\nYou typed: %d\n", getche());
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1040 <termiosavailable@plt>
cmp    $0x0,%rax
je     116a <main+0x3a>
mov    $0x0,%al
call   1050 <getche@plt>
mov    %eax,%esi
lea    0xea0(%rip),%rdi
call   1030 <printf@plt>
jmp    113f <main+0xf>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
xor    %eax,%eax
call   1040 <termiosavailable@plt>
test   %rax,%rax
je     116d <main+0x3d>
lea    0xebc(%rip),%rbx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
xor    %eax,%eax
call   1050 <getche@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1040 <termiosavailable@plt>
test   %rax,%rax
jne    1150 <main+0x20>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [16 x i8] c"\0AYou typed: %d\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
br label %2
2: ; preds = %5, %0
%3 = call i64 (...) @termiosavailable()
%4 = icmp ne i64 %3, 0
br i1 %4, label %5, label %8
5: ; preds = %2
%6 = call i32 (...) @getche()
%7 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32 %6)
br label %2
8: ; preds = %2
ret i32 0
}

LLVM IR (-O2):
@.str = [16 x i8] c"\0AYou typed: %d\0A\00"
define i32 @main() {
%1 = tail call i64 (...) @termiosavailable()
%2 = icmp eq i64 %1, 0
br i1 %2, label %8, label %3
3: ; preds = %0, %3
%4 = tail call i32 (...) @getche()
%5 = tail call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32 %4)
%6 = tail call i64 (...) @termiosavailable()
%7 = icmp eq i64 %6, 0
br i1 %7, label %8, label %3
8: ; preds = %3, %0
ret i32 0
}
/* Variables and functions */
int Pop();
int /*<<< orphan*/ Push(int);
int CmdGE(void) {
  int operand2;
  operand2 = Pop();
  Push(Pop() >= operand2);
  return 0;
}


x86 assembly (clang, -O0):
<CmdGE>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1030 <Pop@plt>
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1030 <Pop@plt>
cmp    -0x4(%rbp),%eax
setge  %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <Push@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<CmdGE>:
push   %rbx
xor    %eax,%eax
call   1030 <Pop@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1030 <Pop@plt>
xor    %edi,%edi
cmp    %ebx,%eax
setge  %dil
call   1040 <Push@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @CmdGE() {
%1 = alloca i32
%2 = call i32 (...) @Pop()
store i32 %2, i32* %1
%3 = call i32 (...) @Pop()
%4 = load i32, i32* %1
%5 = icmp sge i32 %3, %4
%6 = zext i1 %5 to i32
%7 = call i32 @Push(i32 %6)
ret i32 0
}

LLVM IR (-O2):
define i32 @CmdGE() {
%1 = tail call i32 (...) @Pop()
%2 = tail call i32 (...) @Pop()
%3 = icmp sge i32 %2, %1
%4 = zext i1 %3 to i32
%5 = tail call i32 @Push(i32 %4)
ret i32 0
}
void gtk_icon_theme_get_type() {}


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

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

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

LLVM IR (-O2):
define void @gtk_icon_theme_get_type() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void print_usage() {
  printf("usage: dnp_sim [-h] [-n <number of simulations> ] [-v] [-f <output "
         "file>]\n"
         "\t-h - print usage information\n"
         "\t-n <number of simulations>; default - 1\n"
         "\t-v - verbose mode\n"
         "\t-f <output file> - by default, results are printed to the screen\n"
         "\t-o <op file> - file that contains operation sequence to execute;\n"
         "\tby default, random sequence is generated.\n");
}


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

x86 assembly (clang, -O2):
<print_usage>:
lea    0xee9(%rip),%rdi
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [340 x i8] c"usage: dnp_sim [-h] [-n <number of simulations> ] [-v] [-f <output file>]\0A\09-h - print usage information\0A\09-n <number of simulations>; default - 1\0A\09-v - verbose mode\0A\09-f <output file> - by default, results are printed to the screen\0A\09-o <op file> - file that contains operation sequence to execute;\0A\09by default, random sequence is generated.\0A\00"
define void @print_usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([340 x i8], [340 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [339 x i8] c"usage: dnp_sim [-h] [-n <number of simulations> ] [-v] [-f <output file>]\0A\09-h - print usage information\0A\09-n <number of simulations>; default - 1\0A\09-v - verbose mode\0A\09-f <output file> - by default, results are printed to the screen\0A\09-o <op file> - file that contains operation sequence to execute;\0A\09by default, random sequence is generated.\00"
define void @print_usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([339 x i8], [339 x i8]* @str, i64 0, i64 0))
ret void
}
/* Type definitions */
struct tl880_dev {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ tl880_read_register(struct tl880_dev *, int);
int tl880_mcu_int(struct tl880_dev *tl880dev) {
  tl880_read_register(tl880dev, 0x1d810);
  return 1;
}


x86 assembly (clang, -O0):
<tl880_mcu_int>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0x1d810,%esi
call   1030 <tl880_read_register@plt>
mov    $0x1,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<tl880_mcu_int>:
push   %rax
mov    $0x1d810,%esi
call   1030 <tl880_read_register@plt>
mov    $0x1,%eax
pop    %rcx
ret

LLVM IR (-O0):
%struct.tl880_dev = type { i32 }
define i32 @tl880_mcu_int(%struct.tl880_dev* %0) {
%2 = alloca %struct.tl880_dev*
store %struct.tl880_dev* %0, %struct.tl880_dev** %2
%3 = load %struct.tl880_dev*, %struct.tl880_dev** %2
%4 = call i32 @tl880_read_register(%struct.tl880_dev* %3, i32 120848)
ret i32 1
}

LLVM IR (-O2):
%struct.tl880_dev = type { i32 }
define i32 @tl880_mcu_int(%struct.tl880_dev* %0) {
%2 = tail call i32 @tl880_read_register(%struct.tl880_dev* %0, i32 120848)
ret i32 1
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void meChama2() { printf("Serei chamado primeiro!!\n"); }


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

x86 assembly (clang, -O2):
<meChama2>:
lea    0xee9(%rip),%rdi
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [26 x i8] c"Serei chamado primeiro!!\0A\00"
define void @meChama2() {
%1 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [25 x i8] c"Serei chamado primeiro!!\00"
define void @meChama2() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int spaces(char *);
int strlen(char *);
int vowel(char *);
int conso(char a[]) {
  int count = 0, r, t;
  r = spaces(a);
  t = vowel(a);
  count = strlen(a) - r - t;
  return count;
}


x86 assembly (clang, -O0):
<conso>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0x8(%rbp),%rdi
call   1050 <spaces@plt>
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <vowel@plt>
mov    %eax,-0x14(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <strlen@plt>
sub    -0x10(%rbp),%eax
sub    -0x14(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<conso>:
push   %rbp
push   %r14
push   %rbx
mov    %rdi,%rbx
call   1050 <spaces@plt>
mov    %eax,%r14d
mov    %rbx,%rdi
call   1040 <vowel@plt>
mov    %eax,%ebp
mov    %rbx,%rdi
call   1030 <strlen@plt>
add    %r14d,%ebp
sub    %ebp,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
define i32 @conso(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i8* %0, i8** %2
store i32 0, i32* %3
%6 = load i8*, i8** %2
%7 = call i32 @spaces(i8* %6)
store i32 %7, i32* %4
%8 = load i8*, i8** %2
%9 = call i32 @vowel(i8* %8)
store i32 %9, i32* %5
%10 = load i8*, i8** %2
%11 = call i32 @strlen(i8* %10)
%12 = load i32, i32* %4
%13 = sub nsw i32 %11, %12
%14 = load i32, i32* %5
%15 = sub nsw i32 %13, %14
store i32 %15, i32* %3
%16 = load i32, i32* %3
ret i32 %16
}

LLVM IR (-O2):
define i32 @conso(i8* %0) {
%2 = tail call i32 @spaces(i8* %0)
%3 = tail call i32 @vowel(i8* %0)
%4 = tail call i32 @strlen(i8* %0)
%5 = add i32 %3, %2
%6 = sub i32 %4, %5
ret i32 %6
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
void kb_wait_1(void) {
  unsigned long timeout = 2;
  do {
    (1 ? printf("timeout=%ld\n", timeout) : ({
      while (1)
        printf("error\n");
    }));
    timeout--;
  } while (timeout);
}


x86 assembly (clang, -O0):
<kb_wait_1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movq   $0x2,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xed5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
jne    1120 <kb_wait_1+0x10>
add    $0x10,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
@.str = [13 x i8] c"timeout=%ld\0A\00"
define void @kb_wait_1() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i64 2)
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i64 1)
ret void
}
/* Forward declarations */
typedef struct TYPE_2__ TYPE_1__;

/* Type definitions */
struct TYPE_2__ {
  int all_chars_exist;
};
typedef TYPE_1__ XFontStruct;

/* Variables and functions */
void set_XFontStruct_all_chars_exist(void *_p, int _v) {
  ((XFontStruct *)_p)->all_chars_exist = (int)_v;
}


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

x86 assembly (clang, -O2):
<set_XFontStruct_all_chars_exist>:
mov    %esi,(%rdi)
ret

LLVM IR (-O0):
%struct.TYPE_2__ = type { i32 }
define void @set_XFontStruct_all_chars_exist(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%5 = load i32, i32* %4
%6 = load i8*, i8** %3
%7 = bitcast i8* %6 to %struct.TYPE_2__*
%8 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %7, i32 0, i32 0
store i32 %5, i32* %8
ret void
}

LLVM IR (-O2):
define void @set_XFontStruct_all_chars_exist(i8* nocapture writeonly %0, i32 %1) {
%3 = bitcast i8* %0 to i32*
store i32 %1, i32* %3
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *, char *);
char *supergud_hash(char *, char *);
int main(int argc, char *argv[]) {
  if (argc == 2) {
    printf("%s -> %s\n", argv[1],
           supergud_hash(argv[1], "I_BET_THE_JEWS_DID_THIS"));
  }
}


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)
cmpl   $0x2,-0x8(%rbp)
jne    1173 <main+0x53>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xeaf(%rip),%rsi
call   1030 <supergud_hash@plt>
mov    -0x18(%rbp),%rsi
mov    %rax,%rdx
lea    0xe92(%rip),%rdi
call   1040 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
cmp    $0x2,%edi
jne    114c <main+0x2c>
push   %rbx
mov    0x8(%rsi),%rbx
lea    0xed9(%rip),%rsi
mov    %rbx,%rdi
call   1030 <supergud_hash@plt>
lea    0xec0(%rip),%rdi
mov    %rbx,%rsi
mov    %rax,%rdx
call   1040 <printf@plt>
pop    %rbx
xor    %eax,%eax
ret

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

LLVM IR (-O2):
@.str = [10 x i8] c"%s -> %s\0A\00"
@.str.1 = [24 x i8] c"I_BET_THE_JEWS_DID_THIS\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp eq i32 %0, 2
br i1 %3, label %4, label %9
4: ; preds = %2
%5 = getelementptr inbounds i8*, i8** %1, i64 1
%6 = load i8*, i8** %5
%7 = tail call i8* @supergud_hash(i8* %6, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0))
%8 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* %6, i8* %7)
br label %9
9: ; preds = %4, %2
ret i32 0
}
int foo(int a) {
  static const int ar[] = {&&l1 - &&l1, &&l2 - &&l1};
  void *p = &&l1 + ar[a];
  goto *p;
l1:
  return 1;
l2:
  return 2;
}


x86 assembly (clang, -O0):
<foo>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
movslq -0x8(%rbp),%rcx
lea    0xeee(%rip),%rax
movslq (%rax,%rcx,4),%rcx
lea    0x14(%rip),%rax
add    %rcx,%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
jmp    1149 <foo+0x49>
movl   $0x1,-0x4(%rbp)
jmp    1144 <foo+0x44>
movl   $0x2,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret
mov    -0x18(%rbp),%rax
jmp    *%rax

x86 assembly (clang, -O2):
<foo>:
movslq %edi,%rax
lea    0xef6(%rip),%rcx
movslq (%rcx,%rax,4),%rax
lea    0x5(%rip),%rcx
add    %rax,%rcx
jmp    *%rcx
mov    $0x1,%eax
ret
mov    $0x2,%eax
ret

LLVM IR (-O0):
@foo.ar = internal constant [2 x i32] [i32 trunc (i64 sub (i64 ptrtoint (i8* blockaddress(@foo, %12) to i64), i64 ptrtoint (i8* blockaddress(@foo, %12) to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (i8* blockaddress(@foo, %13) to i64), i64 ptrtoint (i8* blockaddress(@foo, %12) to i64)) to i32)]
define i32 @foo(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i8*
store i32 %0, i32* %3
%5 = load i32, i32* %3
%6 = sext i32 %5 to i64
%7 = getelementptr inbounds [2 x i32], [2 x i32]* @foo.ar, i64 0, i64 %6
%8 = load i32, i32* %7
%9 = sext i32 %8 to i64
%10 = getelementptr i8, i8* blockaddress(@foo, %12), i64 %9
store i8* %10, i8** %4
%11 = load i8*, i8** %4
br label %16
12: ; preds = %16, %16, %16, %16
store i32 1, i32* %2
br label %14
13: ; preds = %16
store i32 2, i32* %2
br label %14
14: ; preds = %13, %12
%15 = load i32, i32* %2
ret i32 %15
16: ; preds = %1
%17 = phi i8* [ %11, %1 ]
indirectbr i8* %17, [label %12, label %12, label %13, label %12, label %12]
}

LLVM IR (-O2):
@foo.ar = internal unnamed_addr constant [2 x i32] [i32 trunc (i64 sub (i64 ptrtoint (i8* blockaddress(@foo, %8) to i64), i64 ptrtoint (i8* blockaddress(@foo, %8) to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (i8* blockaddress(@foo, %7) to i64), i64 ptrtoint (i8* blockaddress(@foo, %8) to i64)) to i32)]
define i32 @foo(i32 %0) {
%2 = sext i32 %0 to i64
%3 = getelementptr inbounds [2 x i32], [2 x i32]* @foo.ar, i64 0, i64 %2
%4 = load i32, i32* %3
%5 = sext i32 %4 to i64
%6 = getelementptr i8, i8* blockaddress(@foo, %8), i64 %5
indirectbr i8* %6, [label %8, label %7]
7: ; preds = %1
br label %8
8: ; preds = %1, %7
%9 = phi i32 [ 2, %7 ], [ 1, %1 ]
ret i32 %9
}