#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*/ dt(char *, char *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ system(char *);
void printheader() {
  char dat[16], tim[16];
  system("clear");
  dt(dat, tim);
  printf("#####################################"
         "#####################################################################"
         "######################################\n");
  printf("\x1b[35m"
         "\t%s\t\t\t\t\t\t\t\t\t\t\t\t\t\t%s"
         "\x1b[0m",
         dat, tim);
  printf("\x1b[31m"
         "\n\t\t\t\t\t\t\t\tSAHYADRI "
         "HOSPITAL\t\t\t\n\t\t\t\t\t\t\t\t#################"
         "\n\t\t\t\t\t\t\t\tSHIVAJINAGAR, Pune.\n"
         "\x1b[0m");
  printf("\n###############################################"
         "#####################################################################"
         "############################\n\n");
}


x86 assembly (clang, -O0):
<printheader>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
lea    0xec1(%rip),%rdi
call   1030 <system@plt>
lea    -0x10(%rbp),%rdi
lea    -0x20(%rbp),%rsi
call   1050 <dt@plt>
lea    0xeae(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x10(%rbp),%rsi
lea    -0x20(%rbp),%rdx
lea    0xf2a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf39(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf89(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printheader>:
push   %r14
push   %rbx
sub    $0x28,%rsp
lea    0xeb2(%rip),%rdi
call   1040 <system@plt>
lea    0x10(%rsp),%rbx
mov    %rsp,%r14
mov    %rbx,%rdi
mov    %r14,%rsi
call   1060 <dt@plt>
lea    0xf14(%rip),%rdi
call   1030 <puts@plt>
lea    0xe8d(%rip),%rdi
mov    %rbx,%rsi
mov    %r14,%rdx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe96(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xf77(%rip),%rdi
call   1030 <puts@plt>
add    $0x28,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [6 x i8] c"clear\00"
@.str.1 = [146 x i8] c"################################################################################################################################################\0A\00"
@.str.2 = [29 x i8] c"\1B[35m\09%s\09\09\09\09\09\09\09\09\09\09\09\09\09\09%s\1B[0m\00"
@.str.3 = [94 x i8] c"\1B[31m\0A\09\09\09\09\09\09\09\09SAHYADRI HOSPITAL\09\09\09\0A\09\09\09\09\09\09\09\09#################\0A\09\09\09\09\09\09\09\09SHIVAJINAGAR, Pune.\0A\1B[0m\00"
@.str.4 = [148 x i8] c"\0A################################################################################################################################################\0A\0A\00"
define void @printheader() {
%1 = alloca [16 x i8]
%2 = alloca [16 x i8]
%3 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%4 = getelementptr inbounds [16 x i8], [16 x i8]* %1, i64 0, i64 0
%5 = getelementptr inbounds [16 x i8], [16 x i8]* %2, i64 0, i64 0
%6 = call i32 @dt(i8* %4, i8* %5)
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([146 x i8], [146 x i8]* @.str.1, i64 0, i64 0))
%8 = getelementptr inbounds [16 x i8], [16 x i8]* %1, i64 0, i64 0
%9 = getelementptr inbounds [16 x i8], [16 x i8]* %2, i64 0, i64 0
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), i8* %8, i8* %9)
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([94 x i8], [94 x i8]* @.str.3, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([148 x i8], [148 x i8]* @.str.4, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"clear\00"
@.str.2 = [29 x i8] c"\1B[35m\09%s\09\09\09\09\09\09\09\09\09\09\09\09\09\09%s\1B[0m\00"
@.str.3 = [94 x i8] c"\1B[31m\0A\09\09\09\09\09\09\09\09SAHYADRI HOSPITAL\09\09\09\0A\09\09\09\09\09\09\09\09#################\0A\09\09\09\09\09\09\09\09SHIVAJINAGAR, Pune.\0A\1B[0m\00"
@str = [145 x i8] c"################################################################################################################################################\00"
@str.5 = [147 x i8] c"\0A################################################################################################################################################\0A\00"
define void @printheader() {
%1 = alloca [16 x i8]
%2 = alloca [16 x i8]
%3 = getelementptr inbounds [16 x i8], [16 x i8]* %1, i64 0, i64 0
%4 = getelementptr inbounds [16 x i8], [16 x i8]* %2, i64 0, i64 0
%5 = tail call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%6 = call i32 @dt(i8* %3, i8* %4)
%7 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([145 x i8], [145 x i8]* @str, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), i8* %3, i8* %4)
%9 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([94 x i8], [94 x i8]* @.str.3, i64 0, i64 0))
%10 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([147 x i8], [147 x i8]* @str.5, i64 0, i64 0))
ret void
}