#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 *, ...);
void putico() {
  int i;
  char *a[] = {
      "=====================================================================",
      "|| GGGGGGGGGG  TTTTTTTTTTT       SSSSSS  OOOOOOO  FFFFFF  TTTTTTTT ||",
      "|| GG               TT           SS      OO   OO  FF         TT    ||",
      "|| GG               TT           SS      OO   OO  FF         TT    ||",
      "|| GG               TT  =======  SSSSSS  OO   OO  FF         TT    ||",
      "|| GG               TT               SS  OO   OO  FFFFFF     TT    ||",
      "|| GG     GGGGG     TT               SS  OO   OO  FF         TT    ||",
      "|| GG      GG       TT               SS  OO   OO  FF         TT    ||",
      "|| GGGGGGGGGG       TT           SSSSSS  OOOOOOO  FF         TT    ||",
      "====================================================================="};
  printf("\n\n\n\n\n\n");
  for (i = 0; i < 10; i++)
    printf("     %s\n", a[i]);
}


x86 assembly (clang, -O0):
<putico>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
lea    -0x60(%rbp),%rdi
lea    0x2c9d(%rip),%rsi
mov    $0x50,%edx
call   1040 <memcpy@plt>
lea    0x10ec(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
cmpl   $0xa,-0x4(%rbp)
jge    1181 <putico+0x61>
movslq -0x4(%rbp),%rax
mov    -0x60(%rbp,%rax,8),%rsi
lea    0x10cb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1152 <putico+0x32>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<putico>:
push   %r15
push   %r14
push   %rbx
lea    0x110d(%rip),%rdi
call   1030 <puts@plt>
lea    0x10f8(%rip),%rbx
lea    0xec1(%rip),%r14
mov    %rbx,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xef3(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf28(%rip),%r15
mov    %rbx,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf4d(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf82(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xfb7(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xfec(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x1021(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %r15
jmp    1040 <printf@plt>

LLVM IR (-O0):
@.str = [70 x i8] c"=====================================================================\00"
@.str.1 = [70 x i8] c"|| GGGGGGGGGG TTTTTTTTTTT SSSSSS OOOOOOO FFFFFF TTTTTTTT ||\00"
@.str.2 = [70 x i8] c"|| GG TT SS OO OO FF TT ||\00"
@.str.3 = [70 x i8] c"|| GG TT ======= SSSSSS OO OO FF TT ||\00"
@.str.4 = [70 x i8] c"|| GG TT SS OO OO FFFFFF TT ||\00"
@.str.5 = [70 x i8] c"|| GG GGGGG TT SS OO OO FF TT ||\00"
@.str.6 = [70 x i8] c"|| GG GG TT SS OO OO FF TT ||\00"
@.str.7 = [70 x i8] c"|| GGGGGGGGGG TT SSSSSS OOOOOOO FF TT ||\00"
@__const.putico.a = [10 x i8*] [i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str, i32 0, i32 0)]
@.str.8 = [7 x i8] c"\0A\0A\0A\0A\0A\0A\00"
@.str.9 = [9 x i8] c" %s\0A\00"
define void @putico() {
%1 = alloca i32
%2 = alloca [10 x i8*]
%3 = bitcast [10 x i8*]* %2 to i8*
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0))
store i32 0, i32* %1
br label %5
5: ; preds = %14, %0
%6 = load i32, i32* %1
%7 = icmp slt i32 %6, 10
br i1 %7, label %8, label %17
8: ; preds = %5
%9 = load i32, i32* %1
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds [10 x i8*], [10 x i8*]* %2, i64 0, i64 %10
%12 = load i8*, i8** %11
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0), i8* %12)
br label %14
14: ; preds = %8
%15 = load i32, i32* %1
%16 = add nsw i32 %15, 1
store i32 %16, i32* %1
br label %5
17: ; preds = %5
ret void
}

LLVM IR (-O2):
@.str = [70 x i8] c"=====================================================================\00"
@.str.1 = [70 x i8] c"|| GGGGGGGGGG TTTTTTTTTTT SSSSSS OOOOOOO FFFFFF TTTTTTTT ||\00"
@.str.2 = [70 x i8] c"|| GG TT SS OO OO FF TT ||\00"
@.str.3 = [70 x i8] c"|| GG TT ======= SSSSSS OO OO FF TT ||\00"
@.str.4 = [70 x i8] c"|| GG TT SS OO OO FFFFFF TT ||\00"
@.str.5 = [70 x i8] c"|| GG GGGGG TT SS OO OO FF TT ||\00"
@.str.6 = [70 x i8] c"|| GG GG TT SS OO OO FF TT ||\00"
@.str.7 = [70 x i8] c"|| GGGGGGGGGG TT SSSSSS OOOOOOO FF TT ||\00"
@.str.9 = [9 x i8] c" %s\0A\00"
@str = [6 x i8] c"\0A\0A\0A\0A\0A\00"
define void @putico() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.2, i64 0, i64 0))
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.2, i64 0, i64 0))
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.3, i64 0, i64 0))
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.4, i64 0, i64 0))
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.5, i64 0, i64 0))
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.6, i64 0, i64 0))
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.7, i64 0, i64 0))
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str, i64 0, i64 0))
ret void
}