#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*/ fprintf(int /*<<< orphan*/, char *, char const *);
int /*<<< orphan*/ stderr;
void ut_print_help(void) {
  static char const *help_message =
      "\n"
      "  unittest.h -- simple unittesting framework for C99\n"
      "\n"
      "  Options:\n"
      "    -g, --group [STR,...]    specify group names\n"
      "    -t, --test  [STR,...]    specify test names\n"
      "    -s, --seed  [INT]        invoke libc::srand with the seed\n"
      "    -o, --stdout             redirect to stdout\n"
      "    -j, --json               print result in json\n"
      "    -h, --help               show this message\n"
      "\n"
      "  this is an auto-generated message from unittest.h\n"
      "  the latest source is available at:\n"
      "    https://github.com/ocxtal/unittest.h\n"
      "\n";
  fprintf(stderr, "%s", help_message);
  return;
}


x86 assembly (clang, -O0):
<ut_print_help>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ec5(%rip),%rax
mov    (%rax),%edi
mov    0x2f04(%rip),%rdx
lea    0x10cc(%rip),%rsi
call   1030 <fprintf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<ut_print_help>:
mov    0x2ec9(%rip),%rax
mov    (%rax),%edi
lea    0x10d7(%rip),%rsi
lea    0xed9(%rip),%rdx
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@ut_print_help.help_message = internal global i8* getelementptr inbounds ([503 x i8], [503 x i8]* @.str, i32 0, i32 0)
@.str = [503 x i8] c"\0A unittest.h -- simple unittesting framework for C99\0A\0A Options:\0A -g, --group [STR,...] specify group names\0A -t, --test [STR,...] specify test names\0A -s, --seed [INT] invoke libc::srand with the seed\0A -o, --stdout redirect to stdout\0A -j, --json print result in json\0A -h, --help show this message\0A\0A this is an auto-generated message from unittest.h\0A the latest source is available at:\0A https://github.com/ocxtal/unittest.h\0A\0A\00"
@stderr = global i32 0
@.str.1 = [3 x i8] c"%s\00"
define void @ut_print_help() {
%1 = load i32, i32* @stderr
%2 = load i8*, i8** @ut_print_help.help_message
%3 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %2)
ret void
}

LLVM IR (-O2):
@.str = [503 x i8] c"\0A unittest.h -- simple unittesting framework for C99\0A\0A Options:\0A -g, --group [STR,...] specify group names\0A -t, --test [STR,...] specify test names\0A -s, --seed [INT] invoke libc::srand with the seed\0A -o, --stdout redirect to stdout\0A -j, --json print result in json\0A -h, --help show this message\0A\0A this is an auto-generated message from unittest.h\0A the latest source is available at:\0A https://github.com/ocxtal/unittest.h\0A\0A\00"
@stderr = global i32 0
@.str.1 = [3 x i8] c"%s\00"
define void @ut_print_help() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([503 x i8], [503 x i8]* @.str, i64 0, i64 0))
ret void
}