#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*/ printf(char *, char, char, char, char, char);
int /*<<< orphan*/ putchar(char);
int main() {
  char c1 = 'C', c2 = 'h', c3 = 'i', c4 = 'n', c5 = 'a';
  c1 += 4;
  c2 += 4;
  c3 += 4;
  c4 += 4;
  c5 += 4;
  putchar(c1);
  putchar(c2);
  putchar(c3);
  putchar(c4);
  putchar(c5);
  putchar('\n');
  printf("%c%c%c%c%c\n", c1, c2, c3, c4, c5);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movb   $0x43,-0x5(%rbp)
movb   $0x68,-0x6(%rbp)
movb   $0x69,-0x7(%rbp)
movb   $0x6e,-0x8(%rbp)
movb   $0x61,-0x9(%rbp)
movsbl -0x5(%rbp),%eax
add    $0x4,%eax
mov    %al,-0x5(%rbp)
movsbl -0x6(%rbp),%eax
add    $0x4,%eax
mov    %al,-0x6(%rbp)
movsbl -0x7(%rbp),%eax
add    $0x4,%eax
mov    %al,-0x7(%rbp)
movsbl -0x8(%rbp),%eax
add    $0x4,%eax
mov    %al,-0x8(%rbp)
movsbl -0x9(%rbp),%eax
add    $0x4,%eax
mov    %al,-0x9(%rbp)
movsbl -0x5(%rbp),%edi
call   1030 <putchar@plt>
movsbl -0x6(%rbp),%edi
call   1030 <putchar@plt>
movsbl -0x7(%rbp),%edi
call   1030 <putchar@plt>
movsbl -0x8(%rbp),%edi
call   1030 <putchar@plt>
movsbl -0x9(%rbp),%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    -0x5(%rbp),%sil
mov    -0x6(%rbp),%dl
mov    -0x7(%rbp),%cl
mov    -0x8(%rbp),%al
lea    0xe40(%rip),%rdi
movsbl %sil,%esi
movsbl %dl,%edx
movsbl %cl,%ecx
movsbl %al,%r8d
movsbl -0x9(%rbp),%r9d
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x47,%edi
call   1030 <putchar@plt>
mov    $0x6c,%edi
call   1030 <putchar@plt>
mov    $0x6d,%edi
call   1030 <putchar@plt>
mov    $0x72,%edi
call   1030 <putchar@plt>
mov    $0x65,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xe9c(%rip),%rdi
mov    $0x47,%esi
mov    $0x6c,%edx
mov    $0x6d,%ecx
mov    $0x72,%r8d
mov    $0x65,%r9d
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [12 x i8] c"%c%c%c%c%c\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8
%3 = alloca i8
%4 = alloca i8
%5 = alloca i8
%6 = alloca i8
store i32 0, i32* %1
store i8 67, i8* %2
store i8 104, i8* %3
store i8 105, i8* %4
store i8 110, i8* %5
store i8 97, i8* %6
%7 = load i8, i8* %2
%8 = sext i8 %7 to i32
%9 = add nsw i32 %8, 4
%10 = trunc i32 %9 to i8
store i8 %10, i8* %2
%11 = load i8, i8* %3
%12 = sext i8 %11 to i32
%13 = add nsw i32 %12, 4
%14 = trunc i32 %13 to i8
store i8 %14, i8* %3
%15 = load i8, i8* %4
%16 = sext i8 %15 to i32
%17 = add nsw i32 %16, 4
%18 = trunc i32 %17 to i8
store i8 %18, i8* %4
%19 = load i8, i8* %5
%20 = sext i8 %19 to i32
%21 = add nsw i32 %20, 4
%22 = trunc i32 %21 to i8
store i8 %22, i8* %5
%23 = load i8, i8* %6
%24 = sext i8 %23 to i32
%25 = add nsw i32 %24, 4
%26 = trunc i32 %25 to i8
store i8 %26, i8* %6
%27 = load i8, i8* %2
%28 = call i32 @putchar(i8 signext %27)
%29 = load i8, i8* %3
%30 = call i32 @putchar(i8 signext %29)
%31 = load i8, i8* %4
%32 = call i32 @putchar(i8 signext %31)
%33 = load i8, i8* %5
%34 = call i32 @putchar(i8 signext %33)
%35 = load i8, i8* %6
%36 = call i32 @putchar(i8 signext %35)
%37 = call i32 @putchar(i8 signext 10)
%38 = load i8, i8* %2
%39 = load i8, i8* %3
%40 = load i8, i8* %4
%41 = load i8, i8* %5
%42 = load i8, i8* %6
%43 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8 signext %38, i8 signext %39, i8 signext %40, i8 signext %41, i8 signext %42)
ret i32 0
}

LLVM IR (-O2):
@.str = [12 x i8] c"%c%c%c%c%c\0A\00"
define i32 @main() {
%1 = tail call i32 @putchar(i8 signext 71)
%2 = tail call i32 @putchar(i8 signext 108)
%3 = tail call i32 @putchar(i8 signext 109)
%4 = tail call i32 @putchar(i8 signext 114)
%5 = tail call i32 @putchar(i8 signext 101)
%6 = tail call i32 @putchar(i8 signext 10)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8 signext 71, i8 signext 108, i8 signext 109, i8 signext 114, i8 signext 101)
ret i32 0
}