xunge/DecIR huggingface dataset:
void __DELETE_java_lang_Throwable(void *me, void *client_data) {}


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

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

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

LLVM IR (-O2):
define void @__DELETE_java_lang_Throwable(i8* nocapture %0, i8* nocapture %1) {
ret void
}
/* Variables and functions */
int drand(double);
int irand(double seed, int size) { return (int)(drand(seed) * size); }


x86 assembly (clang, -O0):
<irand>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movsd  %xmm0,-0x8(%rbp)
mov    %edi,-0xc(%rbp)
movsd  -0x8(%rbp),%xmm0
call   1030 <drand@plt>
imul   -0xc(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<irand>:
push   %rbx
mov    %edi,%ebx
call   1030 <drand@plt>
imul   %ebx,%eax
pop    %rbx
ret

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

LLVM IR (-O2):
define i32 @irand(double %0, i32 %1) {
%3 = tail call i32 @drand(double %0)
%4 = mul nsw i32 %3, %1
ret i32 %4
}
/* Variables and functions */
char *strdup(char *const);
void utarray_str_cpy(void *dst, const void *src) {
  char *const *_src = (char *const *)src, **_dst = (char **)dst;
  *_dst = (*_src == NULL) ? NULL : strdup(*_src);
}


x86 assembly (clang, -O0):
<utarray_str_cpy>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x18(%rbp),%rax
cmpq   $0x0,(%rax)
jne    1149 <utarray_str_cpy+0x39>
xor    %eax,%eax
mov    %rax,-0x28(%rbp)
jmp    1159 <utarray_str_cpy+0x49>
mov    -0x18(%rbp),%rax
mov    (%rax),%rdi
call   1030 <strdup@plt>
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rcx
mov    -0x20(%rbp),%rax
mov    %rcx,(%rax)
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<utarray_str_cpy>:
push   %rbx
mov    %rdi,%rbx
mov    (%rsi),%rdi
test   %rdi,%rdi
je     1123 <utarray_str_cpy+0x13>
call   1030 <strdup@plt>
jmp    1125 <utarray_str_cpy+0x15>
xor    %eax,%eax
mov    %rax,(%rbx)
pop    %rbx
ret

LLVM IR (-O0):
define void @utarray_str_cpy(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i8**
%6 = alloca i8**
store i8* %0, i8** %3
store i8* %1, i8** %4
%7 = load i8*, i8** %4
%8 = bitcast i8* %7 to i8**
store i8** %8, i8*** %5
%9 = load i8*, i8** %3
%10 = bitcast i8* %9 to i8**
store i8** %10, i8*** %6
%11 = load i8**, i8*** %5
%12 = load i8*, i8** %11
%13 = icmp eq i8* %12, null
br i1 %13, label %14, label %15
14: ; preds = %2
br label %19
15: ; preds = %2
%16 = load i8**, i8*** %5
%17 = load i8*, i8** %16
%18 = call i8* @strdup(i8* %17)
br label %19
19: ; preds = %15, %14
%20 = phi i8* [ null, %14 ], [ %18, %15 ]
%21 = load i8**, i8*** %6
store i8* %20, i8** %21
ret void
}

LLVM IR (-O2):
define void @utarray_str_cpy(i8* nocapture writeonly %0, i8* nocapture %1) {
%3 = bitcast i8* %1 to i8**
%4 = load i8*, i8** %3
%5 = icmp eq i8* %4, null
br i1 %5, label %8, label %6
6: ; preds = %2
%7 = tail call i8* @strdup(i8* %4)
br label %8
8: ; preds = %2, %6
%9 = phi i8* [ %7, %6 ], [ null, %2 ]
%10 = bitcast i8* %0 to i8**
store i8* %9, i8** %10
ret void
}
/* Variables and functions */
int /*<<< orphan*/ Crypting();
int /*<<< orphan*/ scanf(char *, char *);
int main() {
  char choice;
  do {
    scanf("%c", &choice);
    if (choice == 'd' || choice == 'c') {
      Crypting();
    }
  } while (choice != 'q');
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x5(%rbp),%rsi
call   1040 <scanf@plt>
movsbl -0x5(%rbp),%eax
cmp    $0x64,%eax
je     1159 <main+0x39>
movsbl -0x5(%rbp),%eax
cmp    $0x63,%eax
jne    1160 <main+0x40>
mov    $0x0,%al
call   1030 <Crypting@plt>
jmp    1165 <main+0x45>
movsbl -0x5(%rbp),%eax
cmp    $0x71,%eax
jne    112f <main+0xf>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
lea    0xed5(%rip),%r14
lea    0x7(%rsp),%rbx
jmp    1144 <main+0x24>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
cmp    $0x71,%al
je     116a <main+0x4a>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1040 <scanf@plt>
movzbl 0x7(%rsp),%eax
lea    -0x63(%rax),%ecx
cmp    $0x1,%cl
ja     1140 <main+0x20>
xor    %eax,%eax
call   1030 <Crypting@plt>
movzbl 0x7(%rsp),%eax
jmp    1140 <main+0x20>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%c\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8
store i32 0, i32* %1
br label %3
3: ; preds = %15, %0
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %2)
%5 = load i8, i8* %2
%6 = sext i8 %5 to i32
%7 = icmp eq i32 %6, 100
br i1 %7, label %12, label %8
8: ; preds = %3
%9 = load i8, i8* %2
%10 = sext i8 %9 to i32
%11 = icmp eq i32 %10, 99
br i1 %11, label %12, label %14
12: ; preds = %8, %3
%13 = call i32 (...) @Crypting()
br label %14
14: ; preds = %12, %8
br label %15
15: ; preds = %14
%16 = load i8, i8* %2
%17 = sext i8 %16 to i32
%18 = icmp ne i32 %17, 113
br i1 %18, label %3, label %19
19: ; preds = %15
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%c\00"
define i32 @main() {
%1 = alloca i8
br label %2
2: ; preds = %10, %0
%3 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %1)
%4 = load i8, i8* %1
%5 = add i8 %4, -99
%6 = icmp ult i8 %5, 2
br i1 %6, label %7, label %10
7: ; preds = %2
%8 = call i32 (...) @Crypting()
%9 = load i8, i8* %1
br label %10
10: ; preds = %7, %2
%11 = phi i8 [ %9, %7 ], [ %4, %2 ]
%12 = icmp eq i8 %11, 113
br i1 %12, label %13, label %2
13: ; preds = %10
ret i32 0
}
void glUniform1i(void) { return; }


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

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

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

LLVM IR (-O2):
define void @glUniform1i() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ sprintf(char *, char *, char *);
void closeWithError(char *error) {
  char errMsj[1024];
  sprintf(errMsj,
          "\x1B[31m"
          "%s"
          "\033[0m",
          error);
  perror(errMsj);
  exit(1);
}


x86 assembly (clang, -O0):
<closeWithError>:
push   %rbp
mov    %rsp,%rbp
sub    $0x410,%rsp
mov    %rdi,-0x8(%rbp)
lea    -0x410(%rbp),%rdi
mov    -0x8(%rbp),%rdx
lea    0xeaf(%rip),%rsi
call   1040 <sprintf@plt>
lea    -0x410(%rbp),%rdi
call   1030 <perror@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<closeWithError>:
push   %rbx
sub    $0x400,%rsp
mov    %rdi,%rdx
lea    0xebe(%rip),%rsi
mov    %rsp,%rbx
mov    %rbx,%rdi
call   1040 <sprintf@plt>
mov    %rbx,%rdi
call   1030 <perror@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [12 x i8] c"\1B[31m%s\1B[0m\00"
define void @closeWithError(i8* %0) {
%2 = alloca i8*
%3 = alloca [1024 x i8]
store i8* %0, i8** %2
%4 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 0
%5 = load i8*, i8** %2
%6 = call i32 @sprintf(i8* %4, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* %5)
%7 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 0
%8 = call i32 @perror(i8* %7)
%9 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@.str = [12 x i8] c"\1B[31m%s\1B[0m\00"
define void @closeWithError(i8* %0) {
%2 = alloca [1024 x i8]
%3 = getelementptr inbounds [1024 x i8], [1024 x i8]* %2, i64 0, i64 0
%4 = call i32 @sprintf(i8* %3, i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* %0)
%5 = call i32 @perror(i8* %3)
%6 = tail call i32 @exit(i32 1)
unreachable
}
/* Variables and functions */
int _ada_use_c2phc(int, int *, int *, double *);
int dobldobl_collapse_diagonal(int k, int d) {
  int a[2], *b, fail;
  double *c;
  a[0] = k;
  a[1] = d;
  fail = _ada_use_c2phc(299, a, b, c);
  return fail;
}


x86 assembly (clang, -O0):
<dobldobl_collapse_diagonal>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
lea    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x28(%rbp),%rcx
mov    $0x12b,%edi
call   1030 <_ada_use_c2phc@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dobldobl_collapse_diagonal>:
push   %rax
mov    %edi,(%rsp)
mov    %esi,0x4(%rsp)
mov    %rsp,%rsi
mov    $0x12b,%edi
call   1030 <_ada_use_c2phc@plt>
pop    %rcx
ret

LLVM IR (-O0):
define i32 @dobldobl_collapse_diagonal(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca [2 x i32]
%6 = alloca i32*
%7 = alloca i32
%8 = alloca double*
store i32 %0, i32* %3
store i32 %1, i32* %4
%9 = load i32, i32* %3
%10 = getelementptr inbounds [2 x i32], [2 x i32]* %5, i64 0, i64 0
store i32 %9, i32* %10
%11 = load i32, i32* %4
%12 = getelementptr inbounds [2 x i32], [2 x i32]* %5, i64 0, i64 1
store i32 %11, i32* %12
%13 = getelementptr inbounds [2 x i32], [2 x i32]* %5, i64 0, i64 0
%14 = load i32*, i32** %6
%15 = load double*, double** %8
%16 = call i32 @_ada_use_c2phc(i32 299, i32* %13, i32* %14, double* %15)
store i32 %16, i32* %7
%17 = load i32, i32* %7
ret i32 %17
}

LLVM IR (-O2):
define i32 @dobldobl_collapse_diagonal(i32 %0, i32 %1) {
%3 = alloca [2 x i32]
%4 = bitcast [2 x i32]* %3 to i8*
%5 = getelementptr inbounds [2 x i32], [2 x i32]* %3, i64 0, i64 0
store i32 %0, i32* %5
%6 = getelementptr inbounds [2 x i32], [2 x i32]* %3, i64 0, i64 1
store i32 %1, i32* %6
%7 = call i32 @_ada_use_c2phc(i32 299, i32* %5, i32* undef, double* undef)
ret i32 %7
}
void event_endmusicline(endchar) char endchar;
{}


x86 assembly (clang, -O0):
<event_endmusicline>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x1(%rbp)
pop    %rbp
ret

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

LLVM IR (-O0):
define void @event_endmusicline(i32 %0) {
%2 = alloca i8
%3 = trunc i32 %0 to i8
store i8 %3, i8* %2
ret void
}

LLVM IR (-O2):
define void @event_endmusicline(i32 %0) {
ret void
}
/* Variables and functions */
scalar_t__ do_send(int, char *, char const *);
int irc_nick(int fd, const char *nick) {
  if (do_send(fd, "NICK %s", nick))
    return -1;
  return 0;
}


x86 assembly (clang, -O0):
<irc_nick>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rdx
lea    0xed3(%rip),%rsi
call   1030 <do_send@plt>
cmp    $0x0,%rax
je     1148 <irc_nick+0x38>
movl   $0xffffffff,-0x4(%rbp)
jmp    114f <irc_nick+0x3f>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<irc_nick>:
push   %rax
mov    %rsi,%rdx
lea    0xee5(%rip),%rsi
call   1030 <do_send@plt>
neg    %rax
sbb    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@.str = [8 x i8] c"NICK %s\00"
define i32 @irc_nick(i32 %0, i8* %1) {
%3 = tail call i64 @do_send(i32 %0, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* %1)
%4 = icmp ne i64 %3, 0
%5 = sext i1 %4 to i32
ret i32 %5
}
void av_cpu_count() {}


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

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

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

LLVM IR (-O2):
define void @av_cpu_count() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ SCVAL(char *, int, char);
int /*<<< orphan*/ _smb_setlen(char *, int);
void smb_setlen(char *buf, int len) {
  _smb_setlen(buf, len);
  SCVAL(buf, 4, 0xFF);
  SCVAL(buf, 5, 'S');
  SCVAL(buf, 6, 'M');
  SCVAL(buf, 7, 'B');
}


x86 assembly (clang, -O0):
<smb_setlen>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
call   1040 <_smb_setlen@plt>
mov    -0x8(%rbp),%rdi
mov    $0x4,%esi
mov    $0xffffffff,%edx
call   1030 <SCVAL@plt>
mov    -0x8(%rbp),%rdi
mov    $0x5,%esi
mov    $0x53,%edx
call   1030 <SCVAL@plt>
mov    -0x8(%rbp),%rdi
mov    $0x6,%esi
mov    $0x4d,%edx
call   1030 <SCVAL@plt>
mov    -0x8(%rbp),%rdi
mov    $0x7,%esi
mov    $0x42,%edx
call   1030 <SCVAL@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<smb_setlen>:
push   %rbx
mov    %rdi,%rbx
call   1040 <_smb_setlen@plt>
mov    %rbx,%rdi
mov    $0x4,%esi
mov    $0xffffffff,%edx
call   1030 <SCVAL@plt>
mov    %rbx,%rdi
mov    $0x5,%esi
mov    $0x53,%edx
call   1030 <SCVAL@plt>
mov    %rbx,%rdi
mov    $0x6,%esi
mov    $0x4d,%edx
call   1030 <SCVAL@plt>
mov    %rbx,%rdi
mov    $0x7,%esi
mov    $0x42,%edx
pop    %rbx
jmp    1030 <SCVAL@plt>

LLVM IR (-O0):
define void @smb_setlen(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%5 = load i8*, i8** %3
%6 = load i32, i32* %4
%7 = call i32 @_smb_setlen(i8* %5, i32 %6)
%8 = load i8*, i8** %3
%9 = call i32 @SCVAL(i8* %8, i32 4, i8 signext -1)
%10 = load i8*, i8** %3
%11 = call i32 @SCVAL(i8* %10, i32 5, i8 signext 83)
%12 = load i8*, i8** %3
%13 = call i32 @SCVAL(i8* %12, i32 6, i8 signext 77)
%14 = load i8*, i8** %3
%15 = call i32 @SCVAL(i8* %14, i32 7, i8 signext 66)
ret void
}

LLVM IR (-O2):
define void @smb_setlen(i8* %0, i32 %1) {
%3 = tail call i32 @_smb_setlen(i8* %0, i32 %1)
%4 = tail call i32 @SCVAL(i8* %0, i32 4, i8 signext -1)
%5 = tail call i32 @SCVAL(i8* %0, i32 5, i8 signext 83)
%6 = tail call i32 @SCVAL(i8* %0, i32 6, i8 signext 77)
%7 = tail call i32 @SCVAL(i8* %0, i32 7, i8 signext 66)
ret void
}
void writeb(unsigned char value, unsigned int address) {
  *((volatile unsigned char *)address) = value;
}


x86 assembly (clang, -O0):
<writeb>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x1(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x1(%rbp),%cl
mov    -0x8(%rbp),%eax
mov    %cl,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<writeb>:
mov    %esi,%eax
mov    %dil,(%rax)
ret

LLVM IR (-O0):
define void @writeb(i8 zeroext %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 = zext i32 %6 to i64
%8 = inttoptr i64 %7 to i8*
store volatile i8 %5, i8* %8
ret void
}

LLVM IR (-O2):
define void @writeb(i8 zeroext %0, i32 %1) {
%3 = zext i32 %1 to i64
%4 = inttoptr i64 %3 to i8*
store volatile i8 %0, i8* %4
ret void
}
/* Variables and functions */
int des_crypt(unsigned char const *, unsigned char *, int);
int des_decrypt(const unsigned char message[8], unsigned char output[8]) {
  return des_crypt(message, output, 1);
}


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

x86 assembly (clang, -O2):
<des_decrypt>:
mov    $0x1,%edx
jmp    1030 <des_crypt@plt>

LLVM IR (-O0):
define i32 @des_decrypt(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 @des_crypt(i8* %5, i8* %6, i32 1)
ret i32 %7
}

LLVM IR (-O2):
define i32 @des_decrypt(i8* %0, i8* %1) {
%3 = tail call i32 @des_crypt(i8* %0, i8* %1, i32 1)
ret i32 %3
}
indreg0adrreg1(r0, r1, x0, x1, p0, p1) short r0, r1;
short *p0, *p1;
{
  if ((*p0) <= (p1[1111111 / 4]))
    return 1;
  else
    return 0;
}


x86 assembly (clang, -O0):
<indreg0adrreg1>:
push   %rbp
mov    %rsp,%rbp
mov    %esi,%eax
mov    %di,%si
mov    %si,-0x6(%rbp)
mov    %ax,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    %r8,-0x18(%rbp)
mov    %r9,-0x20(%rbp)
mov    -0x18(%rbp),%rax
movswl (%rax),%eax
mov    -0x20(%rbp),%rcx
movswl 0x87a22(%rcx),%ecx
cmp    %ecx,%eax
jg     1145 <indreg0adrreg1+0x45>
movl   $0x1,-0x4(%rbp)
jmp    114c <indreg0adrreg1+0x4c>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<indreg0adrreg1>:
movzwl (%r8),%ecx
xor    %eax,%eax
cmp    0x87a22(%r9),%cx
setle  %al
ret

LLVM IR (-O0):
define i32 @indreg0adrreg1(i32 %0, i32 %1, i32 %2, i32 %3, i16* %4, i16* %5) {
%7 = alloca i32
%8 = alloca i16
%9 = alloca i16
%10 = alloca i32
%11 = alloca i32
%12 = alloca i16*
%13 = alloca i16*
%14 = trunc i32 %0 to i16
%15 = trunc i32 %1 to i16
store i16 %14, i16* %8
store i16 %15, i16* %9
store i32 %2, i32* %10
store i32 %3, i32* %11
store i16* %4, i16** %12
store i16* %5, i16** %13
%16 = load i16*, i16** %12
%17 = load i16, i16* %16
%18 = sext i16 %17 to i32
%19 = load i16*, i16** %13
%20 = getelementptr inbounds i16, i16* %19, i64 277777
%21 = load i16, i16* %20
%22 = sext i16 %21 to i32
%23 = icmp sle i32 %18, %22
br i1 %23, label %24, label %25
24: ; preds = %6
store i32 1, i32* %7
br label %26
25: ; preds = %6
store i32 0, i32* %7
br label %26
26: ; preds = %25, %24
%27 = load i32, i32* %7
ret i32 %27
}

LLVM IR (-O2):
define i32 @indreg0adrreg1(i32 %0, i32 %1, i32 %2, i32 %3, i16* nocapture %4, i16* nocapture %5) {
%7 = load i16, i16* %4
%8 = getelementptr inbounds i16, i16* %5, i64 277777
%9 = load i16, i16* %8
%10 = icmp sle i16 %7, %9
%11 = zext i1 %10 to i32
ret i32 %11
}
/* Variables and functions */
int strcmp(char *, char *);
void strcmp_diff_length_3() {
  char *x = "123";
  char *y = "12345";
  if (strcmp(x, y) != -1)
    (void)*(char *)0;
}


x86 assembly (clang, -O0):
<strcmp_diff_length_3>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xee1(%rip),%rax
mov    %rax,-0x8(%rbp)
lea    0xeda(%rip),%rax
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1030 <strcmp@plt>
cmp    $0xffffffff,%eax
je     1144 <strcmp_diff_length_3+0x34>
add    $0x10,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
define void @strcmp_diff_length_3() {
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ uint16_t;
struct mg_connection {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ mg_send_mqtt_short_command(struct mg_connection *, int,
                                              int /*<<< orphan*/);
void mg_mqtt_puback(struct mg_connection *nc, uint16_t message_id) {
  mg_send_mqtt_short_command(nc, 4, message_id);
}


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

x86 assembly (clang, -O2):
<mg_mqtt_puback>:
mov    %esi,%edx
mov    $0x4,%esi
jmp    1030 <mg_send_mqtt_short_command@plt>

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

LLVM IR (-O2):
%struct.mg_connection = type { i32 }
define void @mg_mqtt_puback(%struct.mg_connection* %0, i32 %1) {
%3 = tail call i32 @mg_send_mqtt_short_command(%struct.mg_connection* %0, i32 4, i32 %1)
ret void
}
/* Variables and functions */
int floorf(double);
scalar_t__ pow(double, int);
double bias_and_round(double val, double frac, int precision) {
  int factor = (int)pow(10.0, precision);
  double ret = val * frac;
  return floorf(ret * factor + 0.5) / factor;
}


x86 assembly (clang, -O0):
<bias_and_round>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
mov    %edi,-0x14(%rbp)
mov    -0x14(%rbp),%edi
movsd  0xec8(%rip),%xmm0
call   1040 <pow@plt>
mov    %eax,-0x18(%rbp)
movsd  -0x8(%rbp),%xmm0
mulsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
cvtsi2sdl -0x18(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xe93(%rip),%xmm1
addsd  %xmm1,%xmm0
call   1030 <floorf@plt>
cltd
idivl  -0x18(%rbp)
cvtsi2sd %eax,%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<bias_and_round>:
push   %rbx
sub    $0x10,%rsp
movsd  %xmm1,0x8(%rsp)
movsd  %xmm0,(%rsp)
movsd  0xec8(%rip),%xmm0
call   1040 <pow@plt>
mov    %rax,%rbx
xorps  %xmm0,%xmm0
cvtsi2sd %ebx,%xmm0
movsd  (%rsp),%xmm1
mulsd  0x8(%rsp),%xmm1
mulsd  %xmm1,%xmm0
addsd  0xeaa(%rip),%xmm0
call   1030 <floorf@plt>
cltd
idiv   %ebx
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define double @bias_and_round(double %0, double %1, i32 %2) {
%4 = alloca double
%5 = alloca double
%6 = alloca i32
%7 = alloca i32
%8 = alloca double
store double %0, double* %4
store double %1, double* %5
store i32 %2, i32* %6
%9 = load i32, i32* %6
%10 = call i64 @pow(double 1.000000e+01, i32 %9)
%11 = trunc i64 %10 to i32
store i32 %11, i32* %7
%12 = load double, double* %4
%13 = load double, double* %5
%14 = fmul double %12, %13
store double %14, double* %8
%15 = load double, double* %8
%16 = load i32, i32* %7
%17 = sitofp i32 %16 to double
%18 = call double @llvm.fmuladd.f64(double %15, double %17, double 5.000000e-01)
%19 = call i32 @floorf(double %18)
%20 = load i32, i32* %7
%21 = sdiv i32 %19, %20
%22 = sitofp i32 %21 to double
ret double %22
}

LLVM IR (-O2):
define double @bias_and_round(double %0, double %1, i32 %2) {
%4 = tail call i64 @pow(double 1.000000e+01, i32 %2)
%5 = trunc i64 %4 to i32
%6 = fmul double %0, %1
%7 = sitofp i32 %5 to double
%8 = tail call double @llvm.fmuladd.f64(double %6, double %7, double 5.000000e-01)
%9 = tail call i32 @floorf(double %8)
%10 = sdiv i32 %9, %5
%11 = sitofp i32 %10 to double
ret double %11
}
/* Variables and functions */
int /*<<< orphan*/ bwlzh_compress_gen(unsigned int *, int const,
                                      unsigned char *, int *, int, int);
void bwlzh_compress_verbose(unsigned int *vals, const int nvals,
                            unsigned char *output, int *output_len) {
  bwlzh_compress_gen(vals, nvals, output, output_len, 1, 1);
}


x86 assembly (clang, -O0):
<bwlzh_compress_verbose>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    $0x1,%r9d
mov    %r9d,%r8d
call   1030 <bwlzh_compress_gen@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<bwlzh_compress_verbose>:
mov    $0x1,%r8d
mov    $0x1,%r9d
jmp    1030 <bwlzh_compress_gen@plt>

LLVM IR (-O0):
define void @bwlzh_compress_verbose(i32* %0, i32 %1, i8* %2, i32* %3) {
%5 = alloca i32*
%6 = alloca i32
%7 = alloca i8*
%8 = alloca i32*
store i32* %0, i32** %5
store i32 %1, i32* %6
store i8* %2, i8** %7
store i32* %3, i32** %8
%9 = load i32*, i32** %5
%10 = load i32, i32* %6
%11 = load i8*, i8** %7
%12 = load i32*, i32** %8
%13 = call i32 @bwlzh_compress_gen(i32* %9, i32 %10, i8* %11, i32* %12, i32 1, i32 1)
ret void
}

LLVM IR (-O2):
define void @bwlzh_compress_verbose(i32* %0, i32 %1, i8* %2, i32* %3) {
%5 = tail call i32 @bwlzh_compress_gen(i32* %0, i32 %1, i8* %2, i32* %3, i32 1, i32 1)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ bar1();
void foobar1() { bar1(); }


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

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

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

LLVM IR (-O2):
define void @foobar1() {
%1 = tail call i32 (...) @bar1()
ret void
}
/* Variables and functions */
scalar_t__ isspace(char);
char *skip(char *line) {
  while (isspace(*line))
    line++;
  return line;
}


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

x86 assembly (clang, -O2):
<skip>:
push   %rbx
mov    %rdi,%rbx
add    $0xffffffffffffffff,%rbx
nopl   0x0(%rax,%rax,1)
movsbl 0x1(%rbx),%edi
add    $0x1,%rbx
call   1030 <isspace@plt>
test   %rax,%rax
jne    1120 <skip+0x10>
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
define i8* @skip(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
br label %3
3: ; preds = %8, %1
%4 = load i8*, i8** %2
%5 = load i8, i8* %4
%6 = call i64 @isspace(i8 signext %5)
%7 = icmp ne i64 %6, 0
br i1 %7, label %8, label %11
8: ; preds = %3
%9 = load i8*, i8** %2
%10 = getelementptr inbounds i8, i8* %9, i32 1
store i8* %10, i8** %2
br label %3
11: ; preds = %3
%12 = load i8*, i8** %2
ret i8* %12
}

LLVM IR (-O2):
define i8* @skip(i8* %0) {
br label %2
2: ; preds = %2, %1
%3 = phi i8* [ %0, %1 ], [ %7, %2 ]
%4 = load i8, i8* %3
%5 = tail call i64 @isspace(i8 signext %4)
%6 = icmp eq i64 %5, 0
%7 = getelementptr inbounds i8, i8* %3, i64 1
br i1 %6, label %8, label %2
8: ; preds = %2
ret i8* %3
}
/* Type definitions */
typedef scalar_t__ int64_t;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
scalar_t__ fseek(int /*<<< orphan*/ *, scalar_t__, int);
int /*<<< orphan*/ stderr;
void checked_seek(FILE *stream, int64_t offset, int whence) {
  offset = fseek(stream, offset, whence);
  if (offset < 0) {
    fprintf(stderr, "seek failed\n");
    exit(1);
  }
}


x86 assembly (clang, -O0):
<checked_seek>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1040 <fseek@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jge    1181 <checked_seek+0x51>
mov    0x2e77(%rip),%rax
mov    (%rax),%edi
lea    0xe8e(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1050 <exit@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<checked_seek>:
push   %rax
call   1040 <fseek@plt>
test   %rax,%rax
js     113d <checked_seek+0xd>
pop    %rax
ret
mov    0x2e9c(%rip),%rax
mov    (%rax),%edi
lea    0xeb3(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [13 x i8] c"seek failed\0A\00"
define void @checked_seek(i32* %0, i64 %1, i32 %2) {
%4 = alloca i32*
%5 = alloca i64
%6 = alloca i32
store i32* %0, i32** %4
store i64 %1, i64* %5
store i32 %2, i32* %6
%7 = load i32*, i32** %4
%8 = load i64, i64* %5
%9 = load i32, i32* %6
%10 = call i64 @fseek(i32* %7, i64 %8, i32 %9)
store i64 %10, i64* %5
%11 = load i64, i64* %5
%12 = icmp slt i64 %11, 0
br i1 %12, label %13, label %17
13: ; preds = %3
%14 = load i32, i32* @stderr
%15 = call i32 @fprintf(i32 %14, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%16 = call i32 @exit(i32 1)
unreachable
17: ; preds = %3
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [13 x i8] c"seek failed\0A\00"
define void @checked_seek(i32* nocapture %0, i64 %1, i32 %2) {
%4 = tail call i64 @fseek(i32* %0, i64 %1, i32 %2)
%5 = icmp slt i64 %4, 0
br i1 %5, label %6, label %10
6: ; preds = %3
%7 = load i32, i32* @stderr
%8 = tail call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%9 = tail call i32 @exit(i32 1)
unreachable
10: ; preds = %3
ret void
}
/* Type definitions */
typedef int uint32_t;

/* Variables and functions */
uint32_t dpc_reg(uint32_t address) { return (address & 0xffff) >> 2; }


x86 assembly (clang, -O0):
<dpc_reg>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
and    $0xffff,%eax
sar    $0x2,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<dpc_reg>:
mov    %edi,%eax
shr    $0x2,%eax
and    $0x3fff,%eax
ret

LLVM IR (-O0):
define i32 @dpc_reg(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = and i32 %3, 65535
%5 = ashr i32 %4, 2
ret i32 %5
}

LLVM IR (-O2):
define i32 @dpc_reg(i32 %0) {
%2 = lshr i32 %0, 2
%3 = and i32 %2, 16383
ret i32 %3
}
/* Variables and functions */
int safe_mem_is_zero(char const *, int);
int tor_digest256_is_zero(const char *digest) {
  return safe_mem_is_zero(digest, 32);
}


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

x86 assembly (clang, -O2):
<tor_digest256_is_zero>:
mov    $0x20,%esi
jmp    1030 <safe_mem_is_zero@plt>

LLVM IR (-O0):
define i32 @tor_digest256_is_zero(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @safe_mem_is_zero(i8* %3, i32 32)
ret i32 %4
}

LLVM IR (-O2):
define i32 @tor_digest256_is_zero(i8* %0) {
%2 = tail call i32 @safe_mem_is_zero(i8* %0, i32 32)
ret i32 %2
}
/* Type definitions */
struct katcl_line {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ append_string_katcl(struct katcl_line *, int, char *);
int issue_request(struct katcl_line *l, char *sensor, int verbose) {
  append_string_katcl(l, 0x01 | 0x10, "?sensor-sampling");
  append_string_katcl(l, 0x10, sensor);
  append_string_katcl(l, 0x10 | 0x02, "event");
  return 0;
}


x86 assembly (clang, -O0):
<issue_request>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0x11,%esi
lea    0xecd(%rip),%rdx
call   1030 <append_string_katcl@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rdx
mov    $0x10,%esi
call   1030 <append_string_katcl@plt>
mov    -0x8(%rbp),%rdi
mov    $0x12,%esi
lea    0xeb7(%rip),%rdx
call   1030 <append_string_katcl@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<issue_request>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
lea    0xedf(%rip),%rdx
mov    $0x11,%esi
call   1030 <append_string_katcl@plt>
mov    %rbx,%rdi
mov    $0x10,%esi
mov    %r14,%rdx
call   1030 <append_string_katcl@plt>
lea    0xecf(%rip),%rdx
mov    %rbx,%rdi
mov    $0x12,%esi
call   1030 <append_string_katcl@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
%struct.katcl_line = type { i32 }
@.str = [17 x i8] c"?sensor-sampling\00"
@.str.1 = [6 x i8] c"event\00"
define i32 @issue_request(%struct.katcl_line* %0, i8* %1, i32 %2) {
%4 = alloca %struct.katcl_line*
%5 = alloca i8*
%6 = alloca i32
store %struct.katcl_line* %0, %struct.katcl_line** %4
store i8* %1, i8** %5
store i32 %2, i32* %6
%7 = load %struct.katcl_line*, %struct.katcl_line** %4
%8 = call i32 @append_string_katcl(%struct.katcl_line* %7, i32 17, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
%9 = load %struct.katcl_line*, %struct.katcl_line** %4
%10 = load i8*, i8** %5
%11 = call i32 @append_string_katcl(%struct.katcl_line* %9, i32 16, i8* %10)
%12 = load %struct.katcl_line*, %struct.katcl_line** %4
%13 = call i32 @append_string_katcl(%struct.katcl_line* %12, i32 18, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
%struct.katcl_line = type { i32 }
@.str = [17 x i8] c"?sensor-sampling\00"
@.str.1 = [6 x i8] c"event\00"
define i32 @issue_request(%struct.katcl_line* %0, i8* %1, i32 %2) {
%4 = tail call i32 @append_string_katcl(%struct.katcl_line* %0, i32 17, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
%5 = tail call i32 @append_string_katcl(%struct.katcl_line* %0, i32 16, i8* %1)
%6 = tail call i32 @append_string_katcl(%struct.katcl_line* %0, i32 18, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ scanf(char *, int *, int *);
main() {
  int a, b;
  scanf("%d%d", &a, &b);
  if (a % b == 0)
    printf("Второе делит первое\n");
  else
    printf("Второе не делит первое\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
call   1040 <scanf@plt>
mov    -0x8(%rbp),%eax
cltd
idivl  -0xc(%rbp)
cmp    $0x0,%edx
jne    1164 <main+0x44>
lea    0xeab(%rip),%rdi
call   1030 <printf@plt>
jmp    1170 <main+0x50>
lea    0xec0(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
lea    0x4(%rsp),%rsi
mov    %rsp,%rdx
call   1040 <scanf@plt>
mov    0x4(%rsp),%eax
cltd
idivl  (%rsp)
test   %edx,%edx
lea    0xee9(%rip),%rax
lea    0xeb8(%rip),%rdi
cmove  %rax,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [5 x i8] c"%d%d\00"
@.str.1 = [38 x i8] c"\D0\92\D1\82\D0\BE\D1\80\D0\BE\D0\B5 \D0\B4\D0\B5\D0\BB\D0\B8\D1\82 \D0\BF\D0\B5\D1\80\D0\B2\D0\BE\D0\B5\0A\00"
@.str.2 = [43 x i8] c"\D0\92\D1\82\D0\BE\D1\80\D0\BE\D0\B5 \D0\BD\D0\B5 \D0\B4\D0\B5\D0\BB\D0\B8\D1\82 \D0\BF\D0\B5\D1\80\D0\B2\D0\BE\D0\B5\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
%4 = call i32 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32* %2, i32* %3)
%5 = load i32, i32* %2
%6 = load i32, i32* %3
%7 = srem i32 %5, %6
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %11
9: ; preds = %0
%10 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0))
br label %13
11: ; preds = %0
%12 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.2, i64 0, i64 0))
br label %13
13: ; preds = %11, %9
ret i32 0
}

LLVM IR (-O2):
@.str = [5 x i8] c"%d%d\00"
@str = [42 x i8] c"\D0\92\D1\82\D0\BE\D1\80\D0\BE\D0\B5 \D0\BD\D0\B5 \D0\B4\D0\B5\D0\BB\D0\B8\D1\82 \D0\BF\D0\B5\D1\80\D0\B2\D0\BE\D0\B5\00"
@str.3 = [37 x i8] c"\D0\92\D1\82\D0\BE\D1\80\D0\BE\D0\B5 \D0\B4\D0\B5\D0\BB\D0\B8\D1\82 \D0\BF\D0\B5\D1\80\D0\B2\D0\BE\D0\B5\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = bitcast i32* %1 to i8*
%4 = bitcast i32* %2 to i8*
%5 = call i32 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2)
%6 = load i32, i32* %1
%7 = load i32, i32* %2
%8 = srem i32 %6, %7
%9 = icmp eq i32 %8, 0
%10 = select i1 %9, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @str.3, i64 0, i64 0), i8* getelementptr inbounds ([42 x i8], [42 x i8]* @str, i64 0, i64 0)
%11 = call i32 @puts(i8* dereferenceable(1) %10)
ret i32 0
}
/* Variables and functions */
scalar_t__ strcmp(void *, void *);
int equals(void *a, void *b) { return strcmp(a, b) == 0; }


x86 assembly (clang, -O0):
<equals>:
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 <strcmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @equals(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 i64 @strcmp(i8* %5, i8* %6)
%8 = icmp eq i64 %7, 0
%9 = zext i1 %8 to i32
ret i32 %9
}

LLVM IR (-O2):
define i32 @equals(i8* %0, i8* %1) {
%3 = tail call i64 @strcmp(i8* %0, i8* %1)
%4 = icmp eq i64 %3, 0
%5 = zext i1 %4 to i32
ret i32 %5
}
float obdConvert_30(unsigned int A, unsigned int B, unsigned int C,
                    unsigned int D) {
  return (float)A;
}


x86 assembly (clang, -O0):
<obdConvert_30>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    -0x4(%rbp),%eax
cvtsi2ss %rax,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<obdConvert_30>:
mov    %edi,%eax
cvtsi2ss %rax,%xmm0
ret

LLVM IR (-O0):
define float @obdConvert_30(i32 %0, i32 %1, i32 %2, i32 %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 %0, i32* %5
store i32 %1, i32* %6
store i32 %2, i32* %7
store i32 %3, i32* %8
%9 = load i32, i32* %5
%10 = uitofp i32 %9 to float
ret float %10
}

LLVM IR (-O2):
define float @obdConvert_30(i32 %0, i32 %1, i32 %2, i32 %3) {
%5 = uitofp i32 %0 to float
ret float %5
}
/* Variables and functions */
scalar_t__ is_a(unsigned char *, int);
scalar_t__ is_g(unsigned char *, int);
scalar_t__ is_t(unsigned char *, int);
int is_atg(unsigned char *seq, int n) {
  if (is_a(seq, n) == 0 || is_t(seq, n + 1) == 0 || is_g(seq, n + 2) == 0)
    return 0;
  return 1;
}


x86 assembly (clang, -O0):
<is_atg>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
call   1040 <is_a@plt>
cmp    $0x0,%rax
je     1187 <is_atg+0x57>
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
add    $0x1,%esi
call   1030 <is_t@plt>
cmp    $0x0,%rax
je     1187 <is_atg+0x57>
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
add    $0x2,%esi
call   1050 <is_g@plt>
cmp    $0x0,%rax
jne    1193 <is_atg+0x63>
movl   $0x0,-0x4(%rbp)
jmp    119a <is_atg+0x6a>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<is_atg>:
push   %rbp
push   %r14
push   %rbx
mov    %esi,%ebx
mov    %rdi,%r14
call   1040 <is_a@plt>
xor    %ebp,%ebp
test   %rax,%rax
je     116b <is_atg+0x3b>
lea    0x1(%rbx),%esi
mov    %r14,%rdi
call   1030 <is_t@plt>
test   %rax,%rax
je     116b <is_atg+0x3b>
add    $0x2,%ebx
mov    %r14,%rdi
mov    %ebx,%esi
call   1050 <is_g@plt>
xor    %ebp,%ebp
test   %rax,%rax
setne  %bpl
mov    %ebp,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

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

LLVM IR (-O2):
define i32 @is_atg(i8* %0, i32 %1) {
%3 = tail call i64 @is_a(i8* %0, i32 %1)
%4 = icmp eq i64 %3, 0
br i1 %4, label %14, label %5
5: ; preds = %2
%6 = add nsw i32 %1, 1
%7 = tail call i64 @is_t(i8* %0, i32 %6)
%8 = icmp eq i64 %7, 0
br i1 %8, label %14, label %9
9: ; preds = %5
%10 = add nsw i32 %1, 2
%11 = tail call i64 @is_g(i8* %0, i32 %10)
%12 = icmp ne i64 %11, 0
%13 = zext i1 %12 to i32
br label %14
14: ; preds = %9, %2, %5
%15 = phi i32 [ 0, %5 ], [ 0, %2 ], [ %13, %9 ]
ret i32 %15
}
int pthread_getspecific() { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @pthread_getspecific() {
ret i32 0
}
void amdgpu_mn_unregister(struct amdgpu_bo *bo) {}


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

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

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

LLVM IR (-O2):
%struct.amdgpu_bo = type opaque
define void @amdgpu_mn_unregister(%struct.amdgpu_bo* nocapture %0) {
ret void
}
void regrid(struct domain *theDomain) {}


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

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

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

LLVM IR (-O2):
%struct.domain = type opaque
define void @regrid(%struct.domain* nocapture %0) {
ret void
}
void DMA1_Stream5_IRQHandler() {}


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

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

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

LLVM IR (-O2):
define void @DMA1_Stream5_IRQHandler() {
ret void
}
/* Type definitions */
struct sockaddr {
  int dummy;
};
typedef int /*<<< orphan*/ socklen_t;

/* Variables and functions */
int /*<<< orphan*/ ENOSYS;
int /*<<< orphan*/ errno;
int bind(int sockfd, const struct sockaddr *addr, socklen_t addrlen) {
  ;
  errno = ENOSYS;
  return -1;
  ;
}


x86 assembly (clang, -O0):
<bind>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    0x2ed3(%rip),%rax
mov    (%rax),%ecx
mov    0x2eba(%rip),%rax
mov    %ecx,(%rax)
mov    $0xffffffff,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<bind>:
mov    0x2ee1(%rip),%rax
mov    (%rax),%eax
mov    0x2ec8(%rip),%rcx
mov    %eax,(%rcx)
mov    $0xffffffff,%eax
ret

LLVM IR (-O0):
%struct.sockaddr = type { i32 }
@ENOSYS = global i32 0
@errno = global i32 0
define i32 @bind(i32 %0, %struct.sockaddr* %1, i32 %2) {
%4 = alloca i32
%5 = alloca %struct.sockaddr*
%6 = alloca i32
store i32 %0, i32* %4
store %struct.sockaddr* %1, %struct.sockaddr** %5
store i32 %2, i32* %6
%7 = load i32, i32* @ENOSYS
store i32 %7, i32* @errno
ret i32 -1
}

LLVM IR (-O2):
%struct.sockaddr = type { i32 }
@ENOSYS = global i32 0
@errno = global i32 0
define i32 @bind(i32 %0, %struct.sockaddr* nocapture readnone %1, i32 %2) {
%4 = load i32, i32* @ENOSYS
store i32 %4, i32* @errno
ret i32 -1
}
/* Variables and functions */
unsigned long __builtin_wasm_tls_align();
long unsigned int tls_align() { return __builtin_wasm_tls_align(); }


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

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

LLVM IR (-O0):
define i64 @tls_align() {
%1 = call i64 (...) @__builtin_wasm_tls_align()
ret i64 %1
}

LLVM IR (-O2):
define i64 @tls_align() {
%1 = tail call i64 (...) @__builtin_wasm_tls_align()
ret i64 %1
}
int div_cmp_1(float x, float y) { return x / 3 <= y; }


x86 assembly (clang, -O0):
<div_cmp_1>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  -0x4(%rbp),%xmm1
movss  0xee5(%rip),%xmm0
divss  %xmm0,%xmm1
movss  -0x8(%rbp),%xmm0
ucomiss %xmm1,%xmm0
setae  %al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<div_cmp_1>:
divss  0xef8(%rip),%xmm0
xor    %eax,%eax
ucomiss %xmm0,%xmm1
setae  %al
ret

LLVM IR (-O0):
define i32 @div_cmp_1(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 = fdiv float %5, 3.000000e+00
%7 = load float, float* %4
%8 = fcmp ole float %6, %7
%9 = zext i1 %8 to i32
ret i32 %9
}

LLVM IR (-O2):
define i32 @div_cmp_1(float %0, float %1) {
%3 = fdiv float %0, 3.000000e+00
%4 = fcmp ole float %3, %1
%5 = zext i1 %4 to i32
ret i32 %5
}
/* Type definitions */
typedef int light_level;

/* Variables and functions */
int /*<<< orphan*/ SendChar(int);
void SetBackLight(unsigned char light_level) {
  SendChar((0XEE) & 0xFF);
  SendChar((0x60) & 0xFF);
  SendChar((light_level)&0xFF);
  SendChar((((0XFFFCFFFF) >> 16) >> 8) & 0xFF);
  SendChar(((0XFFFCFFFF) >> 16) & 0xFF);
  SendChar((((0XFFFCFFFF) & 0xFFFF) >> 8) & 0xFF);
  SendChar(((0XFFFCFFFF) & 0xFFFF) & 0xFF);
}


x86 assembly (clang, -O0):
<SetBackLight>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
mov    $0xee,%edi
call   1030 <SendChar@plt>
mov    $0x60,%edi
call   1030 <SendChar@plt>
movzbl -0x1(%rbp),%edi
and    $0xff,%edi
call   1030 <SendChar@plt>
mov    $0xff,%edi
call   1030 <SendChar@plt>
mov    $0xfc,%edi
call   1030 <SendChar@plt>
mov    $0xff,%edi
call   1030 <SendChar@plt>
mov    $0xff,%edi
call   1030 <SendChar@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<SetBackLight>:
push   %rbx
mov    %edi,%ebx
mov    $0xee,%edi
call   1030 <SendChar@plt>
mov    $0x60,%edi
call   1030 <SendChar@plt>
mov    %ebx,%edi
call   1030 <SendChar@plt>
mov    $0xff,%edi
call   1030 <SendChar@plt>
mov    $0xfc,%edi
call   1030 <SendChar@plt>
mov    $0xff,%edi
call   1030 <SendChar@plt>
mov    $0xff,%edi
pop    %rbx
jmp    1030 <SendChar@plt>

LLVM IR (-O0):
define void @SetBackLight(i8 zeroext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = call i32 @SendChar(i32 238)
%4 = call i32 @SendChar(i32 96)
%5 = load i8, i8* %2
%6 = zext i8 %5 to i32
%7 = and i32 %6, 255
%8 = call i32 @SendChar(i32 %7)
%9 = call i32 @SendChar(i32 255)
%10 = call i32 @SendChar(i32 252)
%11 = call i32 @SendChar(i32 255)
%12 = call i32 @SendChar(i32 255)
ret void
}

LLVM IR (-O2):
define void @SetBackLight(i8 zeroext %0) {
%2 = tail call i32 @SendChar(i32 238)
%3 = tail call i32 @SendChar(i32 96)
%4 = zext i8 %0 to i32
%5 = tail call i32 @SendChar(i32 %4)
%6 = tail call i32 @SendChar(i32 255)
%7 = tail call i32 @SendChar(i32 252)
%8 = tail call i32 @SendChar(i32 255)
%9 = tail call i32 @SendChar(i32 255)
ret void
}