#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 */
typedef int /*<<< orphan*/ time_t;

/* Variables and functions */
int EXIT_SUCCESS;
char *ctime(int /*<<< orphan*/ *);
int /*<<< orphan*/ print_block(char *, int);
int /*<<< orphan*/ printf(char *, char *, char *);
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
int main(int argc, char *argv[]) {
  (void)argc;
  time_t curr_time;
  curr_time = time(NULL);
  printf("/*\n * GENERATED BY '%s'\n * at  %s"
         " * PLEASE DON'T EDIT THIS FILE DIRECTLY\n */\n",
         argv[0], ctime(&curr_time));
  print_block("alignval", 1);
  print_block("generic", 1);
  print_block("alignval", 0);
  print_block("generic", 0);
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
xor    %eax,%eax
mov    %eax,%edi
call   1050 <time@plt>
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x20(%rbp)
lea    -0x14(%rbp),%rdi
call   1030 <ctime@plt>
mov    -0x20(%rbp),%rsi
mov    %rax,%rdx
lea    0xe7c(%rip),%rdi
call   1040 <printf@plt>
lea    0xebe(%rip),%rdi
mov    $0x1,%esi
call   1060 <print_block@plt>
lea    0xeb6(%rip),%rdi
mov    $0x1,%esi
call   1060 <print_block@plt>
lea    0xe9c(%rip),%rdi
xor    %esi,%esi
call   1060 <print_block@plt>
lea    0xe97(%rip),%rdi
xor    %esi,%esi
call   1060 <print_block@plt>
mov    0x2e12(%rip),%rax
mov    (%rax),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%rbx
xor    %edi,%edi
call   1050 <time@plt>
mov    %eax,0x4(%rsp)
mov    (%rbx),%rbx
lea    0x4(%rsp),%rdi
call   1030 <ctime@plt>
lea    0xe9a(%rip),%rdi
mov    %rbx,%rsi
mov    %rax,%rdx
call   1040 <printf@plt>
lea    0xed6(%rip),%r14
mov    %r14,%rdi
mov    $0x1,%esi
call   1060 <print_block@plt>
lea    0xecb(%rip),%rbx
mov    %rbx,%rdi
mov    $0x1,%esi
call   1060 <print_block@plt>
mov    %r14,%rdi
xor    %esi,%esi
call   1060 <print_block@plt>
mov    %rbx,%rdi
xor    %esi,%esi
call   1060 <print_block@plt>
mov    0x2e2c(%rip),%rax
mov    (%rax),%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [78 x i8] c"/*\0A * GENERATED BY '%s'\0A * at %s * PLEASE DON'T EDIT THIS FILE DIRECTLY\0A */\0A\00"
@.str.1 = [9 x i8] c"alignval\00"
@.str.2 = [8 x i8] c"generic\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%7 = load i32, i32* %4
%8 = call i32 @time(i32* null)
store i32 %8, i32* %6
%9 = load i8**, i8*** %5
%10 = getelementptr inbounds i8*, i8** %9, i64 0
%11 = load i8*, i8** %10
%12 = call i8* @ctime(i32* %6)
%13 = call i32 @printf(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str, i64 0, i64 0), i8* %11, i8* %12)
%14 = call i32 @print_block(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i32 1)
%15 = call i32 @print_block(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i32 1)
%16 = call i32 @print_block(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i32 0)
%17 = call i32 @print_block(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i32 0)
%18 = load i32, i32* @EXIT_SUCCESS
ret i32 %18
}

LLVM IR (-O2):
@.str = [78 x i8] c"/*\0A * GENERATED BY '%s'\0A * at %s * PLEASE DON'T EDIT THIS FILE DIRECTLY\0A */\0A\00"
@.str.1 = [9 x i8] c"alignval\00"
@.str.2 = [8 x i8] c"generic\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca i32
%4 = bitcast i32* %3 to i8*
%5 = tail call i32 @time(i32* null)
store i32 %5, i32* %3
%6 = load i8*, i8** %1
%7 = call i8* @ctime(i32* %3)
%8 = call i32 @printf(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str, i64 0, i64 0), i8* %6, i8* %7)
%9 = call i32 @print_block(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i32 1)
%10 = call i32 @print_block(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i32 1)
%11 = call i32 @print_block(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i32 0)
%12 = call i32 @print_block(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i32 0)
%13 = load i32, i32* @EXIT_SUCCESS
ret i32 %13
}