#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 usage(void) {
  static char *text[] = {
      "usage: embed [options] <input >output",
      "",
      "the input must be in writegraph format as used in the VEGA project",
      "recognized options:",
      "  -a [+-]     if '+' and there are vertices of degree 2, then",
      "              subdivide some faces to make these stick out.",
      "              (This process is repeated recursively).",
      "  -b n,m      boundary face is clockwise of directed edge n->m",
      "  -c x,y      boundary face contains point x,y",
      "  -d n        dimension of the embedding, either 2 or 3",
      "  -i c        type of initial (non-iterative) embedding,",
      "              where c is one of",
      "              k     keep given embedding",
      "              p     planar",
      "              s     spherical",
      "              t     tubular",
      "  -f x,y,z    multiply default number of iteration steps",
      "              in phases 1,2,3 by factors x,y,z, respectively",
      "  -p c        for dimension 2 only: use force model c in",
      "              second phase, where c is one of",
      "              a     triangle areas",
      "              l     edge lengths",
      "              t     Tutte's method with uniform weights",
      "  -r          renumber vertices on output",
      "  -s [+-]     if '+', work on a triangulation of the graph",
      "  -v          verbose mode",
      "  -w c        write graph in format c, where c is one of",
      "              b     Brookhaven protein data base (3D only)",
      "              n     no output at all",
      "              p     planar code (binary, no coordinates)",
      "              v     writegraph format",
      "  -x          helix mode",
      "  -H          for dimension 2 only: create horizontal outer faces",
      "",
      "default is '-a+ -d2 -pa -s+ -wv',",
      "with force model other than 'a', the option '-s-' is recommended.",
      "",
      NULL};
  int i;
  for (i = 0; text[i]; i++) {
    fprintf(stderr, "%s", text[i]);
    fprintf(stderr, "\n");
  }
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movslq -0x4(%rbp),%rcx
lea    0x2f06(%rip),%rax
cmpq   $0x0,(%rax,%rcx,8)
je     1180 <usage+0x70>
mov    0x2ea4(%rip),%rax
mov    (%rax),%edi
movslq -0x4(%rbp),%rcx
lea    0x2ee7(%rip),%rax
mov    (%rax,%rcx,8),%rdx
lea    0x14e6(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e7e(%rip),%rax
mov    (%rax),%edi
lea    0x14d2(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    111f <usage+0xf>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
lea    0x2bc0(%rip),%r15
mov    0x2eb1(%rip),%r13
lea    0x150c(%rip),%r14
lea    0x1508(%rip),%r12
xor    %ebx,%ebx
nopw   0x0(%rax,%rax,1)
mov    (%rbx,%r15,1),%rdx
mov    0x0(%r13),%edi
mov    %r14,%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    0x0(%r13),%edi
mov    %r12,%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
add    $0x8,%rbx
cmp    $0x128,%rbx
jne    1140 <usage+0x30>
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@usage.text = internal global [38 x i8*] [i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.11, i32 0, i32 0), i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.12, i32 0, i32 0), i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.13, i32 0, i32 0), i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.14, i32 0, i32 0), i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.15, i32 0, i32 0), i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.16, i32 0, i32 0), i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.17, i32 0, i32 0), i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.18, i32 0, i32 0), i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.19, i32 0, i32 0), i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.20, i32 0, i32 0), i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.21, i32 0, i32 0), i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.22, i32 0, i32 0), i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.23, i32 0, i32 0), i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.24, i32 0, i32 0), i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.25, i32 0, i32 0), i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.26, i32 0, i32 0), i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.27, i32 0, i32 0), i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.28, i32 0, i32 0), i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.29, i32 0, i32 0), i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.30, i32 0, i32 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.31, i32 0, i32 0), i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.32, i32 0, i32 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.33, i32 0, i32 0), i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.34, i32 0, i32 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i32 0, i32 0), i8* null]
@.str = [38 x i8] c"usage: embed [options] <input >output\00"
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [67 x i8] c"the input must be in writegraph format as used in the VEGA project\00"
@.str.3 = [20 x i8] c"recognized options:\00"
@.str.4 = [62 x i8] c" -a [+-] if '+' and there are vertices of degree 2, then\00"
@.str.5 = [60 x i8] c" subdivide some faces to make these stick out.\00"
@.str.6 = [54 x i8] c" (This process is repeated recursively).\00"
@.str.7 = [63 x i8] c" -b n,m boundary face is clockwise of directed edge n->m\00"
@.str.8 = [47 x i8] c" -c x,y boundary face contains point x,y\00"
@.str.9 = [56 x i8] c" -d n dimension of the embedding, either 2 or 3\00"
@.str.10 = [57 x i8] c" -i c type of initial (non-iterative) embedding,\00"
@.str.11 = [32 x i8] c" where c is one of\00"
@.str.12 = [41 x i8] c" k keep given embedding\00"
@.str.13 = [27 x i8] c" p planar\00"
@.str.14 = [30 x i8] c" s spherical\00"
@.str.15 = [28 x i8] c" t tubular\00"
@.str.16 = [57 x i8] c" -f x,y,z multiply default number of iteration steps\00"
@.str.17 = [61 x i8] c" in phases 1,2,3 by factors x,y,z, respectively\00"
@.str.18 = [57 x i8] c" -p c for dimension 2 only: use force model c in\00"
@.str.19 = [46 x i8] c" second phase, where c is one of\00"
@.str.20 = [35 x i8] c" a triangle areas\00"
@.str.21 = [33 x i8] c" l edge lengths\00"
@.str.22 = [56 x i8] c" t Tutte's method with uniform weights\00"
@.str.23 = [42 x i8] c" -r renumber vertices on output\00"
@.str.24 = [59 x i8] c" -s [+-] if '+', work on a triangulation of the graph\00"
@.str.25 = [27 x i8] c" -v verbose mode\00"
@.str.26 = [57 x i8] c" -w c write graph in format c, where c is one of\00"
@.str.27 = [59 x i8] c" b Brookhaven protein data base (3D only)\00"
@.str.28 = [37 x i8] c" n no output at all\00"
@.str.29 = [57 x i8] c" p planar code (binary, no coordinates)\00"
@.str.30 = [38 x i8] c" v writegraph format\00"
@.str.31 = [25 x i8] c" -x helix mode\00"
@.str.32 = [66 x i8] c" -H for dimension 2 only: create horizontal outer faces\00"
@.str.33 = [34 x i8] c"default is '-a+ -d2 -pa -s+ -wv',\00"
@.str.34 = [66 x i8] c"with force model other than 'a', the option '-s-' is recommended.\00"
@stderr = global i32 0
@.str.35 = [3 x i8] c"%s\00"
@.str.36 = [2 x i8] c"\0A\00"
define void @usage() {
%1 = alloca i32
store i32 0, i32* %1
br label %2
2: ; preds = %17, %0
%3 = load i32, i32* %1
%4 = sext i32 %3 to i64
%5 = getelementptr inbounds [38 x i8*], [38 x i8*]* @usage.text, i64 0, i64 %4
%6 = load i8*, i8** %5
%7 = icmp ne i8* %6, null
br i1 %7, label %8, label %20
8: ; preds = %2
%9 = load i32, i32* @stderr
%10 = load i32, i32* %1
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds [38 x i8*], [38 x i8*]* @usage.text, i64 0, i64 %11
%13 = load i8*, i8** %12
%14 = call i32 (i32, i8*, ...) @fprintf(i32 %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.35, i64 0, i64 0), i8* %13)
%15 = load i32, i32* @stderr
%16 = call i32 (i32, i8*, ...) @fprintf(i32 %15, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.36, i64 0, i64 0))
br label %17
17: ; preds = %8
%18 = load i32, i32* %1
%19 = add nsw i32 %18, 1
store i32 %19, i32* %1
br label %2
20: ; preds = %2
ret void
}

LLVM IR (-O2):
@usage.text = internal unnamed_addr constant [38 x i8*] [i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.11, i32 0, i32 0), i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.12, i32 0, i32 0), i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.13, i32 0, i32 0), i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.14, i32 0, i32 0), i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.15, i32 0, i32 0), i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.16, i32 0, i32 0), i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.17, i32 0, i32 0), i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.18, i32 0, i32 0), i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.19, i32 0, i32 0), i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.20, i32 0, i32 0), i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.21, i32 0, i32 0), i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.22, i32 0, i32 0), i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.23, i32 0, i32 0), i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.24, i32 0, i32 0), i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.25, i32 0, i32 0), i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.26, i32 0, i32 0), i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.27, i32 0, i32 0), i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.28, i32 0, i32 0), i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.29, i32 0, i32 0), i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.30, i32 0, i32 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.31, i32 0, i32 0), i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.32, i32 0, i32 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.33, i32 0, i32 0), i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.34, i32 0, i32 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i32 0, i32 0), i8* null]
@.str = [38 x i8] c"usage: embed [options] <input >output\00"
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [67 x i8] c"the input must be in writegraph format as used in the VEGA project\00"
@.str.3 = [20 x i8] c"recognized options:\00"
@.str.4 = [62 x i8] c" -a [+-] if '+' and there are vertices of degree 2, then\00"
@.str.5 = [60 x i8] c" subdivide some faces to make these stick out.\00"
@.str.6 = [54 x i8] c" (This process is repeated recursively).\00"
@.str.7 = [63 x i8] c" -b n,m boundary face is clockwise of directed edge n->m\00"
@.str.8 = [47 x i8] c" -c x,y boundary face contains point x,y\00"
@.str.9 = [56 x i8] c" -d n dimension of the embedding, either 2 or 3\00"
@.str.10 = [57 x i8] c" -i c type of initial (non-iterative) embedding,\00"
@.str.11 = [32 x i8] c" where c is one of\00"
@.str.12 = [41 x i8] c" k keep given embedding\00"
@.str.13 = [27 x i8] c" p planar\00"
@.str.14 = [30 x i8] c" s spherical\00"
@.str.15 = [28 x i8] c" t tubular\00"
@.str.16 = [57 x i8] c" -f x,y,z multiply default number of iteration steps\00"
@.str.17 = [61 x i8] c" in phases 1,2,3 by factors x,y,z, respectively\00"
@.str.18 = [57 x i8] c" -p c for dimension 2 only: use force model c in\00"
@.str.19 = [46 x i8] c" second phase, where c is one of\00"
@.str.20 = [35 x i8] c" a triangle areas\00"
@.str.21 = [33 x i8] c" l edge lengths\00"
@.str.22 = [56 x i8] c" t Tutte's method with uniform weights\00"
@.str.23 = [42 x i8] c" -r renumber vertices on output\00"
@.str.24 = [59 x i8] c" -s [+-] if '+', work on a triangulation of the graph\00"
@.str.25 = [27 x i8] c" -v verbose mode\00"
@.str.26 = [57 x i8] c" -w c write graph in format c, where c is one of\00"
@.str.27 = [59 x i8] c" b Brookhaven protein data base (3D only)\00"
@.str.28 = [37 x i8] c" n no output at all\00"
@.str.29 = [57 x i8] c" p planar code (binary, no coordinates)\00"
@.str.30 = [38 x i8] c" v writegraph format\00"
@.str.31 = [25 x i8] c" -x helix mode\00"
@.str.32 = [66 x i8] c" -H for dimension 2 only: create horizontal outer faces\00"
@.str.33 = [34 x i8] c"default is '-a+ -d2 -pa -s+ -wv',\00"
@.str.34 = [66 x i8] c"with force model other than 'a', the option '-s-' is recommended.\00"
@stderr = global i32 0
@.str.35 = [3 x i8] c"%s\00"
@.str.36 = [2 x i8] c"\0A\00"
define void @usage() {
br label %1
1: ; preds = %0, %1
%2 = phi i64 [ 0, %0 ], [ %9, %1 ]
%3 = getelementptr inbounds [38 x i8*], [38 x i8*]* @usage.text, i64 0, i64 %2
%4 = load i8*, i8** %3
%5 = load i32, i32* @stderr
%6 = tail call i32 (i32, i8*, ...) @fprintf(i32 %5, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.35, i64 0, i64 0), i8* %4)
%7 = load i32, i32* @stderr
%8 = tail call i32 (i32, i8*, ...) @fprintf(i32 %7, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.36, i64 0, i64 0))
%9 = add nuw nsw i64 %2, 1
%10 = icmp eq i64 %9, 37
br i1 %10, label %11, label %1
11: ; preds = %1
ret void
}