#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 *calloc(int, int);
int /*<<< orphan*/ error(char *);
int /*<<< orphan*/ strcat(char *, char *);
char *blank_line() {
  int i;
  char *string;
  if (NULL == (string = (calloc(62, sizeof(char))))) {
    error("print_info(): Out of memory !");
  }
  strcat(string, "*");
  for (i = 0; i != 58; ++i) {
    strcat(string, " ");
  }
  strcat(string, "*\n");
  return string;
}


x86 assembly (clang, -O0):
<blank_line>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x3e,%edi
mov    $0x1,%esi
call   1030 <calloc@plt>
mov    %rax,%rcx
mov    %rcx,-0x10(%rbp)
xor    %eax,%eax
cmp    %rcx,%rax
jne    1165 <blank_line+0x35>
lea    0xea0(%rip),%rdi
call   1040 <error@plt>
mov    -0x10(%rbp),%rdi
lea    0xeae(%rip),%rsi
call   1050 <strcat@plt>
movl   $0x0,-0x4(%rbp)
cmpl   $0x3a,-0x4(%rbp)
je     11a4 <blank_line+0x74>
mov    -0x10(%rbp),%rdi
lea    0xe8f(%rip),%rsi
call   1050 <strcat@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    117c <blank_line+0x4c>
mov    -0x10(%rbp),%rdi
lea    0xe73(%rip),%rsi
call   1050 <strcat@plt>
mov    -0x10(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<blank_line>:
push   %rbp
push   %r14
push   %rbx
mov    $0x3e,%edi
mov    $0x1,%esi
call   1030 <calloc@plt>
mov    %rax,%rbx
test   %rax,%rax
jne    1157 <blank_line+0x27>
lea    0xeae(%rip),%rdi
call   1040 <error@plt>
lea    0xec0(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcat@plt>
mov    $0x3a,%ebp
lea    0xeae(%rip),%r14
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %rbx,%rdi
mov    %r14,%rsi
call   1050 <strcat@plt>
add    $0xffffffff,%ebp
jne    1180 <blank_line+0x50>
lea    0xe8b(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcat@plt>
mov    %rbx,%rax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [30 x i8] c"print_info(): Out of memory !\00"
@.str.1 = [2 x i8] c"*\00"
@.str.2 = [2 x i8] c" \00"
@.str.3 = [3 x i8] c"*\0A\00"
define i8* @blank_line() {
%1 = alloca i32
%2 = alloca i8*
%3 = call i8* @calloc(i32 62, i32 1)
store i8* %3, i8** %2
%4 = icmp eq i8* null, %3
br i1 %4, label %5, label %7
5: ; preds = %0
%6 = call i32 @error(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0))
br label %7
7: ; preds = %5, %0
%8 = load i8*, i8** %2
%9 = call i32 @strcat(i8* %8, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32 0, i32* %1
br label %10
10: ; preds = %16, %7
%11 = load i32, i32* %1
%12 = icmp ne i32 %11, 58
br i1 %12, label %13, label %19
13: ; preds = %10
%14 = load i8*, i8** %2
%15 = call i32 @strcat(i8* %14, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %16
16: ; preds = %13
%17 = load i32, i32* %1
%18 = add nsw i32 %17, 1
store i32 %18, i32* %1
br label %10
19: ; preds = %10
%20 = load i8*, i8** %2
%21 = call i32 @strcat(i8* %20, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%22 = load i8*, i8** %2
ret i8* %22
}

LLVM IR (-O2):
@.str = [30 x i8] c"print_info(): Out of memory !\00"
@.str.1 = [2 x i8] c"*\00"
@.str.2 = [2 x i8] c" \00"
@.str.3 = [3 x i8] c"*\0A\00"
define i8* @blank_line() {
%1 = tail call dereferenceable_or_null(62) i8* @calloc(i32 62, i32 1)
%2 = icmp eq i8* %1, null
br i1 %2, label %3, label %5
3: ; preds = %0
%4 = tail call i32 @error(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0))
br label %5
5: ; preds = %3, %0
%6 = tail call i32 @strcat(i8* %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %7
7: ; preds = %5, %7
%8 = phi i32 [ 0, %5 ], [ %10, %7 ]
%9 = tail call i32 @strcat(i8* %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%10 = add nuw nsw i32 %8, 1
%11 = icmp eq i32 %10, 58
br i1 %11, label %12, label %7
12: ; preds = %7
%13 = tail call i32 @strcat(i8* %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
ret i8* %1
}