#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ abort();
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ first(char *, char *, int, int);
int /*<<< orphan*/ second(char *, char *, int, int);
scalar_t__ strcmp(char *, char *);
main() {
  char buf1[100], buf2[100];
  first(buf1, "i i ", 5, 20);
  second(buf2, "i i ", 5, 20);
  if (strcmp("5 20 ", buf1) || strcmp("5 20 ", buf2))
    abort();
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xe0,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x70(%rbp),%rdi
lea    0xe93(%rip),%rsi
mov    $0x5,%edx
mov    $0x14,%ecx
call   1070 <first@plt>
lea    -0xe0(%rbp),%rdi
lea    0xe76(%rip),%rsi
mov    $0x5,%edx
mov    $0x14,%ecx
call   1050 <second@plt>
lea    -0x70(%rbp),%rsi
lea    0xe61(%rip),%rdi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    11d0 <main+0x80>
lea    -0xe0(%rbp),%rsi
lea    0xe44(%rip),%rdi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
je     11d7 <main+0x87>
mov    $0x0,%al
call   1030 <abort@plt>
xor    %edi,%edi
call   1060 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0xd8,%rsp
lea    0xe9f(%rip),%rbx
lea    0x70(%rsp),%r14
mov    %r14,%rdi
mov    %rbx,%rsi
mov    $0x5,%edx
mov    $0x14,%ecx
call   1070 <first@plt>
mov    %rsp,%rdi
mov    %rbx,%rsi
mov    $0x5,%edx
mov    $0x14,%ecx
call   1050 <second@plt>
lea    0xe6e(%rip),%rdi
mov    %r14,%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
jne    11bf <main+0x6f>
lea    0xe5a(%rip),%rdi
mov    %rsp,%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
jne    11bf <main+0x6f>
xor    %edi,%edi
call   1060 <exit@plt>
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
@.str = [5 x i8] c"i i \00"
@.str.1 = [6 x i8] c"5 20 \00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [100 x i8]
%3 = alloca [100 x i8]
store i32 0, i32* %1
%4 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 0
%5 = call i32 @first(i8* %4, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 5, i32 20)
%6 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%7 = call i32 @second(i8* %6, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 5, i32 20)
%8 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 0
%9 = call i64 @strcmp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %8)
%10 = icmp ne i64 %9, 0
br i1 %10, label %15, label %11
11: ; preds = %0
%12 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%13 = call i64 @strcmp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %12)
%14 = icmp ne i64 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %11, %0
%16 = call i32 (...) @abort()
unreachable
17: ; preds = %11
%18 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@.str = [5 x i8] c"i i \00"
@.str.1 = [6 x i8] c"5 20 \00"
define i32 @main() {
%1 = alloca [100 x i8]
%2 = alloca [100 x i8]
%3 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 0
%4 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 0
%5 = call i32 @first(i8* %3, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 5, i32 20)
%6 = call i32 @second(i8* %4, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 5, i32 20)
%7 = call i64 @strcmp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %3)
%8 = icmp eq i64 %7, 0
br i1 %8, label %9, label %12
9: ; preds = %0
%10 = call i64 @strcmp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %4)
%11 = icmp eq i64 %10, 0
br i1 %11, label %14, label %12
12: ; preds = %9, %0
%13 = call i32 (...) @abort()
unreachable
14: ; preds = %9
%15 = call i32 @exit(i32 0)
unreachable
}