#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*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ stderr;
void usage(void) {
  fprintf(
      stderr, "%s",
      "    -n,--name           specify instrument name (default 3488a)\n"
      "    -a,--address        specify instrument address\n"
      "    -v,--verbose        set verbose mode\n"
      "    -c,--clear          initialize instrument to default values\n"
      "    -l,--local          return instrument to local operation on exit\n"
      "    -i,--get-idn-string get idn string\n"
      "    -0,--open           open the specified relays\n"
      "    -1,--close          close the specified relays\n"
      "    -q,--query          query the state of all relays\n"
      "    -Q,--query-digital  query the state of digital inputs\n"
      "    -I,--shell          start interactive shell\n"
      "    -L,--selftest       execute instrument selftest\n"
      "    -R,--radio          set radio button mode (max one relay closed)\n");
  exit(1);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
lea    0xecc(%rip),%rsi
lea    0xec8(%rip),%rdx
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rax
mov    0x2eb8(%rip),%rax
mov    (%rax),%edi
lea    0xecf(%rip),%rsi
lea    0xecb(%rip),%rdx
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [3 x i8] c"%s\00"
@.str.1 = [711 x i8] c" -n,--name specify instrument name (default 3488a)\0A -a,--address specify instrument address\0A -v,--verbose set verbose mode\0A -c,--clear initialize instrument to default values\0A -l,--local return instrument to local operation on exit\0A -i,--get-idn-string get idn string\0A -0,--open open the specified relays\0A -1,--close close the specified relays\0A -q,--query query the state of all relays\0A -Q,--query-digital query the state of digital inputs\0A -I,--shell start interactive shell\0A -L,--selftest execute instrument selftest\0A -R,--radio set radio button mode (max one relay closed)\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([711 x i8], [711 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [3 x i8] c"%s\00"
@.str.1 = [711 x i8] c" -n,--name specify instrument name (default 3488a)\0A -a,--address specify instrument address\0A -v,--verbose set verbose mode\0A -c,--clear initialize instrument to default values\0A -l,--local return instrument to local operation on exit\0A -i,--get-idn-string get idn string\0A -0,--open open the specified relays\0A -1,--close close the specified relays\0A -q,--query query the state of all relays\0A -Q,--query-digital query the state of digital inputs\0A -I,--shell start interactive shell\0A -L,--selftest execute instrument selftest\0A -R,--radio set radio button mode (max one relay closed)\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([711 x i8], [711 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @exit(i32 1)
unreachable
}