#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*/ readfile(char *, char *, char *);
int /*<<< orphan*/ scanf(char *, char *);
int main() {
  char operation[3];
  char path1[101];
  char path2[101];
  scanf("%s", operation);
  scanf("%s", path1);
  scanf("%s", path2);
  readfile(operation, path1, path2);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xe0,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x7(%rbp),%rsi
lea    0xec3(%rip),%rdi
call   1030 <scanf@plt>
lea    -0x70(%rbp),%rsi
lea    0xeb3(%rip),%rdi
call   1030 <scanf@plt>
lea    -0xe0(%rbp),%rsi
lea    0xea0(%rip),%rdi
call   1030 <scanf@plt>
lea    -0x7(%rbp),%rdi
lea    -0x70(%rbp),%rsi
lea    -0xe0(%rbp),%rdx
call   1040 <readfile@plt>
xor    %eax,%eax
add    $0xe0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0xe8,%rsp
lea    0xecb(%rip),%rbx
lea    0xd(%rsp),%r14
mov    %rbx,%rdi
mov    %r14,%rsi
call   1030 <scanf@plt>
lea    0x80(%rsp),%r15
mov    %rbx,%rdi
mov    %r15,%rsi
call   1030 <scanf@plt>
lea    0x10(%rsp),%r12
mov    %rbx,%rdi
mov    %r12,%rsi
call   1030 <scanf@plt>
mov    %r14,%rdi
mov    %r15,%rsi
mov    %r12,%rdx
call   1040 <readfile@plt>
xor    %eax,%eax
add    $0xe8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%s\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [3 x i8]
%3 = alloca [101 x i8]
%4 = alloca [101 x i8]
store i32 0, i32* %1
%5 = getelementptr inbounds [3 x i8], [3 x i8]* %2, i64 0, i64 0
%6 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %5)
%7 = getelementptr inbounds [101 x i8], [101 x i8]* %3, i64 0, i64 0
%8 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %7)
%9 = getelementptr inbounds [101 x i8], [101 x i8]* %4, i64 0, i64 0
%10 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %9)
%11 = getelementptr inbounds [3 x i8], [3 x i8]* %2, i64 0, i64 0
%12 = getelementptr inbounds [101 x i8], [101 x i8]* %3, i64 0, i64 0
%13 = getelementptr inbounds [101 x i8], [101 x i8]* %4, i64 0, i64 0
%14 = call i32 @readfile(i8* %11, i8* %12, i8* %13)
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%s\00"
define i32 @main() {
%1 = alloca [3 x i8]
%2 = alloca [101 x i8]
%3 = alloca [101 x i8]
%4 = getelementptr inbounds [3 x i8], [3 x i8]* %1, i64 0, i64 0
%5 = getelementptr inbounds [101 x i8], [101 x i8]* %2, i64 0, i64 0
%6 = getelementptr inbounds [101 x i8], [101 x i8]* %3, i64 0, i64 0
%7 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %4)
%8 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %5)
%9 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %6)
%10 = call i32 @readfile(i8* %4, i8* %5, i8* %6)
ret i32 0
}