#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 getpid();
int /*<<< orphan*/ main_usage(char *);
int /*<<< orphan*/ srand48(long);
scalar_t__ strcmp(char *, char *);
int /*<<< orphan*/ test_A1_oo_A2(int, char **);
int /*<<< orphan*/ test_A1_or_A2_in_C(int, char **);
int /*<<< orphan*/ test_A_in_C(int, char **);
int /*<<< orphan*/ test_P_A1_oo_A2(int, char **);
int /*<<< orphan*/ test_P_A1_or_A2_in_C(int, char **);
int /*<<< orphan*/ test_P_A_in_C(int, char **);
int /*<<< orphan*/ test_cluster(int, char **);
int /*<<< orphan*/ test_cluster_numbers(int, char **);
int /*<<< orphan*/ test_cluster_sizes(int, char **);
int /*<<< orphan*/ test_corrlen(int, char **);
int /*<<< orphan*/ test_get_bonded_neighbors(int, char **);
int /*<<< orphan*/ test_mean_C0_size(int, char **);
int /*<<< orphan*/ test_mean_finite_C0_size(int, char **);
int /*<<< orphan*/ test_plot_cluster(int, char **);
int /*<<< orphan*/ test_plot_clusters(int, char **);
int /*<<< orphan*/ test_plot_lattice(int, char **);
int /*<<< orphan*/ test_print_lattice(int, char **);
int time(int /*<<< orphan*/);
int main(int argc, char **argv) {
  srand48((long)(time(0) ^ getpid()));
  if (argc < 2)
    main_usage(argv[0]);
  if (strcmp(argv[1], "print") == 0)
    test_print_lattice(argc, argv);
  else if (strcmp(argv[1], "plot") == 0)
    test_plot_lattice(argc, argv);
  else if (strcmp(argv[1], "nei") == 0)
    test_get_bonded_neighbors(argc, argv);
  else if (strcmp(argv[1], "cluster") == 0)
    test_cluster(argc, argv);
  else if (strcmp(argv[1], "plotcluster") == 0)
    test_plot_cluster(argc, argv);
  else if (strcmp(argv[1], "meanC0size") == 0)
    test_mean_C0_size(argc, argv);
  else if (strcmp(argv[1], "meanfC0size") == 0)
    test_mean_finite_C0_size(argc, argv);
  else if (strcmp(argv[1], "corrlen") == 0)
    test_corrlen(argc, argv);
  else if (strcmp(argv[1], "1o2") == 0)
    test_A1_oo_A2(argc, argv);
  else if (strcmp(argv[1], "P1o2") == 0)
    test_P_A1_oo_A2(argc, argv);
  else if (strcmp(argv[1], "clnos") == 0)
    test_cluster_numbers(argc, argv);
  else if (strcmp(argv[1], "plotclusters") == 0)
    test_plot_clusters(argc, argv);
  else if (strcmp(argv[1], "clszs") == 0)
    test_cluster_sizes(argc, argv);
  else if (strcmp(argv[1], "AinC") == 0)
    test_A_in_C(argc, argv);
  else if (strcmp(argv[1], "PAinC") == 0)
    test_P_A_in_C(argc, argv);
  else if (strcmp(argv[1], "U2inC") == 0)
    test_A1_or_A2_in_C(argc, argv);
  else if (strcmp(argv[1], "PU2inC") == 0)
    test_P_A1_or_A2_in_C(argc, argv);
  else
    main_usage(argv[0]);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
xor    %edi,%edi
call   10f0 <time@plt>
mov    %eax,-0x14(%rbp)
mov    $0x0,%al
call   1050 <getpid@plt>
mov    %eax,%ecx
mov    -0x14(%rbp),%eax
xor    %ecx,%eax
movslq %eax,%rdi
call   1120 <srand48@plt>
cmpl   $0x2,-0x8(%rbp)
jge    12ac <main+0x4c>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   1040 <main_usage@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xd45(%rip),%rsi
call   10c0 <strcmp@plt>
cmp    $0x0,%rax
jne    12db <main+0x7b>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1180 <test_print_lattice@plt>
jmp    1627 <main+0x3c7>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xd1c(%rip),%rsi
call   10c0 <strcmp@plt>
cmp    $0x0,%rax
jne    130a <main+0xaa>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1030 <test_plot_lattice@plt>
jmp    1622 <main+0x3c2>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xcf2(%rip),%rsi
call   10c0 <strcmp@plt>
cmp    $0x0,%rax
jne    1339 <main+0xd9>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1110 <test_get_bonded_neighbors@plt>
jmp    161d <main+0x3bd>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xccb(%rip),%rsi
call   10c0 <strcmp@plt>
cmp    $0x0,%rax
jne    1368 <main+0x108>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   10a0 <test_cluster@plt>
jmp    1618 <main+0x3b8>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xc98(%rip),%rsi
call   10c0 <strcmp@plt>
cmp    $0x0,%rax
jne    1397 <main+0x137>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1090 <test_plot_cluster@plt>
jmp    1613 <main+0x3b3>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xc75(%rip),%rsi
call   10c0 <strcmp@plt>
cmp    $0x0,%rax
jne    13c6 <main+0x166>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   10b0 <test_mean_C0_size@plt>
jmp    160e <main+0x3ae>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xc51(%rip),%rsi
call   10c0 <strcmp@plt>
cmp    $0x0,%rax
jne    13f5 <main+0x195>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1080 <test_mean_finite_C0_size@plt>
jmp    1609 <main+0x3a9>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xc2e(%rip),%rsi
call   10c0 <strcmp@plt>
cmp    $0x0,%rax
jne    1424 <main+0x1c4>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1140 <test_corrlen@plt>
jmp    1604 <main+0x3a4>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xc08(%rip),%rsi
call   10c0 <strcmp@plt>
cmp    $0x0,%rax
jne    1453 <main+0x1f3>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1100 <test_A1_oo_A2@plt>
jmp    15ff <main+0x39f>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xbd8(%rip),%rsi
call   10c0 <strcmp@plt>
cmp    $0x0,%rax
jne    1482 <main+0x222>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   10e0 <test_P_A1_oo_A2@plt>
jmp    15fa <main+0x39a>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xbae(%rip),%rsi
call   10c0 <strcmp@plt>
cmp    $0x0,%rax
jne    14b1 <main+0x251>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1060 <test_cluster_numbers@plt>
jmp    15f5 <main+0x395>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xb85(%rip),%rsi
call   10c0 <strcmp@plt>
cmp    $0x0,%rax
jne    14e0 <main+0x280>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1130 <test_plot_clusters@plt>
jmp    15f0 <main+0x390>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xb63(%rip),%rsi
call   10c0 <strcmp@plt>
cmp    $0x0,%rax
jne    150f <main+0x2af>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   10d0 <test_cluster_sizes@plt>
jmp    15eb <main+0x38b>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xb3b(%rip),%rsi
call   10c0 <strcmp@plt>
cmp    $0x0,%rax
jne    153e <main+0x2de>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1150 <test_A_in_C@plt>
jmp    15e6 <main+0x386>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xb0b(%rip),%rsi
call   10c0 <strcmp@plt>
cmp    $0x0,%rax
jne    156d <main+0x30d>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1170 <test_P_A_in_C@plt>
jmp    15e1 <main+0x381>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xae3(%rip),%rsi
call   10c0 <strcmp@plt>
cmp    $0x0,%rax
jne    159c <main+0x33c>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1160 <test_A1_or_A2_in_C@plt>
jmp    15dc <main+0x37c>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xab3(%rip),%rsi
call   10c0 <strcmp@plt>
cmp    $0x0,%rax
jne    15cb <main+0x36b>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1070 <test_P_A1_or_A2_in_C@plt>
jmp    15d7 <main+0x377>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   1040 <main_usage@plt>
jmp    15dc <main+0x37c>
jmp    15e1 <main+0x381>
jmp    15e6 <main+0x386>
jmp    15eb <main+0x38b>
jmp    15f0 <main+0x390>
jmp    15f5 <main+0x395>
jmp    15fa <main+0x39a>
jmp    15ff <main+0x39f>
jmp    1604 <main+0x3a4>
jmp    1609 <main+0x3a9>
jmp    160e <main+0x3ae>
jmp    1613 <main+0x3b3>
jmp    1618 <main+0x3b8>
jmp    161d <main+0x3bd>
jmp    1622 <main+0x3c2>
jmp    1627 <main+0x3c7>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
mov    %rsi,%rbx
mov    %edi,%r14d
xor    %edi,%edi
call   10f0 <time@plt>
mov    %eax,%ebp
xor    %eax,%eax
call   1050 <getpid@plt>
xor    %ebp,%eax
movslq %eax,%rdi
call   1120 <srand48@plt>
cmp    $0x1,%r14d
jg     1292 <main+0x32>
mov    (%rbx),%rdi
call   1040 <main_usage@plt>
mov    0x8(%rbx),%rdi
lea    0xd63(%rip),%rsi
call   10c0 <strcmp@plt>
test   %rax,%rax
je     1448 <main+0x1e8>
mov    0x8(%rbx),%rdi
lea    0xd50(%rip),%rsi
call   10c0 <strcmp@plt>
test   %rax,%rax
je     1458 <main+0x1f8>
mov    0x8(%rbx),%rdi
lea    0xd3c(%rip),%rsi
call   10c0 <strcmp@plt>
test   %rax,%rax
je     1468 <main+0x208>
mov    0x8(%rbx),%rdi
lea    0xd2b(%rip),%rsi
call   10c0 <strcmp@plt>
test   %rax,%rax
je     1478 <main+0x218>
mov    0x8(%rbx),%rdi
lea    0xd0e(%rip),%rsi
call   10c0 <strcmp@plt>
test   %rax,%rax
je     1488 <main+0x228>
mov    0x8(%rbx),%rdi
lea    0xd01(%rip),%rsi
call   10c0 <strcmp@plt>
test   %rax,%rax
je     1498 <main+0x238>
mov    0x8(%rbx),%rdi
lea    0xcf3(%rip),%rsi
call   10c0 <strcmp@plt>
test   %rax,%rax
je     14a8 <main+0x248>
mov    0x8(%rbx),%rdi
lea    0xce6(%rip),%rsi
call   10c0 <strcmp@plt>
test   %rax,%rax
je     14b8 <main+0x258>
mov    0x8(%rbx),%rdi
lea    0xcd6(%rip),%rsi
call   10c0 <strcmp@plt>
test   %rax,%rax
je     14c5 <main+0x265>
mov    0x8(%rbx),%rdi
lea    0xcbc(%rip),%rsi
call   10c0 <strcmp@plt>
test   %rax,%rax
je     14d2 <main+0x272>
mov    0x8(%rbx),%rdi
lea    0xca8(%rip),%rsi
call   10c0 <strcmp@plt>
test   %rax,%rax
je     14df <main+0x27f>
mov    0x8(%rbx),%rdi
lea    0xc95(%rip),%rsi
call   10c0 <strcmp@plt>
test   %rax,%rax
je     14ec <main+0x28c>
mov    0x8(%rbx),%rdi
lea    0xc89(%rip),%rsi
call   10c0 <strcmp@plt>
test   %rax,%rax
je     14f9 <main+0x299>
mov    0x8(%rbx),%rdi
lea    0xc77(%rip),%rsi
call   10c0 <strcmp@plt>
test   %rax,%rax
je     1506 <main+0x2a6>
mov    0x8(%rbx),%rdi
lea    0xc5d(%rip),%rsi
call   10c0 <strcmp@plt>
test   %rax,%rax
je     1513 <main+0x2b3>
mov    0x8(%rbx),%rdi
lea    0xc4b(%rip),%rsi
call   10c0 <strcmp@plt>
test   %rax,%rax
je     1520 <main+0x2c0>
mov    0x8(%rbx),%rdi
lea    0xc31(%rip),%rsi
call   10c0 <strcmp@plt>
test   %rax,%rax
je     152d <main+0x2cd>
mov    (%rbx),%rdi
call   1040 <main_usage@plt>
jmp    1538 <main+0x2d8>
mov    %r14d,%edi
mov    %rbx,%rsi
call   1180 <test_print_lattice@plt>
jmp    1538 <main+0x2d8>
mov    %r14d,%edi
mov    %rbx,%rsi
call   1030 <test_plot_lattice@plt>
jmp    1538 <main+0x2d8>
mov    %r14d,%edi
mov    %rbx,%rsi
call   1110 <test_get_bonded_neighbors@plt>
jmp    1538 <main+0x2d8>
mov    %r14d,%edi
mov    %rbx,%rsi
call   10a0 <test_cluster@plt>
jmp    1538 <main+0x2d8>
mov    %r14d,%edi
mov    %rbx,%rsi
call   1090 <test_plot_cluster@plt>
jmp    1538 <main+0x2d8>
mov    %r14d,%edi
mov    %rbx,%rsi
call   10b0 <test_mean_C0_size@plt>
jmp    1538 <main+0x2d8>
mov    %r14d,%edi
mov    %rbx,%rsi
call   1080 <test_mean_finite_C0_size@plt>
jmp    1538 <main+0x2d8>
mov    %r14d,%edi
mov    %rbx,%rsi
call   1140 <test_corrlen@plt>
jmp    1538 <main+0x2d8>
mov    %r14d,%edi
mov    %rbx,%rsi
call   1100 <test_A1_oo_A2@plt>
jmp    1538 <main+0x2d8>
mov    %r14d,%edi
mov    %rbx,%rsi
call   10e0 <test_P_A1_oo_A2@plt>
jmp    1538 <main+0x2d8>
mov    %r14d,%edi
mov    %rbx,%rsi
call   1060 <test_cluster_numbers@plt>
jmp    1538 <main+0x2d8>
mov    %r14d,%edi
mov    %rbx,%rsi
call   1130 <test_plot_clusters@plt>
jmp    1538 <main+0x2d8>
mov    %r14d,%edi
mov    %rbx,%rsi
call   10d0 <test_cluster_sizes@plt>
jmp    1538 <main+0x2d8>
mov    %r14d,%edi
mov    %rbx,%rsi
call   1150 <test_A_in_C@plt>
jmp    1538 <main+0x2d8>
mov    %r14d,%edi
mov    %rbx,%rsi
call   1170 <test_P_A_in_C@plt>
jmp    1538 <main+0x2d8>
mov    %r14d,%edi
mov    %rbx,%rsi
call   1160 <test_A1_or_A2_in_C@plt>
jmp    1538 <main+0x2d8>
mov    %r14d,%edi
mov    %rbx,%rsi
call   1070 <test_P_A1_or_A2_in_C@plt>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [6 x i8] c"print\00"
@.str.1 = [5 x i8] c"plot\00"
@.str.2 = [4 x i8] c"nei\00"
@.str.3 = [8 x i8] c"cluster\00"
@.str.4 = [12 x i8] c"plotcluster\00"
@.str.5 = [11 x i8] c"meanC0size\00"
@.str.6 = [12 x i8] c"meanfC0size\00"
@.str.7 = [8 x i8] c"corrlen\00"
@.str.8 = [4 x i8] c"1o2\00"
@.str.9 = [5 x i8] c"P1o2\00"
@.str.10 = [6 x i8] c"clnos\00"
@.str.11 = [13 x i8] c"plotclusters\00"
@.str.12 = [6 x i8] c"clszs\00"
@.str.13 = [5 x i8] c"AinC\00"
@.str.14 = [6 x i8] c"PAinC\00"
@.str.15 = [6 x i8] c"U2inC\00"
@.str.16 = [7 x i8] c"PU2inC\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = call i32 @time(i32 0)
%7 = call i32 (...) @getpid()
%8 = xor i32 %6, %7
%9 = sext i32 %8 to i64
%10 = call i32 @srand48(i64 %9)
%11 = load i32, i32* %4
%12 = icmp slt i32 %11, 2
br i1 %12, label %13, label %18
13: ; preds = %2
%14 = load i8**, i8*** %5
%15 = getelementptr inbounds i8*, i8** %14, i64 0
%16 = load i8*, i8** %15
%17 = call i32 @main_usage(i8* %16)
br label %18
18: ; preds = %13, %2
%19 = load i8**, i8*** %5
%20 = getelementptr inbounds i8*, i8** %19, i64 1
%21 = load i8*, i8** %20
%22 = call i64 @strcmp(i8* %21, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%23 = icmp eq i64 %22, 0
br i1 %23, label %24, label %28
24: ; preds = %18
%25 = load i32, i32* %4
%26 = load i8**, i8*** %5
%27 = call i32 @test_print_lattice(i32 %25, i8** %26)
br label %209
28: ; preds = %18
%29 = load i8**, i8*** %5
%30 = getelementptr inbounds i8*, i8** %29, i64 1
%31 = load i8*, i8** %30
%32 = call i64 @strcmp(i8* %31, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%33 = icmp eq i64 %32, 0
br i1 %33, label %34, label %38
34: ; preds = %28
%35 = load i32, i32* %4
%36 = load i8**, i8*** %5
%37 = call i32 @test_plot_lattice(i32 %35, i8** %36)
br label %208
38: ; preds = %28
%39 = load i8**, i8*** %5
%40 = getelementptr inbounds i8*, i8** %39, i64 1
%41 = load i8*, i8** %40
%42 = call i64 @strcmp(i8* %41, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%43 = icmp eq i64 %42, 0
br i1 %43, label %44, label %48
44: ; preds = %38
%45 = load i32, i32* %4
%46 = load i8**, i8*** %5
%47 = call i32 @test_get_bonded_neighbors(i32 %45, i8** %46)
br label %207
48: ; preds = %38
%49 = load i8**, i8*** %5
%50 = getelementptr inbounds i8*, i8** %49, i64 1
%51 = load i8*, i8** %50
%52 = call i64 @strcmp(i8* %51, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
%53 = icmp eq i64 %52, 0
br i1 %53, label %54, label %58
54: ; preds = %48
%55 = load i32, i32* %4
%56 = load i8**, i8*** %5
%57 = call i32 @test_cluster(i32 %55, i8** %56)
br label %206
58: ; preds = %48
%59 = load i8**, i8*** %5
%60 = getelementptr inbounds i8*, i8** %59, i64 1
%61 = load i8*, i8** %60
%62 = call i64 @strcmp(i8* %61, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0))
%63 = icmp eq i64 %62, 0
br i1 %63, label %64, label %68
64: ; preds = %58
%65 = load i32, i32* %4
%66 = load i8**, i8*** %5
%67 = call i32 @test_plot_cluster(i32 %65, i8** %66)
br label %205
68: ; preds = %58
%69 = load i8**, i8*** %5
%70 = getelementptr inbounds i8*, i8** %69, i64 1
%71 = load i8*, i8** %70
%72 = call i64 @strcmp(i8* %71, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
%73 = icmp eq i64 %72, 0
br i1 %73, label %74, label %78
74: ; preds = %68
%75 = load i32, i32* %4
%76 = load i8**, i8*** %5
%77 = call i32 @test_mean_C0_size(i32 %75, i8** %76)
br label %204
78: ; preds = %68
%79 = load i8**, i8*** %5
%80 = getelementptr inbounds i8*, i8** %79, i64 1
%81 = load i8*, i8** %80
%82 = call i64 @strcmp(i8* %81, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0))
%83 = icmp eq i64 %82, 0
br i1 %83, label %84, label %88
84: ; preds = %78
%85 = load i32, i32* %4
%86 = load i8**, i8*** %5
%87 = call i32 @test_mean_finite_C0_size(i32 %85, i8** %86)
br label %203
88: ; preds = %78
%89 = load i8**, i8*** %5
%90 = getelementptr inbounds i8*, i8** %89, i64 1
%91 = load i8*, i8** %90
%92 = call i64 @strcmp(i8* %91, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0))
%93 = icmp eq i64 %92, 0
br i1 %93, label %94, label %98
94: ; preds = %88
%95 = load i32, i32* %4
%96 = load i8**, i8*** %5
%97 = call i32 @test_corrlen(i32 %95, i8** %96)
br label %202
98: ; preds = %88
%99 = load i8**, i8*** %5
%100 = getelementptr inbounds i8*, i8** %99, i64 1
%101 = load i8*, i8** %100
%102 = call i64 @strcmp(i8* %101, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%103 = icmp eq i64 %102, 0
br i1 %103, label %104, label %108
104: ; preds = %98
%105 = load i32, i32* %4
%106 = load i8**, i8*** %5
%107 = call i32 @test_A1_oo_A2(i32 %105, i8** %106)
br label %201
108: ; preds = %98
%109 = load i8**, i8*** %5
%110 = getelementptr inbounds i8*, i8** %109, i64 1
%111 = load i8*, i8** %110
%112 = call i64 @strcmp(i8* %111, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
%113 = icmp eq i64 %112, 0
br i1 %113, label %114, label %118
114: ; preds = %108
%115 = load i32, i32* %4
%116 = load i8**, i8*** %5
%117 = call i32 @test_P_A1_oo_A2(i32 %115, i8** %116)
br label %200
118: ; preds = %108
%119 = load i8**, i8*** %5
%120 = getelementptr inbounds i8*, i8** %119, i64 1
%121 = load i8*, i8** %120
%122 = call i64 @strcmp(i8* %121, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
%123 = icmp eq i64 %122, 0
br i1 %123, label %124, label %128
124: ; preds = %118
%125 = load i32, i32* %4
%126 = load i8**, i8*** %5
%127 = call i32 @test_cluster_numbers(i32 %125, i8** %126)
br label %199
128: ; preds = %118
%129 = load i8**, i8*** %5
%130 = getelementptr inbounds i8*, i8** %129, i64 1
%131 = load i8*, i8** %130
%132 = call i64 @strcmp(i8* %131, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.11, i64 0, i64 0))
%133 = icmp eq i64 %132, 0
br i1 %133, label %134, label %138
134: ; preds = %128
%135 = load i32, i32* %4
%136 = load i8**, i8*** %5
%137 = call i32 @test_plot_clusters(i32 %135, i8** %136)
br label %198
138: ; preds = %128
%139 = load i8**, i8*** %5
%140 = getelementptr inbounds i8*, i8** %139, i64 1
%141 = load i8*, i8** %140
%142 = call i64 @strcmp(i8* %141, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0))
%143 = icmp eq i64 %142, 0
br i1 %143, label %144, label %148
144: ; preds = %138
%145 = load i32, i32* %4
%146 = load i8**, i8*** %5
%147 = call i32 @test_cluster_sizes(i32 %145, i8** %146)
br label %197
148: ; preds = %138
%149 = load i8**, i8*** %5
%150 = getelementptr inbounds i8*, i8** %149, i64 1
%151 = load i8*, i8** %150
%152 = call i64 @strcmp(i8* %151, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0))
%153 = icmp eq i64 %152, 0
br i1 %153, label %154, label %158
154: ; preds = %148
%155 = load i32, i32* %4
%156 = load i8**, i8*** %5
%157 = call i32 @test_A_in_C(i32 %155, i8** %156)
br label %196
158: ; preds = %148
%159 = load i8**, i8*** %5
%160 = getelementptr inbounds i8*, i8** %159, i64 1
%161 = load i8*, i8** %160
%162 = call i64 @strcmp(i8* %161, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i64 0, i64 0))
%163 = icmp eq i64 %162, 0
br i1 %163, label %164, label %168
164: ; preds = %158
%165 = load i32, i32* %4
%166 = load i8**, i8*** %5
%167 = call i32 @test_P_A_in_C(i32 %165, i8** %166)
br label %195
168: ; preds = %158
%169 = load i8**, i8*** %5
%170 = getelementptr inbounds i8*, i8** %169, i64 1
%171 = load i8*, i8** %170
%172 = call i64 @strcmp(i8* %171, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i64 0, i64 0))
%173 = icmp eq i64 %172, 0
br i1 %173, label %174, label %178
174: ; preds = %168
%175 = load i32, i32* %4
%176 = load i8**, i8*** %5
%177 = call i32 @test_A1_or_A2_in_C(i32 %175, i8** %176)
br label %194
178: ; preds = %168
%179 = load i8**, i8*** %5
%180 = getelementptr inbounds i8*, i8** %179, i64 1
%181 = load i8*, i8** %180
%182 = call i64 @strcmp(i8* %181, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.16, i64 0, i64 0))
%183 = icmp eq i64 %182, 0
br i1 %183, label %184, label %188
184: ; preds = %178
%185 = load i32, i32* %4
%186 = load i8**, i8*** %5
%187 = call i32 @test_P_A1_or_A2_in_C(i32 %185, i8** %186)
br label %193
188: ; preds = %178
%189 = load i8**, i8*** %5
%190 = getelementptr inbounds i8*, i8** %189, i64 0
%191 = load i8*, i8** %190
%192 = call i32 @main_usage(i8* %191)
br label %193
193: ; preds = %188, %184
br label %194
194: ; preds = %193, %174
br label %195
195: ; preds = %194, %164
br label %196
196: ; preds = %195, %154
br label %197
197: ; preds = %196, %144
br label %198
198: ; preds = %197, %134
br label %199
199: ; preds = %198, %124
br label %200
200: ; preds = %199, %114
br label %201
201: ; preds = %200, %104
br label %202
202: ; preds = %201, %94
br label %203
203: ; preds = %202, %84
br label %204
204: ; preds = %203, %74
br label %205
205: ; preds = %204, %64
br label %206
206: ; preds = %205, %54
br label %207
207: ; preds = %206, %44
br label %208
208: ; preds = %207, %34
br label %209
209: ; preds = %208, %24
ret i32 0
}

LLVM IR (-O2):
@.str = [6 x i8] c"print\00"
@.str.1 = [5 x i8] c"plot\00"
@.str.2 = [4 x i8] c"nei\00"
@.str.3 = [8 x i8] c"cluster\00"
@.str.4 = [12 x i8] c"plotcluster\00"
@.str.5 = [11 x i8] c"meanC0size\00"
@.str.6 = [12 x i8] c"meanfC0size\00"
@.str.7 = [8 x i8] c"corrlen\00"
@.str.8 = [4 x i8] c"1o2\00"
@.str.9 = [5 x i8] c"P1o2\00"
@.str.10 = [6 x i8] c"clnos\00"
@.str.11 = [13 x i8] c"plotclusters\00"
@.str.12 = [6 x i8] c"clszs\00"
@.str.13 = [5 x i8] c"AinC\00"
@.str.14 = [6 x i8] c"PAinC\00"
@.str.15 = [6 x i8] c"U2inC\00"
@.str.16 = [7 x i8] c"PU2inC\00"
define i32 @main(i32 %0, i8** %1) {
%3 = tail call i32 @time(i32 0)
%4 = tail call i32 (...) @getpid()
%5 = xor i32 %4, %3
%6 = sext i32 %5 to i64
%7 = tail call i32 @srand48(i64 %6)
%8 = icmp slt i32 %0, 2
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = load i8*, i8** %1
%11 = tail call i32 @main_usage(i8* %10)
br label %12
12: ; preds = %9, %2
%13 = getelementptr inbounds i8*, i8** %1, i64 1
%14 = load i8*, i8** %13
%15 = tail call i64 @strcmp(i8* %14, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %19
17: ; preds = %12
%18 = tail call i32 @test_print_lattice(i32 %0, i8** %1)
br label %118
19: ; preds = %12
%20 = load i8*, i8** %13
%21 = tail call i64 @strcmp(i8* %20, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%22 = icmp eq i64 %21, 0
br i1 %22, label %23, label %25
23: ; preds = %19
%24 = tail call i32 @test_plot_lattice(i32 %0, i8** %1)
br label %118
25: ; preds = %19
%26 = load i8*, i8** %13
%27 = tail call i64 @strcmp(i8* %26, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%28 = icmp eq i64 %27, 0
br i1 %28, label %29, label %31
29: ; preds = %25
%30 = tail call i32 @test_get_bonded_neighbors(i32 %0, i8** %1)
br label %118
31: ; preds = %25
%32 = load i8*, i8** %13
%33 = tail call i64 @strcmp(i8* %32, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
%34 = icmp eq i64 %33, 0
br i1 %34, label %35, label %37
35: ; preds = %31
%36 = tail call i32 @test_cluster(i32 %0, i8** %1)
br label %118
37: ; preds = %31
%38 = load i8*, i8** %13
%39 = tail call i64 @strcmp(i8* %38, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0))
%40 = icmp eq i64 %39, 0
br i1 %40, label %41, label %43
41: ; preds = %37
%42 = tail call i32 @test_plot_cluster(i32 %0, i8** %1)
br label %118
43: ; preds = %37
%44 = load i8*, i8** %13
%45 = tail call i64 @strcmp(i8* %44, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
%46 = icmp eq i64 %45, 0
br i1 %46, label %47, label %49
47: ; preds = %43
%48 = tail call i32 @test_mean_C0_size(i32 %0, i8** %1)
br label %118
49: ; preds = %43
%50 = load i8*, i8** %13
%51 = tail call i64 @strcmp(i8* %50, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0))
%52 = icmp eq i64 %51, 0
br i1 %52, label %53, label %55
53: ; preds = %49
%54 = tail call i32 @test_mean_finite_C0_size(i32 %0, i8** %1)
br label %118
55: ; preds = %49
%56 = load i8*, i8** %13
%57 = tail call i64 @strcmp(i8* %56, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0))
%58 = icmp eq i64 %57, 0
br i1 %58, label %59, label %61
59: ; preds = %55
%60 = tail call i32 @test_corrlen(i32 %0, i8** %1)
br label %118
61: ; preds = %55
%62 = load i8*, i8** %13
%63 = tail call i64 @strcmp(i8* %62, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%64 = icmp eq i64 %63, 0
br i1 %64, label %65, label %67
65: ; preds = %61
%66 = tail call i32 @test_A1_oo_A2(i32 %0, i8** %1)
br label %118
67: ; preds = %61
%68 = load i8*, i8** %13
%69 = tail call i64 @strcmp(i8* %68, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
%70 = icmp eq i64 %69, 0
br i1 %70, label %71, label %73
71: ; preds = %67
%72 = tail call i32 @test_P_A1_oo_A2(i32 %0, i8** %1)
br label %118
73: ; preds = %67
%74 = load i8*, i8** %13
%75 = tail call i64 @strcmp(i8* %74, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
%76 = icmp eq i64 %75, 0
br i1 %76, label %77, label %79
77: ; preds = %73
%78 = tail call i32 @test_cluster_numbers(i32 %0, i8** %1)
br label %118
79: ; preds = %73
%80 = load i8*, i8** %13
%81 = tail call i64 @strcmp(i8* %80, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.11, i64 0, i64 0))
%82 = icmp eq i64 %81, 0
br i1 %82, label %83, label %85
83: ; preds = %79
%84 = tail call i32 @test_plot_clusters(i32 %0, i8** %1)
br label %118
85: ; preds = %79
%86 = load i8*, i8** %13
%87 = tail call i64 @strcmp(i8* %86, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0))
%88 = icmp eq i64 %87, 0
br i1 %88, label %89, label %91
89: ; preds = %85
%90 = tail call i32 @test_cluster_sizes(i32 %0, i8** %1)
br label %118
91: ; preds = %85
%92 = load i8*, i8** %13
%93 = tail call i64 @strcmp(i8* %92, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0))
%94 = icmp eq i64 %93, 0
br i1 %94, label %95, label %97
95: ; preds = %91
%96 = tail call i32 @test_A_in_C(i32 %0, i8** %1)
br label %118
97: ; preds = %91
%98 = load i8*, i8** %13
%99 = tail call i64 @strcmp(i8* %98, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i64 0, i64 0))
%100 = icmp eq i64 %99, 0
br i1 %100, label %101, label %103
101: ; preds = %97
%102 = tail call i32 @test_P_A_in_C(i32 %0, i8** %1)
br label %118
103: ; preds = %97
%104 = load i8*, i8** %13
%105 = tail call i64 @strcmp(i8* %104, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i64 0, i64 0))
%106 = icmp eq i64 %105, 0
br i1 %106, label %107, label %109
107: ; preds = %103
%108 = tail call i32 @test_A1_or_A2_in_C(i32 %0, i8** %1)
br label %118
109: ; preds = %103
%110 = load i8*, i8** %13
%111 = tail call i64 @strcmp(i8* %110, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.16, i64 0, i64 0))
%112 = icmp eq i64 %111, 0
br i1 %112, label %113, label %115
113: ; preds = %109
%114 = tail call i32 @test_P_A1_or_A2_in_C(i32 %0, i8** %1)
br label %118
115: ; preds = %109
%116 = load i8*, i8** %1
%117 = tail call i32 @main_usage(i8* %116)
br label %118
118: ; preds = %23, %35, %47, %59, %71, %83, %95, %107, %115, %113, %101, %89, %77, %65, %53, %41, %29, %17
ret i32 0
}