#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 taxisCreate(int);
int /*<<< orphan*/ taxisDefCalendar(int, int);
int /*<<< orphan*/ taxisDefNumavg(int, int);
int /*<<< orphan*/ taxisDefRdate(int, int);
int /*<<< orphan*/ taxisDefRtime(int, int);
int /*<<< orphan*/ taxisDefTunit(int, int);
int /*<<< orphan*/ taxisDefType(int, int /*<<< orphan*/);
int /*<<< orphan*/ taxisDefVdate(int, int);
int /*<<< orphan*/ taxisDefVdateBounds(int, int, int);
int /*<<< orphan*/ taxisDefVtime(int, int);
int /*<<< orphan*/ taxisDefVtimeBounds(int, int, int);
int defineTaxis() {
  int taxisID = -1;
  taxisID = taxisCreate(1);
  taxisDefType(taxisID, 0);
  taxisDefVdate(taxisID, 1);
  taxisDefVtime(taxisID, 2);
  taxisDefRdate(taxisID, 3);
  taxisDefRtime(taxisID, 4);
  taxisDefVdateBounds(taxisID, 5, 6);
  taxisDefVtimeBounds(taxisID, 7, 8);
  taxisDefCalendar(taxisID, 1);
  taxisDefTunit(taxisID, 1);
  taxisDefNumavg(taxisID, 1);
  return taxisID;
}


x86 assembly (clang, -O0):
<defineTaxis>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0xffffffff,-0x4(%rbp)
mov    $0x1,%edi
call   10c0 <taxisCreate@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%edi
xor    %esi,%esi
call   10d0 <taxisDefType@plt>
mov    -0x4(%rbp),%edi
mov    $0x1,%esi
call   10a0 <taxisDefVdate@plt>
mov    -0x4(%rbp),%edi
mov    $0x2,%esi
call   1030 <taxisDefVtime@plt>
mov    -0x4(%rbp),%edi
mov    $0x3,%esi
call   1040 <taxisDefRdate@plt>
mov    -0x4(%rbp),%edi
mov    $0x4,%esi
call   1050 <taxisDefRtime@plt>
mov    -0x4(%rbp),%edi
mov    $0x5,%esi
mov    $0x6,%edx
call   1070 <taxisDefVdateBounds@plt>
mov    -0x4(%rbp),%edi
mov    $0x7,%esi
mov    $0x8,%edx
call   10b0 <taxisDefVtimeBounds@plt>
mov    -0x4(%rbp),%edi
mov    $0x1,%esi
call   1060 <taxisDefCalendar@plt>
mov    -0x4(%rbp),%edi
mov    $0x1,%esi
call   1090 <taxisDefTunit@plt>
mov    -0x4(%rbp),%edi
mov    $0x1,%esi
call   1080 <taxisDefNumavg@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<defineTaxis>:
push   %rbx
mov    $0x1,%edi
call   10c0 <taxisCreate@plt>
mov    %eax,%ebx
mov    %eax,%edi
xor    %esi,%esi
call   10d0 <taxisDefType@plt>
mov    %ebx,%edi
mov    $0x1,%esi
call   10a0 <taxisDefVdate@plt>
mov    %ebx,%edi
mov    $0x2,%esi
call   1030 <taxisDefVtime@plt>
mov    %ebx,%edi
mov    $0x3,%esi
call   1040 <taxisDefRdate@plt>
mov    %ebx,%edi
mov    $0x4,%esi
call   1050 <taxisDefRtime@plt>
mov    %ebx,%edi
mov    $0x5,%esi
mov    $0x6,%edx
call   1070 <taxisDefVdateBounds@plt>
mov    %ebx,%edi
mov    $0x7,%esi
mov    $0x8,%edx
call   10b0 <taxisDefVtimeBounds@plt>
mov    %ebx,%edi
mov    $0x1,%esi
call   1060 <taxisDefCalendar@plt>
mov    %ebx,%edi
mov    $0x1,%esi
call   1090 <taxisDefTunit@plt>
mov    %ebx,%edi
mov    $0x1,%esi
call   1080 <taxisDefNumavg@plt>
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @defineTaxis() {
%1 = alloca i32
store i32 -1, i32* %1
%2 = call i32 @taxisCreate(i32 1)
store i32 %2, i32* %1
%3 = load i32, i32* %1
%4 = call i32 @taxisDefType(i32 %3, i32 0)
%5 = load i32, i32* %1
%6 = call i32 @taxisDefVdate(i32 %5, i32 1)
%7 = load i32, i32* %1
%8 = call i32 @taxisDefVtime(i32 %7, i32 2)
%9 = load i32, i32* %1
%10 = call i32 @taxisDefRdate(i32 %9, i32 3)
%11 = load i32, i32* %1
%12 = call i32 @taxisDefRtime(i32 %11, i32 4)
%13 = load i32, i32* %1
%14 = call i32 @taxisDefVdateBounds(i32 %13, i32 5, i32 6)
%15 = load i32, i32* %1
%16 = call i32 @taxisDefVtimeBounds(i32 %15, i32 7, i32 8)
%17 = load i32, i32* %1
%18 = call i32 @taxisDefCalendar(i32 %17, i32 1)
%19 = load i32, i32* %1
%20 = call i32 @taxisDefTunit(i32 %19, i32 1)
%21 = load i32, i32* %1
%22 = call i32 @taxisDefNumavg(i32 %21, i32 1)
%23 = load i32, i32* %1
ret i32 %23
}

LLVM IR (-O2):
define i32 @defineTaxis() {
%1 = tail call i32 @taxisCreate(i32 1)
%2 = tail call i32 @taxisDefType(i32 %1, i32 0)
%3 = tail call i32 @taxisDefVdate(i32 %1, i32 1)
%4 = tail call i32 @taxisDefVtime(i32 %1, i32 2)
%5 = tail call i32 @taxisDefRdate(i32 %1, i32 3)
%6 = tail call i32 @taxisDefRtime(i32 %1, i32 4)
%7 = tail call i32 @taxisDefVdateBounds(i32 %1, i32 5, i32 6)
%8 = tail call i32 @taxisDefVtimeBounds(i32 %1, i32 7, i32 8)
%9 = tail call i32 @taxisDefCalendar(i32 %1, i32 1)
%10 = tail call i32 @taxisDefTunit(i32 %1, i32 1)
%11 = tail call i32 @taxisDefNumavg(i32 %1, i32 1)
ret i32 %1
}