xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void main() { printf("Hello World \n"); }


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

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

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

LLVM IR (-O2):
@str = [13 x i8] c"Hello World \00"
define void @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
void put_str(char *s) {
  if (s) {
    printf("From C: \"%s\"\n", s);
  } else {
    printf("From C: null\n");
  }
}


x86 assembly (clang, -O0):
<put_str>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     113e <put_str+0x2e>
mov    -0x8(%rbp),%rsi
lea    0xece(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    114c <put_str+0x3c>
lea    0xec9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<put_str>:
test   %rdi,%rdi
je     1136 <put_str+0x16>
mov    %rdi,%rsi
lea    0xed1(%rip),%rdi
xor    %eax,%eax
jmp    1040 <printf@plt>
lea    0xed1(%rip),%rdi
jmp    1030 <puts@plt>

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

LLVM IR (-O2):
@.str = [14 x i8] c"From C: \22%s\22\0A\00"
@str = [13 x i8] c"From C: null\00"
define void @put_str(i8* %0) {
%2 = icmp eq i8* %0, null
br i1 %2, label %5, label %3
3: ; preds = %1
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* %0)
br label %7
5: ; preds = %1
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str, i64 0, i64 0))
br label %7
7: ; preds = %5, %3
ret void
}
unsigned xrop3_219_0_0(unsigned char s, unsigned char t) {
  unsigned D = 0x00ff;
  unsigned S = ((unsigned)s << 8) | s;
  unsigned T = ((unsigned)t << 8) | t;
  unsigned stk1;
  unsigned stk2;
  stk1 = S ^ T;
  stk2 = D ^ S;
  stk1 = stk1 & stk2;
  stk1 = ~stk1;
  return stk1;
}


x86 assembly (clang, -O0):
<xrop3_219_0_0>:
push   %rbp
mov    %rsp,%rbp
mov    %sil,%al
mov    %dil,%cl
mov    %cl,-0x1(%rbp)
mov    %al,-0x2(%rbp)
movl   $0xff,-0x8(%rbp)
movzbl -0x1(%rbp),%eax
shl    $0x8,%eax
movzbl -0x1(%rbp),%ecx
or     %ecx,%eax
mov    %eax,-0xc(%rbp)
movzbl -0x2(%rbp),%eax
shl    $0x8,%eax
movzbl -0x2(%rbp),%ecx
or     %ecx,%eax
mov    %eax,-0x10(%rbp)
mov    -0xc(%rbp),%eax
xor    -0x10(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x8(%rbp),%eax
xor    -0xc(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x14(%rbp),%eax
and    -0x18(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
xor    $0xffffffff,%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<xrop3_219_0_0>:
mov    %edi,%eax
shl    $0x8,%eax
or     %edi,%eax
mov    %esi,%ecx
shl    $0x8,%ecx
or     %esi,%ecx
xor    %eax,%ecx
xor    $0xff,%eax
and    %ecx,%eax
not    %eax
ret

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

LLVM IR (-O2):
define i32 @xrop3_219_0_0(i8 zeroext %0, i8 zeroext %1) {
%3 = zext i8 %0 to i32
%4 = mul nuw nsw i32 %3, 257
%5 = zext i8 %1 to i32
%6 = mul nuw nsw i32 %5, 257
%7 = xor i32 %6, %4
%8 = xor i32 %4, 255
%9 = and i32 %7, %8
%10 = xor i32 %9, -1
ret i32 %10
}
int test_02(const int *x, int a, int b, int c) {
  if (x[a] == 92)
    return b;
  return c;
}


x86 assembly (clang, -O0):
<test_02>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %edx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
cmpl   $0x5c,(%rax,%rcx,4)
jne    112e <test_02+0x2e>
mov    -0x18(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1134 <test_02+0x34>
mov    -0x1c(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_02>:
mov    %edx,%eax
movslq %esi,%rdx
cmpl   $0x5c,(%rdi,%rdx,4)
cmovne %ecx,%eax
ret

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

LLVM IR (-O2):
define i32 @test_02(i32* nocapture %0, i32 %1, i32 %2, i32 %3) {
%5 = sext i32 %1 to i64
%6 = getelementptr inbounds i32, i32* %0, i64 %5
%7 = load i32, i32* %6
%8 = icmp eq i32 %7, 92
%9 = select i1 %8, i32 %2, i32 %3
ret i32 %9
}
/* Type definitions */
struct sk_buff {
  int dummy;
};
struct net_device {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ WARN_ON(int);
int netif_queue_stopped(struct net_device const *);
int netif_subqueue_stopped(const struct net_device *dev, struct sk_buff *skb) {
  WARN_ON(1);
  return netif_queue_stopped(dev);
}


x86 assembly (clang, -O0):
<netif_subqueue_stopped>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x1,%edi
call   1030 <WARN_ON@plt>
mov    -0x8(%rbp),%rdi
call   1040 <netif_queue_stopped@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<netif_subqueue_stopped>:
push   %rbx
mov    %rdi,%rbx
mov    $0x1,%edi
call   1030 <WARN_ON@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1040 <netif_queue_stopped@plt>

LLVM IR (-O0):
%struct.net_device = type { i32 }
%struct.sk_buff = type { i32 }
define i32 @netif_subqueue_stopped(%struct.net_device* %0, %struct.sk_buff* %1) {
%3 = alloca %struct.net_device*
%4 = alloca %struct.sk_buff*
store %struct.net_device* %0, %struct.net_device** %3
store %struct.sk_buff* %1, %struct.sk_buff** %4
%5 = call i32 @WARN_ON(i32 1)
%6 = load %struct.net_device*, %struct.net_device** %3
%7 = call i32 @netif_queue_stopped(%struct.net_device* %6)
ret i32 %7
}

LLVM IR (-O2):
%struct.net_device = type { i32 }
%struct.sk_buff = type { i32 }
define i32 @netif_subqueue_stopped(%struct.net_device* %0, %struct.sk_buff* nocapture readnone %1) {
%3 = tail call i32 @WARN_ON(i32 1)
%4 = tail call i32 @netif_queue_stopped(%struct.net_device* %0)
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ brute_halt();
void sigint_handler(int sig) { brute_halt(); }


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

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

LLVM IR (-O0):
define void @sigint_handler(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = call i32 (...) @brute_halt()
ret void
}

LLVM IR (-O2):
define void @sigint_handler(i32 %0) {
%2 = tail call i32 (...) @brute_halt()
ret void
}
/* Type definitions */
struct feature_pair {
  int dummy;
};
struct CovariateAnalysis {
  int dummy;
};
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
void _emitJSONUniPreprocR(const struct feature_pair *pair,
                          const struct CovariateAnalysis *covan, FILE *fp) {}


x86 assembly (clang, -O0):
<_emitJSONUniPreprocR>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
pop    %rbp
ret

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

LLVM IR (-O0):
%struct.feature_pair = type { i32 }
%struct.CovariateAnalysis = type { i32 }
define void @_emitJSONUniPreprocR(%struct.feature_pair* %0, %struct.CovariateAnalysis* %1, i32* %2) {
%4 = alloca %struct.feature_pair*
%5 = alloca %struct.CovariateAnalysis*
%6 = alloca i32*
store %struct.feature_pair* %0, %struct.feature_pair** %4
store %struct.CovariateAnalysis* %1, %struct.CovariateAnalysis** %5
store i32* %2, i32** %6
ret void
}

LLVM IR (-O2):
%struct.feature_pair = type { i32 }
%struct.CovariateAnalysis = type { i32 }
define void @_emitJSONUniPreprocR(%struct.feature_pair* nocapture %0, %struct.CovariateAnalysis* nocapture %1, i32* nocapture %2) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ xsi_register_didat(char *, char *);
extern void work_a_0408172235_2320432267_init() {
  xsi_register_didat(
      "work_a_0408172235_2320432267",
      "isim/Combined_tb_isim_beh.exe.sim/work/a_0408172235_2320432267.didat");
}


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

x86 assembly (clang, -O2):
<work_a_0408172235_2320432267_init>:
lea    0xee9(%rip),%rdi
lea    0xeff(%rip),%rsi
jmp    1030 <xsi_register_didat@plt>

LLVM IR (-O0):
@.str = [29 x i8] c"work_a_0408172235_2320432267\00"
@.str.1 = [69 x i8] c"isim/Combined_tb_isim_beh.exe.sim/work/a_0408172235_2320432267.didat\00"
define void @work_a_0408172235_2320432267_init() {
%1 = call i32 @xsi_register_didat(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [29 x i8] c"work_a_0408172235_2320432267\00"
@.str.1 = [69 x i8] c"isim/Combined_tb_isim_beh.exe.sim/work/a_0408172235_2320432267.didat\00"
define void @work_a_0408172235_2320432267_init() {
%1 = tail call i32 @xsi_register_didat(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ diskInit();
void cmdDiskFread(char *path) {
  if (!diskInit()) {
    return;
  }
}


x86 assembly (clang, -O0):
<cmdDiskFread>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    $0x0,%al
call   1030 <diskInit@plt>
cmp    $0x0,%eax
jne    1131 <cmdDiskFread+0x21>
jmp    1131 <cmdDiskFread+0x21>
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define void @cmdDiskFread(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 (...) @diskInit()
%4 = icmp ne i32 %3, 0
br i1 %4, label %6, label %5
5: ; preds = %1
br label %6
6: ; preds = %5, %1
ret void
}

LLVM IR (-O2):
define void @cmdDiskFread(i8* nocapture readnone %0) {
%2 = tail call i32 (...) @diskInit()
ret void
}
DECLARE_INTERFACE_(ICamSource, IUnknown) {}


x86 assembly (clang, -O0):
<DECLARE_INTERFACE_>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @DECLARE_INTERFACE_(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* %3
ret i32 %6
}

LLVM IR (-O2):
define i32 @DECLARE_INTERFACE_(i32 %0, i32 %1) {
ret i32 undef
}
int test_imm_8Cuint64_midword_reg(unsigned long long val) {
  return ((val >> 16) & (0x8C << 0)) ? -20 : -40;
}


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

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

LLVM IR (-O0):
define i32 @test_imm_8Cuint64_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, 140
%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_8Cuint64_midword_reg(i64 %0) {
%2 = and i64 %0, 9175040
%3 = icmp eq i64 %2, 0
%4 = select i1 %3, i32 -40, i32 -20
ret i32 %4
}
__attribute__((always_)) void smp_send_stop(void) {}


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

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

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

LLVM IR (-O2):
define void @smp_send_stop() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ SceltaMatrice();
int main() {
  SceltaMatrice();
  return 0;
}


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

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

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @SceltaMatrice()
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ enable_interrupt(int);
int /*<<< orphan*/ update_cursor();
void kb_enable(void) {
  enable_interrupt(1);
  update_cursor();
}


x86 assembly (clang, -O0):
<kb_enable>:
push   %rbp
mov    %rsp,%rbp
mov    $0x1,%edi
call   1030 <enable_interrupt@plt>
mov    $0x0,%al
call   1040 <update_cursor@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<kb_enable>:
push   %rax
mov    $0x1,%edi
call   1030 <enable_interrupt@plt>
xor    %eax,%eax
pop    %rcx
jmp    1040 <update_cursor@plt>

LLVM IR (-O0):
define void @kb_enable() {
%1 = call i32 @enable_interrupt(i32 1)
%2 = call i32 (...) @update_cursor()
ret void
}

LLVM IR (-O2):
define void @kb_enable() {
%1 = tail call i32 @enable_interrupt(i32 1)
%2 = tail call i32 (...) @update_cursor()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ isgraph(int);
void t_isgraph_0x18() {
  Assert_real((isgraph(24) == 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_isgraph.c",
              125, ("isgraph should be 0 for 0x18"));
}


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

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

LLVM IR (-O0):
@.str = [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isgraph.c\00"
@.str.1 = [29 x i8] c"isgraph should be 0 for 0x18\00"
define void @t_isgraph_0x18() {
%1 = call i64 @isgraph(i32 24)
%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 125, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isgraph.c\00"
@.str.1 = [29 x i8] c"isgraph should be 0 for 0x18\00"
define void @t_isgraph_0x18() {
%1 = tail call i64 @isgraph(i32 24)
%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 125, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ mpush(int);
void mint() { mpush(0x8000); }


x86 assembly (clang, -O0):
<mint>:
push   %rbp
mov    %rsp,%rbp
mov    $0x8000,%edi
call   1030 <mpush@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<mint>:
mov    $0x8000,%edi
jmp    1030 <mpush@plt>

LLVM IR (-O0):
define void @mint() {
%1 = call i32 @mpush(i32 32768)
ret void
}

LLVM IR (-O2):
define void @mint() {
%1 = tail call i32 @mpush(i32 32768)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;
typedef int /*<<< orphan*/ uint16_t;
struct ts_eit {
  int dummy;
};

/* Variables and functions */
struct ts_eit *ts_eit_alloc_init(int /*<<< orphan*/, int /*<<< orphan*/,
                                 int /*<<< orphan*/, int, int /*<<< orphan*/,
                                 int /*<<< orphan*/);
struct ts_eit *ts_eit_alloc_init_pf(uint16_t service_id,
                                    uint16_t transport_stream_id,
                                    uint16_t org_network_id, uint8_t sec_number,
                                    uint8_t last_sec_number) {
  return ts_eit_alloc_init(service_id, transport_stream_id, org_network_id,
                           0x4e, sec_number, last_sec_number);
}


x86 assembly (clang, -O0):
<ts_eit_alloc_init_pf>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    %r8d,-0x14(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%r8d
mov    -0x14(%rbp),%r9d
mov    $0x4e,%ecx
call   1030 <ts_eit_alloc_init@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ts_eit_alloc_init_pf>:
mov    %r8d,%r9d
mov    %ecx,%r8d
mov    $0x4e,%ecx
jmp    1030 <ts_eit_alloc_init@plt>

LLVM IR (-O0):
%struct.ts_eit = type { i32 }
define %struct.ts_eit* @ts_eit_alloc_init_pf(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4) {
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
store i32 %0, i32* %6
store i32 %1, i32* %7
store i32 %2, i32* %8
store i32 %3, i32* %9
store i32 %4, i32* %10
%11 = load i32, i32* %6
%12 = load i32, i32* %7
%13 = load i32, i32* %8
%14 = load i32, i32* %9
%15 = load i32, i32* %10
%16 = call %struct.ts_eit* @ts_eit_alloc_init(i32 %11, i32 %12, i32 %13, i32 78, i32 %14, i32 %15)
ret %struct.ts_eit* %16
}

LLVM IR (-O2):
%struct.ts_eit = type { i32 }
define %struct.ts_eit* @ts_eit_alloc_init_pf(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4) {
%6 = tail call %struct.ts_eit* @ts_eit_alloc_init(i32 %0, i32 %1, i32 %2, i32 78, i32 %3, i32 %4)
ret %struct.ts_eit* %6
}
void __attribute__((unused)) bootblock_mainboard_init(void) {}


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

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

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

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


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

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

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

LLVM IR (-O2):
define void @foo335() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ set_cooked();
void handle_alarm(int x) {
  set_cooked();
  exit(2);
}


x86 assembly (clang, -O0):
<handle_alarm>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    $0x0,%al
call   1030 <set_cooked@plt>
mov    $0x2,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<handle_alarm>:
push   %rax
xor    %eax,%eax
call   1030 <set_cooked@plt>
mov    $0x2,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
define void @handle_alarm(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = call i32 (...) @set_cooked()
%4 = call i32 @exit(i32 2)
unreachable
}

LLVM IR (-O2):
define void @handle_alarm(i32 %0) {
%2 = tail call i32 (...) @set_cooked()
%3 = tail call i32 @exit(i32 2)
unreachable
}
void internal_rgb_skipdouble_set(
    const struct video_pipeline_target_struct *target) {}


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

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

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

LLVM IR (-O2):
%struct.video_pipeline_target_struct = type opaque
define void @internal_rgb_skipdouble_set(%struct.video_pipeline_target_struct* nocapture %0) {
ret void
}
void papi_begin_() {}


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

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

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

LLVM IR (-O2):
define void @papi_begin_() {
ret void
}
float CG_OpFuncCompareGreater(const float a, const float b) { return (a > b); }


x86 assembly (clang, -O0):
<CG_OpFuncCompareGreater>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  -0x4(%rbp),%xmm0
ucomiss -0x8(%rbp),%xmm0
seta   %al
and    $0x1,%al
movzbl %al,%eax
cvtsi2ss %eax,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<CG_OpFuncCompareGreater>:
cmpltss %xmm0,%xmm1
movss  0xef3(%rip),%xmm0
andps  %xmm1,%xmm0
ret

LLVM IR (-O0):
define float @CG_OpFuncCompareGreater(float %0, float %1) {
%3 = alloca float
%4 = alloca float
store float %0, float* %3
store float %1, float* %4
%5 = load float, float* %3
%6 = load float, float* %4
%7 = fcmp ogt float %5, %6
%8 = zext i1 %7 to i32
%9 = sitofp i32 %8 to float
ret float %9
}

LLVM IR (-O2):
define float @CG_OpFuncCompareGreater(float %0, float %1) {
%3 = fcmp ogt float %0, %1
%4 = uitofp i1 %3 to float
ret float %4
}
/* Variables and functions */
int /*<<< orphan*/ message();
int /*<<< orphan*/ printf(char *);
int main(int argc, char **argv) {
  message();
  printf("Good bye!\n");
  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 <message@plt>
lea    0xebc(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [11 x i8] c"Good bye!\0A\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 = call i32 (...) @message()
%7 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@str = [10 x i8] c"Good bye!\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @message()
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str, i64 0, i64 0))
ret i32 0
}
void rop3_217_1_0(unsigned char *D, unsigned char S, unsigned char T) {
  unsigned char stk1;
  unsigned char stk2;
  unsigned char stk3;
  stk3 = T & S;
  stk2 = *D | stk3;
  stk1 = S ^ stk2;
  stk1 = ~stk1;
  *D = (stk1 & (~S)) | (*D & S);
}


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

x86 assembly (clang, -O2):
<rop3_217_1_0>:
xor    (%rdi),%sil
not    %sil
mov    %sil,(%rdi)
ret

LLVM IR (-O0):
define void @rop3_217_1_0(i8* %0, i8 zeroext %1, i8 zeroext %2) {
%4 = alloca i8*
%5 = alloca i8
%6 = alloca i8
%7 = alloca i8
%8 = alloca i8
%9 = alloca i8
store i8* %0, i8** %4
store i8 %1, i8* %5
store i8 %2, i8* %6
%10 = load i8, i8* %6
%11 = zext i8 %10 to i32
%12 = load i8, i8* %5
%13 = zext i8 %12 to i32
%14 = and i32 %11, %13
%15 = trunc i32 %14 to i8
store i8 %15, i8* %9
%16 = load i8*, i8** %4
%17 = load i8, i8* %16
%18 = zext i8 %17 to i32
%19 = load i8, i8* %9
%20 = zext i8 %19 to i32
%21 = or i32 %18, %20
%22 = trunc i32 %21 to i8
store i8 %22, i8* %8
%23 = load i8, i8* %5
%24 = zext i8 %23 to i32
%25 = load i8, i8* %8
%26 = zext i8 %25 to i32
%27 = xor i32 %24, %26
%28 = trunc i32 %27 to i8
store i8 %28, i8* %7
%29 = load i8, i8* %7
%30 = zext i8 %29 to i32
%31 = xor i32 %30, -1
%32 = trunc i32 %31 to i8
store i8 %32, i8* %7
%33 = load i8, i8* %7
%34 = zext i8 %33 to i32
%35 = load i8, i8* %5
%36 = zext i8 %35 to i32
%37 = xor i32 %36, -1
%38 = and i32 %34, %37
%39 = load i8*, i8** %4
%40 = load i8, i8* %39
%41 = zext i8 %40 to i32
%42 = load i8, i8* %5
%43 = zext i8 %42 to i32
%44 = and i32 %41, %43
%45 = or i32 %38, %44
%46 = trunc i32 %45 to i8
%47 = load i8*, i8** %4
store i8 %46, i8* %47
ret void
}

LLVM IR (-O2):
define void @rop3_217_1_0(i8* nocapture %0, i8 zeroext %1, i8 zeroext %2) {
%4 = load i8, i8* %0
%5 = xor i8 %4, %1
%6 = xor i8 %5, -1
store i8 %6, i8* %0
ret void
}
int execute_ulimit() { return 0; }


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

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

LLVM IR (-O0):
define i32 @execute_ulimit() {
ret i32 0
}

LLVM IR (-O2):
define i32 @execute_ulimit() {
ret i32 0
}
/* Variables and functions */
long strtol(char const *, int /*<<< orphan*/, int);
long cstring_to_long(const char *s, int base) {
  return (s != 0) ? strtol(s, 0, base) : 0;
}


x86 assembly (clang, -O0):
<cstring_to_long>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     1141 <cstring_to_long+0x31>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%edx
xor    %esi,%esi
call   1030 <strtol@plt>
mov    %rax,-0x18(%rbp)
jmp    114c <cstring_to_long+0x3c>
xor    %eax,%eax
mov    %rax,-0x18(%rbp)
jmp    114c <cstring_to_long+0x3c>
mov    -0x18(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cstring_to_long>:
test   %rdi,%rdi
je     111e <cstring_to_long+0xe>
mov    %esi,%edx
xor    %esi,%esi
jmp    1030 <strtol@plt>
xor    %eax,%eax
ret

LLVM IR (-O0):
define i64 @cstring_to_long(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 = icmp ne i8* %5, null
br i1 %6, label %7, label %11
7: ; preds = %2
%8 = load i8*, i8** %3
%9 = load i32, i32* %4
%10 = call i64 @strtol(i8* %8, i32 0, i32 %9)
br label %12
11: ; preds = %2
br label %12
12: ; preds = %11, %7
%13 = phi i64 [ %10, %7 ], [ 0, %11 ]
ret i64 %13
}

LLVM IR (-O2):
define i64 @cstring_to_long(i8* %0, i32 %1) {
%3 = icmp eq i8* %0, null
br i1 %3, label %6, label %4
4: ; preds = %2
%5 = tail call i64 @strtol(i8* %0, i32 0, i32 %1)
br label %6
6: ; preds = %2, %4
%7 = phi i64 [ %5, %4 ], [ 0, %2 ]
ret i64 %7
}
/* Variables and functions */
int /*<<< orphan*/ ide_board_reset(int);
void ide_reset(void *p) {
  ;
  ide_board_reset(0);
  ide_board_reset(1);
}


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

x86 assembly (clang, -O2):
<ide_reset>:
push   %rax
xor    %edi,%edi
call   1030 <ide_board_reset@plt>
mov    $0x1,%edi
pop    %rax
jmp    1030 <ide_board_reset@plt>

LLVM IR (-O0):
define void @ide_reset(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 @ide_board_reset(i32 0)
%4 = call i32 @ide_board_reset(i32 1)
ret void
}

LLVM IR (-O2):
define void @ide_reset(i8* nocapture readnone %0) {
%2 = tail call i32 @ide_board_reset(i32 0)
%3 = tail call i32 @ide_board_reset(i32 1)
ret void
}
/* Type definitions */
struct timespec {
  int dummy;
};
typedef int /*<<< orphan*/ pthread_rwlock_t;

/* Variables and functions */
int /*<<< orphan*/ assert(int /*<<< orphan*/);
int pthread_rwlock_timedrdlock(pthread_rwlock_t *a, const struct timespec *b) {
  assert(0);
}


x86 assembly (clang, -O0):
<pthread_rwlock_timedrdlock>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
xor    %edi,%edi
call   1030 <assert@plt>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
%struct.timespec = type { i32 }
define i32 @pthread_rwlock_timedrdlock(i32* %0, %struct.timespec* %1) {
%3 = alloca i32
%4 = alloca i32*
%5 = alloca %struct.timespec*
store i32* %0, i32** %4
store %struct.timespec* %1, %struct.timespec** %5
%6 = call i32 @assert(i32 0)
%7 = load i32, i32* %3
ret i32 %7
}

LLVM IR (-O2):
%struct.timespec = type { i32 }
define i32 @pthread_rwlock_timedrdlock(i32* nocapture readnone %0, %struct.timespec* nocapture readnone %1) {
%3 = tail call i32 @assert(i32 0)
ret i32 undef
}
void foo093() {}


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

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

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

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


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

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

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

LLVM IR (-O2):
define void @XtGetActionList() {
ret void
}
int YM2151ReadStatus(void *_chip) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @YM2151ReadStatus(i8* nocapture readnone %0) {
ret i32 0
}
double fahrenheitToCentigrade(double fahrenheit) {
  return (fahrenheit - 32) / 1.8;
}


x86 assembly (clang, -O0):
<fahrenheitToCentigrade>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xef2(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  0xede(%rip),%xmm1
divsd  %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<fahrenheitToCentigrade>:
addsd  0xef8(%rip),%xmm0
divsd  0xef8(%rip),%xmm0
ret

LLVM IR (-O0):
define double @fahrenheitToCentigrade(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = load double, double* %2
%4 = fsub double %3, 3.200000e+01
%5 = fdiv double %4, 1.800000e+00
ret double %5
}

LLVM IR (-O2):
define double @fahrenheitToCentigrade(double %0) {
%2 = fadd double %0, -3.200000e+01
%3 = fdiv double %2, 1.800000e+00
ret double %3
}
unsigned int string_hash_make(const char *str) {
  unsigned int hash = 0;
  while (*str)
    hash = (hash * 33) ^ (unsigned int)*str++;
  return hash;
}


x86 assembly (clang, -O0):
<string_hash_make>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0x8(%rbp),%rax
cmpb   $0x0,(%rax)
je     113c <string_hash_make+0x3c>
imul   $0x21,-0xc(%rbp),%eax
mov    -0x8(%rbp),%rcx
mov    %rcx,%rdx
add    $0x1,%rdx
mov    %rdx,-0x8(%rbp)
movsbl (%rcx),%ecx
xor    %ecx,%eax
mov    %eax,-0xc(%rbp)
jmp    110f <string_hash_make+0xf>
mov    -0xc(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<string_hash_make>:
mov    (%rdi),%cl
test   %cl,%cl
je     1128 <string_hash_make+0x28>
add    $0x1,%rdi
xor    %eax,%eax
nopl   0x0(%rax)
mov    %eax,%edx
shl    $0x5,%edx
add    %eax,%edx
movsbl %cl,%eax
xor    %edx,%eax
movzbl (%rdi),%ecx
add    $0x1,%rdi
test   %cl,%cl
jne    1110 <string_hash_make+0x10>
ret
xor    %eax,%eax
ret

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

LLVM IR (-O2):
define i32 @string_hash_make(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %14, label %4
4: ; preds = %1, %4
%5 = phi i8 [ %12, %4 ], [ %2, %1 ]
%6 = phi i32 [ %11, %4 ], [ 0, %1 ]
%7 = phi i8* [ %9, %4 ], [ %0, %1 ]
%8 = mul i32 %6, 33
%9 = getelementptr inbounds i8, i8* %7, i64 1
%10 = sext i8 %5 to i32
%11 = xor i32 %8, %10
%12 = load i8, i8* %9
%13 = icmp eq i8 %12, 0
br i1 %13, label %14, label %4
14: ; preds = %4, %1
%15 = phi i32 [ 0, %1 ], [ %11, %4 ]
ret i32 %15
}
int vdDoubleBound(const double max, const double min, const double val) {
  int ret = 0;
  if ((max <= val) && (min >= val)) {
    ret = 1;
  } else {
  }
  return ret;
}


x86 assembly (clang, -O0):
<vdDoubleBound>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
movsd  -0x8(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jb     114a <vdDoubleBound+0x4a>
movsd  -0x10(%rbp),%xmm0
ucomisd -0x18(%rbp),%xmm0
jb     114a <vdDoubleBound+0x4a>
movl   $0x1,-0x1c(%rbp)
jmp    114f <vdDoubleBound+0x4f>
jmp    114f <vdDoubleBound+0x4f>
mov    -0x1c(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<vdDoubleBound>:
ucomisd %xmm0,%xmm2
setae  %al
ucomisd %xmm2,%xmm1
setae  %cl
and    %al,%cl
movzbl %cl,%eax
ret

LLVM IR (-O0):
define i32 @vdDoubleBound(double %0, double %1, double %2) {
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca i32
store double %0, double* %4
store double %1, double* %5
store double %2, double* %6
store i32 0, i32* %7
%8 = load double, double* %4
%9 = load double, double* %6
%10 = fcmp ole double %8, %9
br i1 %10, label %11, label %16
11: ; preds = %3
%12 = load double, double* %5
%13 = load double, double* %6
%14 = fcmp oge double %12, %13
br i1 %14, label %15, label %16
15: ; preds = %11
store i32 1, i32* %7
br label %17
16: ; preds = %11, %3
br label %17
17: ; preds = %16, %15
%18 = load i32, i32* %7
ret i32 %18
}

LLVM IR (-O2):
define i32 @vdDoubleBound(double %0, double %1, double %2) {
%4 = fcmp ole double %0, %2
%5 = fcmp oge double %1, %2
%6 = and i1 %4, %5
%7 = zext i1 %6 to i32
ret i32 %7
}
void fa161(int n) {
  {
    int b[n];
    {
      int c[n];
      0;
    }
    {
      int d[n];
      0;
    };
    int e[n];
    0;
  };
  {
    int f[n];
  a : {
    int g[n];
    goto a;
    0;
  };
    {
      int h[n];
      0;
    };
    ;
    int i[n];
    0;
  };
  ;
  int j[n];
  0;
}


x86 assembly (clang, -O0):
<fa161>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x10(%rbp)
mov    %rax,-0x18(%rbp)
mov    -0x4(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x20(%rbp)
mov    %rax,-0x28(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x30(%rbp)
mov    %rax,-0x38(%rbp)
mov    -0x30(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rax,-0x40(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x48(%rbp)
mov    %rax,-0x50(%rbp)
mov    -0x4(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x58(%rbp)
mov    %rax,-0x60(%rbp)
mov    -0x58(%rbp),%rax
mov    %rax,%rsp
jmp    1162 <fa161+0x62>

x86 assembly (clang, -O2):
<fa161>:
jmp    1100 <fa161>

LLVM IR (-O0):
define void @fa161(i32 %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca i64
%5 = alloca i8*
%6 = alloca i64
%7 = alloca i8*
%8 = alloca i64
%9 = alloca i64
%10 = alloca i8*
%11 = alloca i64
%12 = alloca i8*
%13 = alloca i64
%14 = alloca i8*
%15 = alloca i64
%16 = alloca i64
%17 = alloca i8*
%18 = alloca i64
store i32 %0, i32* %2
%19 = load i32, i32* %2
%20 = zext i32 %19 to i64
%21 = call i8* @llvm.stacksave()
store i8* %21, i8** %3
%22 = alloca i32, i64 %20
store i64 %20, i64* %4
%23 = load i32, i32* %2
%24 = zext i32 %23 to i64
%25 = call i8* @llvm.stacksave()
store i8* %25, i8** %5
%26 = alloca i32, i64 %24
store i64 %24, i64* %6
%27 = load i8*, i8** %5
%28 = load i32, i32* %2
%29 = zext i32 %28 to i64
%30 = call i8* @llvm.stacksave()
store i8* %30, i8** %7
%31 = alloca i32, i64 %29
store i64 %29, i64* %8
%32 = load i8*, i8** %7
%33 = load i32, i32* %2
%34 = zext i32 %33 to i64
%35 = alloca i32, i64 %34
store i64 %34, i64* %9
%36 = load i8*, i8** %3
%37 = load i32, i32* %2
%38 = zext i32 %37 to i64
%39 = call i8* @llvm.stacksave()
store i8* %39, i8** %10
%40 = alloca i32, i64 %38
store i64 %38, i64* %11
br label %41
41: ; preds = %41, %1
%42 = load i32, i32* %2
%43 = zext i32 %42 to i64
%44 = call i8* @llvm.stacksave()
store i8* %44, i8** %12
%45 = alloca i32, i64 %43
store i64 %43, i64* %13
%46 = load i8*, i8** %12
br label %41
47: ; No predecessors!
%48 = load i32, i32* %2
%49 = zext i32 %48 to i64
%50 = call i8* @llvm.stacksave()
store i8* %50, i8** %14
%51 = alloca i32, i64 %49
store i64 %49, i64* %15
%52 = load i8*, i8** %14
%53 = load i32, i32* %2
%54 = zext i32 %53 to i64
%55 = alloca i32, i64 %54
store i64 %54, i64* %16
%56 = load i8*, i8** %10
%57 = load i32, i32* %2
%58 = zext i32 %57 to i64
%59 = call i8* @llvm.stacksave()
store i8* %59, i8** %17
%60 = alloca i32, i64 %58
store i64 %58, i64* %18
%61 = load i8*, i8** %17
ret void
}

LLVM IR (-O2):
define void @fa161(i32 %0) {
br label %2
2: ; preds = %2, %1
br label %2
}
/* Variables and functions */
int /*<<< orphan*/ memcpy(char *, char *, size_t);
size_t write_bytes(char *data, size_t ndata, char *buf, size_t len) {
  if (len < ndata) {
    return 0;
  }
  memcpy(buf, data, ndata);
  return ndata;
}


x86 assembly (clang, -O0):
<write_bytes>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    -0x28(%rbp),%rax
cmp    -0x18(%rbp),%rax
jae    1143 <write_bytes+0x33>
movq   $0x0,-0x8(%rbp)
jmp    115c <write_bytes+0x4c>
mov    -0x20(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1030 <memcpy@plt>
mov    -0x18(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<write_bytes>:
push   %rbx
mov    %rsi,%rbx
cmp    %rsi,%rcx
jae    111d <write_bytes+0xd>
xor    %ebx,%ebx
jmp    112b <write_bytes+0x1b>
mov    %rdi,%rsi
mov    %rdx,%rdi
mov    %rbx,%rdx
call   1030 <memcpy@plt>
mov    %rbx,%rax
pop    %rbx
ret

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

LLVM IR (-O2):
define i64 @write_bytes(i8* %0, i64 %1, i8* %2, i64 %3) {
%5 = icmp ult i64 %3, %1
br i1 %5, label %8, label %6
6: ; preds = %4
%7 = tail call i32 @memcpy(i8* %2, i8* %0, i64 %1)
br label %8
8: ; preds = %4, %6
%9 = phi i64 [ %1, %6 ], [ 0, %4 ]
ret i64 %9
}
/* Type definitions */
typedef int /*<<< orphan*/ PKEY_USAGE_PERIOD;

/* Variables and functions */
scalar_t__ ASN1_item_new(int /*<<< orphan*/ *);
int /*<<< orphan*/ PKEY_USAGE_PERIOD_it;
PKEY_USAGE_PERIOD *PKEY_USAGE_PERIOD_new(void) {
  return (PKEY_USAGE_PERIOD *)ASN1_item_new(&PKEY_USAGE_PERIOD_it);
}


x86 assembly (clang, -O0):
<PKEY_USAGE_PERIOD_new>:
push   %rbp
mov    %rsp,%rbp
mov    0x2edd(%rip),%rdi
call   1030 <ASN1_item_new@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<PKEY_USAGE_PERIOD_new>:
mov    0x2ee1(%rip),%rdi
jmp    1030 <ASN1_item_new@plt>

LLVM IR (-O0):
@PKEY_USAGE_PERIOD_it = global i32 0
define i32* @PKEY_USAGE_PERIOD_new() {
%1 = call i64 @ASN1_item_new(i32* @PKEY_USAGE_PERIOD_it)
%2 = inttoptr i64 %1 to i32*
ret i32* %2
}

LLVM IR (-O2):
@PKEY_USAGE_PERIOD_it = global i32 0
define i32* @PKEY_USAGE_PERIOD_new() {
%1 = tail call i64 @ASN1_item_new(i32* @PKEY_USAGE_PERIOD_it)
%2 = inttoptr i64 %1 to i32*
ret i32* %2
}
/* Variables and functions */
int /*<<< orphan*/ emit(char *);
void privilegecheck(void) {
  emit("test byte[__sr+1],20h\n");
  emit("jz near privilege_violation\n");
}


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

x86 assembly (clang, -O2):
<privilegecheck>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <emit@plt>
lea    0xef3(%rip),%rdi
pop    %rax
jmp    1030 <emit@plt>

LLVM IR (-O0):
@.str = [23 x i8] c"test byte[__sr+1],20h\0A\00"
@.str.1 = [29 x i8] c"jz near privilege_violation\0A\00"
define void @privilegecheck() {
%1 = call i32 @emit(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @emit(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [23 x i8] c"test byte[__sr+1],20h\0A\00"
@.str.1 = [29 x i8] c"jz near privilege_violation\0A\00"
define void @privilegecheck() {
%1 = tail call i32 @emit(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @emit(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ asprintf(char **, char *, char *, char *, char *, char *,
                            char *);
char *get_version(char *program_name) {
  char *retbuf = NULL;
  asprintf(&retbuf, "%s version %s (built %s %s by %s)", program_name,
           "\"????\"", "Mar 16 2022", "06:55:46", "\"unknown\"");
  return retbuf;
}


x86 assembly (clang, -O0):
<get_version>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
movq   $0x0,-0x10(%rbp)
mov    -0x8(%rbp),%rdx
lea    -0x10(%rbp),%rdi
lea    0xecd(%rip),%rsi
lea    0xee8(%rip),%rcx
lea    0xee8(%rip),%r8
lea    0xeed(%rip),%r9
lea    0xeef(%rip),%rax
mov    %rax,(%rsp)
call   1030 <asprintf@plt>
mov    -0x10(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_version>:
sub    $0x18,%rsp
mov    %rdi,%rdx
movq   $0x0,0x10(%rsp)
lea    0xf17(%rip),%rax
mov    %rax,(%rsp)
lea    0xece(%rip),%rsi
lea    0xee9(%rip),%rcx
lea    0xee9(%rip),%r8
lea    0xeee(%rip),%r9
lea    0x10(%rsp),%rdi
call   1030 <asprintf@plt>
mov    0x10(%rsp),%rax
add    $0x18,%rsp
ret

LLVM IR (-O0):
@.str = [34 x i8] c"%s version %s (built %s %s by %s)\00"
@.str.1 = [7 x i8] c"\22????\22\00"
@.str.2 = [12 x i8] c"Mar 16 2022\00"
@.str.3 = [9 x i8] c"06:55:46\00"
@.str.4 = [10 x i8] c"\22unknown\22\00"
define i8* @get_version(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
store i8* %0, i8** %2
store i8* null, i8** %3
%4 = load i8*, i8** %2
%5 = call i32 @asprintf(i8** %3, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), i8* %4, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%6 = load i8*, i8** %3
ret i8* %6
}

LLVM IR (-O2):
@.str = [34 x i8] c"%s version %s (built %s %s by %s)\00"
@.str.1 = [7 x i8] c"\22????\22\00"
@.str.2 = [12 x i8] c"Mar 16 2022\00"
@.str.3 = [9 x i8] c"06:55:46\00"
@.str.4 = [10 x i8] c"\22unknown\22\00"
define i8* @get_version(i8* %0) {
%2 = alloca i8*
%3 = bitcast i8** %2 to i8*
store i8* null, i8** %2
%4 = call i32 @asprintf(i8** %2, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), i8* %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%5 = load i8*, i8** %2
ret i8* %5
}
/* Variables and functions */
int /*<<< orphan*/ StartCfgTool(char *);
long SPUconfigure(void) {
  StartCfgTool("CFG");
  return 0;
}


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

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

LLVM IR (-O0):
@.str = [4 x i8] c"CFG\00"
define i64 @SPUconfigure() {
%1 = call i32 @StartCfgTool(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
ret i64 0
}

LLVM IR (-O2):
@.str = [4 x i8] c"CFG\00"
define i64 @SPUconfigure() {
%1 = tail call i32 @StartCfgTool(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
ret i64 0
}