#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(char *prg) {
  fprintf(stderr, "\nUsage: %s [options] <CAN interface>+\n", prg);
  fprintf(stderr, "  (use CTRL-C to terminate %s)\n\n", prg);
  fprintf(stderr, "Options: -t <type>   (timestamp: "
                  "(a)bsolute/(d)elta/(z)ero/(A)bsolute w date)\n");
  fprintf(stderr, "         -c          (increment color mode level)\n");
  fprintf(stderr,
          "         -i          (binary output - may exceed 80 chars/line)\n");
  fprintf(stderr, "         -a          (enable additional ASCII output)\n");
  fprintf(stderr,
          "         -S          (swap byte order in printed CAN data[] - "
          "marked with '%c' )\n",
          '`');
  fprintf(stderr,
          "         -s <level>  (silent mode - %d: off (default) %d: animation "
          "%d: silent)\n",
          0, 1, 2);
  fprintf(
      stderr,
      "         -b <can>    (bridge mode - send received frames to <can>)\n");
  fprintf(stderr, "         -B <can>    (bridge mode - like '-b' with disabled "
                  "loopback)\n");
  fprintf(stderr, "         -u <usecs>  (delay bridge forwarding by <usecs> "
                  "microseconds)\n");
  fprintf(stderr,
          "         -l          (log CAN-frames into file. Sets '-s %d' by "
          "default)\n",
          2);
  fprintf(stderr, "         -L          (use log file format on stdout)\n");
  fprintf(stderr, "         -n <count>  (terminate after receiption of <count> "
                  "CAN frames)\n");
  fprintf(stderr,
          "         -r <size>   (set socket receive buffer to <size>)\n");
  fprintf(stderr, "         -d          (monitor dropped CAN frames)\n");
  fprintf(stderr, "         -e          (dump CAN error frames in "
                  "human-readable format)\n");
  fprintf(stderr,
          "         -x          (print extra message infos, rx/tx brs esi)\n");
  fprintf(
      stderr,
      "         -T <msecs>  (terminate after <msecs> without any reception)\n");
  fprintf(stderr, "\n");
  fprintf(
      stderr,
      "Up to %d CAN interfaces with optional filter sets can be specified\n",
      16);
  fprintf(stderr, "on the commandline in the form: <ifname>[,filter]*\n");
  fprintf(stderr, "\nComma separated filters can be specified for each given "
                  "CAN interface:\n");
  fprintf(stderr, " <can_id>:<can_mask> (matches when <received_can_id> & mask "
                  "== can_id & mask)\n");
  fprintf(stderr, " <can_id>~<can_mask> (matches when <received_can_id> & mask "
                  "!= can_id & mask)\n");
  fprintf(stderr, " #<error_mask>       (set error frame filter, see "
                  "include/linux/can/error.h)\n");
  fprintf(stderr, " [j|J]               (join the given CAN filters - logical "
                  "AND semantic)\n");
  fprintf(stderr, "\nCAN IDs, masks and data content are given and expected in "
                  "hexadecimal values.\n");
  fprintf(stderr, "When can_id and can_mask are both 8 digits, they are "
                  "assumed to be 29 bit EFF.\n");
  fprintf(stderr, "Without any given filter all data frames are received "
                  "('0:0' default filter).\n");
  fprintf(stderr,
          "\nUse interface name '%s' to receive from all CAN interfaces.\n",
          "any");
  fprintf(stderr, "\nExamples:\n");
  fprintf(
      stderr,
      "%s -c -c -ta can0,123:7FF,400:700,#000000FF can2,400~7F0 can3 can8\n",
      prg);
  fprintf(stderr,
          "%s -l any,0~0,#FFFFFFFF    (log only error frames but no(!) data "
          "frames)\n",
          prg);
  fprintf(stderr,
          "%s -l any,0:0,#FFFFFFFF    (log error frames and also all data "
          "frames)\n",
          prg);
  fprintf(
      stderr,
      "%s vcan2,92345678:DFFFFFFF (match only for extended CAN ID 12345678)\n",
      prg);
  fprintf(
      stderr,
      "%s vcan2,123:7FF (matches CAN ID 123 - including EFF and RTR frames)\n",
      prg);
  fprintf(stderr,
          "%s vcan2,123:C00007FF (matches CAN ID 123 - only SFF and non-RTR "
          "frames)\n",
          prg);
  fprintf(stderr, "\n");
}


x86 assembly (clang, -O0):
<print_usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2ebd(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xed0(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2ea2(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xedc(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e87(%rip),%rax
mov    (%rax),%edi
lea    0xee6(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e70(%rip),%rax
mov    (%rax),%edi
lea    0xf1e(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e59(%rip),%rax
mov    (%rax),%edi
lea    0xf3a(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e42(%rip),%rax
mov    (%rax),%edi
lea    0xf64(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e2b(%rip),%rax
mov    (%rax),%edi
lea    0xf84(%rip),%rsi
mov    $0x60,%edx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e0f(%rip),%rax
mov    (%rax),%edi
lea    0xfba(%rip),%rsi
xor    %edx,%edx
mov    $0x1,%ecx
mov    $0x2,%r8d
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2deb(%rip),%rax
mov    (%rax),%edi
lea    0xfe7(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2dd4(%rip),%rax
mov    (%rax),%edi
lea    0x1014(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2dbd(%rip),%rax
mov    (%rax),%edi
lea    0x1044(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2da6(%rip),%rax
mov    (%rax),%edi
lea    0x1075(%rip),%rsi
mov    $0x2,%edx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d8a(%rip),%rax
mov    (%rax),%edi
lea    0x10a3(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d73(%rip),%rax
mov    (%rax),%edi
lea    0x10c2(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d5c(%rip),%rax
mov    (%rax),%edi
lea    0x10f4(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d45(%rip),%rax
mov    (%rax),%edi
lea    0x1119(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d2e(%rip),%rax
mov    (%rax),%edi
lea    0x1135(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d17(%rip),%rax
mov    (%rax),%edi
lea    0x1165(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d00(%rip),%rax
mov    (%rax),%edi
lea    0x118f(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2ce9(%rip),%rax
mov    (%rax),%edi
lea    0xd46(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2cd2(%rip),%rax
mov    (%rax),%edi
lea    0x11a7(%rip),%rsi
mov    $0x10,%edx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2cb6(%rip),%rax
mov    (%rax),%edi
lea    0x11cf(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2c9f(%rip),%rax
mov    (%rax),%edi
lea    0x11ec(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2c88(%rip),%rax
mov    (%rax),%edi
lea    0x121e(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2c71(%rip),%rax
mov    (%rax),%edi
lea    0x1256(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2c5a(%rip),%rax
mov    (%rax),%edi
lea    0x128e(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2c43(%rip),%rax
mov    (%rax),%edi
lea    0x12c5(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2c2c(%rip),%rax
mov    (%rax),%edi
lea    0x12f8(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2c15(%rip),%rax
mov    (%rax),%edi
lea    0x1331(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2bfe(%rip),%rax
mov    (%rax),%edi
lea    0x136a(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2be7(%rip),%rax
mov    (%rax),%edi
lea    0x13a2(%rip),%rsi
lea    0x13d9(%rip),%rdx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2bc9(%rip),%rax
mov    (%rax),%edi
lea    0x13c6(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2bb2(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0x13b7(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2b97(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0x13e0(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2b7c(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0x140f(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2b61(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0x143c(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2b46(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0x1467(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2b2b(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0x1492(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2b10(%rip),%rax
mov    (%rax),%edi
lea    0xb6d(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_usage>:
push   %r15
push   %r14
push   %rbx
mov    %rdi,%r15
mov    0x2ec1(%rip),%rbx
mov    (%rbx),%edi
lea    0xed8(%rip),%rsi
mov    %r15,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xeec(%rip),%rsi
mov    %r15,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xefa(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf39(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf5c(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf8d(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfb4(%rip),%rsi
mov    $0x60,%edx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xff1(%rip),%rsi
xor    %edx,%edx
mov    $0x1,%ecx
mov    $0x2,%r8d
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1025(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1059(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1090(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x10c8(%rip),%rsi
mov    $0x2,%edx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x10fd(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1123(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x115c(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1188(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x11ab(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x11e2(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1213(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xdd1(%rip),%r14
mov    %r14,%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1236(%rip),%rsi
mov    $0x10,%edx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1265(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1289(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x12c2(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1301(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1340(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x137e(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x13b8(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x13f8(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1438(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1477(%rip),%rsi
lea    0x14ae(%rip),%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x14a2(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x149e(%rip),%rsi
mov    %r15,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x14cf(%rip),%rsi
mov    %r15,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1506(%rip),%rsi
mov    %r15,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x153b(%rip),%rsi
mov    %r15,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x156e(%rip),%rsi
mov    %r15,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x15a1(%rip),%rsi
mov    %r15,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
mov    %r14,%rsi
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %r15
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [39 x i8] c"\0AUsage: %s [options] <CAN interface>+\0A\00"
@.str.1 = [33 x i8] c" (use CTRL-C to terminate %s)\0A\0A\00"
@.str.2 = [79 x i8] c"Options: -t <type> (timestamp: (a)bsolute/(d)elta/(z)ero/(A)bsolute w date)\0A\00"
@.str.3 = [51 x i8] c" -c (increment color mode level)\0A\00"
@.str.4 = [65 x i8] c" -i (binary output - may exceed 80 chars/line)\0A\00"
@.str.5 = [55 x i8] c" -a (enable additional ASCII output)\0A\00"
@.str.6 = [82 x i8] c" -S (swap byte order in printed CAN data[] - marked with '%c' )\0A\00"
@.str.7 = [81 x i8] c" -s <level> (silent mode - %d: off (default) %d: animation %d: silent)\0A\00"
@.str.8 = [68 x i8] c" -b <can> (bridge mode - send received frames to <can>)\0A\00"
@.str.9 = [71 x i8] c" -B <can> (bridge mode - like '-b' with disabled loopback)\0A\00"
@.str.10 = [72 x i8] c" -u <usecs> (delay bridge forwarding by <usecs> microseconds)\0A\00"
@.str.11 = [74 x i8] c" -l (log CAN-frames into file. Sets '-s %d' by default)\0A\00"
@.str.12 = [54 x i8] c" -L (use log file format on stdout)\0A\00"
@.str.13 = [73 x i8] c" -n <count> (terminate after receiption of <count> CAN frames)\0A\00"
@.str.14 = [60 x i8] c" -r <size> (set socket receive buffer to <size>)\0A\00"
@.str.15 = [51 x i8] c" -d (monitor dropped CAN frames)\0A\00"
@.str.16 = [71 x i8] c" -e (dump CAN error frames in human-readable format)\0A\00"
@.str.17 = [65 x i8] c" -x (print extra message infos, rx/tx brs esi)\0A\00"
@.str.18 = [70 x i8] c" -T <msecs> (terminate after <msecs> without any reception)\0A\00"
@.str.19 = [2 x i8] c"\0A\00"
@.str.20 = [68 x i8] c"Up to %d CAN interfaces with optional filter sets can be specified\0A\00"
@.str.21 = [52 x i8] c"on the commandline in the form: <ifname>[,filter]*\0A\00"
@.str.22 = [73 x i8] c"\0AComma separated filters can be specified for each given CAN interface:\0A\00"
@.str.23 = [79 x i8] c" <can_id>:<can_mask> (matches when <received_can_id> & mask == can_id & mask)\0A\00"
@.str.24 = [79 x i8] c" <can_id>~<can_mask> (matches when <received_can_id> & mask != can_id & mask)\0A\00"
@.str.25 = [78 x i8] c" #<error_mask> (set error frame filter, see include/linux/can/error.h)\0A\00"
@.str.26 = [74 x i8] c" [j|J] (join the given CAN filters - logical AND semantic)\0A\00"
@.str.27 = [80 x i8] c"\0ACAN IDs, masks and data content are given and expected in hexadecimal values.\0A\00"
@.str.28 = [80 x i8] c"When can_id and can_mask are both 8 digits, they are assumed to be 29 bit EFF.\0A\00"
@.str.29 = [79 x i8] c"Without any given filter all data frames are received ('0:0' default filter).\0A\00"
@.str.30 = [62 x i8] c"\0AUse interface name '%s' to receive from all CAN interfaces.\0A\00"
@.str.31 = [4 x i8] c"any\00"
@.str.32 = [12 x i8] c"\0AExamples:\0A\00"
@.str.33 = [68 x i8] c"%s -c -c -ta can0,123:7FF,400:700,FF can2,400~7F0 can3 can8\0A\00"
@.str.34 = [74 x i8] c"%s -l any,0~0,#FFFFFFFF (log only error frames but no(!) data frames)\0A\00"
@.str.35 = [72 x i8] c"%s -l any,0:0,#FFFFFFFF (log error frames and also all data frames)\0A\00"
@.str.36 = [70 x i8] c"%s vcan2,92345678:DFFFFFFF (match only for extended CAN ID 12345678)\0A\00"
@.str.37 = [70 x i8] c"%s vcan2,123:7FF (matches CAN ID 123 - including EFF and RTR frames)\0A\00"
@.str.38 = [74 x i8] c"%s vcan2,123:C00007FF (matches CAN ID 123 - only SFF and non-RTR frames)\0A\00"
define void @print_usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i32, i32* @stderr
%4 = load i8*, i8** %2
%5 = call i32 (i32, i8*, ...) @fprintf(i32 %3, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0), i8* %4)
%6 = load i32, i32* @stderr
%7 = load i8*, i8** %2
%8 = call i32 (i32, i8*, ...) @fprintf(i32 %6, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0), i8* %7)
%9 = load i32, i32* @stderr
%10 = call i32 (i32, i8*, ...) @fprintf(i32 %9, i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.2, i64 0, i64 0))
%11 = load i32, i32* @stderr
%12 = call i32 (i32, i8*, ...) @fprintf(i32 %11, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.3, i64 0, i64 0))
%13 = load i32, i32* @stderr
%14 = call i32 (i32, i8*, ...) @fprintf(i32 %13, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.4, i64 0, i64 0))
%15 = load i32, i32* @stderr
%16 = call i32 (i32, i8*, ...) @fprintf(i32 %15, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.5, i64 0, i64 0))
%17 = load i32, i32* @stderr
%18 = call i32 (i32, i8*, ...) @fprintf(i32 %17, i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str.6, i64 0, i64 0), i32 96)
%19 = load i32, i32* @stderr
%20 = call i32 (i32, i8*, ...) @fprintf(i32 %19, i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str.7, i64 0, i64 0), i32 0, i32 1, i32 2)
%21 = load i32, i32* @stderr
%22 = call i32 (i32, i8*, ...) @fprintf(i32 %21, i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.8, i64 0, i64 0))
%23 = load i32, i32* @stderr
%24 = call i32 (i32, i8*, ...) @fprintf(i32 %23, i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.9, i64 0, i64 0))
%25 = load i32, i32* @stderr
%26 = call i32 (i32, i8*, ...) @fprintf(i32 %25, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.10, i64 0, i64 0))
%27 = load i32, i32* @stderr
%28 = call i32 (i32, i8*, ...) @fprintf(i32 %27, i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.11, i64 0, i64 0), i32 2)
%29 = load i32, i32* @stderr
%30 = call i32 (i32, i8*, ...) @fprintf(i32 %29, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.12, i64 0, i64 0))
%31 = load i32, i32* @stderr
%32 = call i32 (i32, i8*, ...) @fprintf(i32 %31, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.13, i64 0, i64 0))
%33 = load i32, i32* @stderr
%34 = call i32 (i32, i8*, ...) @fprintf(i32 %33, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.14, i64 0, i64 0))
%35 = load i32, i32* @stderr
%36 = call i32 (i32, i8*, ...) @fprintf(i32 %35, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.15, i64 0, i64 0))
%37 = load i32, i32* @stderr
%38 = call i32 (i32, i8*, ...) @fprintf(i32 %37, i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.16, i64 0, i64 0))
%39 = load i32, i32* @stderr
%40 = call i32 (i32, i8*, ...) @fprintf(i32 %39, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.17, i64 0, i64 0))
%41 = load i32, i32* @stderr
%42 = call i32 (i32, i8*, ...) @fprintf(i32 %41, i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.18, i64 0, i64 0))
%43 = load i32, i32* @stderr
%44 = call i32 (i32, i8*, ...) @fprintf(i32 %43, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.19, i64 0, i64 0))
%45 = load i32, i32* @stderr
%46 = call i32 (i32, i8*, ...) @fprintf(i32 %45, i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.20, i64 0, i64 0), i32 16)
%47 = load i32, i32* @stderr
%48 = call i32 (i32, i8*, ...) @fprintf(i32 %47, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.21, i64 0, i64 0))
%49 = load i32, i32* @stderr
%50 = call i32 (i32, i8*, ...) @fprintf(i32 %49, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.22, i64 0, i64 0))
%51 = load i32, i32* @stderr
%52 = call i32 (i32, i8*, ...) @fprintf(i32 %51, i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.23, i64 0, i64 0))
%53 = load i32, i32* @stderr
%54 = call i32 (i32, i8*, ...) @fprintf(i32 %53, i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.24, i64 0, i64 0))
%55 = load i32, i32* @stderr
%56 = call i32 (i32, i8*, ...) @fprintf(i32 %55, i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.25, i64 0, i64 0))
%57 = load i32, i32* @stderr
%58 = call i32 (i32, i8*, ...) @fprintf(i32 %57, i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.26, i64 0, i64 0))
%59 = load i32, i32* @stderr
%60 = call i32 (i32, i8*, ...) @fprintf(i32 %59, i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.27, i64 0, i64 0))
%61 = load i32, i32* @stderr
%62 = call i32 (i32, i8*, ...) @fprintf(i32 %61, i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.28, i64 0, i64 0))
%63 = load i32, i32* @stderr
%64 = call i32 (i32, i8*, ...) @fprintf(i32 %63, i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.29, i64 0, i64 0))
%65 = load i32, i32* @stderr
%66 = call i32 (i32, i8*, ...) @fprintf(i32 %65, i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.30, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.31, i64 0, i64 0))
%67 = load i32, i32* @stderr
%68 = call i32 (i32, i8*, ...) @fprintf(i32 %67, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.32, i64 0, i64 0))
%69 = load i32, i32* @stderr
%70 = load i8*, i8** %2
%71 = call i32 (i32, i8*, ...) @fprintf(i32 %69, i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.33, i64 0, i64 0), i8* %70)
%72 = load i32, i32* @stderr
%73 = load i8*, i8** %2
%74 = call i32 (i32, i8*, ...) @fprintf(i32 %72, i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.34, i64 0, i64 0), i8* %73)
%75 = load i32, i32* @stderr
%76 = load i8*, i8** %2
%77 = call i32 (i32, i8*, ...) @fprintf(i32 %75, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.35, i64 0, i64 0), i8* %76)
%78 = load i32, i32* @stderr
%79 = load i8*, i8** %2
%80 = call i32 (i32, i8*, ...) @fprintf(i32 %78, i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.36, i64 0, i64 0), i8* %79)
%81 = load i32, i32* @stderr
%82 = load i8*, i8** %2
%83 = call i32 (i32, i8*, ...) @fprintf(i32 %81, i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.37, i64 0, i64 0), i8* %82)
%84 = load i32, i32* @stderr
%85 = load i8*, i8** %2
%86 = call i32 (i32, i8*, ...) @fprintf(i32 %84, i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.38, i64 0, i64 0), i8* %85)
%87 = load i32, i32* @stderr
%88 = call i32 (i32, i8*, ...) @fprintf(i32 %87, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.19, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [39 x i8] c"\0AUsage: %s [options] <CAN interface>+\0A\00"
@.str.1 = [33 x i8] c" (use CTRL-C to terminate %s)\0A\0A\00"
@.str.2 = [79 x i8] c"Options: -t <type> (timestamp: (a)bsolute/(d)elta/(z)ero/(A)bsolute w date)\0A\00"
@.str.3 = [51 x i8] c" -c (increment color mode level)\0A\00"
@.str.4 = [65 x i8] c" -i (binary output - may exceed 80 chars/line)\0A\00"
@.str.5 = [55 x i8] c" -a (enable additional ASCII output)\0A\00"
@.str.6 = [82 x i8] c" -S (swap byte order in printed CAN data[] - marked with '%c' )\0A\00"
@.str.7 = [81 x i8] c" -s <level> (silent mode - %d: off (default) %d: animation %d: silent)\0A\00"
@.str.8 = [68 x i8] c" -b <can> (bridge mode - send received frames to <can>)\0A\00"
@.str.9 = [71 x i8] c" -B <can> (bridge mode - like '-b' with disabled loopback)\0A\00"
@.str.10 = [72 x i8] c" -u <usecs> (delay bridge forwarding by <usecs> microseconds)\0A\00"
@.str.11 = [74 x i8] c" -l (log CAN-frames into file. Sets '-s %d' by default)\0A\00"
@.str.12 = [54 x i8] c" -L (use log file format on stdout)\0A\00"
@.str.13 = [73 x i8] c" -n <count> (terminate after receiption of <count> CAN frames)\0A\00"
@.str.14 = [60 x i8] c" -r <size> (set socket receive buffer to <size>)\0A\00"
@.str.15 = [51 x i8] c" -d (monitor dropped CAN frames)\0A\00"
@.str.16 = [71 x i8] c" -e (dump CAN error frames in human-readable format)\0A\00"
@.str.17 = [65 x i8] c" -x (print extra message infos, rx/tx brs esi)\0A\00"
@.str.18 = [70 x i8] c" -T <msecs> (terminate after <msecs> without any reception)\0A\00"
@.str.19 = [2 x i8] c"\0A\00"
@.str.20 = [68 x i8] c"Up to %d CAN interfaces with optional filter sets can be specified\0A\00"
@.str.21 = [52 x i8] c"on the commandline in the form: <ifname>[,filter]*\0A\00"
@.str.22 = [73 x i8] c"\0AComma separated filters can be specified for each given CAN interface:\0A\00"
@.str.23 = [79 x i8] c" <can_id>:<can_mask> (matches when <received_can_id> & mask == can_id & mask)\0A\00"
@.str.24 = [79 x i8] c" <can_id>~<can_mask> (matches when <received_can_id> & mask != can_id & mask)\0A\00"
@.str.25 = [78 x i8] c" #<error_mask> (set error frame filter, see include/linux/can/error.h)\0A\00"
@.str.26 = [74 x i8] c" [j|J] (join the given CAN filters - logical AND semantic)\0A\00"
@.str.27 = [80 x i8] c"\0ACAN IDs, masks and data content are given and expected in hexadecimal values.\0A\00"
@.str.28 = [80 x i8] c"When can_id and can_mask are both 8 digits, they are assumed to be 29 bit EFF.\0A\00"
@.str.29 = [79 x i8] c"Without any given filter all data frames are received ('0:0' default filter).\0A\00"
@.str.30 = [62 x i8] c"\0AUse interface name '%s' to receive from all CAN interfaces.\0A\00"
@.str.31 = [4 x i8] c"any\00"
@.str.32 = [12 x i8] c"\0AExamples:\0A\00"
@.str.33 = [68 x i8] c"%s -c -c -ta can0,123:7FF,400:700,FF can2,400~7F0 can3 can8\0A\00"
@.str.34 = [74 x i8] c"%s -l any,0~0,#FFFFFFFF (log only error frames but no(!) data frames)\0A\00"
@.str.35 = [72 x i8] c"%s -l any,0:0,#FFFFFFFF (log error frames and also all data frames)\0A\00"
@.str.36 = [70 x i8] c"%s vcan2,92345678:DFFFFFFF (match only for extended CAN ID 12345678)\0A\00"
@.str.37 = [70 x i8] c"%s vcan2,123:7FF (matches CAN ID 123 - including EFF and RTR frames)\0A\00"
@.str.38 = [74 x i8] c"%s vcan2,123:C00007FF (matches CAN ID 123 - only SFF and non-RTR frames)\0A\00"
define void @print_usage(i8* %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 (i32, i8*, ...) @fprintf(i32 %2, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0), i8* %0)
%4 = load i32, i32* @stderr
%5 = tail call i32 (i32, i8*, ...) @fprintf(i32 %4, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0), i8* %0)
%6 = load i32, i32* @stderr
%7 = tail call i32 (i32, i8*, ...) @fprintf(i32 %6, i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.2, i64 0, i64 0))
%8 = load i32, i32* @stderr
%9 = tail call i32 (i32, i8*, ...) @fprintf(i32 %8, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.3, i64 0, i64 0))
%10 = load i32, i32* @stderr
%11 = tail call i32 (i32, i8*, ...) @fprintf(i32 %10, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.4, i64 0, i64 0))
%12 = load i32, i32* @stderr
%13 = tail call i32 (i32, i8*, ...) @fprintf(i32 %12, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.5, i64 0, i64 0))
%14 = load i32, i32* @stderr
%15 = tail call i32 (i32, i8*, ...) @fprintf(i32 %14, i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str.6, i64 0, i64 0), i32 96)
%16 = load i32, i32* @stderr
%17 = tail call i32 (i32, i8*, ...) @fprintf(i32 %16, i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str.7, i64 0, i64 0), i32 0, i32 1, i32 2)
%18 = load i32, i32* @stderr
%19 = tail call i32 (i32, i8*, ...) @fprintf(i32 %18, i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.8, i64 0, i64 0))
%20 = load i32, i32* @stderr
%21 = tail call i32 (i32, i8*, ...) @fprintf(i32 %20, i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.9, i64 0, i64 0))
%22 = load i32, i32* @stderr
%23 = tail call i32 (i32, i8*, ...) @fprintf(i32 %22, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.10, i64 0, i64 0))
%24 = load i32, i32* @stderr
%25 = tail call i32 (i32, i8*, ...) @fprintf(i32 %24, i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.11, i64 0, i64 0), i32 2)
%26 = load i32, i32* @stderr
%27 = tail call i32 (i32, i8*, ...) @fprintf(i32 %26, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.12, i64 0, i64 0))
%28 = load i32, i32* @stderr
%29 = tail call i32 (i32, i8*, ...) @fprintf(i32 %28, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.13, i64 0, i64 0))
%30 = load i32, i32* @stderr
%31 = tail call i32 (i32, i8*, ...) @fprintf(i32 %30, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.14, i64 0, i64 0))
%32 = load i32, i32* @stderr
%33 = tail call i32 (i32, i8*, ...) @fprintf(i32 %32, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.15, i64 0, i64 0))
%34 = load i32, i32* @stderr
%35 = tail call i32 (i32, i8*, ...) @fprintf(i32 %34, i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.16, i64 0, i64 0))
%36 = load i32, i32* @stderr
%37 = tail call i32 (i32, i8*, ...) @fprintf(i32 %36, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.17, i64 0, i64 0))
%38 = load i32, i32* @stderr
%39 = tail call i32 (i32, i8*, ...) @fprintf(i32 %38, i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.18, i64 0, i64 0))
%40 = load i32, i32* @stderr
%41 = tail call i32 (i32, i8*, ...) @fprintf(i32 %40, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.19, i64 0, i64 0))
%42 = load i32, i32* @stderr
%43 = tail call i32 (i32, i8*, ...) @fprintf(i32 %42, i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.20, i64 0, i64 0), i32 16)
%44 = load i32, i32* @stderr
%45 = tail call i32 (i32, i8*, ...) @fprintf(i32 %44, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.21, i64 0, i64 0))
%46 = load i32, i32* @stderr
%47 = tail call i32 (i32, i8*, ...) @fprintf(i32 %46, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.22, i64 0, i64 0))
%48 = load i32, i32* @stderr
%49 = tail call i32 (i32, i8*, ...) @fprintf(i32 %48, i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.23, i64 0, i64 0))
%50 = load i32, i32* @stderr
%51 = tail call i32 (i32, i8*, ...) @fprintf(i32 %50, i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.24, i64 0, i64 0))
%52 = load i32, i32* @stderr
%53 = tail call i32 (i32, i8*, ...) @fprintf(i32 %52, i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.25, i64 0, i64 0))
%54 = load i32, i32* @stderr
%55 = tail call i32 (i32, i8*, ...) @fprintf(i32 %54, i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.26, i64 0, i64 0))
%56 = load i32, i32* @stderr
%57 = tail call i32 (i32, i8*, ...) @fprintf(i32 %56, i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.27, i64 0, i64 0))
%58 = load i32, i32* @stderr
%59 = tail call i32 (i32, i8*, ...) @fprintf(i32 %58, i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.28, i64 0, i64 0))
%60 = load i32, i32* @stderr
%61 = tail call i32 (i32, i8*, ...) @fprintf(i32 %60, i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.29, i64 0, i64 0))
%62 = load i32, i32* @stderr
%63 = tail call i32 (i32, i8*, ...) @fprintf(i32 %62, i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.30, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.31, i64 0, i64 0))
%64 = load i32, i32* @stderr
%65 = tail call i32 (i32, i8*, ...) @fprintf(i32 %64, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.32, i64 0, i64 0))
%66 = load i32, i32* @stderr
%67 = tail call i32 (i32, i8*, ...) @fprintf(i32 %66, i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.33, i64 0, i64 0), i8* %0)
%68 = load i32, i32* @stderr
%69 = tail call i32 (i32, i8*, ...) @fprintf(i32 %68, i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.34, i64 0, i64 0), i8* %0)
%70 = load i32, i32* @stderr
%71 = tail call i32 (i32, i8*, ...) @fprintf(i32 %70, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.35, i64 0, i64 0), i8* %0)
%72 = load i32, i32* @stderr
%73 = tail call i32 (i32, i8*, ...) @fprintf(i32 %72, i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.36, i64 0, i64 0), i8* %0)
%74 = load i32, i32* @stderr
%75 = tail call i32 (i32, i8*, ...) @fprintf(i32 %74, i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.37, i64 0, i64 0), i8* %0)
%76 = load i32, i32* @stderr
%77 = tail call i32 (i32, i8*, ...) @fprintf(i32 %76, i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.38, i64 0, i64 0), i8* %0)
%78 = load i32, i32* @stderr
%79 = tail call i32 (i32, i8*, ...) @fprintf(i32 %78, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.19, i64 0, i64 0))
ret void
}