#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_begin(char *);
int /*<<< orphan*/ test_double_in_single_quotes();
int /*<<< orphan*/ test_double_quotes();
int test_end();
int /*<<< orphan*/ test_escape_sequence();
int /*<<< orphan*/ test_init_shutdown();
int /*<<< orphan*/ test_no_args();
int /*<<< orphan*/ test_simple_args();
int /*<<< orphan*/ test_simple_whitespace();
int /*<<< orphan*/ test_single_in_double_quotes();
int /*<<< orphan*/ test_single_quotes();
int /*<<< orphan*/ test_split_quotes();
int /*<<< orphan*/ test_standalone_separator();
int main() {
  test_begin("sokol-args-test");
  test_init_shutdown();
  test_no_args();
  test_simple_args();
  test_simple_whitespace();
  test_standalone_separator();
  test_single_quotes();
  test_double_quotes();
  test_double_in_single_quotes();
  test_single_in_double_quotes();
  test_split_quotes();
  test_escape_sequence();
  return test_end();
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xe1a(%rip),%rdi
call   1060 <test_begin@plt>
mov    $0x0,%al
call   10b0 <test_init_shutdown@plt>
mov    $0x0,%al
call   1040 <test_no_args@plt>
mov    $0x0,%al
call   10a0 <test_simple_args@plt>
mov    $0x0,%al
call   10e0 <test_simple_whitespace@plt>
mov    $0x0,%al
call   1030 <test_standalone_separator@plt>
mov    $0x0,%al
call   1090 <test_single_quotes@plt>
mov    $0x0,%al
call   10f0 <test_double_quotes@plt>
mov    $0x0,%al
call   1050 <test_double_in_single_quotes@plt>
mov    $0x0,%al
call   10c0 <test_single_in_double_quotes@plt>
mov    $0x0,%al
call   1070 <test_split_quotes@plt>
mov    $0x0,%al
call   1080 <test_escape_sequence@plt>
mov    $0x0,%al
call   10d0 <test_end@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xe28(%rip),%rdi
call   1060 <test_begin@plt>
xor    %eax,%eax
call   10b0 <test_init_shutdown@plt>
xor    %eax,%eax
call   1040 <test_no_args@plt>
xor    %eax,%eax
call   10a0 <test_simple_args@plt>
xor    %eax,%eax
call   10e0 <test_simple_whitespace@plt>
xor    %eax,%eax
call   1030 <test_standalone_separator@plt>
xor    %eax,%eax
call   1090 <test_single_quotes@plt>
xor    %eax,%eax
call   10f0 <test_double_quotes@plt>
xor    %eax,%eax
call   1050 <test_double_in_single_quotes@plt>
xor    %eax,%eax
call   10c0 <test_single_in_double_quotes@plt>
xor    %eax,%eax
call   1070 <test_split_quotes@plt>
xor    %eax,%eax
call   1080 <test_escape_sequence@plt>
xor    %eax,%eax
pop    %rcx
jmp    10d0 <test_end@plt>

LLVM IR (-O0):
@.str = [16 x i8] c"sokol-args-test\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @test_begin(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
%3 = call i32 (...) @test_init_shutdown()
%4 = call i32 (...) @test_no_args()
%5 = call i32 (...) @test_simple_args()
%6 = call i32 (...) @test_simple_whitespace()
%7 = call i32 (...) @test_standalone_separator()
%8 = call i32 (...) @test_single_quotes()
%9 = call i32 (...) @test_double_quotes()
%10 = call i32 (...) @test_double_in_single_quotes()
%11 = call i32 (...) @test_single_in_double_quotes()
%12 = call i32 (...) @test_split_quotes()
%13 = call i32 (...) @test_escape_sequence()
%14 = call i32 (...) @test_end()
ret i32 %14
}

LLVM IR (-O2):
@.str = [16 x i8] c"sokol-args-test\00"
define i32 @main() {
%1 = tail call i32 @test_begin(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 (...) @test_init_shutdown()
%3 = tail call i32 (...) @test_no_args()
%4 = tail call i32 (...) @test_simple_args()
%5 = tail call i32 (...) @test_simple_whitespace()
%6 = tail call i32 (...) @test_standalone_separator()
%7 = tail call i32 (...) @test_single_quotes()
%8 = tail call i32 (...) @test_double_quotes()
%9 = tail call i32 (...) @test_double_in_single_quotes()
%10 = tail call i32 (...) @test_single_in_double_quotes()
%11 = tail call i32 (...) @test_split_quotes()
%12 = tail call i32 (...) @test_escape_sequence()
%13 = tail call i32 (...) @test_end()
ret i32 %13
}