#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*/ print_version();
int /*<<< orphan*/ printf(char *);
void print_usage(void) {
  print_version();
  printf(
      "\n\nUsage:\n"
      "  mndp [options]\n"
      "\nOptions:\n"
      "  --attempts=N    transmit N broadcast packets per call [default:10]\n"
      "  --interface=IF  set interface mask where broadcast will be sent "
      "[default:"
      "*"
      "]\n"
      "  --identity=IDN  set device identity [default: "
      "KAMBot"
      "]\n"
      "  --board=BRD     set board name [default: "
      "rPI V2"
      "]\n"
      "  --platform=PLT  set platform [default: "
      "MikroTik"
      "]\n"
      "  --revision=REV  set version to REV [default: "
      "v1.0"
      "]\n"
      "  --silent        do not print any output to stdout\n"
      "  --verbose       print verbose information\n"
      "  --version       get version information\n"
      "  -h, -?, --help  get help\n"
      "\n");
}


x86 assembly (clang, -O0):
<print_usage>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <print_version@plt>
lea    0xece(%rip),%rdi
call   1040 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_usage>:
push   %rax
xor    %eax,%eax
call   1040 <print_version@plt>
lea    0xed1(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [561 x i8] c"\0A\0AUsage:\0A mndp [options]\0A\0AOptions:\0A --attempts=N transmit N broadcast packets per call [default:10]\0A --interface=IF set interface mask where broadcast will be sent [default:*]\0A --identity=IDN set device identity [default: KAMBot]\0A --board=BRD set board name [default: rPI V2]\0A --platform=PLT set platform [default: MikroTik]\0A --revision=REV set version to REV [default: v1.0]\0A --silent do not print any output to stdout\0A --verbose print verbose information\0A --version get version information\0A -h, -?, --help get help\0A\0A\00"
define void @print_usage() {
%1 = call i32 (...) @print_version()
%2 = call i32 @printf(i8* getelementptr inbounds ([561 x i8], [561 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [560 x i8] c"\0A\0AUsage:\0A mndp [options]\0A\0AOptions:\0A --attempts=N transmit N broadcast packets per call [default:10]\0A --interface=IF set interface mask where broadcast will be sent [default:*]\0A --identity=IDN set device identity [default: KAMBot]\0A --board=BRD set board name [default: rPI V2]\0A --platform=PLT set platform [default: MikroTik]\0A --revision=REV set version to REV [default: v1.0]\0A --silent do not print any output to stdout\0A --verbose print verbose information\0A --version get version information\0A -h, -?, --help get help\0A\00"
define void @print_usage() {
%1 = tail call i32 (...) @print_version()
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([560 x i8], [560 x i8]* @str, i64 0, i64 0))
ret void
}