#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 *);
int /*<<< orphan*/ stderr;
usage() {
  fprintf(stderr, "Usage: uras input-path output-path seq-name. [-SG n.n] [-TG "
                  "n.n] [-M n] [-R 1 | -R 2 n.n] [-B rows cols] [-F n.n] [-C "
                  "corr-vel-file nbins1 increment1 nbins2 increment2]\n");
  fprintf(stderr, "[-SG n.n]         : sigma value for spatial gaussian\n");
  fprintf(stderr, "                    default value is 3.0\n");
  fprintf(stderr, "[-TG n.n]         : sigma value for temporal gaussian\n");
  fprintf(stderr, "                    default value is 1.5\n");
  fprintf(stderr, "[-M n]            : middle frame of image sequence\n");
  fprintf(stderr, "                    default value is 0\n");
  fprintf(stderr, "[-R 1 | -R 2 n.n] : n = 1 : applies TR1 regularization\n");
  fprintf(stderr, "                    n = 2 : applies TR2 regularization\n");
  fprintf(stderr, "                    with sigma = n.n\n");
  fprintf(stderr,
          "[-B cols rows]    : for binary input files without header\n");
  fprintf(stderr, "[-F n.n]          : filters out unreliable estimates\n");
  fprintf(stderr, "                    using the Gaussian curv. (det(H))\n");
  fprintf(stderr, "[-C corr-vel-file nbins1 increment1 nbins2 increment2]\n");
  fprintf(stderr, "                  : error histogram\n");
  fprintf(stderr,
          "                    corr-vel-file : file of correct velocities\n");
  fprintf(
      stderr,
      "                    nbins1, nbins2 : number of bins for histograms\n");
  fprintf(stderr, "                    increment1, increment2 : value of gap "
                  "between bins\n");
  exit(-1);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
lea    0xecc(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2ea0(%rip),%rax
mov    (%rax),%edi
lea    0xf61(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e8b(%rip),%rax
mov    (%rax),%edi
lea    0xf82(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e76(%rip),%rax
mov    (%rax),%edi
lea    0xf97(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e61(%rip),%rax
mov    (%rax),%edi
lea    0xfb9(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e4c(%rip),%rax
mov    (%rax),%edi
lea    0xfce(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e37(%rip),%rax
mov    (%rax),%edi
lea    0xfed(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e22(%rip),%rax
mov    (%rax),%edi
lea    0x1000(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e0d(%rip),%rax
mov    (%rax),%edi
lea    0x1023(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2df8(%rip),%rax
mov    (%rax),%edi
lea    0x1046(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2de3(%rip),%rax
mov    (%rax),%edi
lea    0x1057(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2dce(%rip),%rax
mov    (%rax),%edi
lea    0x107d(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2db9(%rip),%rax
mov    (%rax),%edi
lea    0x109e(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2da4(%rip),%rax
mov    (%rax),%edi
lea    0xe2d(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2d8f(%rip),%rax
mov    (%rax),%edi
lea    0x10ab(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2d7a(%rip),%rax
mov    (%rax),%edi
lea    0x10bb(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2d65(%rip),%rax
mov    (%rax),%edi
lea    0x10e6(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2d50(%rip),%rax
mov    (%rax),%edi
lea    0x1115(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0xffffffff,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rbx
mov    0x2eb8(%rip),%rbx
mov    (%rbx),%edi
lea    0xecf(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf6b(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf93(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfaf(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfd8(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xff4(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x101a(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1034(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x105e(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1088(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x10a0(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x10cd(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x10f5(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xe8b(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1110(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1127(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1159(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x118f(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0xffffffff,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [170 x i8] c"Usage: uras input-path output-path seq-name. [-SG n.n] [-TG n.n] [-M n] [-R 1 | -R 2 n.n] [-B rows cols] [-F n.n] [-C corr-vel-file nbins1 increment1 nbins2 increment2]\0A\00"
@.str.1 = [54 x i8] c"[-SG n.n] : sigma value for spatial gaussian\0A\00"
@.str.2 = [42 x i8] c" default value is 3.0\0A\00"
@.str.3 = [55 x i8] c"[-TG n.n] : sigma value for temporal gaussian\0A\00"
@.str.4 = [42 x i8] c" default value is 1.5\0A\00"
@.str.5 = [52 x i8] c"[-M n] : middle frame of image sequence\0A\00"
@.str.6 = [40 x i8] c" default value is 0\0A\00"
@.str.7 = [56 x i8] c"[-R 1 | -R 2 n.n] : n = 1 : applies TR1 regularization\0A\00"
@.str.8 = [56 x i8] c" n = 2 : applies TR2 regularization\0A\00"
@.str.9 = [38 x i8] c" with sigma = n.n\0A\00"
@.str.10 = [59 x i8] c"[-B cols rows] : for binary input files without header\0A\00"
@.str.11 = [54 x i8] c"[-F n.n] : filters out unreliable estimates\0A\00"
@.str.12 = [55 x i8] c" using the Gaussian curv. (det(H))\0A\00"
@.str.13 = [56 x i8] c"[-C corr-vel-file nbins1 increment1 nbins2 increment2]\0A\00"
@.str.14 = [37 x i8] c" : error histogram\0A\00"
@.str.15 = [64 x i8] c" corr-vel-file : file of correct velocities\0A\00"
@.str.16 = [68 x i8] c" nbins1, nbins2 : number of bins for histograms\0A\00"
@.str.17 = [72 x i8] c" increment1, increment2 : value of gap between bins\0A\00"
define i32 @usage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([170 x i8], [170 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @stderr
%4 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.1, i64 0, i64 0))
%5 = load i32, i32* @stderr
%6 = call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0))
%7 = load i32, i32* @stderr
%8 = call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.3, i64 0, i64 0))
%9 = load i32, i32* @stderr
%10 = call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.4, i64 0, i64 0))
%11 = load i32, i32* @stderr
%12 = call i32 @fprintf(i32 %11, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.5, i64 0, i64 0))
%13 = load i32, i32* @stderr
%14 = call i32 @fprintf(i32 %13, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.6, i64 0, i64 0))
%15 = load i32, i32* @stderr
%16 = call i32 @fprintf(i32 %15, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.7, i64 0, i64 0))
%17 = load i32, i32* @stderr
%18 = call i32 @fprintf(i32 %17, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.8, i64 0, i64 0))
%19 = load i32, i32* @stderr
%20 = call i32 @fprintf(i32 %19, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.9, i64 0, i64 0))
%21 = load i32, i32* @stderr
%22 = call i32 @fprintf(i32 %21, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.10, i64 0, i64 0))
%23 = load i32, i32* @stderr
%24 = call i32 @fprintf(i32 %23, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.11, i64 0, i64 0))
%25 = load i32, i32* @stderr
%26 = call i32 @fprintf(i32 %25, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.12, i64 0, i64 0))
%27 = load i32, i32* @stderr
%28 = call i32 @fprintf(i32 %27, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.13, i64 0, i64 0))
%29 = load i32, i32* @stderr
%30 = call i32 @fprintf(i32 %29, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.14, i64 0, i64 0))
%31 = load i32, i32* @stderr
%32 = call i32 @fprintf(i32 %31, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.15, i64 0, i64 0))
%33 = load i32, i32* @stderr
%34 = call i32 @fprintf(i32 %33, i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.16, i64 0, i64 0))
%35 = load i32, i32* @stderr
%36 = call i32 @fprintf(i32 %35, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.17, i64 0, i64 0))
%37 = call i32 @exit(i32 -1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [170 x i8] c"Usage: uras input-path output-path seq-name. [-SG n.n] [-TG n.n] [-M n] [-R 1 | -R 2 n.n] [-B rows cols] [-F n.n] [-C corr-vel-file nbins1 increment1 nbins2 increment2]\0A\00"
@.str.1 = [54 x i8] c"[-SG n.n] : sigma value for spatial gaussian\0A\00"
@.str.2 = [42 x i8] c" default value is 3.0\0A\00"
@.str.3 = [55 x i8] c"[-TG n.n] : sigma value for temporal gaussian\0A\00"
@.str.4 = [42 x i8] c" default value is 1.5\0A\00"
@.str.5 = [52 x i8] c"[-M n] : middle frame of image sequence\0A\00"
@.str.6 = [40 x i8] c" default value is 0\0A\00"
@.str.7 = [56 x i8] c"[-R 1 | -R 2 n.n] : n = 1 : applies TR1 regularization\0A\00"
@.str.8 = [56 x i8] c" n = 2 : applies TR2 regularization\0A\00"
@.str.9 = [38 x i8] c" with sigma = n.n\0A\00"
@.str.10 = [59 x i8] c"[-B cols rows] : for binary input files without header\0A\00"
@.str.11 = [54 x i8] c"[-F n.n] : filters out unreliable estimates\0A\00"
@.str.12 = [55 x i8] c" using the Gaussian curv. (det(H))\0A\00"
@.str.13 = [56 x i8] c"[-C corr-vel-file nbins1 increment1 nbins2 increment2]\0A\00"
@.str.14 = [37 x i8] c" : error histogram\0A\00"
@.str.15 = [64 x i8] c" corr-vel-file : file of correct velocities\0A\00"
@.str.16 = [68 x i8] c" nbins1, nbins2 : number of bins for histograms\0A\00"
@.str.17 = [72 x i8] c" increment1, increment2 : value of gap between bins\0A\00"
define i32 @usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([170 x i8], [170 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @stderr
%4 = tail call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.1, i64 0, i64 0))
%5 = load i32, i32* @stderr
%6 = tail call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0))
%7 = load i32, i32* @stderr
%8 = tail call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.3, i64 0, i64 0))
%9 = load i32, i32* @stderr
%10 = tail call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.4, i64 0, i64 0))
%11 = load i32, i32* @stderr
%12 = tail call i32 @fprintf(i32 %11, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.5, i64 0, i64 0))
%13 = load i32, i32* @stderr
%14 = tail call i32 @fprintf(i32 %13, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.6, i64 0, i64 0))
%15 = load i32, i32* @stderr
%16 = tail call i32 @fprintf(i32 %15, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.7, i64 0, i64 0))
%17 = load i32, i32* @stderr
%18 = tail call i32 @fprintf(i32 %17, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.8, i64 0, i64 0))
%19 = load i32, i32* @stderr
%20 = tail call i32 @fprintf(i32 %19, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.9, i64 0, i64 0))
%21 = load i32, i32* @stderr
%22 = tail call i32 @fprintf(i32 %21, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.10, i64 0, i64 0))
%23 = load i32, i32* @stderr
%24 = tail call i32 @fprintf(i32 %23, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.11, i64 0, i64 0))
%25 = load i32, i32* @stderr
%26 = tail call i32 @fprintf(i32 %25, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.12, i64 0, i64 0))
%27 = load i32, i32* @stderr
%28 = tail call i32 @fprintf(i32 %27, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.13, i64 0, i64 0))
%29 = load i32, i32* @stderr
%30 = tail call i32 @fprintf(i32 %29, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.14, i64 0, i64 0))
%31 = load i32, i32* @stderr
%32 = tail call i32 @fprintf(i32 %31, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.15, i64 0, i64 0))
%33 = load i32, i32* @stderr
%34 = tail call i32 @fprintf(i32 %33, i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.16, i64 0, i64 0))
%35 = load i32, i32* @stderr
%36 = tail call i32 @fprintf(i32 %35, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.17, i64 0, i64 0))
%37 = tail call i32 @exit(i32 -1)
unreachable
}