#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"
      "    -l,--local              return instrument to front panel control\n"
      "    -c,--clear              initialize instrument to default values\n"
      "    -i,--get-idn            get instrument idn string\n"
      "    -C,--config m,m,m,m,m   specify model card in slots 1,2,3,4,5 "
      "where\n"
      "                            model is 44470|44471|44472|44473|44474\n"
      "                                |44475|44476|44477|44478 (0=empty)\n"
      "    -x,--showconfig         list installed cards\n"
      "    -s,--selftest           execute self test\n"
      "    -L,--list               list valid channels\n"
      "    -0,--open [targets]     open contacts for specified channels\n"
      "    -1,--close [targets]    close contacts for specified channels\n"
      "    -q,--query [targets]    view state of specified channels\n"
      "    -Q,--queryall           view state of all channels\n"
      "    -I,--shell              start interactive shell\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 = [963 x i8] c" -n,--name specify instrument name (default 3488a)\0A -a,--address specify instrument address\0A -l,--local return instrument to front panel control\0A -c,--clear initialize instrument to default values\0A -i,--get-idn get instrument idn string\0A -C,--config m,m,m,m,m specify model card in slots 1,2,3,4,5 where\0A model is 44470|44471|44472|44473|44474\0A |44475|44476|44477|44478 (0=empty)\0A -x,--showconfig list installed cards\0A -s,--selftest execute self test\0A -L,--list list valid channels\0A -0,--open [targets] open contacts for specified channels\0A -1,--close [targets] close contacts for specified channels\0A -q,--query [targets] view state of specified channels\0A -Q,--queryall view state of all channels\0A -I,--shell start interactive shell\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 ([963 x i8], [963 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 = [963 x i8] c" -n,--name specify instrument name (default 3488a)\0A -a,--address specify instrument address\0A -l,--local return instrument to front panel control\0A -c,--clear initialize instrument to default values\0A -i,--get-idn get instrument idn string\0A -C,--config m,m,m,m,m specify model card in slots 1,2,3,4,5 where\0A model is 44470|44471|44472|44473|44474\0A |44475|44476|44477|44478 (0=empty)\0A -x,--showconfig list installed cards\0A -s,--selftest execute self test\0A -L,--list list valid channels\0A -0,--open [targets] open contacts for specified channels\0A -1,--close [targets] close contacts for specified channels\0A -q,--query [targets] view state of specified channels\0A -Q,--queryall view state of all channels\0A -I,--shell start interactive shell\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 ([963 x i8], [963 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @exit(i32 1)
unreachable
}