#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 */
char *cpyStr(char *, char *, char);
void parseFirstLine(char line[], char s1[], char s2[], char s3[], char s4[],
                    char s5[]) {
  int ind;
  char *linePtr = (char *)line;
  linePtr = cpyStr(linePtr, s1, '<');
  linePtr = cpyStr(linePtr + 1, s2, '>');
  linePtr = cpyStr(linePtr + 1, s3, '<');
  linePtr = cpyStr(linePtr + 1, s4, '>');
  cpyStr(linePtr + 1, s5, '\0');
}


x86 assembly (clang, -O0):
<parseFirstLine>:
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    -0x8(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    $0x3c,%edx
call   1030 <cpyStr@plt>
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rdi
add    $0x1,%rdi
mov    -0x18(%rbp),%rsi
mov    $0x3e,%edx
call   1030 <cpyStr@plt>
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rdi
add    $0x1,%rdi
mov    -0x20(%rbp),%rsi
mov    $0x3c,%edx
call   1030 <cpyStr@plt>
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rdi
add    $0x1,%rdi
mov    -0x28(%rbp),%rsi
mov    $0x3e,%edx
call   1030 <cpyStr@plt>
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rdi
add    $0x1,%rdi
mov    -0x30(%rbp),%rsi
xor    %edx,%edx
call   1030 <cpyStr@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<parseFirstLine>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
mov    %r9,%r14
mov    %r8,%r15
mov    %rcx,%r12
mov    %rdx,%rbx
mov    $0x3c,%edx
call   1030 <cpyStr@plt>
lea    0x1(%rax),%rdi
mov    %rbx,%rsi
mov    $0x3e,%edx
call   1030 <cpyStr@plt>
lea    0x1(%rax),%rdi
mov    %r12,%rsi
mov    $0x3c,%edx
call   1030 <cpyStr@plt>
lea    0x1(%rax),%rdi
mov    %r15,%rsi
mov    $0x3e,%edx
call   1030 <cpyStr@plt>
lea    0x1(%rax),%rdi
mov    %r14,%rsi
xor    %edx,%edx
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
jmp    1030 <cpyStr@plt>

LLVM IR (-O0):
define void @parseFirstLine(i8* %0, i8* %1, i8* %2, i8* %3, i8* %4, i8* %5) {
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca i32
%14 = alloca i8*
store i8* %0, i8** %7
store i8* %1, i8** %8
store i8* %2, i8** %9
store i8* %3, i8** %10
store i8* %4, i8** %11
store i8* %5, i8** %12
%15 = load i8*, i8** %7
store i8* %15, i8** %14
%16 = load i8*, i8** %14
%17 = load i8*, i8** %8
%18 = call i8* @cpyStr(i8* %16, i8* %17, i8 signext 60)
store i8* %18, i8** %14
%19 = load i8*, i8** %14
%20 = getelementptr inbounds i8, i8* %19, i64 1
%21 = load i8*, i8** %9
%22 = call i8* @cpyStr(i8* %20, i8* %21, i8 signext 62)
store i8* %22, i8** %14
%23 = load i8*, i8** %14
%24 = getelementptr inbounds i8, i8* %23, i64 1
%25 = load i8*, i8** %10
%26 = call i8* @cpyStr(i8* %24, i8* %25, i8 signext 60)
store i8* %26, i8** %14
%27 = load i8*, i8** %14
%28 = getelementptr inbounds i8, i8* %27, i64 1
%29 = load i8*, i8** %11
%30 = call i8* @cpyStr(i8* %28, i8* %29, i8 signext 62)
store i8* %30, i8** %14
%31 = load i8*, i8** %14
%32 = getelementptr inbounds i8, i8* %31, i64 1
%33 = load i8*, i8** %12
%34 = call i8* @cpyStr(i8* %32, i8* %33, i8 signext 0)
ret void
}

LLVM IR (-O2):
define void @parseFirstLine(i8* %0, i8* %1, i8* %2, i8* %3, i8* %4, i8* %5) {
%7 = tail call i8* @cpyStr(i8* %0, i8* %1, i8 signext 60)
%8 = getelementptr inbounds i8, i8* %7, i64 1
%9 = tail call i8* @cpyStr(i8* %8, i8* %2, i8 signext 62)
%10 = getelementptr inbounds i8, i8* %9, i64 1
%11 = tail call i8* @cpyStr(i8* %10, i8* %3, i8 signext 60)
%12 = getelementptr inbounds i8, i8* %11, i64 1
%13 = tail call i8* @cpyStr(i8* %12, i8* %4, i8 signext 62)
%14 = getelementptr inbounds i8, i8* %13, i64 1
%15 = tail call i8* @cpyStr(i8* %14, i8* %5, i8 signext 0)
ret void
}