#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 print_logo(void) {
  printf("\to===================================o\n"
         "\t|      open source data logger      |\n"
         "\t|       for the Raspberry PI        |\n"
         "\t|     http://opendatalogger.com     |\n"
         "\to===================================o\n\n");
  do {
    printf("INFO: build with gcc %d.%d.%d at %s.\n"
           "      %s\n",
           9, 4, 0,
           "Mar 18 2022"
           "02:45:57"
           " local time",
           "?");
  } while (0);
}


x86 assembly (clang, -O0):
<print_logo>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf9c(%rip),%rdi
mov    $0x9,%esi
mov    $0x4,%edx
xor    %ecx,%ecx
lea    0xfb8(%rip),%r8
lea    0xfd0(%rip),%r9
mov    $0x0,%al
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_logo>:
push   %rax
lea    0xf28(%rip),%rdi
call   1030 <puts@plt>
lea    0xecc(%rip),%rdi
lea    0xef4(%rip),%r8
lea    0xf0c(%rip),%r9
mov    $0x9,%esi
mov    $0x4,%edx
xor    %ecx,%ecx
xor    %eax,%eax
pop    %r11
jmp    1040 <printf@plt>

LLVM IR (-O0):
@.str = [197 x i8] c"\09o===================================o\0A\09| open source data logger |\0A\09| for the Raspberry PI |\0A\09| http://opendatalogger.com |\0A\09o===================================o\0A\0A\00"
@.str.1 = [47 x i8] c"INFO: build with gcc %d.%d.%d at %s.\0A %s\0A\00"
@.str.2 = [31 x i8] c"Mar 18 202202:45:57 local time\00"
@.str.3 = [2 x i8] c"?\00"
define void @print_logo() {
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([197 x i8], [197 x i8]* @.str, i64 0, i64 0))
br label %2
2: ; preds = %0
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.1, i64 0, i64 0), i32 9, i32 4, i32 0, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
br label %4
4: ; preds = %2
ret void
}

LLVM IR (-O2):
@.str.1 = [47 x i8] c"INFO: build with gcc %d.%d.%d at %s.\0A %s\0A\00"
@.str.2 = [31 x i8] c"Mar 18 202202:45:57 local time\00"
@.str.3 = [2 x i8] c"?\00"
@str = [196 x i8] c"\09o===================================o\0A\09| open source data logger |\0A\09| for the Raspberry PI |\0A\09| http://opendatalogger.com |\0A\09o===================================o\0A\00"
define void @print_logo() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([196 x i8], [196 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str.1, i64 0, i64 0), i32 9, i32 4, i32 0, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
ret void
}