#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 EXIT_SUCCESS;
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ fputs(char *, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, char *);
int /*<<< orphan*/ stderr;
void usage(int status) {
  if (status != EXIT_SUCCESS)
    fprintf(stderr, "Try `%s --help' for more information.\n", "tr");
  else {
    printf("Usage: %s [OPTION]... SET1 [SET2]\n", "tr");
    fputs(
        "                Process input file by Kalman filter from standard "
        "input,\n                writing to standard output.\n                "
        "\n                -x     initial state estimate (x0)\n                "
        "-P     initial error covariance estimate (P0)\n                -A     "
        "A system parameter\n                -B     B system parameter\n       "
        "         -C     C system parameter\n                -D     D system "
        "parameter\n                -Q     Q covariance parameter\n            "
        "    -R     R covariance parameter\n                ",
        stderr);
  }
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    0x2e93(%rip),%rcx
cmp    (%rcx),%eax
je     116e <usage+0x3e>
mov    0x2e8c(%rip),%rax
mov    (%rax),%edi
lea    0xea3(%rip),%rsi
lea    0xec3(%rip),%rdx
call   1050 <fprintf@plt>
jmp    1196 <usage+0x66>
lea    0xeb5(%rip),%rdi
lea    0xeab(%rip),%rsi
call   1030 <printf@plt>
mov    0x2e58(%rip),%rax
mov    (%rax),%esi
lea    0xebc(%rip),%rdi
call   1040 <fputs@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rax
mov    0x2ea0(%rip),%rax
cmp    %edi,(%rax)
jne    1165 <usage+0x35>
lea    0xee7(%rip),%rdi
lea    0xedd(%rip),%rsi
call   1030 <printf@plt>
mov    0x2e8a(%rip),%rax
mov    (%rax),%esi
lea    0xeee(%rip),%rdi
pop    %rax
jmp    1040 <fputs@plt>
mov    0x2e74(%rip),%rax
mov    (%rax),%edi
lea    0xe8b(%rip),%rsi
lea    0xeab(%rip),%rdx
pop    %rax
jmp    1050 <fprintf@plt>

LLVM IR (-O0):
@EXIT_SUCCESS = global i32 0
@stderr = global i32 0
@.str = [39 x i8] c"Try `%s --help' for more information.\0A\00"
@.str.1 = [3 x i8] c"tr\00"
@.str.2 = [35 x i8] c"Usage: %s [OPTION]... SET1 [SET2]\0A\00"
@.str.3 = [524 x i8] c" Process input file by Kalman filter from standard input,\0A writing to standard output.\0A \0A -x initial state estimate (x0)\0A -P initial error covariance estimate (P0)\0A -A A system parameter\0A -B B system parameter\0A -C C system parameter\0A -D D system parameter\0A -Q Q covariance parameter\0A -R R covariance parameter\0A \00"
define void @usage(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = load i32, i32* @EXIT_SUCCESS
%5 = icmp ne i32 %3, %4
br i1 %5, label %6, label %9
6: ; preds = %1
%7 = load i32, i32* @stderr
%8 = call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
br label %13
9: ; preds = %1
%10 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%11 = load i32, i32* @stderr
%12 = call i32 @fputs(i8* getelementptr inbounds ([524 x i8], [524 x i8]* @.str.3, i64 0, i64 0), i32 %11)
br label %13
13: ; preds = %9, %6
ret void
}

LLVM IR (-O2):
@EXIT_SUCCESS = global i32 0
@stderr = global i32 0
@.str = [39 x i8] c"Try `%s --help' for more information.\0A\00"
@.str.1 = [3 x i8] c"tr\00"
@.str.2 = [35 x i8] c"Usage: %s [OPTION]... SET1 [SET2]\0A\00"
@.str.3 = [524 x i8] c" Process input file by Kalman filter from standard input,\0A writing to standard output.\0A \0A -x initial state estimate (x0)\0A -P initial error covariance estimate (P0)\0A -A A system parameter\0A -B B system parameter\0A -C C system parameter\0A -D D system parameter\0A -Q Q covariance parameter\0A -R R covariance parameter\0A \00"
define void @usage(i32 %0) {
%2 = load i32, i32* @EXIT_SUCCESS
%3 = icmp eq i32 %2, %0
br i1 %3, label %7, label %4
4: ; preds = %1
%5 = load i32, i32* @stderr
%6 = tail call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
br label %11
7: ; preds = %1
%8 = tail call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%9 = load i32, i32* @stderr
%10 = tail call i32 @fputs(i8* getelementptr inbounds ([524 x i8], [524 x i8]* @.str.3, i64 0, i64 0), i32 %9)
br label %11
11: ; preds = %7, %4
ret void
}