#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*/ seed;

/* Variables and functions */
int /*<<< orphan*/ EXIT_SUCCESS;
int /*<<< orphan*/ answer();
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ parse_opts(int, char **);
int /*<<< orphan*/ puts(int /*<<< orphan*/);
int /*<<< orphan*/ srand(scalar_t__);
scalar_t__ time(int /*<<< orphan*/ *);
int main(int argc, char *argv[]) {
  int seed;
  if (argc != 1)
    parse_opts(argc, argv);
  seed = 0x7FFFFFFF;
  srand(time(NULL) + (((int)&(seed)&seed) ^ seed));
  puts(answer());
  exit(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)
cmpl   $0x1,-0x8(%rbp)
je     118c <main+0x2c>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1040 <parse_opts@plt>
movl   $0x7fffffff,-0x14(%rbp)
xor    %eax,%eax
mov    %eax,%edi
call   1060 <time@plt>
mov    %rax,%rdi
lea    -0x14(%rbp),%rax
and    -0x14(%rbp),%eax
xor    -0x14(%rbp),%eax
cltq
add    %rax,%rdi
call   1050 <srand@plt>
mov    $0x0,%al
call   1070 <answer@plt>
mov    %eax,%edi
call   1030 <puts@plt>
mov    0x2e18(%rip),%rax
mov    (%rax),%edi
call   1080 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rax
cmp    $0x1,%edi
je     116b <main+0xb>
call   1040 <parse_opts@plt>
movl   $0x7fffffff,0x4(%rsp)
7f
xor    %edi,%edi
call   1060 <time@plt>
lea    0x4(%rsp),%rdi
and    $0x7ffffffc,%edi
xor    $0x7fffffff,%rdi
add    %rax,%rdi
call   1050 <srand@plt>
xor    %eax,%eax
call   1070 <answer@plt>
mov    %eax,%edi
call   1030 <puts@plt>
mov    0x2e37(%rip),%rax
mov    (%rax),%edi
call   1080 <exit@plt>

LLVM IR (-O0):
@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 = icmp ne i32 %7, 1
br i1 %8, label %9, label %13
9: ; preds = %2
%10 = load i32, i32* %4
%11 = load i8**, i8*** %5
%12 = call i32 @parse_opts(i32 %10, i8** %11)
br label %13
13: ; preds = %9, %2
store i32 2147483647, i32* %6
%14 = call i64 @time(i32* null)
%15 = ptrtoint i32* %6 to i32
%16 = load i32, i32* %6
%17 = and i32 %15, %16
%18 = load i32, i32* %6
%19 = xor i32 %17, %18
%20 = sext i32 %19 to i64
%21 = add nsw i64 %14, %20
%22 = call i32 @srand(i64 %21)
%23 = call i32 (...) @answer()
%24 = call i32 @puts(i32 %23)
%25 = load i32, i32* @EXIT_SUCCESS
%26 = call i32 @exit(i32 %25)
unreachable
}

LLVM IR (-O2):
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = bitcast i32* %3 to i8*
%5 = icmp eq i32 %0, 1
br i1 %5, label %8, label %6
6: ; preds = %2
%7 = tail call i32 @parse_opts(i32 %0, i8** %1)
br label %8
8: ; preds = %6, %2
store i32 2147483647, i32* %3
%9 = tail call i64 @time(i32* null)
%10 = ptrtoint i32* %3 to i64
%11 = and i64 %10, 2147483644
%12 = xor i64 %11, 2147483647
%13 = add nsw i64 %12, %9
%14 = call i32 @srand(i64 %13)
%15 = call i32 (...) @answer()
%16 = call i32 @puts(i32 %15)
%17 = load i32, i32* @EXIT_SUCCESS
%18 = call i32 @exit(i32 %17)
unreachable
}