#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*/ snprintf(char *, int, char *, char *, char *);
int /*<<< orphan*/ system(char *);
void prepare_data() {
  char cmd[1024];
  snprintf(cmd, 1024, "cp %s %s", "lrc_basic.lrc", "/tmp/");
  system(cmd);
  snprintf(cmd, 1024, "cp %s %s", "lrc_gbk.lrc", "/tmp/");
  system(cmd);
}


x86 assembly (clang, -O0):
<prepare_data>:
push   %rbp
mov    %rsp,%rbp
sub    $0x400,%rsp
lea    -0x400(%rbp),%rdi
mov    $0x400,%esi
lea    0xec2(%rip),%rdx
lea    0xec4(%rip),%rcx
lea    0xecb(%rip),%r8
call   1040 <snprintf@plt>
lea    -0x400(%rbp),%rdi
call   1030 <system@plt>
lea    -0x400(%rbp),%rdi
mov    $0x400,%esi
lea    0xe90(%rip),%rdx
lea    0xea6(%rip),%rcx
lea    0xe99(%rip),%r8
call   1040 <snprintf@plt>
lea    -0x400(%rbp),%rdi
call   1030 <system@plt>
add    $0x400,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<prepare_data>:
push   %r15
push   %r14
push   %rbx
sub    $0x400,%rsp
lea    0xecd(%rip),%r15
lea    0xecf(%rip),%rcx
lea    0xed6(%rip),%r14
mov    %rsp,%rbx
mov    %rbx,%rdi
mov    $0x400,%esi
mov    %r15,%rdx
mov    %r14,%r8
call   1040 <snprintf@plt>
mov    %rbx,%rdi
call   1030 <system@plt>
lea    0xeb7(%rip),%rcx
mov    %rbx,%rdi
mov    $0x400,%esi
mov    %r15,%rdx
mov    %r14,%r8
call   1040 <snprintf@plt>
mov    %rbx,%rdi
call   1030 <system@plt>
add    $0x400,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [9 x i8] c"cp %s %s\00"
@.str.1 = [14 x i8] c"lrc_basic.lrc\00"
@.str.2 = [6 x i8] c"/tmp/\00"
@.str.3 = [12 x i8] c"lrc_gbk.lrc\00"
define void @prepare_data() {
%1 = alloca [1024 x i8]
%2 = getelementptr inbounds [1024 x i8], [1024 x i8]* %1, i64 0, i64 0
%3 = call i32 @snprintf(i8* %2, i32 1024, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%4 = getelementptr inbounds [1024 x i8], [1024 x i8]* %1, i64 0, i64 0
%5 = call i32 @system(i8* %4)
%6 = getelementptr inbounds [1024 x i8], [1024 x i8]* %1, i64 0, i64 0
%7 = call i32 @snprintf(i8* %6, i32 1024, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%8 = getelementptr inbounds [1024 x i8], [1024 x i8]* %1, i64 0, i64 0
%9 = call i32 @system(i8* %8)
ret void
}

LLVM IR (-O2):
@.str = [9 x i8] c"cp %s %s\00"
@.str.1 = [14 x i8] c"lrc_basic.lrc\00"
@.str.2 = [6 x i8] c"/tmp/\00"
@.str.3 = [12 x i8] c"lrc_gbk.lrc\00"
define void @prepare_data() {
%1 = alloca [1024 x i8]
%2 = getelementptr inbounds [1024 x i8], [1024 x i8]* %1, i64 0, i64 0
%3 = call i32 @snprintf(i8* %2, i32 1024, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @system(i8* %2)
%5 = call i32 @snprintf(i8* %2, i32 1024, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%6 = call i32 @system(i8* %2)
ret void
}