#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 html_string(char *, char *);
int html_href_url(char *url, char *methods, char *rel, char *rev, char *target,
                  char *title) {
  return html_string("<A HREF=\"%s\"", url) +
         html_string(" METHODS=\"%s\"", methods) +
         html_string(" REL=\"%s\"", rel) + html_string(" REV=\"%s\"", rev) +
         html_string(" TARGET=\"%s\"", target) +
         html_string(" TITLE=\"%s\"", title) + html_string("%s", ">");
}


x86 assembly (clang, -O0):
<html_href_url>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%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),%rsi
lea    0xec5(%rip),%rdi
call   1030 <html_string@plt>
mov    %eax,-0x48(%rbp)
mov    -0x10(%rbp),%rsi
lea    0xebf(%rip),%rdi
call   1030 <html_string@plt>
mov    %eax,%ecx
mov    -0x48(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0x44(%rbp)
mov    -0x18(%rbp),%rsi
lea    0xeb3(%rip),%rdi
call   1030 <html_string@plt>
mov    %eax,%ecx
mov    -0x44(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0x40(%rbp)
mov    -0x20(%rbp),%rsi
lea    0xea3(%rip),%rdi
call   1030 <html_string@plt>
mov    %eax,%ecx
mov    -0x40(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0x3c(%rbp)
mov    -0x28(%rbp),%rsi
lea    0xe93(%rip),%rdi
call   1030 <html_string@plt>
mov    %eax,%ecx
mov    -0x3c(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0x38(%rbp)
mov    -0x30(%rbp),%rsi
lea    0xe86(%rip),%rdi
call   1030 <html_string@plt>
mov    %eax,%ecx
mov    -0x38(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0x34(%rbp)
lea    0xe7c(%rip),%rdi
lea    0xe78(%rip),%rsi
call   1030 <html_string@plt>
mov    %eax,%ecx
mov    -0x34(%rbp),%eax
add    %ecx,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<html_href_url>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %r9,%r14
mov    %r8,%r15
mov    %rcx,%r12
mov    %rdx,%r13
mov    %rsi,%rbx
mov    %rdi,%rsi
lea    0xecc(%rip),%rdi
call   1030 <html_string@plt>
mov    %eax,%ebp
lea    0xecb(%rip),%rdi
mov    %rbx,%rsi
call   1030 <html_string@plt>
mov    %eax,%ebx
add    %ebp,%ebx
lea    0xec6(%rip),%rdi
mov    %r13,%rsi
call   1030 <html_string@plt>
mov    %eax,%ebp
add    %ebx,%ebp
lea    0xebd(%rip),%rdi
mov    %r12,%rsi
call   1030 <html_string@plt>
mov    %eax,%ebx
add    %ebp,%ebx
lea    0xeb4(%rip),%rdi
mov    %r15,%rsi
call   1030 <html_string@plt>
mov    %eax,%ebp
add    %ebx,%ebp
lea    0xeae(%rip),%rdi
mov    %r14,%rsi
call   1030 <html_string@plt>
mov    %eax,%ebx
add    %ebp,%ebx
lea    0xea7(%rip),%rdi
lea    0xea3(%rip),%rsi
call   1030 <html_string@plt>
add    %ebx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [13 x i8] c"<A HREF=\22%s\22\00"
@.str.1 = [14 x i8] c" METHODS=\22%s\22\00"
@.str.2 = [10 x i8] c" REL=\22%s\22\00"
@.str.3 = [10 x i8] c" REV=\22%s\22\00"
@.str.4 = [13 x i8] c" TARGET=\22%s\22\00"
@.str.5 = [12 x i8] c" TITLE=\22%s\22\00"
@.str.6 = [3 x i8] c"%s\00"
@.str.7 = [2 x i8] c">\00"
define i32 @html_href_url(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*
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
%13 = load i8*, i8** %7
%14 = call i32 @html_string(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* %13)
%15 = load i8*, i8** %8
%16 = call i32 @html_string(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i8* %15)
%17 = add nsw i32 %14, %16
%18 = load i8*, i8** %9
%19 = call i32 @html_string(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* %18)
%20 = add nsw i32 %17, %19
%21 = load i8*, i8** %10
%22 = call i32 @html_string(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i8* %21)
%23 = add nsw i32 %20, %22
%24 = load i8*, i8** %11
%25 = call i32 @html_string(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), i8* %24)
%26 = add nsw i32 %23, %25
%27 = load i8*, i8** %12
%28 = call i32 @html_string(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i8* %27)
%29 = add nsw i32 %26, %28
%30 = call i32 @html_string(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%31 = add nsw i32 %29, %30
ret i32 %31
}

LLVM IR (-O2):
@.str = [13 x i8] c"<A HREF=\22%s\22\00"
@.str.1 = [14 x i8] c" METHODS=\22%s\22\00"
@.str.2 = [10 x i8] c" REL=\22%s\22\00"
@.str.3 = [10 x i8] c" REV=\22%s\22\00"
@.str.4 = [13 x i8] c" TARGET=\22%s\22\00"
@.str.5 = [12 x i8] c" TITLE=\22%s\22\00"
@.str.6 = [3 x i8] c"%s\00"
@.str.7 = [2 x i8] c">\00"
define i32 @html_href_url(i8* %0, i8* %1, i8* %2, i8* %3, i8* %4, i8* %5) {
%7 = tail call i32 @html_string(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* %0)
%8 = tail call i32 @html_string(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i8* %1)
%9 = add nsw i32 %8, %7
%10 = tail call i32 @html_string(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* %2)
%11 = add nsw i32 %9, %10
%12 = tail call i32 @html_string(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i8* %3)
%13 = add nsw i32 %11, %12
%14 = tail call i32 @html_string(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), i8* %4)
%15 = add nsw i32 %13, %14
%16 = tail call i32 @html_string(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i8* %5)
%17 = add nsw i32 %15, %16
%18 = tail call i32 @html_string(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%19 = add nsw i32 %17, %18
ret i32 %19
}