#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 */
struct testgroup_t {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ puts(char *);
int /*<<< orphan*/ tinytest_set_flag_(struct testgroup_t *, char *, int,
                                      int /*<<< orphan*/);
void usage(struct testgroup_t *groups, int list_groups) {
  puts("Options are: [--verbose|--quiet|--terse] [--no-fork]");
  puts("  Specify tests by name, or using a prefix ending with '..'");
  puts("  To skip a test, prefix its name with a colon.");
  puts("  To enable a disabled test, prefix its name with a plus.");
  puts("  Use --list-tests for a list of tests.");
  if (list_groups) {
    puts("Known tests are:");
    tinytest_set_flag_(groups, "..", 1, 0);
  }
  exit(0);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
lea    0xeba(%rip),%rdi
call   1030 <puts@plt>
lea    0xee3(%rip),%rdi
call   1030 <puts@plt>
lea    0xf13(%rip),%rdi
call   1030 <puts@plt>
lea    0xf37(%rip),%rdi
call   1030 <puts@plt>
lea    0xf65(%rip),%rdi
call   1030 <puts@plt>
cmpl   $0x0,-0xc(%rbp)
je     11a8 <usage+0x78>
lea    0xf77(%rip),%rdi
call   1030 <puts@plt>
mov    -0x8(%rbp),%rdi
lea    0xf78(%rip),%rsi
mov    $0x1,%edx
xor    %ecx,%ecx
call   1040 <tinytest_set_flag_@plt>
xor    %edi,%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rbp
push   %rbx
push   %rax
mov    %esi,%ebp
mov    %rdi,%rbx
lea    0xec1(%rip),%rdi
call   1030 <puts@plt>
lea    0xeea(%rip),%rdi
call   1030 <puts@plt>
lea    0xf1a(%rip),%rdi
call   1030 <puts@plt>
lea    0xf3e(%rip),%rdi
call   1030 <puts@plt>
lea    0xf6c(%rip),%rdi
call   1030 <puts@plt>
test   %ebp,%ebp
je     119a <usage+0x6a>
lea    0xf84(%rip),%rdi
call   1030 <puts@plt>
lea    0xf89(%rip),%rsi
mov    %rbx,%rdi
mov    $0x1,%edx
xor    %ecx,%ecx
call   1040 <tinytest_set_flag_@plt>
xor    %edi,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
%struct.testgroup_t = type { i32 }
@.str = [53 x i8] c"Options are: [--verbose|--quiet|--terse] [--no-fork]\00"
@.str.1 = [60 x i8] c" Specify tests by name, or using a prefix ending with '..'\00"
@.str.2 = [48 x i8] c" To skip a test, prefix its name with a colon.\00"
@.str.3 = [58 x i8] c" To enable a disabled test, prefix its name with a plus.\00"
@.str.4 = [40 x i8] c" Use --list-tests for a list of tests.\00"
@.str.5 = [17 x i8] c"Known tests are:\00"
@.str.6 = [3 x i8] c"..\00"
define void @usage(%struct.testgroup_t* %0, i32 %1) {
%3 = alloca %struct.testgroup_t*
%4 = alloca i32
store %struct.testgroup_t* %0, %struct.testgroup_t** %3
store i32 %1, i32* %4
%5 = call i32 @puts(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str, i64 0, i64 0))
%6 = call i32 @puts(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.1, i64 0, i64 0))
%7 = call i32 @puts(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.2, i64 0, i64 0))
%8 = call i32 @puts(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.3, i64 0, i64 0))
%9 = call i32 @puts(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.4, i64 0, i64 0))
%10 = load i32, i32* %4
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %16
12: ; preds = %2
%13 = call i32 @puts(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0))
%14 = load %struct.testgroup_t*, %struct.testgroup_t** %3
%15 = call i32 @tinytest_set_flag_(%struct.testgroup_t* %14, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32 1, i32 0)
br label %16
16: ; preds = %12, %2
%17 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
%struct.testgroup_t = type { i32 }
@.str = [53 x i8] c"Options are: [--verbose|--quiet|--terse] [--no-fork]\00"
@.str.1 = [60 x i8] c" Specify tests by name, or using a prefix ending with '..'\00"
@.str.2 = [48 x i8] c" To skip a test, prefix its name with a colon.\00"
@.str.3 = [58 x i8] c" To enable a disabled test, prefix its name with a plus.\00"
@.str.4 = [40 x i8] c" Use --list-tests for a list of tests.\00"
@.str.5 = [17 x i8] c"Known tests are:\00"
@.str.6 = [3 x i8] c"..\00"
define void @usage(%struct.testgroup_t* %0, i32 %1) {
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @.str, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @.str.1, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.2, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @.str.3, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.4, i64 0, i64 0))
%8 = icmp eq i32 %1, 0
br i1 %8, label %12, label %9
9: ; preds = %2
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0))
%11 = tail call i32 @tinytest_set_flag_(%struct.testgroup_t* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32 1, i32 0)
br label %12
12: ; preds = %9, %2
%13 = tail call i32 @exit(i32 0)
unreachable
}