#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: nagel input-path output-path seq-name. [-SG n.n] "
                  "[-TG n.n] [-M n] [-I n] [-A n.n] [-D n.n] [-B cols rows] "
                  "[-F n.n] [-C corr-vel-file nbins increment]\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, "[-I n]           : number of relaxation iterations\n");
  fprintf(stderr, "                   default value is 10\n");
  fprintf(stderr, "[-A n.n]         : smoothing parameter alpha\n");
  fprintf(stderr, "                   default value is 5.0\n");
  fprintf(stderr, "[-D n.n]         : delta parameter\n");
  fprintf(stderr, "                   default value is 1.0\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 magnitude of local gradient\n");
  fprintf(stderr, "[-C corr-vel-file nbins increment]\n");
  fprintf(stderr, "                 : error histogram\n");
  fprintf(stderr,
          "                   corr-vel-file : file of correct velocities\n");
  fprintf(stderr, "                   nbins : number of bins for histogram\n");
  fprintf(stderr, "                   increment : 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    0xf55(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e8b(%rip),%rax
mov    (%rax),%edi
lea    0xf75(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e76(%rip),%rax
mov    (%rax),%edi
lea    0xf89(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e61(%rip),%rax
mov    (%rax),%edi
lea    0xfaa(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e4c(%rip),%rax
mov    (%rax),%edi
lea    0xfbe(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e37(%rip),%rax
mov    (%rax),%edi
lea    0xfdc(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e22(%rip),%rax
mov    (%rax),%edi
lea    0xfee(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e0d(%rip),%rax
mov    (%rax),%edi
lea    0x100d(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2df8(%rip),%rax
mov    (%rax),%edi
lea    0x1020(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2de3(%rip),%rax
mov    (%rax),%edi
lea    0x1039(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2dce(%rip),%rax
mov    (%rax),%edi
lea    0x104d(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2db9(%rip),%rax
mov    (%rax),%edi
lea    0x105c(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2da4(%rip),%rax
mov    (%rax),%edi
lea    0x1070(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2d8f(%rip),%rax
mov    (%rax),%edi
lea    0x1095(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2d7a(%rip),%rax
mov    (%rax),%edi
lea    0x10b5(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2d65(%rip),%rax
mov    (%rax),%edi
lea    0xdf6(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2d50(%rip),%rax
mov    (%rax),%edi
lea    0x10c5(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2d3b(%rip),%rax
mov    (%rax),%edi
lea    0x10d4(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2d26(%rip),%rax
mov    (%rax),%edi
lea    0x10fe(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2d11(%rip),%rax
mov    (%rax),%edi
lea    0x1122(%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    0xf5f(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf86(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfa1(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfc9(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfe4(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1009(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1022(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1048(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1062(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1082(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x109d(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x10b3(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x10ce(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x10fa(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1121(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xe69(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x113f(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1155(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1186(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x11b1(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0xffffffff,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [158 x i8] c"Usage: nagel input-path output-path seq-name. [-SG n.n] [-TG n.n] [-M n] [-I n] [-A n.n] [-D n.n] [-B cols rows] [-F n.n] [-C corr-vel-file nbins increment]\0A\00"
@.str.1 = [53 x i8] c"[-SG n.n] : sigma value for spatial gaussian\0A\00"
@.str.2 = [41 x i8] c" default value is 3.0\0A\00"
@.str.3 = [54 x i8] c"[-TG n.n] : sigma value for temporal gaussian\0A\00"
@.str.4 = [41 x i8] c" default value is 1.5\0A\00"
@.str.5 = [51 x i8] c"[-M n] : middle frame of image sequence\0A\00"
@.str.6 = [39 x i8] c" default value is 0\0A\00"
@.str.7 = [52 x i8] c"[-I n] : number of relaxation iterations\0A\00"
@.str.8 = [40 x i8] c" default value is 10\0A\00"
@.str.9 = [46 x i8] c"[-A n.n] : smoothing parameter alpha\0A\00"
@.str.10 = [41 x i8] c" default value is 5.0\0A\00"
@.str.11 = [36 x i8] c"[-D n.n] : delta parameter\0A\00"
@.str.12 = [41 x i8] c" default value is 1.0\0A\00"
@.str.13 = [58 x i8] c"[-B cols rows] : for binary input files without header\0A\00"
@.str.14 = [53 x i8] c"[-F n.n] : filters out unreliable estimates\0A\00"
@.str.15 = [58 x i8] c" using the magnitude of local gradient\0A\00"
@.str.16 = [36 x i8] c"[-C corr-vel-file nbins increment]\0A\00"
@.str.17 = [36 x i8] c" : error histogram\0A\00"
@.str.18 = [63 x i8] c" corr-vel-file : file of correct velocities\0A\00"
@.str.19 = [57 x i8] c" nbins : number of bins for histogram\0A\00"
@.str.20 = [58 x i8] c" increment : value of gap between bins\0A\00"
define i32 @usage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([158 x i8], [158 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @stderr
%4 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.1, i64 0, i64 0))
%5 = load i32, i32* @stderr
%6 = call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.2, i64 0, i64 0))
%7 = load i32, i32* @stderr
%8 = call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.3, i64 0, i64 0))
%9 = load i32, i32* @stderr
%10 = call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.4, i64 0, i64 0))
%11 = load i32, i32* @stderr
%12 = call i32 @fprintf(i32 %11, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.5, i64 0, i64 0))
%13 = load i32, i32* @stderr
%14 = call i32 @fprintf(i32 %13, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.6, i64 0, i64 0))
%15 = load i32, i32* @stderr
%16 = call i32 @fprintf(i32 %15, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.7, i64 0, i64 0))
%17 = load i32, i32* @stderr
%18 = call i32 @fprintf(i32 %17, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.8, i64 0, i64 0))
%19 = load i32, i32* @stderr
%20 = call i32 @fprintf(i32 %19, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.9, i64 0, i64 0))
%21 = load i32, i32* @stderr
%22 = call i32 @fprintf(i32 %21, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.10, i64 0, i64 0))
%23 = load i32, i32* @stderr
%24 = call i32 @fprintf(i32 %23, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.11, i64 0, i64 0))
%25 = load i32, i32* @stderr
%26 = call i32 @fprintf(i32 %25, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.12, i64 0, i64 0))
%27 = load i32, i32* @stderr
%28 = call i32 @fprintf(i32 %27, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.13, i64 0, i64 0))
%29 = load i32, i32* @stderr
%30 = call i32 @fprintf(i32 %29, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.14, i64 0, i64 0))
%31 = load i32, i32* @stderr
%32 = call i32 @fprintf(i32 %31, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.15, i64 0, i64 0))
%33 = load i32, i32* @stderr
%34 = call i32 @fprintf(i32 %33, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.16, i64 0, i64 0))
%35 = load i32, i32* @stderr
%36 = call i32 @fprintf(i32 %35, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.17, i64 0, i64 0))
%37 = load i32, i32* @stderr
%38 = call i32 @fprintf(i32 %37, i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.18, i64 0, i64 0))
%39 = load i32, i32* @stderr
%40 = call i32 @fprintf(i32 %39, i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.19, i64 0, i64 0))
%41 = load i32, i32* @stderr
%42 = call i32 @fprintf(i32 %41, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.20, i64 0, i64 0))
%43 = call i32 @exit(i32 -1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [158 x i8] c"Usage: nagel input-path output-path seq-name. [-SG n.n] [-TG n.n] [-M n] [-I n] [-A n.n] [-D n.n] [-B cols rows] [-F n.n] [-C corr-vel-file nbins increment]\0A\00"
@.str.1 = [53 x i8] c"[-SG n.n] : sigma value for spatial gaussian\0A\00"
@.str.2 = [41 x i8] c" default value is 3.0\0A\00"
@.str.3 = [54 x i8] c"[-TG n.n] : sigma value for temporal gaussian\0A\00"
@.str.4 = [41 x i8] c" default value is 1.5\0A\00"
@.str.5 = [51 x i8] c"[-M n] : middle frame of image sequence\0A\00"
@.str.6 = [39 x i8] c" default value is 0\0A\00"
@.str.7 = [52 x i8] c"[-I n] : number of relaxation iterations\0A\00"
@.str.8 = [40 x i8] c" default value is 10\0A\00"
@.str.9 = [46 x i8] c"[-A n.n] : smoothing parameter alpha\0A\00"
@.str.10 = [41 x i8] c" default value is 5.0\0A\00"
@.str.11 = [36 x i8] c"[-D n.n] : delta parameter\0A\00"
@.str.12 = [41 x i8] c" default value is 1.0\0A\00"
@.str.13 = [58 x i8] c"[-B cols rows] : for binary input files without header\0A\00"
@.str.14 = [53 x i8] c"[-F n.n] : filters out unreliable estimates\0A\00"
@.str.15 = [58 x i8] c" using the magnitude of local gradient\0A\00"
@.str.16 = [36 x i8] c"[-C corr-vel-file nbins increment]\0A\00"
@.str.17 = [36 x i8] c" : error histogram\0A\00"
@.str.18 = [63 x i8] c" corr-vel-file : file of correct velocities\0A\00"
@.str.19 = [57 x i8] c" nbins : number of bins for histogram\0A\00"
@.str.20 = [58 x i8] c" increment : 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 ([158 x i8], [158 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @stderr
%4 = tail call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.1, i64 0, i64 0))
%5 = load i32, i32* @stderr
%6 = tail call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.2, i64 0, i64 0))
%7 = load i32, i32* @stderr
%8 = tail call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.3, i64 0, i64 0))
%9 = load i32, i32* @stderr
%10 = tail call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.4, i64 0, i64 0))
%11 = load i32, i32* @stderr
%12 = tail call i32 @fprintf(i32 %11, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.5, i64 0, i64 0))
%13 = load i32, i32* @stderr
%14 = tail call i32 @fprintf(i32 %13, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.6, i64 0, i64 0))
%15 = load i32, i32* @stderr
%16 = tail call i32 @fprintf(i32 %15, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.7, i64 0, i64 0))
%17 = load i32, i32* @stderr
%18 = tail call i32 @fprintf(i32 %17, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.8, i64 0, i64 0))
%19 = load i32, i32* @stderr
%20 = tail call i32 @fprintf(i32 %19, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.9, i64 0, i64 0))
%21 = load i32, i32* @stderr
%22 = tail call i32 @fprintf(i32 %21, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.10, i64 0, i64 0))
%23 = load i32, i32* @stderr
%24 = tail call i32 @fprintf(i32 %23, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.11, i64 0, i64 0))
%25 = load i32, i32* @stderr
%26 = tail call i32 @fprintf(i32 %25, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.12, i64 0, i64 0))
%27 = load i32, i32* @stderr
%28 = tail call i32 @fprintf(i32 %27, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.13, i64 0, i64 0))
%29 = load i32, i32* @stderr
%30 = tail call i32 @fprintf(i32 %29, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.14, i64 0, i64 0))
%31 = load i32, i32* @stderr
%32 = tail call i32 @fprintf(i32 %31, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.15, i64 0, i64 0))
%33 = load i32, i32* @stderr
%34 = tail call i32 @fprintf(i32 %33, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.16, i64 0, i64 0))
%35 = load i32, i32* @stderr
%36 = tail call i32 @fprintf(i32 %35, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.17, i64 0, i64 0))
%37 = load i32, i32* @stderr
%38 = tail call i32 @fprintf(i32 %37, i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.18, i64 0, i64 0))
%39 = load i32, i32* @stderr
%40 = tail call i32 @fprintf(i32 %39, i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.19, i64 0, i64 0))
%41 = load i32, i32* @stderr
%42 = tail call i32 @fprintf(i32 %41, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.20, i64 0, i64 0))
%43 = tail call i32 @exit(i32 -1)
unreachable
}