xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
void usage(void) {
  fprintf(stderr,
          "sysgeep - Keep System Config in Git, version "
          "20151209"
          "\n"
          "Usage:\n"
          "\tsysgeep help\n"
          "\tsysgeep -h\n"
          "\tsysgeep [-s] setup    # <- this will print your current setup\n"
          "\tsysgeep [-s] setup <path-to-local-git-repository>\n"
          "\tsysgeep [-s] save <path-to-file>\n"
          "\tsysgeep [-s] restore <path-to-file>\n");
}


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

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

LLVM IR (-O0):
@stderr = global i32 0
@.str = [273 x i8] c"sysgeep - Keep System Config in Git, version 20151209\0AUsage:\0A\09sysgeep help\0A\09sysgeep -h\0A\09sysgeep [-s] setup # <- this will print your current setup\0A\09sysgeep [-s] setup <path-to-local-git-repository>\0A\09sysgeep [-s] save <path-to-file>\0A\09sysgeep [-s] restore <path-to-file>\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([273 x i8], [273 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [273 x i8] c"sysgeep - Keep System Config in Git, version 20151209\0AUsage:\0A\09sysgeep help\0A\09sysgeep -h\0A\09sysgeep [-s] setup # <- this will print your current setup\0A\09sysgeep [-s] setup <path-to-local-git-repository>\0A\09sysgeep [-s] save <path-to-file>\0A\09sysgeep [-s] restore <path-to-file>\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([273 x i8], [273 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ ParseTests();
int /*<<< orphan*/ SearchTest();
int main(int argc, char **argv) {
  SearchTest();
  ParseTests();
  return 0;
}


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

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

LLVM IR (-O0):
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 = call i32 (...) @SearchTest()
%7 = call i32 (...) @ParseTests()
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @SearchTest()
%4 = tail call i32 (...) @ParseTests()
ret i32 0
}
int col_byte_euc(int col) { return 0xa1 + col; }


x86 assembly (clang, -O0):
<col_byte_euc>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xa1,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<col_byte_euc>:
lea    0xa1(%rdi),%eax
ret

LLVM IR (-O0):
define i32 @col_byte_euc(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = add nsw i32 161, %3
ret i32 %4
}

LLVM IR (-O2):
define i32 @col_byte_euc(i32 %0) {
%2 = add nsw i32 %0, 161
ret i32 %2
}
/* Variables and functions */
int /*<<< orphan*/ U_WMRNOTIMPLEMENTED_swap(char *, int);
void U_WMRDA_swap(char *record, int torev) {
  U_WMRNOTIMPLEMENTED_swap(record, torev);
}


x86 assembly (clang, -O0):
<U_WMRDA_swap>:
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 <U_WMRNOTIMPLEMENTED_swap@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<U_WMRDA_swap>:
jmp    1030 <U_WMRNOTIMPLEMENTED_swap@plt>

LLVM IR (-O0):
define void @U_WMRDA_swap(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* %4
%7 = call i32 @U_WMRNOTIMPLEMENTED_swap(i8* %5, i32 %6)
ret void
}

LLVM IR (-O2):
define void @U_WMRDA_swap(i8* %0, i32 %1) {
%3 = tail call i32 @U_WMRNOTIMPLEMENTED_swap(i8* %0, i32 %1)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
void help() {
  fprintf(stderr, "\noptions:\n");
  fprintf(stderr, "\n  --seed=[seed]  hash seed (optional)");
  fprintf(stderr, "\n");
}


x86 assembly (clang, -O0):
<help>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ec5(%rip),%rax
mov    (%rax),%edi
lea    0xedc(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2eb0(%rip),%rax
mov    (%rax),%edi
lea    0xed2(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e9b(%rip),%rax
mov    (%rax),%edi
lea    0xebb(%rip),%rsi
call   1030 <fprintf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<help>:
push   %rbx
mov    0x2ec8(%rip),%rbx
mov    (%rbx),%edi
lea    0xedf(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xedc(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xecc(%rip),%rsi
pop    %rbx
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [11 x i8] c"\0Aoptions:\0A\00"
@.str.1 = [39 x i8] c"\0A --seed=[seed] hash seed (optional)\00"
@.str.2 = [2 x i8] c"\0A\00"
define void @help() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @stderr
%4 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0))
%5 = load i32, i32* @stderr
%6 = call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [11 x i8] c"\0Aoptions:\0A\00"
@.str.1 = [39 x i8] c"\0A --seed=[seed] hash seed (optional)\00"
@.str.2 = [2 x i8] c"\0A\00"
define void @help() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @stderr
%4 = tail call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0))
%5 = load i32, i32* @stderr
%6 = tail call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
ret void
}
/* Variables and functions */
int pathcon_nm5_f0(double const **, double **, int *, double *, int);
int pathcon_nm5(const double **arg, double **res, int *iw, double *w, int mem) {
  return pathcon_nm5_f0(arg, res, iw, w, mem);
}


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

x86 assembly (clang, -O2):
<pathcon_nm5>:
jmp    1030 <pathcon_nm5_f0@plt>

LLVM IR (-O0):
define i32 @pathcon_nm5(double** %0, double** %1, i32* %2, double* %3, i32 %4) {
%6 = alloca double**
%7 = alloca double**
%8 = alloca i32*
%9 = alloca double*
%10 = alloca i32
store double** %0, double*** %6
store double** %1, double*** %7
store i32* %2, i32** %8
store double* %3, double** %9
store i32 %4, i32* %10
%11 = load double**, double*** %6
%12 = load double**, double*** %7
%13 = load i32*, i32** %8
%14 = load double*, double** %9
%15 = load i32, i32* %10
%16 = call i32 @pathcon_nm5_f0(double** %11, double** %12, i32* %13, double* %14, i32 %15)
ret i32 %16
}

LLVM IR (-O2):
define i32 @pathcon_nm5(double** %0, double** %1, i32* %2, double* %3, i32 %4) {
%6 = tail call i32 @pathcon_nm5_f0(double** %0, double** %1, i32* %2, double* %3, i32 %4)
ret i32 %6
}
/* Variables and functions */
__attribute__((visibility("default"))) void *
sd_event_source_get_event(void *s) {
  return NULL;
}


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

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

LLVM IR (-O0):
define i8* @sd_event_source_get_event(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
ret i8* null
}

LLVM IR (-O2):
define noalias i8* @sd_event_source_get_event(i8* nocapture readnone %0) {
ret i8* null
}
int test_imm_83uint64_midword_reg(unsigned long long val) {
  return ((val >> 16) & (0x83 << 0)) ? -20 : -40;
}


x86 assembly (clang, -O0):
<test_imm_83uint64_midword_reg>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdx
shr    $0x10,%rdx
and    $0x83,%rdx
mov    $0xffffffd8,%eax
mov    $0xffffffec,%ecx
cmp    $0x0,%rdx
cmovne %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_imm_83uint64_midword_reg>:
test   $0x830000,%edi
mov    $0xffffffd8,%ecx
mov    $0xffffffec,%eax
cmove  %ecx,%eax
ret

LLVM IR (-O0):
define i32 @test_imm_83uint64_midword_reg(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i64, i64* %2
%4 = lshr i64 %3, 16
%5 = and i64 %4, 131
%6 = icmp ne i64 %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_83uint64_midword_reg(i64 %0) {
%2 = and i64 %0, 8585216
%3 = icmp eq i64 %2, 0
%4 = select i1 %3, i32 -40, i32 -20
ret i32 %4
}
/* Variables and functions */
scalar_t__ shim_enosys(int /*<<< orphan*/, int, char const *, int, char const *,
                       unsigned int);
int shim_move_mount(int from_dfd, const char *from_pathname, int to_dfd,
                    const char *to_pathname, unsigned int flags) {
  return (int)shim_enosys(0, from_dfd, from_pathname, to_dfd, to_pathname,
                          flags);
}


x86 assembly (clang, -O0):
<shim_move_mount>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8d,-0x24(%rbp)
mov    -0x4(%rbp),%esi
mov    -0x10(%rbp),%rdx
mov    -0x14(%rbp),%ecx
mov    -0x20(%rbp),%r8
mov    -0x24(%rbp),%r9d
xor    %edi,%edi
call   1030 <shim_enosys@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<shim_move_mount>:
mov    %r8d,%r9d
mov    %rcx,%r8
mov    %edx,%ecx
mov    %rsi,%rdx
mov    %edi,%esi
xor    %edi,%edi
jmp    1030 <shim_enosys@plt>

LLVM IR (-O0):
define i32 @shim_move_mount(i32 %0, i8* %1, i32 %2, i8* %3, i32 %4) {
%6 = alloca i32
%7 = alloca i8*
%8 = alloca i32
%9 = alloca i8*
%10 = alloca i32
store i32 %0, i32* %6
store i8* %1, i8** %7
store i32 %2, i32* %8
store i8* %3, i8** %9
store i32 %4, i32* %10
%11 = load i32, i32* %6
%12 = load i8*, i8** %7
%13 = load i32, i32* %8
%14 = load i8*, i8** %9
%15 = load i32, i32* %10
%16 = call i64 @shim_enosys(i32 0, i32 %11, i8* %12, i32 %13, i8* %14, i32 %15)
%17 = trunc i64 %16 to i32
ret i32 %17
}

LLVM IR (-O2):
define i32 @shim_move_mount(i32 %0, i8* %1, i32 %2, i8* %3, i32 %4) {
%6 = tail call i64 @shim_enosys(i32 0, i32 %0, i8* %1, i32 %2, i8* %3, i32 %4)
%7 = trunc i64 %6 to i32
ret i32 %7
}
/* Variables and functions */
int /*<<< orphan*/ U_WMRNOTIMPLEMENTED_swap(char *, int);
void U_WMRD3_swap(char *record, int torev) {
  U_WMRNOTIMPLEMENTED_swap(record, torev);
}


x86 assembly (clang, -O0):
<U_WMRD3_swap>:
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 <U_WMRNOTIMPLEMENTED_swap@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<U_WMRD3_swap>:
jmp    1030 <U_WMRNOTIMPLEMENTED_swap@plt>

LLVM IR (-O0):
define void @U_WMRD3_swap(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* %4
%7 = call i32 @U_WMRNOTIMPLEMENTED_swap(i8* %5, i32 %6)
ret void
}

LLVM IR (-O2):
define void @U_WMRD3_swap(i8* %0, i32 %1) {
%3 = tail call i32 @U_WMRNOTIMPLEMENTED_swap(i8* %0, i32 %1)
ret void
}
void test(int *ptr) {
  int i = 1;
  goto useless;
  if (0) {
  useless:
    i = 0;
  } else
    i = 1;
  *ptr = i;
}


x86 assembly (clang, -O0):
<test>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movl   $0x1,-0xc(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<test>:
movl   $0x0,(%rdi)
ret

LLVM IR (-O0):
define void @test(i32* %0) {
%2 = alloca i32*
%3 = alloca i32
store i32* %0, i32** %2
store i32 1, i32* %3
br label %6
4: ; No predecessors!
br i1 false, label %5, label %7
5: ; preds = %4
br label %6
6: ; preds = %5, %1
store i32 0, i32* %3
br label %8
7: ; preds = %4
store i32 1, i32* %3
br label %8
8: ; preds = %7, %6
%9 = load i32, i32* %3
%10 = load i32*, i32** %2
store i32 %9, i32* %10
ret void
}

LLVM IR (-O2):
define void @test(i32* nocapture writeonly %0) {
store i32 0, i32* %0
ret void
}
char *replace_password(char *str) { return ("***"); }


x86 assembly (clang, -O0):
<replace_password>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
lea    0xef1(%rip),%rax
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [4 x i8] c"***\00"
define i8* @replace_password(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
ret i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0)
}

LLVM IR (-O2):
@.str = [4 x i8] c"***\00"
define i8* @replace_password(i8* nocapture readnone %0) {
ret i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0)
}
int test_conditional(int x, int y, int z) { return x ? y : z; }


x86 assembly (clang, -O0):
<test_conditional>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
cmpl   $0x0,-0x4(%rbp)
je     1122 <test_conditional+0x22>
mov    -0x8(%rbp),%eax
mov    %eax,-0x10(%rbp)
jmp    1128 <test_conditional+0x28>
mov    -0xc(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_conditional>:
mov    %esi,%eax
test   %edi,%edi
cmove  %edx,%eax
ret

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

LLVM IR (-O2):
define i32 @test_conditional(i32 %0, i32 %1, i32 %2) {
%4 = icmp eq i32 %0, 0
%5 = select i1 %4, i32 %2, i32 %1
ret i32 %5
}
/* Variables and functions */
scalar_t__ score_dice(int *);
int have_farkle(int *dice) { return score_dice(dice) == 0; }


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

x86 assembly (clang, -O2):
<have_farkle>:
push   %rax
call   1030 <score_dice@plt>
xor    %ecx,%ecx
test   %rax,%rax
sete   %cl
mov    %ecx,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @have_farkle(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = call i64 @score_dice(i32* %3)
%5 = icmp eq i64 %4, 0
%6 = zext i1 %5 to i32
ret i32 %6
}

LLVM IR (-O2):
define i32 @have_farkle(i32* %0) {
%2 = tail call i64 @score_dice(i32* %0)
%3 = icmp eq i64 %2, 0
%4 = zext i1 %3 to i32
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ ispunct(int);
void t_ispunct_0x39() {
  Assert_real((ispunct(57) == 0),
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/"
              "dg/z88dk/test/suites/ctype/test_ispunct.c",
              290, ("ispunct should be 0 for 9"));
}


x86 assembly (clang, -O0):
<t_ispunct_0x39>:
push   %rbp
mov    %rsp,%rbp
mov    $0x39,%edi
call   1030 <ispunct@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
lea    0xebf(%rip),%rsi
mov    $0x122,%edx
lea    0xf5b(%rip),%rcx
call   1040 <Assert_real@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<t_ispunct_0x39>:
push   %rax
mov    $0x39,%edi
call   1030 <ispunct@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf66(%rip),%rcx
mov    $0x122,%edx
pop    %rax
jmp    1040 <Assert_real@plt>

LLVM IR (-O0):
@.str = [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_ispunct.c\00"
@.str.1 = [26 x i8] c"ispunct should be 0 for 9\00"
define void @t_ispunct_0x39() {
%1 = call i64 @ispunct(i32 57)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 290, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_ispunct.c\00"
@.str.1 = [26 x i8] c"ispunct should be 0 for 9\00"
define void @t_ispunct_0x39() {
%1 = tail call i64 @ispunct(i32 57)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = tail call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 290, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Variables and functions */
int EXIT_SUCCESS;
int /*<<< orphan*/ gen_flag_update_tables();
int main(void) {
  gen_flag_update_tables();
  return EXIT_SUCCESS;
}


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

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

LLVM IR (-O0):
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @gen_flag_update_tables()
%3 = load i32, i32* @EXIT_SUCCESS
ret i32 %3
}

LLVM IR (-O2):
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = tail call i32 (...) @gen_flag_update_tables()
%2 = load i32, i32* @EXIT_SUCCESS
ret i32 %2
}
void l2_loop_overflow2_Bad(int length) {
  int i;
  char a[length];
  for (i = length - 1; i >= 0; i--) {
    a[length - i] = 'O';
  }
}


x86 assembly (clang, -O0):
<l2_loop_overflow2_Bad>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x10(%rbp)
mov    %rax,%rdx
add    $0xf,%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x20(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x18(%rbp)
mov    -0x4(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jl     1163 <l2_loop_overflow2_Bad+0x63>
mov    -0x20(%rbp),%rax
mov    -0x4(%rbp),%ecx
sub    -0x8(%rbp),%ecx
movslq %ecx,%rcx
movb   $0x4f,(%rax,%rcx,1)
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
jmp    113a <l2_loop_overflow2_Bad+0x3a>
mov    -0x10(%rbp),%rax
mov    %rax,%rsp
mov    %rbp,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define void @l2_loop_overflow2_Bad(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i64
store i32 %0, i32* %2
%6 = load i32, i32* %2
%7 = zext i32 %6 to i64
%8 = call i8* @llvm.stacksave()
store i8* %8, i8** %4
%9 = alloca i8, i64 %7
store i64 %7, i64* %5
%10 = load i32, i32* %2
%11 = sub nsw i32 %10, 1
store i32 %11, i32* %3
br label %12
12: ; preds = %21, %1
%13 = load i32, i32* %3
%14 = icmp sge i32 %13, 0
br i1 %14, label %15, label %24
15: ; preds = %12
%16 = load i32, i32* %2
%17 = load i32, i32* %3
%18 = sub nsw i32 %16, %17
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i8, i8* %9, i64 %19
store i8 79, i8* %20
br label %21
21: ; preds = %15
%22 = load i32, i32* %3
%23 = add nsw i32 %22, -1
store i32 %23, i32* %3
br label %12
24: ; preds = %12
%25 = load i8*, i8** %4
ret void
}

LLVM IR (-O2):
define void @l2_loop_overflow2_Bad(i32 %0) {
ret void
}
int sumarray(int arr[10]) {
  int i, sum = 0;
  for (i = 0; i < 10; i++) {
    sum += arr[i];
  }
  return sum;
}


x86 assembly (clang, -O0):
<sumarray>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0xa,-0xc(%rbp)
jge    113f <sumarray+0x3f>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
add    -0x10(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1116 <sumarray+0x16>
mov    -0x10(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<sumarray>:
movdqu 0x8(%rdi),%xmm0
movdqu 0x18(%rdi),%xmm1
paddd  %xmm0,%xmm1
pshufd $0xee,%xmm1,%xmm0
paddd  %xmm1,%xmm0
pshufd $0x55,%xmm0,%xmm1
paddd  %xmm0,%xmm1
movd   %xmm1,%eax
add    0x4(%rdi),%eax
add    (%rdi),%eax
ret

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

LLVM IR (-O2):
define i32 @sumarray(i32* nocapture %0) {
%2 = load i32, i32* %0
%3 = getelementptr inbounds i32, i32* %0, i64 1
%4 = load i32, i32* %3
%5 = getelementptr inbounds i32, i32* %0, i64 2
%6 = bitcast i32* %5 to <8 x i32>*
%7 = load <8 x i32>, <8 x i32>* %6
%8 = call i32 @llvm.vector.reduce.add.v8i32(<8 x i32> %7)
%9 = add nsw i32 %8, %4
%10 = add nsw i32 %9, %2
ret i32 %10
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int main(void) {
  printf("test\n");
  return 0;
}


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

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

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

LLVM IR (-O2):
@str = [5 x i8] c"test\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str, i64 0, i64 0))
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ drawChar(int /*<<< orphan*/, int, int);
void drawString(char *s, int offX, int offY) {
  while (*s != 0) {
    drawChar(*s++, offX, offY);
  }
}


x86 assembly (clang, -O0):
<drawString>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1154 <drawString+0x44>
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x8(%rbp)
movsbl (%rax),%edi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
call   1030 <drawChar@plt>
jmp    1122 <drawString+0x12>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<drawString>:
push   %rbp
push   %r14
push   %rbx
mov    (%rdi),%al
test   %al,%al
je     1148 <drawString+0x38>
mov    %edx,%r14d
mov    %esi,%ebp
mov    %rdi,%rbx
add    $0x1,%rbx
cs nopw 0x0(%rax,%rax,1)
movsbl %al,%edi
mov    %ebp,%esi
mov    %r14d,%edx
call   1030 <drawChar@plt>
movzbl (%rbx),%eax
add    $0x1,%rbx
test   %al,%al
jne    1130 <drawString+0x20>
pop    %rbx
pop    %r14
pop    %rbp
ret

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

LLVM IR (-O2):
define void @drawString(i8* nocapture %0, i32 %1, i32 %2) {
%4 = load i8, i8* %0
%5 = icmp eq i8 %4, 0
br i1 %5, label %14, label %6
6: ; preds = %3, %6
%7 = phi i8 [ %12, %6 ], [ %4, %3 ]
%8 = phi i8* [ %10, %6 ], [ %0, %3 ]
%9 = sext i8 %7 to i32
%10 = getelementptr inbounds i8, i8* %8, i64 1
%11 = tail call i32 @drawChar(i32 %9, i32 %1, i32 %2)
%12 = load i8, i8* %10
%13 = icmp eq i8 %12, 0
br i1 %13, label %14, label %6
14: ; preds = %6, %3
ret void
}
int hash_cached_include(const char *filename) {
  unsigned int h;
  h = 1;
  const unsigned char *s = (const unsigned char *)filename;
  while (*s) {
    h = ((h)*263 + (*s));
    s++;
  }
  h &= (512 - 1);
  return (int)h;
}


x86 assembly (clang, -O0):
<hash_cached_include>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movl   $0x1,-0xc(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
cmpb   $0x0,(%rax)
je     1148 <hash_cached_include+0x48>
imul   $0x107,-0xc(%rbp),%eax
mov    -0x18(%rbp),%rcx
movzbl (%rcx),%ecx
add    %ecx,%eax
mov    %eax,-0xc(%rbp)
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
jmp    1117 <hash_cached_include+0x17>
mov    -0xc(%rbp),%eax
and    $0x1ff,%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<hash_cached_include>:
mov    (%rdi),%cl
test   %cl,%cl
je     112c <hash_cached_include+0x2c>
add    $0x1,%rdi
mov    $0x1,%eax
nop
imul   $0x107,%eax,%edx
movzbl %cl,%eax
add    %edx,%eax
movzbl (%rdi),%ecx
add    $0x1,%rdi
test   %cl,%cl
jne    1110 <hash_cached_include+0x10>
and    $0x1ff,%eax
ret
mov    $0x1,%eax
ret

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

LLVM IR (-O2):
define i32 @hash_cached_include(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %16, label %4
4: ; preds = %1, %4
%5 = phi i8 [ %12, %4 ], [ %2, %1 ]
%6 = phi i8* [ %11, %4 ], [ %0, %1 ]
%7 = phi i32 [ %10, %4 ], [ 1, %1 ]
%8 = mul i32 %7, 263
%9 = zext i8 %5 to i32
%10 = add i32 %8, %9
%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
%15 = and i32 %10, 511
br label %16
16: ; preds = %14, %1
%17 = phi i32 [ 1, %1 ], [ %15, %14 ]
ret i32 %17
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
size_t fread(size_t *, size_t, int, int /*<<< orphan*/ *);
size_t Mem_FreadSize_t(size_t *siz, FILE *fp) {
  size_t nbytes;
  nbytes = fread(siz, (size_t)1, sizeof(*siz), fp);
  return nbytes;
}


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

x86 assembly (clang, -O2):
<Mem_FreadSize_t>:
mov    %rsi,%rcx
mov    $0x1,%esi
mov    $0x8,%edx
jmp    1030 <fread@plt>

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

LLVM IR (-O2):
define i64 @Mem_FreadSize_t(i64* nocapture %0, i32* nocapture %1) {
%3 = tail call i64 @fread(i64* %0, i64 1, i32 8, i32* %1)
ret i64 %3
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *);
void test(void (*func4test)(char *), char *str) {
  func4test(str);
  printf("The reversed string is \"%s\"\n", str);
}


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

x86 assembly (clang, -O2):
<test>:
push   %rbx
mov    %rsi,%rbx
mov    %rdi,%rax
mov    %rsi,%rdi
call   *%rax
lea    0xedd(%rip),%rdi
mov    %rbx,%rsi
pop    %rbx
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [29 x i8] c"The reversed string is \22%s\22\0A\00"
define void @test(void (i8*)* %0, i8* %1) {
%3 = alloca void (i8*)*
%4 = alloca i8*
store void (i8*)* %0, void (i8*)** %3
store i8* %1, i8** %4
%5 = load void (i8*)*, void (i8*)** %3
%6 = load i8*, i8** %4
%7 = load i8*, i8** %4
%8 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i8* %7)
ret void
}

LLVM IR (-O2):
@.str = [29 x i8] c"The reversed string is \22%s\22\0A\00"
define void @test(void (i8*)* nocapture %0, i8* %1) {
tail call void %0(i8* %1)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i8* %1)
ret void
}
void VIM_HIF_SetMulti16(void) {
  ;
  *(volatile unsigned char *)(0x8000000) = (unsigned char)0xb4;
  ;
  *(volatile unsigned char *)(0x8000100) =
      (unsigned char)((0x1800 + 0x08C) >> 8);
  ;
  *(volatile unsigned char *)(0x8000000) = (unsigned char)0xb2;
  ;
  *(volatile unsigned char *)(0x8000100) = (unsigned char)((0x1800 + 0x08C));
  ;
  *(volatile unsigned char *)(0x8000000) = (unsigned char)0xb0;
  ;
  *(volatile unsigned char *)(0x8000100) = 1;
}


x86 assembly (clang, -O0):
<VIM_HIF_SetMulti16>:
push   %rbp
mov    %rsp,%rbp
mov    $0x8000000,%eax
movb   $0xb4,(%rax)
mov    $0x8000100,%eax
movb   $0x18,(%rax)
mov    $0x8000000,%eax
movb   $0xb2,(%rax)
mov    $0x8000100,%eax
movb   $0x8c,(%rax)
mov    $0x8000000,%eax
movb   $0xb0,(%rax)
mov    $0x8000100,%eax
movb   $0x1,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<VIM_HIF_SetMulti16>:
movb   $0xb4,0x8000000
b4
movb   $0x18,0x8000100
18
movb   $0xb2,0x8000000
b2
movb   $0x8c,0x8000100
8c
movb   $0xb0,0x8000000
b0
movb   $0x1,0x8000100
01
ret

LLVM IR (-O0):
define void @VIM_HIF_SetMulti16() {
store volatile i8 -76, i8* inttoptr (i64 134217728 to i8*)
store volatile i8 24, i8* inttoptr (i64 134217984 to i8*)
store volatile i8 -78, i8* inttoptr (i64 134217728 to i8*)
store volatile i8 -116, i8* inttoptr (i64 134217984 to i8*)
store volatile i8 -80, i8* inttoptr (i64 134217728 to i8*)
store volatile i8 1, i8* inttoptr (i64 134217984 to i8*)
ret void
}

LLVM IR (-O2):
define void @VIM_HIF_SetMulti16() {
store volatile i8 -76, i8* inttoptr (i64 134217728 to i8*)
store volatile i8 24, i8* inttoptr (i64 134217984 to i8*)
store volatile i8 -78, i8* inttoptr (i64 134217728 to i8*)
store volatile i8 -116, i8* inttoptr (i64 134217984 to i8*)
store volatile i8 -80, i8* inttoptr (i64 134217728 to i8*)
store volatile i8 1, i8* inttoptr (i64 134217984 to i8*)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
void show_help() {
  printf(
      "Usage:  xlsxio_csv2xlsx [-h] [-s separator] [-d rows] [-n] csvfile ...\n"
      "Parameters:\n"
      "  -h          \tdisplay command line help\n"
      "  -s separator\tspecify separator to use (default is comma)\n"
      "  -d rows     \trows used for column width detection (default is %i)\n"
      "  -t          \ttread top row as header row\n"
      "  csvfile     \tpath to CSV file (multiple may be specified)\n"
      "Description:\n"
      "Converts all specified CSV (Comma Separated Values) files to .xlsx "
      "files.\n"
      "Version: "
      "0"
      "."
      "2"
      "."
      "30"
      "\n"
      "\n",
      20);
}


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

x86 assembly (clang, -O2):
<show_help>:
lea    0xee9(%rip),%rdi
mov    $0x14,%esi
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [459 x i8] c"Usage: xlsxio_csv2xlsx [-h] [-s separator] [-d rows] [-n] csvfile ...\0AParameters:\0A -h \09display command line help\0A -s separator\09specify separator to use (default is comma)\0A -d rows \09rows used for column width detection (default is %i)\0A -t \09tread top row as header row\0A csvfile \09path to CSV file (multiple may be specified)\0ADescription:\0AConverts all specified CSV (Comma Separated Values) files to .xlsx files.\0AVersion: 0.2.30\0A\0A\00"
define void @show_help() {
%1 = call i32 @printf(i8* getelementptr inbounds ([459 x i8], [459 x i8]* @.str, i64 0, i64 0), i32 20)
ret void
}

LLVM IR (-O2):
@.str = [459 x i8] c"Usage: xlsxio_csv2xlsx [-h] [-s separator] [-d rows] [-n] csvfile ...\0AParameters:\0A -h \09display command line help\0A -s separator\09specify separator to use (default is comma)\0A -d rows \09rows used for column width detection (default is %i)\0A -t \09tread top row as header row\0A csvfile \09path to CSV file (multiple may be specified)\0ADescription:\0AConverts all specified CSV (Comma Separated Values) files to .xlsx files.\0AVersion: 0.2.30\0A\0A\00"
define void @show_help() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([459 x i8], [459 x i8]* @.str, i64 0, i64 0), i32 20)
ret void
}
int main() { return 0xf3; }


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
mov    $0xf3,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
ret i32 243
}

LLVM IR (-O2):
define i32 @main() {
ret i32 243
}
/* Variables and functions */
int /*<<< orphan*/ oam_size(unsigned int, int /*<<< orphan*/);
int /*<<< orphan*/ oam_spr(int /*<<< orphan*/, int, int /*<<< orphan*/,
                           unsigned int);
void oam_clear(void) {
  static unsigned int i;
  for (i = 0; i < 512; i += 4) {
    oam_spr(0, 240, 0, i);
    oam_size(i, 0);
  }
}


x86 assembly (clang, -O0):
<oam_clear>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,0x2f06(%rip)
cmpl   $0x200,0x2efc(%rip)
jae    1173 <oam_clear+0x53>
mov    0x2ef0(%rip),%ecx
xor    %edx,%edx
mov    $0xf0,%esi
mov    %edx,%edi
call   1040 <oam_spr@plt>
mov    0x2edc(%rip),%edi
xor    %esi,%esi
call   1030 <oam_size@plt>
mov    0x2ecf(%rip),%eax
add    $0x4,%eax
mov    %eax,0x2ec6(%rip)
jmp    112e <oam_clear+0xe>
pop    %rbp
ret

x86 assembly (clang, -O2):
<oam_clear>:
push   %rax
movl   $0x0,0x2f09(%rip)
xor    %ecx,%ecx
nopl   (%rax)
xor    %edi,%edi
mov    $0xf0,%esi
xor    %edx,%edx
call   1040 <oam_spr@plt>
mov    0x2ef0(%rip),%edi
xor    %esi,%esi
call   1030 <oam_size@plt>
mov    0x2ee3(%rip),%ecx
add    $0x4,%ecx
mov    %ecx,0x2eda(%rip)
cmp    $0x200,%ecx
jb     1130 <oam_clear+0x10>
pop    %rax
ret

LLVM IR (-O0):
@oam_clear.i = internal global i32 0
define void @oam_clear() {
store i32 0, i32* @oam_clear.i
br label %1
1: ; preds = %9, %0
%2 = load i32, i32* @oam_clear.i
%3 = icmp ult i32 %2, 512
br i1 %3, label %4, label %12
4: ; preds = %1
%5 = load i32, i32* @oam_clear.i
%6 = call i32 @oam_spr(i32 0, i32 240, i32 0, i32 %5)
%7 = load i32, i32* @oam_clear.i
%8 = call i32 @oam_size(i32 %7, i32 0)
br label %9
9: ; preds = %4
%10 = load i32, i32* @oam_clear.i
%11 = add i32 %10, 4
store i32 %11, i32* @oam_clear.i
br label %1
12: ; preds = %1
ret void
}

LLVM IR (-O2):
@oam_clear.i = internal unnamed_addr global i32 0
define void @oam_clear() {
store i32 0, i32* @oam_clear.i
br label %1
1: ; preds = %0, %1
%2 = phi i32 [ 0, %0 ], [ %7, %1 ]
%3 = tail call i32 @oam_spr(i32 0, i32 240, i32 0, i32 %2)
%4 = load i32, i32* @oam_clear.i
%5 = tail call i32 @oam_size(i32 %4, i32 0)
%6 = load i32, i32* @oam_clear.i
%7 = add i32 %6, 4
store i32 %7, i32* @oam_clear.i
%8 = icmp ult i32 %7, 512
br i1 %8, label %1, label %9
9: ; preds = %1
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ outbyte(int);
int putc(int c, FILE *stream) { outbyte(c); }


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

x86 assembly (clang, -O2):
<putc>:
jmp    1030 <outbyte@plt>

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

LLVM IR (-O2):
define i32 @putc(i32 %0, i32* nocapture readnone %1) {
%3 = tail call i32 @outbyte(i32 %0)
ret i32 undef
}
LTOBUF(p, l) register char *p;
register long l;
{
  register int i;
  p += 4;
  for (i = 4; i > 0; i--) {
    *--p = l;
    l >>= 8;
  }
}


x86 assembly (clang, -O0):
<LTOBUF>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x10(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x10(%rbp)
movl   $0x4,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
jle    115b <LTOBUF+0x5b>
mov    -0x18(%rbp),%rax
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %rax,%rdx
add    $0xffffffffffffffff,%rdx
mov    %rdx,-0x10(%rbp)
mov    %cl,-0x1(%rax)
mov    -0x18(%rbp),%rax
sar    $0x8,%rax
mov    %rax,-0x18(%rbp)
mov    -0x1c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x1c(%rbp)
jmp    111f <LTOBUF+0x1f>
mov    -0x4(%rbp),%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @LTOBUF(i8* nocapture writeonly %0, i64 %1) {
%3 = trunc i64 %1 to i8
%4 = getelementptr inbounds i8, i8* %0, i64 3
store i8 %3, i8* %4
%5 = lshr i64 %1, 8
%6 = trunc i64 %5 to i8
%7 = getelementptr inbounds i8, i8* %0, i64 2
store i8 %6, i8* %7
%8 = lshr i64 %1, 16
%9 = trunc i64 %8 to i8
%10 = getelementptr inbounds i8, i8* %0, i64 1
store i8 %9, i8* %10
%11 = lshr i64 %1, 24
%12 = trunc i64 %11 to i8
store i8 %12, i8* %0
ret i32 undef
}
int test_imm_F3uint8_reg(unsigned char val) {
  return ((val) & (0xF3 << 0)) ? -20 : -40;
}


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

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

LLVM IR (-O0):
define i32 @test_imm_F3uint8_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, 243
%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_F3uint8_reg(i8 zeroext %0) {
%2 = and i8 %0, -13
%3 = icmp eq i8 %2, 0
%4 = select i1 %3, i32 -40, i32 -20
ret i32 %4
}
void gpio_gps_inactive(void) {}


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

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

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

LLVM IR (-O2):
define void @gpio_gps_inactive() {
ret void
}
void delay(void) {
  long x;
  for (x = 0; x < 150000000; x++)
    ;
}


x86 assembly (clang, -O0):
<delay>:
push   %rbp
mov    %rsp,%rbp
movq   $0x0,-0x8(%rbp)
cmpq   $0x8f0d180,-0x8(%rbp)
08
jge    1130 <delay+0x30>
jmp    111f <delay+0x1f>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    110c <delay+0xc>
pop    %rbp
ret

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

LLVM IR (-O0):
define void @delay() {
%1 = alloca i64
store i64 0, i64* %1
br label %2
2: ; preds = %6, %0
%3 = load i64, i64* %1
%4 = icmp slt i64 %3, 150000000
br i1 %4, label %5, label %9
5: ; preds = %2
br label %6
6: ; preds = %5
%7 = load i64, i64* %1
%8 = add nsw i64 %7, 1
store i64 %8, i64* %1
br label %2
9: ; preds = %2
ret void
}

LLVM IR (-O2):
define void @delay() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ sprintf(char *, char *, char const *, char const *);
void ifcfg_add(char cmd[], const char *Vip, const char *Netmask) {
  sprintf(cmd,
          "/sbin/ifcfg eth0"
          " add %s/%s",
          Vip, Netmask);
}


x86 assembly (clang, -O0):
<ifcfg_add>:
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    -0x10(%rbp),%rdx
mov    -0x18(%rbp),%rcx
lea    0xec9(%rip),%rsi
call   1030 <sprintf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ifcfg_add>:
mov    %rdx,%rcx
mov    %rsi,%rdx
lea    0xee3(%rip),%rsi
jmp    1030 <sprintf@plt>

LLVM IR (-O0):
@.str = [27 x i8] c"/sbin/ifcfg eth0 add %s/%s\00"
define void @ifcfg_add(i8* %0, i8* %1, i8* %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
store i8* %0, i8** %4
store i8* %1, i8** %5
store i8* %2, i8** %6
%7 = load i8*, i8** %4
%8 = load i8*, i8** %5
%9 = load i8*, i8** %6
%10 = call i32 @sprintf(i8* %7, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i8* %8, i8* %9)
ret void
}

LLVM IR (-O2):
@.str = [27 x i8] c"/sbin/ifcfg eth0 add %s/%s\00"
define void @ifcfg_add(i8* nocapture writeonly %0, i8* %1, i8* %2) {
%4 = tail call i32 @sprintf(i8* dereferenceable(1) %0, i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i8* %1, i8* %2)
ret void
}
/* Forward declarations */
typedef struct TYPE_2__ TYPE_1__;

/* Type definitions */
struct TYPE_2__ {
  scalar_t__ ext_data;
};
typedef TYPE_1__ ScreenFormat;

/* Variables and functions */
void *get_ScreenFormat_ext_data(void *_p) {
  return (void *)((ScreenFormat *)_p)->ext_data;
}


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

x86 assembly (clang, -O2):
<get_ScreenFormat_ext_data>:
mov    (%rdi),%rax
ret

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

LLVM IR (-O2):
define i8* @get_ScreenFormat_ext_data(i8* nocapture %0) {
%2 = bitcast i8* %0 to i64*
%3 = load i64, i64* %2
%4 = inttoptr i64 %3 to i8*
ret i8* %4
}
long int ingreat_i(int *x, int *y) { return (*x) - (*y); }


x86 assembly (clang, -O0):
<ingreat_i>:
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
cltq
pop    %rbp
ret

x86 assembly (clang, -O2):
<ingreat_i>:
movslq (%rdi),%rax
movslq (%rsi),%rcx
sub    %rcx,%rax
ret

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

LLVM IR (-O2):
define i64 @ingreat_i(i32* nocapture %0, i32* nocapture %1) {
%3 = load i32, i32* %0
%4 = load i32, i32* %1
%5 = sub nsw i32 %3, %4
%6 = sext i32 %5 to i64
ret i64 %6
}
/* Variables and functions */
int /*<<< orphan*/ clang_analyzer_eval(int);
char *strsep(char **, char *);
void strsep_null_string() {
  char *s = 0;
  char *result = strsep(&s, "");
  clang_analyzer_eval(result == 0);
}


x86 assembly (clang, -O0):
<strsep_null_string>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movq   $0x0,-0x8(%rbp)
lea    -0x8(%rbp),%rdi
lea    0xec5(%rip),%rsi
call   1030 <strsep@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <clang_analyzer_eval@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<strsep_null_string>:
push   %rax
movq   $0x0,(%rsp)
lea    0xed0(%rip),%rsi
mov    %rsp,%rdi
call   1030 <strsep@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1040 <clang_analyzer_eval@plt>
pop    %rax
ret

LLVM IR (-O0):
@.str = [1 x i8] zeroinitializer
define void @strsep_null_string() {
%1 = alloca i8*
%2 = alloca i8*
store i8* null, i8** %1
%3 = call i8* @strsep(i8** %1, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
store i8* %3, i8** %2
%4 = load i8*, i8** %2
%5 = icmp eq i8* %4, null
%6 = zext i1 %5 to i32
%7 = call i32 @clang_analyzer_eval(i32 %6)
ret void
}

LLVM IR (-O2):
@.str = [1 x i8] zeroinitializer
define void @strsep_null_string() {
%1 = alloca i8*
%2 = bitcast i8** %1 to i8*
store i8* null, i8** %1
%3 = call i8* @strsep(i8** %1, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%4 = icmp eq i8* %3, null
%5 = zext i1 %4 to i32
%6 = call i32 @clang_analyzer_eval(i32 %5)
ret void
}