int main(void) {
  const char *string1 = "abcdefghijklmnopqrstuvwxyz";
  const char *string2 = "four";
  const char *string3 = "Boston";
  printf("%s\"%s\"%s%lu\n%s\"%s\"%s%lu\n%s\"%s\"%s%lu\n", "The length of ",
         string1, " is ", (unsigned long)strlen(string1), "The length of ",
         string2, " is ", (unsigned long)strlen(string2), "The length of ",
         string3, " is ", (unsigned long)strlen(string3));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %rbx
sub    $0x78,%rsp
movl   $0x0,-0x1c(%rbp)
lea    0xec5(%rip),%rax
mov    %rax,-0x28(%rbp)
lea    0xed5(%rip),%rax
mov    %rax,-0x30(%rbp)
lea    0xecf(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    -0x28(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x28(%rbp),%rdi
call   1030 <strlen@plt>
mov    %rax,-0x48(%rbp)
mov    -0x30(%rbp),%r15
mov    -0x30(%rbp),%rdi
call   1030 <strlen@plt>
mov    %rax,%r14
mov    -0x38(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x38(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0x50(%rbp),%rdx
mov    -0x48(%rbp),%r8
mov    -0x40(%rbp),%r11
lea    0xe89(%rip),%rdi
lea    0xea7(%rip),%rbx
lea    0xeaf(%rip),%r10
mov    %rbx,%rsi
mov    %r10,%rcx
mov    %rbx,%r9
mov    %r15,(%rsp)
mov    %r10,0x8(%rsp)
mov    %r14,0x10(%rsp)
mov    %rbx,0x18(%rsp)
mov    %r11,0x20(%rsp)
mov    %r10,0x28(%rsp)
mov    %rax,0x30(%rsp)
mov    $0x0,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x78,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
sub    $0x8,%rsp
lea    0xf3f(%rip),%rcx
lea    0xefd(%rip),%r10
lea    0xf22(%rip),%rsi
lea    0xeea(%rip),%r11
lea    0xeef(%rip),%rdi
lea    0xec1(%rip),%rdx
mov    $0x1a,%r8d
mov    %rsi,%r9
xor    %eax,%eax
push   $0x6
push   %rcx
push   %r10
push   %rsi
push   $0x4
push   %rcx
push   %r11
call   1030 <printf@plt>
add    $0x40,%rsp
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [27 x i8] c"abcdefghijklmnopqrstuvwxyz\00"
@.str.1 = [5 x i8] c"four\00"
@.str.2 = [7 x i8] c"Boston\00"
@.str.3 = [37 x i8] c"%s\22%s\22%s%lu\0A%s\22%s\22%s%lu\0A%s\22%s\22%s%lu\0A\00"
@.str.4 = [15 x i8] c"The length of \00"
@.str.5 = [5 x i8] c" is \00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca i8*
store i32 0, i32* %1
store i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i8** %2
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8** %3
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i8** %4
%5 = load i8*, i8** %2
%6 = load i8*, i8** %2
%7 = call i64 @strlen(i8* %6)
%8 = load i8*, i8** %3
%9 = load i8*, i8** %3
%10 = call i64 @strlen(i8* %9)
%11 = load i8*, i8** %4
%12 = load i8*, i8** %4
%13 = call i64 @strlen(i8* %12)
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i8* %5, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i64 %7, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i8* %8, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i64 %10, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i8* %11, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i64 %13)
ret i32 0
}

LLVM IR (-O2):
@.str = [27 x i8] c"abcdefghijklmnopqrstuvwxyz\00"
@.str.1 = [5 x i8] c"four\00"
@.str.2 = [7 x i8] c"Boston\00"
@.str.3 = [37 x i8] c"%s\22%s\22%s%lu\0A%s\22%s\22%s%lu\0A%s\22%s\22%s%lu\0A\00"
@.str.4 = [15 x i8] c"The length of \00"
@.str.5 = [5 x i8] c" is \00"
define i32 @main() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i64 26, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i64 4, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i64 6)
ret i32 0
}