#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 *);
int /*<<< orphan*/ stderr;
void print_usage(void) {
  fprintf(stderr,
          "Usage: generic_buffer [options]...\n"
          "Capture, convert and output data from IIO device buffer\n"
          "  -a         Auto-activate all available channels\n"
          "  -A         Force-activate ALL channels\n"
          "  -c <n>     Do n conversions, or loop forever if n < 0\n"
          "  -e         Disable wait for event (new data)\n"
          "  -g         Use trigger-less mode\n"
          "  -l <n>     Set buffer length to n samples\n"
          "  --device-name -n <name>\n"
          "  --device-num -N <num>\n"
          "        Set device by name or number (mandatory)\n"
          "  --trigger-name -t <name>\n"
          "  --trigger-num -T <num>\n"
          "        Set trigger by name or number\n"
          "  -w <n>     Set delay between reads in us (event-less mode)\n");
}


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

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

LLVM IR (-O0):
@stderr = global i32 0
@.str = [615 x i8] c"Usage: generic_buffer [options]...\0ACapture, convert and output data from IIO device buffer\0A -a Auto-activate all available channels\0A -A Force-activate ALL channels\0A -c <n> Do n conversions, or loop forever if n < 0\0A -e Disable wait for event (new data)\0A -g Use trigger-less mode\0A -l <n> Set buffer length to n samples\0A --device-name -n <name>\0A --device-num -N <num>\0A Set device by name or number (mandatory)\0A --trigger-name -t <name>\0A --trigger-num -T <num>\0A Set trigger by name or number\0A -w <n> Set delay between reads in us (event-less mode)\0A\00"
define void @print_usage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([615 x i8], [615 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [615 x i8] c"Usage: generic_buffer [options]...\0ACapture, convert and output data from IIO device buffer\0A -a Auto-activate all available channels\0A -A Force-activate ALL channels\0A -c <n> Do n conversions, or loop forever if n < 0\0A -e Disable wait for event (new data)\0A -g Use trigger-less mode\0A -l <n> Set buffer length to n samples\0A --device-name -n <name>\0A --device-num -N <num>\0A Set device by name or number (mandatory)\0A --trigger-name -t <name>\0A --trigger-num -T <num>\0A Set trigger by name or number\0A -w <n> Set delay between reads in us (event-less mode)\0A\00"
define void @print_usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([615 x i8], [615 x i8]* @.str, i64 0, i64 0))
ret void
}