#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*/ test_struct_calcsize_errors();
int /*<<< orphan*/ test_struct_example_1_1();
int /*<<< orphan*/ test_struct_example_1_2();
int /*<<< orphan*/ test_struct_example_1_3();
int /*<<< orphan*/ test_struct_example_2();
int /*<<< orphan*/ test_struct_example_3_1();
int /*<<< orphan*/ test_struct_example_3_2();
int /*<<< orphan*/ test_struct_example_3_3();
int /*<<< orphan*/ test_struct_example_4();
int /*<<< orphan*/ test_struct_pack_basic_max();
int /*<<< orphan*/ test_struct_pack_basic_min();
int /*<<< orphan*/ test_struct_pack_endian();
int /*<<< orphan*/ test_struct_pack_errors();
int /*<<< orphan*/ test_struct_pack_repeat();
int /*<<< orphan*/ test_struct_unpack_basic_min();
int /*<<< orphan*/ test_struct_unpack_endian();
int /*<<< orphan*/ test_struct_unpack_errors();
int /*<<< orphan*/ test_struct_unpack_repeat();
int main(int argc, char *argv[]) {
  test_struct_pack_basic_min();
  test_struct_pack_basic_max();
  test_struct_pack_repeat();
  test_struct_unpack_basic_min();
  test_struct_unpack_repeat();
  test_struct_example_1_1();
  test_struct_example_1_2();
  test_struct_example_1_3();
  test_struct_example_2();
  test_struct_example_3_1();
  test_struct_example_3_2();
  test_struct_example_3_3();
  test_struct_example_4();
  test_struct_pack_errors();
  test_struct_unpack_errors();
  test_struct_calcsize_errors();
  test_struct_pack_endian();
  test_struct_unpack_endian();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x0,%al
call   10d0 <test_struct_pack_basic_min@plt>
mov    $0x0,%al
call   10e0 <test_struct_pack_basic_max@plt>
mov    $0x0,%al
call   1030 <test_struct_pack_repeat@plt>
mov    $0x0,%al
call   1060 <test_struct_unpack_basic_min@plt>
mov    $0x0,%al
call   1050 <test_struct_unpack_repeat@plt>
mov    $0x0,%al
call   10a0 <test_struct_example_1_1@plt>
mov    $0x0,%al
call   1140 <test_struct_example_1_2@plt>
mov    $0x0,%al
call   1090 <test_struct_example_1_3@plt>
mov    $0x0,%al
call   1110 <test_struct_example_2@plt>
mov    $0x0,%al
call   1070 <test_struct_example_3_1@plt>
mov    $0x0,%al
call   1100 <test_struct_example_3_2@plt>
mov    $0x0,%al
call   1080 <test_struct_example_3_3@plt>
mov    $0x0,%al
call   1130 <test_struct_example_4@plt>
mov    $0x0,%al
call   1040 <test_struct_pack_errors@plt>
mov    $0x0,%al
call   1120 <test_struct_unpack_errors@plt>
mov    $0x0,%al
call   10c0 <test_struct_calcsize_errors@plt>
mov    $0x0,%al
call   10b0 <test_struct_pack_endian@plt>
mov    $0x0,%al
call   10f0 <test_struct_unpack_endian@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   10d0 <test_struct_pack_basic_min@plt>
xor    %eax,%eax
call   10e0 <test_struct_pack_basic_max@plt>
xor    %eax,%eax
call   1030 <test_struct_pack_repeat@plt>
xor    %eax,%eax
call   1060 <test_struct_unpack_basic_min@plt>
xor    %eax,%eax
call   1050 <test_struct_unpack_repeat@plt>
xor    %eax,%eax
call   10a0 <test_struct_example_1_1@plt>
xor    %eax,%eax
call   1140 <test_struct_example_1_2@plt>
xor    %eax,%eax
call   1090 <test_struct_example_1_3@plt>
xor    %eax,%eax
call   1110 <test_struct_example_2@plt>
xor    %eax,%eax
call   1070 <test_struct_example_3_1@plt>
xor    %eax,%eax
call   1100 <test_struct_example_3_2@plt>
xor    %eax,%eax
call   1080 <test_struct_example_3_3@plt>
xor    %eax,%eax
call   1130 <test_struct_example_4@plt>
xor    %eax,%eax
call   1040 <test_struct_pack_errors@plt>
xor    %eax,%eax
call   1120 <test_struct_unpack_errors@plt>
xor    %eax,%eax
call   10c0 <test_struct_calcsize_errors@plt>
xor    %eax,%eax
call   10b0 <test_struct_pack_endian@plt>
xor    %eax,%eax
call   10f0 <test_struct_unpack_endian@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = call i32 (...) @test_struct_pack_basic_min()
%7 = call i32 (...) @test_struct_pack_basic_max()
%8 = call i32 (...) @test_struct_pack_repeat()
%9 = call i32 (...) @test_struct_unpack_basic_min()
%10 = call i32 (...) @test_struct_unpack_repeat()
%11 = call i32 (...) @test_struct_example_1_1()
%12 = call i32 (...) @test_struct_example_1_2()
%13 = call i32 (...) @test_struct_example_1_3()
%14 = call i32 (...) @test_struct_example_2()
%15 = call i32 (...) @test_struct_example_3_1()
%16 = call i32 (...) @test_struct_example_3_2()
%17 = call i32 (...) @test_struct_example_3_3()
%18 = call i32 (...) @test_struct_example_4()
%19 = call i32 (...) @test_struct_pack_errors()
%20 = call i32 (...) @test_struct_unpack_errors()
%21 = call i32 (...) @test_struct_calcsize_errors()
%22 = call i32 (...) @test_struct_pack_endian()
%23 = call i32 (...) @test_struct_unpack_endian()
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @test_struct_pack_basic_min()
%4 = tail call i32 (...) @test_struct_pack_basic_max()
%5 = tail call i32 (...) @test_struct_pack_repeat()
%6 = tail call i32 (...) @test_struct_unpack_basic_min()
%7 = tail call i32 (...) @test_struct_unpack_repeat()
%8 = tail call i32 (...) @test_struct_example_1_1()
%9 = tail call i32 (...) @test_struct_example_1_2()
%10 = tail call i32 (...) @test_struct_example_1_3()
%11 = tail call i32 (...) @test_struct_example_2()
%12 = tail call i32 (...) @test_struct_example_3_1()
%13 = tail call i32 (...) @test_struct_example_3_2()
%14 = tail call i32 (...) @test_struct_example_3_3()
%15 = tail call i32 (...) @test_struct_example_4()
%16 = tail call i32 (...) @test_struct_pack_errors()
%17 = tail call i32 (...) @test_struct_unpack_errors()
%18 = tail call i32 (...) @test_struct_calcsize_errors()
%19 = tail call i32 (...) @test_struct_pack_endian()
%20 = tail call i32 (...) @test_struct_unpack_endian()
ret i32 0
}