xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ isprint(int);
void t_isprint_0xac() {
  Assert_real((isprint(172) == 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_isprint.c",
              865, ("isprint should be 0 for 0xac"));
}


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

x86 assembly (clang, -O2):
<t_isprint_0xac>:
push   %rax
mov    $0xac,%edi
call   1030 <isprint@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf66(%rip),%rcx
mov    $0x361,%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_isprint.c\00"
@.str.1 = [29 x i8] c"isprint should be 0 for 0xac\00"
define void @t_isprint_0xac() {
%1 = call i64 @isprint(i32 172)
%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 865, 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_isprint.c\00"
@.str.1 = [29 x i8] c"isprint should be 0 for 0xac\00"
define void @t_isprint_0xac() {
%1 = tail call i64 @isprint(i32 172)
%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 865, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Variables and functions */
char *strrchr(char *, char);
char *xbasename(char *s) {
  char *b;
  b = strrchr(s, '/');
  if (!b) {
    b = strrchr(s, '\\');
  }
  return b ? 1 + b : s;
}


x86 assembly (clang, -O0):
<xbasename>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0x2f,%esi
call   1030 <strrchr@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    114b <xbasename+0x3b>
mov    -0x8(%rbp),%rdi
mov    $0x5c,%esi
call   1030 <strrchr@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     1167 <xbasename+0x57>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
jmp    116f <xbasename+0x5f>
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<xbasename>:
push   %rbx
mov    %rdi,%rbx
mov    $0x2f,%esi
call   1030 <strrchr@plt>
test   %rax,%rax
jne    1130 <xbasename+0x20>
mov    %rbx,%rdi
mov    $0x5c,%esi
call   1030 <strrchr@plt>
lea    0x1(%rax),%rcx
test   %rax,%rax
cmove  %rbx,%rcx
mov    %rcx,%rax
pop    %rbx
ret

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

LLVM IR (-O2):
define i8* @xbasename(i8* %0) {
%2 = tail call i8* @strrchr(i8* dereferenceable(1) %0, i8 signext 47)
%3 = icmp eq i8* %2, null
br i1 %3, label %4, label %6
4: ; preds = %1
%5 = tail call i8* @strrchr(i8* dereferenceable(1) %0, i8 signext 92)
br label %6
6: ; preds = %4, %1
%7 = phi i8* [ %2, %1 ], [ %5, %4 ]
%8 = icmp eq i8* %7, null
%9 = getelementptr inbounds i8, i8* %7, i64 1
%10 = select i1 %8, i8* %0, i8* %9
ret i8* %10
}
/* Variables and functions */
int rand();
int getBluetoothPosition(int *DeviceId) {
  int position = 0;
  position = rand() % 360;
  return position;
}


x86 assembly (clang, -O0):
<getBluetoothPosition>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    $0x0,%al
call   1030 <rand@plt>
mov    $0x168,%ecx
cltd
idiv   %ecx
mov    %edx,-0xc(%rbp)
mov    -0xc(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<getBluetoothPosition>:
push   %rax
xor    %eax,%eax
call   1030 <rand@plt>
cltq
imul   $0xffffffffb60b60b7,%rax,%rcx
shr    $0x20,%rcx
add    %eax,%ecx
mov    %ecx,%edx
shr    $0x1f,%edx
sar    $0x8,%ecx
add    %edx,%ecx
imul   $0x168,%ecx,%ecx
sub    %ecx,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @getBluetoothPosition(i32* %0) {
%2 = alloca i32*
%3 = alloca i32
store i32* %0, i32** %2
store i32 0, i32* %3
%4 = call i32 (...) @rand()
%5 = srem i32 %4, 360
store i32 %5, i32* %3
%6 = load i32, i32* %3
ret i32 %6
}

LLVM IR (-O2):
define i32 @getBluetoothPosition(i32* nocapture readnone %0) {
%2 = tail call i32 (...) @rand()
%3 = srem i32 %2, 360
ret i32 %3
}
void g_value_get_float() {}


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

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

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

LLVM IR (-O2):
define void @g_value_get_float() {
ret void
}
/* Variables and functions */
int vectors_equal(void *, void *, int, int);
int test_offset() {
  int x[] = {1, 2, 3, 4, 5};
  int y[] = {3, 4, 5};
  void *xp = (x + 2);
  void *yp = y;
  return vectors_equal(xp, yp, 3, sizeof(int));
}


x86 assembly (clang, -O0):
<test_offset>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    0xee1(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xede(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xedc(%rip),%eax
mov    %eax,-0x10(%rbp)
mov    0xed6(%rip),%rax
mov    %rax,-0x2c(%rbp)
mov    0xed4(%rip),%eax
mov    %eax,-0x24(%rbp)
lea    -0x20(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x38(%rbp)
lea    -0x2c(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x38(%rbp),%rdi
mov    -0x40(%rbp),%rsi
mov    $0x3,%edx
mov    $0x4,%ecx
call   1030 <vectors_equal@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_offset>:
sub    $0x28,%rsp
mov    0xef6(%rip),%eax
mov    %eax,0x20(%rsp)
movaps 0xedb(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
mov    0xeec(%rip),%eax
mov    %eax,0x8(%rsp)
mov    0xed9(%rip),%rax
mov    %rax,(%rsp)
lea    0x18(%rsp),%rdi
mov    %rsp,%rsi
mov    $0x3,%edx
mov    $0x4,%ecx
call   1030 <vectors_equal@plt>
add    $0x28,%rsp
ret

LLVM IR (-O0):
@__const.test_offset.x = [5 x i32] [i32 1, i32 2, i32 3, i32 4, i32 5]
@__const.test_offset.y = [3 x i32] [i32 3, i32 4, i32 5]
define i32 @test_offset() {
%1 = alloca [5 x i32]
%2 = alloca [3 x i32]
%3 = alloca i8*
%4 = alloca i8*
%5 = bitcast [5 x i32]* %1 to i8*
%6 = bitcast [3 x i32]* %2 to i8*
%7 = getelementptr inbounds [5 x i32], [5 x i32]* %1, i64 0, i64 0
%8 = getelementptr inbounds i32, i32* %7, i64 2
%9 = bitcast i32* %8 to i8*
store i8* %9, i8** %3
%10 = getelementptr inbounds [3 x i32], [3 x i32]* %2, i64 0, i64 0
%11 = bitcast i32* %10 to i8*
store i8* %11, i8** %4
%12 = load i8*, i8** %3
%13 = load i8*, i8** %4
%14 = call i32 @vectors_equal(i8* %12, i8* %13, i32 3, i32 4)
ret i32 %14
}

LLVM IR (-O2):
@__const.test_offset.x = [5 x i32] [i32 1, i32 2, i32 3, i32 4, i32 5]
@__const.test_offset.y = [3 x i32] [i32 3, i32 4, i32 5]
define i32 @test_offset() {
%1 = alloca [5 x i32]
%2 = alloca [3 x i32]
%3 = bitcast [5 x i32]* %1 to i8*
%4 = bitcast [3 x i32]* %2 to i8*
%5 = getelementptr inbounds [5 x i32], [5 x i32]* %1, i64 0, i64 2
%6 = bitcast i32* %5 to i8*
%7 = call i32 @vectors_equal(i8* %6, i8* %4, i32 3, i32 4)
ret i32 %7
}
void UnityPrintResult() {}


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

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

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

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


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

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

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @test_class()
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ jul2greg(double, int *, int *, int *, int *, int *,
                            double *);
int julian_get_minute_number(double current) {
  int year, month, day, hour, minute;
  double seconds;
  jul2greg(current, &month, &day, &year, &hour, &minute, &seconds);
  return minute;
}


x86 assembly (clang, -O0):
<julian_get_minute_number>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
lea    -0x10(%rbp),%rdi
lea    -0x14(%rbp),%rsi
lea    -0xc(%rbp),%rdx
lea    -0x18(%rbp),%rcx
lea    -0x1c(%rbp),%r8
lea    -0x28(%rbp),%r9
call   1030 <jul2greg@plt>
mov    -0x1c(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<julian_get_minute_number>:
sub    $0x28,%rsp
lea    0x18(%rsp),%rdi
lea    0x14(%rsp),%rsi
lea    0x1c(%rsp),%rdx
lea    0x10(%rsp),%rcx
lea    0xc(%rsp),%r8
lea    0x20(%rsp),%r9
call   1030 <jul2greg@plt>
mov    0xc(%rsp),%eax
add    $0x28,%rsp
ret

LLVM IR (-O0):
define i32 @julian_get_minute_number(double %0) {
%2 = alloca double
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca double
store double %0, double* %2
%9 = load double, double* %2
%10 = call i32 @jul2greg(double %9, i32* %4, i32* %5, i32* %3, i32* %6, i32* %7, double* %8)
%11 = load i32, i32* %7
ret i32 %11
}

LLVM IR (-O2):
define i32 @julian_get_minute_number(double %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca double
%8 = bitcast i32* %2 to i8*
%9 = bitcast i32* %3 to i8*
%10 = bitcast i32* %4 to i8*
%11 = bitcast i32* %5 to i8*
%12 = bitcast i32* %6 to i8*
%13 = bitcast double* %7 to i8*
%14 = call i32 @jul2greg(double %0, i32* %3, i32* %4, i32* %2, i32* %5, i32* %6, double* %7)
%15 = load i32, i32* %6
ret i32 %15
}
/* Variables and functions */
scalar_t__ OK;
int /*<<< orphan*/ assert(void *);
scalar_t__ endwin();
int deinit(void *opaque) {
  assert(opaque);
  if (endwin() != OK)
    return -1;
  return 0;
}


x86 assembly (clang, -O0):
<deinit>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <assert@plt>
mov    $0x0,%al
call   1040 <endwin@plt>
mov    0x2e9d(%rip),%rcx
cmp    (%rcx),%rax
je     1158 <deinit+0x38>
movl   $0xffffffff,-0x4(%rbp)
jmp    115f <deinit+0x3f>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<deinit>:
push   %rax
call   1030 <assert@plt>
xor    %eax,%eax
call   1040 <endwin@plt>
mov    0x2eac(%rip),%rdx
xor    %ecx,%ecx
cmp    (%rdx),%rax
setne  %cl
neg    %ecx
mov    %ecx,%eax
pop    %rcx
ret

LLVM IR (-O0):
@OK = global i64 0
define i32 @deinit(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
store i8* %0, i8** %3
%4 = load i8*, i8** %3
%5 = call i32 @assert(i8* %4)
%6 = call i64 (...) @endwin()
%7 = load i64, i64* @OK
%8 = icmp ne i64 %6, %7
br i1 %8, label %9, label %10
9: ; preds = %1
store i32 -1, i32* %2
br label %11
10: ; preds = %1
store i32 0, i32* %2
br label %11
11: ; preds = %10, %9
%12 = load i32, i32* %2
ret i32 %12
}

LLVM IR (-O2):
@OK = global i64 0
define i32 @deinit(i8* %0) {
%2 = tail call i32 @assert(i8* %0)
%3 = tail call i64 (...) @endwin()
%4 = load i64, i64* @OK
%5 = icmp ne i64 %3, %4
%6 = sext i1 %5 to i32
ret i32 %6
}
/* Variables and functions */
int /*<<< orphan*/ free(char *);
void free_ivector(int *v, int nl) { free((char *)(v + nl)); }


x86 assembly (clang, -O0):
<free_ivector>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rdi
movslq -0xc(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rdi
call   1030 <free@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<free_ivector>:
movslq %esi,%rax
lea    (%rdi,%rax,4),%rdi
jmp    1030 <free@plt>

LLVM IR (-O0):
define void @free_ivector(i32* %0, i32 %1) {
%3 = alloca i32*
%4 = alloca i32
store i32* %0, i32** %3
store i32 %1, i32* %4
%5 = load i32*, i32** %3
%6 = load i32, i32* %4
%7 = sext i32 %6 to i64
%8 = getelementptr inbounds i32, i32* %5, i64 %7
%9 = bitcast i32* %8 to i8*
%10 = call i32 @free(i8* %9)
ret void
}

LLVM IR (-O2):
define void @free_ivector(i32* nocapture %0, i32 %1) {
%3 = sext i32 %1 to i64
%4 = getelementptr inbounds i32, i32* %0, i64 %3
%5 = bitcast i32* %4 to i8*
%6 = tail call i32 @free(i8* %5)
ret void
}
/* Variables and functions */
int double_cmp(void const *, void const *);
int double_cmp_r(const void *a, const void *b) { return -double_cmp(a, b); }


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

x86 assembly (clang, -O2):
<double_cmp_r>:
push   %rax
call   1030 <double_cmp@plt>
neg    %eax
pop    %rcx
ret

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

LLVM IR (-O2):
define i32 @double_cmp_r(i8* %0, i8* %1) {
%3 = tail call i32 @double_cmp(i8* %0, i8* %1)
%4 = sub nsw i32 0, %3
ret i32 %4
}
void raise(void) { return; }


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

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

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

LLVM IR (-O2):
define void @raise() {
ret void
}
int adis16204_probe_trigger(struct iio_dev *indio_dev) { return 0; }


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

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

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

LLVM IR (-O2):
%struct.iio_dev = type opaque
define i32 @adis16204_probe_trigger(%struct.iio_dev* nocapture readnone %0) {
ret i32 0
}
/* Type definitions */
struct sTransportLayer {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ TransportLayer_SetData(struct sTransportLayer *,
                                          unsigned char *, unsigned short);
void BbdTransportLayer_SetData(struct sTransportLayer *p,
                               unsigned char *pucData, unsigned short usSize) {
  TransportLayer_SetData(p, pucData, usSize);
}


x86 assembly (clang, -O0):
<BbdTransportLayer_SetData>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %dx,%ax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %ax,-0x12(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
movzwl -0x12(%rbp),%edx
call   1030 <TransportLayer_SetData@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<BbdTransportLayer_SetData>:
jmp    1030 <TransportLayer_SetData@plt>

LLVM IR (-O0):
%struct.sTransportLayer = type { i32 }
define void @BbdTransportLayer_SetData(%struct.sTransportLayer* %0, i8* %1, i16 zeroext %2) {
%4 = alloca %struct.sTransportLayer*
%5 = alloca i8*
%6 = alloca i16
store %struct.sTransportLayer* %0, %struct.sTransportLayer** %4
store i8* %1, i8** %5
store i16 %2, i16* %6
%7 = load %struct.sTransportLayer*, %struct.sTransportLayer** %4
%8 = load i8*, i8** %5
%9 = load i16, i16* %6
%10 = call i32 @TransportLayer_SetData(%struct.sTransportLayer* %7, i8* %8, i16 zeroext %9)
ret void
}

LLVM IR (-O2):
%struct.sTransportLayer = type { i32 }
define void @BbdTransportLayer_SetData(%struct.sTransportLayer* %0, i8* %1, i16 zeroext %2) {
%4 = tail call i32 @TransportLayer_SetData(%struct.sTransportLayer* %0, i8* %1, i16 zeroext %2)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ console_tx_nibble(unsigned char);
void console_tx_hex8(unsigned char value) {
  console_tx_nibble((value >> 4U) & 0x0fU);
  console_tx_nibble(value & 0x0fU);
}


x86 assembly (clang, -O0):
<console_tx_hex8>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movzbl -0x1(%rbp),%eax
sar    $0x4,%eax
and    $0xf,%eax
movzbl %al,%edi
call   1030 <console_tx_nibble@plt>
movzbl -0x1(%rbp),%eax
and    $0xf,%eax
movzbl %al,%edi
call   1030 <console_tx_nibble@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<console_tx_hex8>:
push   %rbx
mov    %edi,%ebx
mov    %ebx,%eax
shr    $0x4,%al
movzbl %al,%edi
call   1030 <console_tx_nibble@plt>
and    $0xf,%ebx
mov    %ebx,%edi
pop    %rbx
jmp    1030 <console_tx_nibble@plt>

LLVM IR (-O0):
define void @console_tx_hex8(i8 zeroext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = load i8, i8* %2
%4 = zext i8 %3 to i32
%5 = ashr i32 %4, 4
%6 = and i32 %5, 15
%7 = trunc i32 %6 to i8
%8 = call i32 @console_tx_nibble(i8 zeroext %7)
%9 = load i8, i8* %2
%10 = zext i8 %9 to i32
%11 = and i32 %10, 15
%12 = trunc i32 %11 to i8
%13 = call i32 @console_tx_nibble(i8 zeroext %12)
ret void
}

LLVM IR (-O2):
define void @console_tx_hex8(i8 zeroext %0) {
%2 = lshr i8 %0, 4
%3 = tail call i32 @console_tx_nibble(i8 zeroext %2)
%4 = and i8 %0, 15
%5 = tail call i32 @console_tx_nibble(i8 zeroext %4)
ret void
}
void test_two(int x, int y) {
#pragma omp target simd
  for (int i = 0; i < x; i++)
    for (int i = 0; i < y; i++)
      ;
}


x86 assembly (clang, -O0):
<test_two>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1156 <test_two+0x56>
movl   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1143 <test_two+0x43>
jmp    1135 <test_two+0x35>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1124 <test_two+0x24>
jmp    1148 <test_two+0x48>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1111 <test_two+0x11>
pop    %rbp
ret

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

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

LLVM IR (-O2):
define void @test_two(i32 %0, i32 %1) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *, int);
int oerbla(char *srname, int *info) {
  printf("** On entry to %6s, parameter number %2i had an illegal value\n",
         srname, *info);
  return 0;
}


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

x86 assembly (clang, -O2):
<oerbla>:
push   %rax
mov    %rdi,%rax
mov    (%rsi),%edx
lea    0xee3(%rip),%rdi
mov    %rax,%rsi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [63 x i8] c"** On entry to %6s, parameter number %2i had an illegal value\0A\00"
define i32 @oerbla(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 = load i32, i32* %6
%8 = call i32 @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str, i64 0, i64 0), i8* %5, i32 %7)
ret i32 0
}

LLVM IR (-O2):
@.str = [63 x i8] c"** On entry to %6s, parameter number %2i had an illegal value\0A\00"
define i32 @oerbla(i8* %0, i32* nocapture %1) {
%3 = load i32, i32* %1
%4 = tail call i32 @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str, i64 0, i64 0), i8* %0, i32 %3)
ret i32 0
}
void widget_area_render(const struct widget *widget, unsigned int ticks) {}


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

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

LLVM IR (-O0):
%struct.widget = type opaque
define void @widget_area_render(%struct.widget* %0, i32 %1) {
%3 = alloca %struct.widget*
%4 = alloca i32
store %struct.widget* %0, %struct.widget** %3
store i32 %1, i32* %4
ret void
}

LLVM IR (-O2):
%struct.widget = type opaque
define void @widget_area_render(%struct.widget* nocapture %0, i32 %1) {
ret void
}
/* Type definitions */
struct l_class_OC_DummyStream {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ _ZdlPv(unsigned char *);
void _ZN9__gnu_cxx13new_allocatorIPiE10deallocateEPS1_m(
    struct l_class_OC_DummyStream *llvm_cbe_this, unsigned int **llvm_cbe___p,
    unsigned long long llvm_cbe_tmp__34) {
  struct l_class_OC_DummyStream *llvm_cbe_this_2e_addr;
  unsigned int **llvm_cbe___p_2e_addr;
  unsigned long long llvm_cbe__2e_addr;
  struct l_class_OC_DummyStream *llvm_cbe_this1;
  unsigned int **llvm_cbe_tmp;
  *(&llvm_cbe_this_2e_addr) = llvm_cbe_this;
  *(&llvm_cbe___p_2e_addr) = llvm_cbe___p;
  *(&llvm_cbe__2e_addr) = llvm_cbe_tmp__34;
  llvm_cbe_this1 = *(&llvm_cbe_this_2e_addr);
  llvm_cbe_tmp = *(&llvm_cbe___p_2e_addr);
  _ZdlPv((((unsigned char *)llvm_cbe_tmp)));
  return;
}


x86 assembly (clang, -O0):
<_ZN9__gnu_cxx13new_allocatorIPiE10deallocateEPS1_m>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x28(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rdi
call   1030 <_ZdlPv@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_ZN9__gnu_cxx13new_allocatorIPiE10deallocateEPS1_m>:
mov    %rsi,%rdi
jmp    1030 <_ZdlPv@plt>

LLVM IR (-O0):
%struct.l_class_OC_DummyStream = type { i32 }
define void @_ZN9__gnu_cxx13new_allocatorIPiE10deallocateEPS1_m(%struct.l_class_OC_DummyStream* %0, i32** %1, i64 %2) {
%4 = alloca %struct.l_class_OC_DummyStream*
%5 = alloca i32**
%6 = alloca i64
%7 = alloca %struct.l_class_OC_DummyStream*
%8 = alloca i32**
%9 = alloca i64
%10 = alloca %struct.l_class_OC_DummyStream*
%11 = alloca i32**
store %struct.l_class_OC_DummyStream* %0, %struct.l_class_OC_DummyStream** %4
store i32** %1, i32*** %5
store i64 %2, i64* %6
%12 = load %struct.l_class_OC_DummyStream*, %struct.l_class_OC_DummyStream** %4
store %struct.l_class_OC_DummyStream* %12, %struct.l_class_OC_DummyStream** %7
%13 = load i32**, i32*** %5
store i32** %13, i32*** %8
%14 = load i64, i64* %6
store i64 %14, i64* %9
%15 = load %struct.l_class_OC_DummyStream*, %struct.l_class_OC_DummyStream** %7
store %struct.l_class_OC_DummyStream* %15, %struct.l_class_OC_DummyStream** %10
%16 = load i32**, i32*** %8
store i32** %16, i32*** %11
%17 = load i32**, i32*** %11
%18 = bitcast i32** %17 to i8*
%19 = call i32 @_ZdlPv(i8* %18)
ret void
}

LLVM IR (-O2):
%struct.l_class_OC_DummyStream = type { i32 }
define void @_ZN9__gnu_cxx13new_allocatorIPiE10deallocateEPS1_m(%struct.l_class_OC_DummyStream* nocapture readnone %0, i32** %1, i64 %2) {
%4 = bitcast i32** %1 to i8*
%5 = tail call i32 @_ZdlPv(i8* %4)
ret void
}
/* Variables and functions */
int atoi(char const *);
char *om_gsm_power_path();
char *om_sysfs_readfile(char const *);
int om_gsm_power_get() {
  const char *path = om_gsm_power_path();
  if (path == NULL)
    return -1;
  const char *val = om_sysfs_readfile(path);
  if (val == NULL)
    return -1;
  return atoi(val);
}


x86 assembly (clang, -O0):
<om_gsm_power_get>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    $0x0,%al
call   1040 <om_gsm_power_path@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    115a <om_gsm_power_get+0x2a>
movl   $0xffffffff,-0x4(%rbp)
jmp    118a <om_gsm_power_get+0x5a>
mov    -0x10(%rbp),%rdi
call   1030 <om_sysfs_readfile@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    117e <om_gsm_power_get+0x4e>
movl   $0xffffffff,-0x4(%rbp)
jmp    118a <om_gsm_power_get+0x5a>
mov    -0x18(%rbp),%rdi
call   1050 <atoi@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<om_gsm_power_get>:
push   %rax
xor    %eax,%eax
call   1040 <om_gsm_power_path@plt>
test   %rax,%rax
je     1153 <om_gsm_power_get+0x23>
mov    %rax,%rdi
call   1030 <om_sysfs_readfile@plt>
test   %rax,%rax
je     1153 <om_gsm_power_get+0x23>
mov    %rax,%rdi
pop    %rax
jmp    1050 <atoi@plt>
mov    $0xffffffff,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @om_gsm_power_get() {
%1 = alloca i32
%2 = alloca i8*
%3 = alloca i8*
%4 = call i8* (...) @om_gsm_power_path()
store i8* %4, i8** %2
%5 = load i8*, i8** %2
%6 = icmp eq i8* %5, null
br i1 %6, label %7, label %8
7: ; preds = %0
store i32 -1, i32* %1
br label %17
8: ; preds = %0
%9 = load i8*, i8** %2
%10 = call i8* @om_sysfs_readfile(i8* %9)
store i8* %10, i8** %3
%11 = load i8*, i8** %3
%12 = icmp eq i8* %11, null
br i1 %12, label %13, label %14
13: ; preds = %8
store i32 -1, i32* %1
br label %17
14: ; preds = %8
%15 = load i8*, i8** %3
%16 = call i32 @atoi(i8* %15)
store i32 %16, i32* %1
br label %17
17: ; preds = %14, %13, %7
%18 = load i32, i32* %1
ret i32 %18
}

LLVM IR (-O2):
define i32 @om_gsm_power_get() {
%1 = tail call i8* (...) @om_gsm_power_path()
%2 = icmp eq i8* %1, null
br i1 %2, label %8, label %3
3: ; preds = %0
%4 = tail call i8* @om_sysfs_readfile(i8* %1)
%5 = icmp eq i8* %4, null
br i1 %5, label %8, label %6
6: ; preds = %3
%7 = tail call i32 @atoi(i8* %4)
br label %8
8: ; preds = %6, %3, %0
%9 = phi i32 [ -1, %0 ], [ %7, %6 ], [ -1, %3 ]
ret i32 %9
}
/* Variables and functions */
int /*<<< orphan*/ RST(int);
void RST28() { RST(0x28); }


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

x86 assembly (clang, -O2):
<RST28>:
mov    $0x28,%edi
jmp    1030 <RST@plt>

LLVM IR (-O0):
define void @RST28() {
%1 = call i32 @RST(i32 40)
ret void
}

LLVM IR (-O2):
define void @RST28() {
%1 = tail call i32 @RST(i32 40)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void catch_term(int sig) { printf("TERM\n"); }


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

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

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

LLVM IR (-O2):
@str = [5 x i8] c"TERM\00"
define void @catch_term(i32 %0) {
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str, i64 0, i64 0))
ret void
}
const char *tstamp() { return (""); }


x86 assembly (clang, -O0):
<tstamp>:
push   %rbp
mov    %rsp,%rbp
lea    0xef5(%rip),%rax
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [1 x i8] zeroinitializer
define i8* @tstamp() {
ret i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0)
}

LLVM IR (-O2):
@.str = [1 x i8] zeroinitializer
define i8* @tstamp() {
ret i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0)
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;
typedef int /*<<< orphan*/ uint16_t;

/* Variables and functions */
int /*<<< orphan*/ little_endian_read_16(int /*<<< orphan*/ const *, int);
uint16_t l2cap_event_incoming_connection_get_remote_cid(const uint8_t *event) {
  return little_endian_read_16(event, 14);
}


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

x86 assembly (clang, -O2):
<l2cap_event_incoming_connection_get_remote_cid>:
mov    $0xe,%esi
jmp    1030 <little_endian_read_16@plt>

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

LLVM IR (-O2):
define i32 @l2cap_event_incoming_connection_get_remote_cid(i32* %0) {
%2 = tail call i32 @little_endian_read_16(i32* %0, i32 14)
ret i32 %2
}
int sharp_get_nv_max(void) { return 6; }


x86 assembly (clang, -O0):
<sharp_get_nv_max>:
push   %rbp
mov    %rsp,%rbp
mov    $0x6,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @sharp_get_nv_max() {
ret i32 6
}

LLVM IR (-O2):
define i32 @sharp_get_nv_max() {
ret i32 6
}
/* Type definitions */
typedef int uint64_t;
struct timespec {
  int tv_nsec;
  scalar_t__ tv_sec;
};

/* Variables and functions */
uint64_t rc_timespec_to_micros(struct timespec ts) {
  return (((uint64_t)ts.tv_sec * 1000000000) + ts.tv_nsec) / 1000;
}


x86 assembly (clang, -O0):
<rc_timespec_to_micros>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x10(%rbp)
mov    %rsi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
imul   $0x3b9aca00,%eax,%eax
add    -0x10(%rbp),%eax
mov    $0x3e8,%ecx
cltd
idiv   %ecx
pop    %rbp
ret

x86 assembly (clang, -O2):
<rc_timespec_to_micros>:
imul   $0x3b9aca00,%esi,%eax
add    %edi,%eax
cltq
imul   $0x10624dd3,%rax,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
sar    $0x26,%rax
add    %ecx,%eax
ret

LLVM IR (-O0):
%struct.timespec = type { i32, i64 }
define i32 @rc_timespec_to_micros(i32 %0, i64 %1) {
%3 = alloca %struct.timespec
%4 = bitcast %struct.timespec* %3 to { i32, i64 }*
%5 = getelementptr inbounds { i32, i64 }, { i32, i64 }* %4, i32 0, i32 0
store i32 %0, i32* %5
%6 = getelementptr inbounds { i32, i64 }, { i32, i64 }* %4, i32 0, i32 1
store i64 %1, i64* %6
%7 = getelementptr inbounds %struct.timespec, %struct.timespec* %3, i32 0, i32 1
%8 = load i64, i64* %7
%9 = trunc i64 %8 to i32
%10 = mul nsw i32 %9, 1000000000
%11 = getelementptr inbounds %struct.timespec, %struct.timespec* %3, i32 0, i32 0
%12 = load i32, i32* %11
%13 = add nsw i32 %10, %12
%14 = sdiv i32 %13, 1000
ret i32 %14
}

LLVM IR (-O2):
define i32 @rc_timespec_to_micros(i32 %0, i64 %1) {
%3 = trunc i64 %1 to i32
%4 = mul nsw i32 %3, 1000000000
%5 = add nsw i32 %4, %0
%6 = sdiv i32 %5, 1000
ret i32 %6
}
/* Variables and functions */
int yas_adxl345_write_reg(unsigned char, unsigned char *, int);
int yas_adxl345_write_reg_byte(int adr, int val) {
  return yas_adxl345_write_reg((unsigned char)adr, (unsigned char *)&val, 1);
}


x86 assembly (clang, -O0):
<yas_adxl345_write_reg_byte>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
lea    -0x8(%rbp),%rsi
mov    $0x1,%edx
movzbl %al,%edi
call   1030 <yas_adxl345_write_reg@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<yas_adxl345_write_reg_byte>:
push   %rax
mov    %esi,0x4(%rsp)
movzbl %dil,%edi
lea    0x4(%rsp),%rsi
mov    $0x1,%edx
call   1030 <yas_adxl345_write_reg@plt>
pop    %rcx
ret

LLVM IR (-O0):
define i32 @yas_adxl345_write_reg_byte(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 = trunc i32 %5 to i8
%7 = bitcast i32* %4 to i8*
%8 = call i32 @yas_adxl345_write_reg(i8 zeroext %6, i8* %7, i32 1)
ret i32 %8
}

LLVM IR (-O2):
define i32 @yas_adxl345_write_reg_byte(i32 %0, i32 %1) {
%3 = alloca i32
store i32 %1, i32* %3
%4 = trunc i32 %0 to i8
%5 = bitcast i32* %3 to i8*
%6 = call i32 @yas_adxl345_write_reg(i8 zeroext %4, i8* %5, i32 1)
ret i32 %6
}
void fd16(int n) {
a:
  goto a;
P0A:
  goto P0A;
  {
    typedef int(*b)[n];
  P01A:
    goto P01A;
    {
      typedef int(*c)[n];
    P012A:
      goto P012A;
      0;
    }
  P01B:
    goto P01B;
    {
      typedef int(*d)[n];
    P013A:
      goto P013A;
      0;
    }
  P01C:
    goto P01C;
    ;
    typedef int(*e)[n];
  P014A:
    goto P014A;
    0;
  };
P0B:
  goto P0B;
  {
    typedef int(*f)[n];
  P02A:
    goto P02A;
    {
      typedef int(*g)[n];
    P024A:
      goto P024A;
      0;
    };
  P02B:
    goto P02B;
    {
      typedef int(*h)[n];
    P025A:
      goto P025A;
      0;
    };
  P02C:
    goto P02C;
    ;
    typedef int(*i)[n];
  P026A:
    goto P026A;
    0;
  };
P0C:
  goto P0C;
  ;
  typedef int(*j)[n];
P03A:
  goto P03A;
  0;
P03B:
  goto P03B;
}


x86 assembly (clang, -O0):
<fd16>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
jmp    1107 <fd16+0x7>

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

LLVM IR (-O0):
define void @fd16(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
br label %3
3: ; preds = %3, %1
br label %3
4: ; preds = %4
br label %4
5: ; No predecessors!
%6 = load i32, i32* %2
%7 = zext i32 %6 to i64
br label %8
8: ; preds = %8, %5
br label %8
9: ; No predecessors!
%10 = load i32, i32* %2
%11 = zext i32 %10 to i64
br label %12
12: ; preds = %12, %9
br label %12
13: ; preds = %13
br label %13
14: ; No predecessors!
%15 = load i32, i32* %2
%16 = zext i32 %15 to i64
br label %17
17: ; preds = %17, %14
br label %17
18: ; preds = %18
br label %18
19: ; No predecessors!
%20 = load i32, i32* %2
%21 = zext i32 %20 to i64
br label %22
22: ; preds = %22, %19
br label %22
23: ; preds = %23
br label %23
24: ; No predecessors!
%25 = load i32, i32* %2
%26 = zext i32 %25 to i64
br label %27
27: ; preds = %27, %24
br label %27
28: ; No predecessors!
%29 = load i32, i32* %2
%30 = zext i32 %29 to i64
br label %31
31: ; preds = %31, %28
br label %31
32: ; preds = %32
br label %32
33: ; No predecessors!
%34 = load i32, i32* %2
%35 = zext i32 %34 to i64
br label %36
36: ; preds = %36, %33
br label %36
37: ; preds = %37
br label %37
38: ; No predecessors!
%39 = load i32, i32* %2
%40 = zext i32 %39 to i64
br label %41
41: ; preds = %41, %38
br label %41
42: ; preds = %42
br label %42
43: ; No predecessors!
%44 = load i32, i32* %2
%45 = zext i32 %44 to i64
br label %46
46: ; preds = %46, %43
br label %46
47: ; preds = %47
br label %47
}

LLVM IR (-O2):
define void @fd16(i32 %0) {
br label %2
2: ; preds = %2, %1
br label %2
}
void null_PCAP_CLOSE(void *hPcap) { hPcap = (hPcap); }


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

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

LLVM IR (-O0):
define void @null_PCAP_CLOSE(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
store i8* %3, i8** %2
ret void
}

LLVM IR (-O2):
define void @null_PCAP_CLOSE(i8* nocapture %0) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ F_GETFL;
int /*<<< orphan*/ F_SETFL;
int O_NONBLOCK;
int fcntl(int, int /*<<< orphan*/, ...);
void nonBlocking(int fd) {
  int flags;
  flags = fcntl(fd, F_GETFL);
  fcntl(fd, F_SETFL, flags | O_NONBLOCK);
}


x86 assembly (clang, -O0):
<nonBlocking>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
mov    0x2eab(%rip),%rax
mov    (%rax),%esi
mov    $0x0,%al
call   1030 <fcntl@plt>
mov    %eax,-0x8(%rbp)
mov    -0x4(%rbp),%edi
mov    0x2e9d(%rip),%rax
mov    (%rax),%esi
mov    -0x8(%rbp),%edx
mov    0x2ea1(%rip),%rax
or     (%rax),%edx
mov    $0x0,%al
call   1030 <fcntl@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<nonBlocking>:
push   %rbx
mov    %edi,%ebx
mov    0x2eb6(%rip),%rax
mov    (%rax),%esi
xor    %eax,%eax
call   1030 <fcntl@plt>
mov    0x2eae(%rip),%rcx
mov    (%rcx),%esi
mov    0x2eb5(%rip),%rcx
or     (%rcx),%eax
mov    %ebx,%edi
mov    %eax,%edx
xor    %eax,%eax
pop    %rbx
jmp    1030 <fcntl@plt>

LLVM IR (-O0):
@F_GETFL = global i32 0
@F_SETFL = global i32 0
@O_NONBLOCK = global i32 0
define void @nonBlocking(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
%4 = load i32, i32* %2
%5 = load i32, i32* @F_GETFL
%6 = call i32 (i32, i32, ...) @fcntl(i32 %4, i32 %5)
store i32 %6, i32* %3
%7 = load i32, i32* %2
%8 = load i32, i32* @F_SETFL
%9 = load i32, i32* %3
%10 = load i32, i32* @O_NONBLOCK
%11 = or i32 %9, %10
%12 = call i32 (i32, i32, ...) @fcntl(i32 %7, i32 %8, i32 %11)
ret void
}

LLVM IR (-O2):
@F_GETFL = global i32 0
@F_SETFL = global i32 0
@O_NONBLOCK = global i32 0
define void @nonBlocking(i32 %0) {
%2 = load i32, i32* @F_GETFL
%3 = tail call i32 (i32, i32, ...) @fcntl(i32 %0, i32 %2)
%4 = load i32, i32* @F_SETFL
%5 = load i32, i32* @O_NONBLOCK
%6 = or i32 %5, %3
%7 = tail call i32 (i32, i32, ...) @fcntl(i32 %0, i32 %4, i32 %6)
ret void
}
double sign(double x) { return (double)((x > 0.0) - (x < 0.0)); }


x86 assembly (clang, -O0):
<sign>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
seta   %al
and    $0x1,%al
movzbl %al,%eax
xorps  %xmm0,%xmm0
ucomisd -0x8(%rbp),%xmm0
seta   %cl
and    $0x1,%cl
movzbl %cl,%ecx
sub    %ecx,%eax
cvtsi2sd %eax,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<sign>:
xorpd  %xmm1,%xmm1
xor    %eax,%eax
ucomisd %xmm1,%xmm0
seta   %al
xor    %ecx,%ecx
ucomisd %xmm0,%xmm1
seta   %cl
sub    %ecx,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
ret

LLVM IR (-O0):
define double @sign(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = load double, double* %2
%4 = fcmp ogt double %3, 0.000000e+00
%5 = zext i1 %4 to i32
%6 = load double, double* %2
%7 = fcmp olt double %6, 0.000000e+00
%8 = zext i1 %7 to i32
%9 = sub nsw i32 %5, %8
%10 = sitofp i32 %9 to double
ret double %10
}

LLVM IR (-O2):
define double @sign(double %0) {
%2 = fcmp ogt double %0, 0.000000e+00
%3 = zext i1 %2 to i32
%4 = fcmp olt double %0, 0.000000e+00
%5 = sext i1 %4 to i32
%6 = add nsw i32 %5, %3
%7 = sitofp i32 %6 to double
ret double %7
}
int main(void) {
  int __constr_expr_0[4];
  {
    __constr_expr_0[0] = 1;
    __constr_expr_0[1] = 2;
    __constr_expr_0[2] = 3;
    __constr_expr_0[3] = 4;
    return (__constr_expr_0[1]);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x20(%rbp)
movl   $0x2,-0x1c(%rbp)
movl   $0x3,-0x18(%rbp)
movl   $0x4,-0x14(%rbp)
mov    -0x1c(%rbp),%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca [4 x i32]
store i32 0, i32* %1
%3 = getelementptr inbounds [4 x i32], [4 x i32]* %2, i64 0, i64 0
store i32 1, i32* %3
%4 = getelementptr inbounds [4 x i32], [4 x i32]* %2, i64 0, i64 1
store i32 2, i32* %4
%5 = getelementptr inbounds [4 x i32], [4 x i32]* %2, i64 0, i64 2
store i32 3, i32* %5
%6 = getelementptr inbounds [4 x i32], [4 x i32]* %2, i64 0, i64 3
store i32 4, i32* %6
%7 = getelementptr inbounds [4 x i32], [4 x i32]* %2, i64 0, i64 1
%8 = load i32, i32* %7
ret i32 %8
}

LLVM IR (-O2):
define i32 @main() {
ret i32 2
}
int test7u(unsigned int x) { return x / 10U <= 2; }


x86 assembly (clang, -O0):
<test7u>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    $0xa,%ecx
xor    %edx,%edx
div    %ecx
cmp    $0x2,%eax
setbe  %al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test7u>:
xor    %eax,%eax
cmp    $0x1e,%edi
setb   %al
ret

LLVM IR (-O0):
define i32 @test7u(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = udiv i32 %3, 10
%5 = icmp ule i32 %4, 2
%6 = zext i1 %5 to i32
ret i32 %6
}

LLVM IR (-O2):
define i32 @test7u(i32 %0) {
%2 = icmp ult i32 %0, 30
%3 = zext i1 %2 to i32
ret i32 %3
}
int args2(void *arg1, void *arg2) {
  void *local = 0;
  return local;
}


x86 assembly (clang, -O0):
<args2>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movq   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%rax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @args2(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
store i8* null, i8** %5
%6 = load i8*, i8** %5
%7 = ptrtoint i8* %6 to i32
ret i32 %7
}

LLVM IR (-O2):
define i32 @args2(i8* nocapture readnone %0, i8* nocapture readnone %1) {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ writefile(char const *, int *, int const *, char const *,
                             int *, int *);
void swritefile(const char *filename, const int *m, const int *n,
                const float *A, const int *ldA, int *info) {
  int cm = *m * (int)(sizeof(float) / sizeof(char));
  int cldA = *ldA * (int)(sizeof(float) / sizeof(char));
  writefile(filename, &cm, n, (const char *)A, &cldA, info);
}


x86 assembly (clang, -O0):
<swritefile>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%eax
shl    $0x2,%eax
mov    %eax,-0x34(%rbp)
mov    -0x28(%rbp),%rax
mov    (%rax),%eax
shl    $0x2,%eax
mov    %eax,-0x38(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    -0x30(%rbp),%r9
lea    -0x34(%rbp),%rsi
lea    -0x38(%rbp),%r8
call   1030 <writefile@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<swritefile>:
push   %rax
mov    (%rsi),%eax
shl    $0x2,%eax
mov    %eax,0x4(%rsp)
mov    (%r8),%eax
shl    $0x2,%eax
mov    %eax,(%rsp)
lea    0x4(%rsp),%rsi
mov    %rsp,%r8
call   1030 <writefile@plt>
pop    %rax
ret

LLVM IR (-O0):
define void @swritefile(i8* %0, i32* %1, i32* %2, float* %3, i32* %4, i32* %5) {
%7 = alloca i8*
%8 = alloca i32*
%9 = alloca i32*
%10 = alloca float*
%11 = alloca i32*
%12 = alloca i32*
%13 = alloca i32
%14 = alloca i32
store i8* %0, i8** %7
store i32* %1, i32** %8
store i32* %2, i32** %9
store float* %3, float** %10
store i32* %4, i32** %11
store i32* %5, i32** %12
%15 = load i32*, i32** %8
%16 = load i32, i32* %15
%17 = mul nsw i32 %16, 4
store i32 %17, i32* %13
%18 = load i32*, i32** %11
%19 = load i32, i32* %18
%20 = mul nsw i32 %19, 4
store i32 %20, i32* %14
%21 = load i8*, i8** %7
%22 = load i32*, i32** %9
%23 = load float*, float** %10
%24 = bitcast float* %23 to i8*
%25 = load i32*, i32** %12
%26 = call i32 @writefile(i8* %21, i32* %13, i32* %22, i8* %24, i32* %14, i32* %25)
ret void
}

LLVM IR (-O2):
define void @swritefile(i8* %0, i32* nocapture %1, i32* %2, float* %3, i32* nocapture %4, i32* %5) {
%7 = alloca i32
%8 = alloca i32
%9 = bitcast i32* %7 to i8*
%10 = load i32, i32* %1
%11 = shl nsw i32 %10, 2
store i32 %11, i32* %7
%12 = bitcast i32* %8 to i8*
%13 = load i32, i32* %4
%14 = shl nsw i32 %13, 2
store i32 %14, i32* %8
%15 = bitcast float* %3 to i8*
%16 = call i32 @writefile(i8* %0, i32* %7, i32* %2, i8* %15, i32* %8, i32* %5)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ cli();
int /*<<< orphan*/ sei();
void updateMotors() {
  cli();
  sei();
}


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

x86 assembly (clang, -O2):
<updateMotors>:
push   %rax
xor    %eax,%eax
call   1040 <cli@plt>
xor    %eax,%eax
pop    %rcx
jmp    1030 <sei@plt>

LLVM IR (-O0):
define void @updateMotors() {
%1 = call i32 (...) @cli()
%2 = call i32 (...) @sei()
ret void
}

LLVM IR (-O2):
define void @updateMotors() {
%1 = tail call i32 (...) @cli()
%2 = tail call i32 (...) @sei()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ MAXPATHLEN;
char *getwd(char *);
int /*<<< orphan*/ u_crash(char *);
char *u_strsave(char *);
char *u_getwd() {
  char *d;
  char curdir[MAXPATHLEN + 2];
  d = getwd(curdir);
  if (!d)
    u_crash("Can't find current directory!");
  return (u_strsave(d));
}


x86 assembly (clang, -O0):
<u_getwd>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    0x2ea9(%rip),%rax
mov    (%rax),%eax
add    $0x2,%eax
mov    %rsp,%rcx
mov    %rcx,-0x10(%rbp)
mov    %rax,%rcx
add    $0xf,%rcx
and    $0xfffffffffffffff0,%rcx
mov    %rsp,%rdi
sub    %rcx,%rdi
mov    %rdi,%rsp
mov    %rax,-0x18(%rbp)
call   1040 <getwd@plt>
mov    %rax,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
jne    1183 <u_getwd+0x53>
lea    0xe82(%rip),%rdi
call   1050 <u_crash@plt>
mov    -0x8(%rbp),%rdi
call   1030 <u_strsave@plt>
mov    -0x10(%rbp),%rcx
mov    %rcx,%rsp
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<u_getwd>:
push   %rbp
mov    %rsp,%rbp
push   %rbx
push   %rax
mov    0x2eab(%rip),%rax
mov    (%rax),%eax
add    $0x2,%eax
mov    %rsp,%rdi
add    $0xf,%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rdi
mov    %rdi,%rsp
call   1040 <getwd@plt>
mov    %rax,%rbx
test   %rax,%rax
jne    116c <u_getwd+0x3c>
lea    0xe99(%rip),%rdi
call   1050 <u_crash@plt>
mov    %rbx,%rdi
call   1030 <u_strsave@plt>
lea    -0x8(%rbp),%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@MAXPATHLEN = global i32 0
@.str = [30 x i8] c"Can't find current directory!\00"
define i8* @u_getwd() {
%1 = alloca i8*
%2 = alloca i8*
%3 = alloca i64
%4 = load i32, i32* @MAXPATHLEN
%5 = add nsw i32 %4, 2
%6 = zext i32 %5 to i64
%7 = call i8* @llvm.stacksave()
store i8* %7, i8** %2
%8 = alloca i8, i64 %6
store i64 %6, i64* %3
%9 = call i8* @getwd(i8* %8)
store i8* %9, i8** %1
%10 = load i8*, i8** %1
%11 = icmp ne i8* %10, null
br i1 %11, label %14, label %12
12: ; preds = %0
%13 = call i32 @u_crash(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0))
br label %14
14: ; preds = %12, %0
%15 = load i8*, i8** %1
%16 = call i8* @u_strsave(i8* %15)
%17 = load i8*, i8** %2
ret i8* %16
}

LLVM IR (-O2):
@MAXPATHLEN = global i32 0
@.str = [30 x i8] c"Can't find current directory!\00"
define i8* @u_getwd() {
%1 = load i32, i32* @MAXPATHLEN
%2 = add nsw i32 %1, 2
%3 = zext i32 %2 to i64
%4 = alloca i8, i64 %3
%5 = call i8* @getwd(i8* %4)
%6 = icmp eq i8* %5, null
br i1 %6, label %7, label %9
7: ; preds = %0
%8 = call i32 @u_crash(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0))
br label %9
9: ; preds = %7, %0
%10 = call i8* @u_strsave(i8* %5)
ret i8* %10
}