#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 */
typedef int /*<<< orphan*/ randbuf;
typedef int /*<<< orphan*/ ptrdiff_t;
typedef int /*<<< orphan*/ buf;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ EXIT_FAILURE;
int atoi(char *);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
scalar_t__ fread(unsigned char *, int, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ free(void *);
unsigned long hash32(int /*<<< orphan*/);
void *malloc(unsigned long);
int namegen(char *, int, char *, unsigned long *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ strcmp(char *, char *);
int /*<<< orphan*/ tests();
int /*<<< orphan*/ time(int /*<<< orphan*/);
int main(int argc, char **argv) {
  int i;
  int count = 1;
  FILE *urandom;
  unsigned char randbuf[4];
  unsigned long seed[] = {0x8af611acUL};
  if (argc < 2 || argc > 3) {
    printf("Usage: %s <pattern> [num]\n", argv[0]);
    printf("  pattern   template for names to generate\n");
    printf("  num       number of names to generate\n");
    exit(EXIT_FAILURE);
  } else if (argc == 3) {
    count = atoi(argv[2]);
  }
  if (!strcmp(argv[1], "--test"))
    tests();
  urandom = fopen("/dev/urandom", "rb");
  if (urandom && fread(randbuf, sizeof(randbuf), 1, urandom)) {
    unsigned long rnd =
        (unsigned long)randbuf[0] << 0 | (unsigned long)randbuf[1] << 8 |
        (unsigned long)randbuf[2] << 16 | (unsigned long)randbuf[3] << 24;
    *seed ^= rnd;
    fclose(urandom);
  } else {
    void *p = malloc(4UL * 1024 * 1024);
    *seed ^= hash32(time(0));
    *seed ^= hash32((ptrdiff_t)main);
    *seed ^= hash32((ptrdiff_t)seed);
    *seed ^= hash32((ptrdiff_t)p);
    *seed ^= hash32((ptrdiff_t)malloc);
    free(p);
  }
  for (i = 0; i < count; i++) {
    char buf[256];
    int r = namegen(buf, sizeof(buf), argv[1], seed);
    if (r == 2) {
      fprintf(stderr, "%s: invalid pattern\n", argv[0]);
      exit(EXIT_FAILURE);
    }
    printf("%s\n", buf);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x150,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x1,-0x18(%rbp)
mov    0xe09(%rip),%rax
mov    %rax,-0x30(%rbp)
cmpl   $0x2,-0x8(%rbp)
jl     120f <main+0x3f>
cmpl   $0x3,-0x8(%rbp)
jle    124e <main+0x7e>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xdeb(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xdf8(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xe16(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    0x2d81(%rip),%rax
mov    (%rax),%edi
call   10f0 <exit@plt>
cmpl   $0x3,-0x8(%rbp)
jne    1268 <main+0x98>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   10e0 <atoi@plt>
mov    %eax,-0x18(%rbp)
jmp    126d <main+0x9d>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xdfc(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%eax
jne    1291 <main+0xc1>
mov    $0x0,%al
call   1080 <tests@plt>
lea    0xde7(%rip),%rdi
lea    0xded(%rip),%rsi
call   10d0 <fopen@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
je     131b <main+0x14b>
lea    -0x24(%rbp),%rdi
mov    -0x20(%rbp),%rcx
mov    $0x4,%esi
mov    $0x1,%edx
call   1050 <fread@plt>
cmp    $0x0,%rax
je     131b <main+0x14b>
movzbl -0x24(%rbp),%eax
shl    $0x0,%rax
movzbl -0x23(%rbp),%ecx
shl    $0x8,%rcx
or     %rcx,%rax
movzbl -0x22(%rbp),%ecx
shl    $0x10,%rcx
or     %rcx,%rax
movzbl -0x21(%rbp),%ecx
shl    $0x18,%rcx
or     %rcx,%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
xor    -0x30(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x20(%rbp),%rdi
call   1060 <fclose@plt>
jmp    139a <main+0x1ca>
mov    $0x400000,%edi
call   1100 <malloc@plt>
mov    %rax,-0x40(%rbp)
xor    %edi,%edi
call   10c0 <time@plt>
mov    %eax,%edi
call   10a0 <hash32@plt>
xor    -0x30(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    0x2ca2(%rip),%rax
mov    %eax,%edi
call   10a0 <hash32@plt>
xor    -0x30(%rbp),%rax
mov    %rax,-0x30(%rbp)
lea    -0x30(%rbp),%rax
mov    %eax,%edi
call   10a0 <hash32@plt>
xor    -0x30(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x40(%rbp),%rax
mov    %eax,%edi
call   10a0 <hash32@plt>
xor    -0x30(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    0x2c5e(%rip),%rax
mov    %eax,%edi
call   10a0 <hash32@plt>
xor    -0x30(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x40(%rbp),%rdi
call   1030 <free@plt>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    142a <main+0x25a>
lea    -0x140(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdx
lea    -0x30(%rbp),%rcx
mov    $0x100,%esi
call   1040 <namegen@plt>
mov    %eax,-0x144(%rbp)
cmpl   $0x2,-0x144(%rbp)
jne    1407 <main+0x237>
mov    0x2bec(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xc9b(%rip),%rsi
call   10b0 <fprintf@plt>
mov    0x2bc8(%rip),%rax
mov    (%rax),%edi
call   10f0 <exit@plt>
lea    -0x140(%rbp),%rsi
lea    0xc8f(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    13a1 <main+0x1d1>
xor    %eax,%eax
add    $0x150,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x118,%rsp
mov    %rsi,%r12
mov    $0x8af611ac,%r13d
mov    %r13,(%rsp)
lea    -0x4(%rdi),%eax
cmp    $0xfffffffd,%eax
jbe    1372 <main+0x192>
mov    $0x1,%ebp
cmp    $0x3,%edi
jne    1220 <main+0x40>
mov    0x10(%r12),%rdi
call   10f0 <atoi@plt>
mov    %eax,%ebp
mov    0x8(%r12),%rdi
lea    0xdef(%rip),%rsi
call   10a0 <strcmp@plt>
test   %eax,%eax
jne    123c <main+0x5c>
xor    %eax,%eax
call   1090 <tests@plt>
lea    0xddf(%rip),%rdi
lea    0xde5(%rip),%rsi
call   10e0 <fopen@plt>
test   %rax,%rax
je     128f <main+0xaf>
mov    %rax,%rbx
lea    0xc(%rsp),%rdi
mov    $0x4,%esi
mov    $0x1,%edx
mov    %rax,%rcx
call   1060 <fread@plt>
test   %rax,%rax
je     128f <main+0xaf>
mov    0xc(%rsp),%eax
xor    %r13,%rax
mov    %rax,(%rsp)
mov    %rbx,%rdi
call   1070 <fclose@plt>
test   %ebp,%ebp
jg     12f9 <main+0x119>
jmp    1337 <main+0x157>
mov    $0x400000,%edi
call   1110 <malloc@plt>
mov    %rax,%r14
mov    0x2d3d(%rip),%r15d
xor    %edi,%edi
call   10d0 <time@plt>
mov    %eax,%edi
call   10b0 <hash32@plt>
mov    %rax,%rbx
mov    0x2d2e(%rip),%edi
call   10b0 <hash32@plt>
xor    %rbx,%rax
xor    %r13,%rax
mov    %rax,(%rsp)
mov    %rsp,%rdi
call   10b0 <hash32@plt>
xor    %rax,(%rsp)
mov    %r14d,%edi
call   10b0 <hash32@plt>
xor    %rax,(%rsp)
mov    %r15d,%edi
call   10b0 <hash32@plt>
xor    %rax,(%rsp)
mov    %r14,%rdi
call   1030 <free@plt>
test   %ebp,%ebp
jle    1337 <main+0x157>
lea    0x10(%rsp),%rbx
mov    %rsp,%r14
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    0x8(%r12),%rdx
mov    %rbx,%rdi
mov    $0x100,%esi
mov    %r14,%rcx
call   1040 <namegen@plt>
cmp    $0x2,%eax
je     134b <main+0x16b>
mov    %rbx,%rdi
call   1050 <puts@plt>
add    $0xffffffff,%ebp
jne    1310 <main+0x130>
xor    %eax,%eax
add    $0x118,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2c7e(%rip),%rax
mov    (%rax),%edi
mov    (%r12),%rdx
lea    0xcd3(%rip),%rsi
call   10c0 <fprintf@plt>
mov    0x2c5d(%rip),%rax
mov    (%rax),%edi
call   1100 <exit@plt>
mov    (%r12),%rsi
lea    0xc83(%rip),%rdi
xor    %eax,%eax
call   1080 <printf@plt>
lea    0xcbc(%rip),%rdi
call   1050 <puts@plt>
lea    0xcdb(%rip),%rdi
call   1050 <puts@plt>
jmp    1364 <main+0x184>

LLVM IR (-O0):
@__const.main.seed = [1 x i64] [i64 2331382188]
@.str = [27 x i8] c"Usage: %s <pattern> [num]\0A\00"
@.str.1 = [44 x i8] c" pattern template for names to generate\0A\00"
@.str.2 = [41 x i8] c" num number of names to generate\0A\00"
@EXIT_FAILURE = global i32 0
@.str.3 = [7 x i8] c"--test\00"
@.str.4 = [13 x i8] c"/dev/urandom\00"
@.str.5 = [3 x i8] c"rb\00"
@stderr = global i32 0
@.str.6 = [21 x i8] c"%s: invalid pattern\0A\00"
@.str.7 = [4 x i8] c"%s\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32*
%9 = alloca [4 x i8]
%10 = alloca [1 x i64]
%11 = alloca i64
%12 = alloca i8*
%13 = alloca [256 x i8]
%14 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 1, i32* %7
%15 = bitcast [1 x i64]* %10 to i8*
%16 = load i32, i32* %4
%17 = icmp slt i32 %16, 2
br i1 %17, label %21, label %18
18: ; preds = %2
%19 = load i32, i32* %4
%20 = icmp sgt i32 %19, 3
br i1 %20, label %21, label %30
21: ; preds = %18, %2
%22 = load i8**, i8*** %5
%23 = getelementptr inbounds i8*, i8** %22, i64 0
%24 = load i8*, i8** %23
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i8* %24)
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.1, i64 0, i64 0))
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.2, i64 0, i64 0))
%28 = load i32, i32* @EXIT_FAILURE
%29 = call i32 @exit(i32 %28)
unreachable
30: ; preds = %18
%31 = load i32, i32* %4
%32 = icmp eq i32 %31, 3
br i1 %32, label %33, label %38
33: ; preds = %30
%34 = load i8**, i8*** %5
%35 = getelementptr inbounds i8*, i8** %34, i64 2
%36 = load i8*, i8** %35
%37 = call i32 @atoi(i8* %36)
store i32 %37, i32* %7
br label %38
38: ; preds = %33, %30
br label %39
39: ; preds = %38
%40 = load i8**, i8*** %5
%41 = getelementptr inbounds i8*, i8** %40, i64 1
%42 = load i8*, i8** %41
%43 = call i32 @strcmp(i8* %42, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
%44 = icmp ne i32 %43, 0
br i1 %44, label %47, label %45
45: ; preds = %39
%46 = call i32 (...) @tests()
br label %47
47: ; preds = %45, %39
%48 = call i32* @fopen(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
store i32* %48, i32** %8
%49 = load i32*, i32** %8
%50 = icmp ne i32* %49, null
br i1 %50, label %51, label %82
51: ; preds = %47
%52 = getelementptr inbounds [4 x i8], [4 x i8]* %9, i64 0, i64 0
%53 = load i32*, i32** %8
%54 = call i64 @fread(i8* %52, i32 4, i32 1, i32* %53)
%55 = icmp ne i64 %54, 0
br i1 %55, label %56, label %82
56: ; preds = %51
%57 = getelementptr inbounds [4 x i8], [4 x i8]* %9, i64 0, i64 0
%58 = load i8, i8* %57
%59 = zext i8 %58 to i64
%60 = shl i64 %59, 0
%61 = getelementptr inbounds [4 x i8], [4 x i8]* %9, i64 0, i64 1
%62 = load i8, i8* %61
%63 = zext i8 %62 to i64
%64 = shl i64 %63, 8
%65 = or i64 %60, %64
%66 = getelementptr inbounds [4 x i8], [4 x i8]* %9, i64 0, i64 2
%67 = load i8, i8* %66
%68 = zext i8 %67 to i64
%69 = shl i64 %68, 16
%70 = or i64 %65, %69
%71 = getelementptr inbounds [4 x i8], [4 x i8]* %9, i64 0, i64 3
%72 = load i8, i8* %71
%73 = zext i8 %72 to i64
%74 = shl i64 %73, 24
%75 = or i64 %70, %74
store i64 %75, i64* %11
%76 = load i64, i64* %11
%77 = getelementptr inbounds [1 x i64], [1 x i64]* %10, i64 0, i64 0
%78 = load i64, i64* %77
%79 = xor i64 %78, %76
store i64 %79, i64* %77
%80 = load i32*, i32** %8
%81 = call i32 @fclose(i32* %80)
br label %111
82: ; preds = %51, %47
%83 = call i8* @malloc(i64 4194304)
store i8* %83, i8** %12
%84 = call i32 @time(i32 0)
%85 = call i64 @hash32(i32 %84)
%86 = getelementptr inbounds [1 x i64], [1 x i64]* %10, i64 0, i64 0
%87 = load i64, i64* %86
%88 = xor i64 %87, %85
store i64 %88, i64* %86
%89 = call i64 @hash32(i32 ptrtoint (i32 (i32, i8**)* @main to i32))
%90 = getelementptr inbounds [1 x i64], [1 x i64]* %10, i64 0, i64 0
%91 = load i64, i64* %90
%92 = xor i64 %91, %89
store i64 %92, i64* %90
%93 = getelementptr inbounds [1 x i64], [1 x i64]* %10, i64 0, i64 0
%94 = ptrtoint i64* %93 to i32
%95 = call i64 @hash32(i32 %94)
%96 = getelementptr inbounds [1 x i64], [1 x i64]* %10, i64 0, i64 0
%97 = load i64, i64* %96
%98 = xor i64 %97, %95
store i64 %98, i64* %96
%99 = load i8*, i8** %12
%100 = ptrtoint i8* %99 to i32
%101 = call i64 @hash32(i32 %100)
%102 = getelementptr inbounds [1 x i64], [1 x i64]* %10, i64 0, i64 0
%103 = load i64, i64* %102
%104 = xor i64 %103, %101
store i64 %104, i64* %102
%105 = call i64 @hash32(i32 ptrtoint (i8* (i64)* @malloc to i32))
%106 = getelementptr inbounds [1 x i64], [1 x i64]* %10, i64 0, i64 0
%107 = load i64, i64* %106
%108 = xor i64 %107, %105
store i64 %108, i64* %106
%109 = load i8*, i8** %12
%110 = call i32 @free(i8* %109)
br label %111
111: ; preds = %82, %56
store i32 0, i32* %6
br label %112
112: ; preds = %136, %111
%113 = load i32, i32* %6
%114 = load i32, i32* %7
%115 = icmp slt i32 %113, %114
br i1 %115, label %116, label %139
116: ; preds = %112
%117 = getelementptr inbounds [256 x i8], [256 x i8]* %13, i64 0, i64 0
%118 = load i8**, i8*** %5
%119 = getelementptr inbounds i8*, i8** %118, i64 1
%120 = load i8*, i8** %119
%121 = getelementptr inbounds [1 x i64], [1 x i64]* %10, i64 0, i64 0
%122 = call i32 @namegen(i8* %117, i32 256, i8* %120, i64* %121)
store i32 %122, i32* %14
%123 = load i32, i32* %14
%124 = icmp eq i32 %123, 2
br i1 %124, label %125, label %133
125: ; preds = %116
%126 = load i32, i32* @stderr
%127 = load i8**, i8*** %5
%128 = getelementptr inbounds i8*, i8** %127, i64 0
%129 = load i8*, i8** %128
%130 = call i32 @fprintf(i32 %126, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0), i8* %129)
%131 = load i32, i32* @EXIT_FAILURE
%132 = call i32 @exit(i32 %131)
unreachable
133: ; preds = %116
%134 = getelementptr inbounds [256 x i8], [256 x i8]* %13, i64 0, i64 0
%135 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8* %134)
br label %136
136: ; preds = %133
%137 = load i32, i32* %6
%138 = add nsw i32 %137, 1
store i32 %138, i32* %6
br label %112
139: ; preds = %112
ret i32 0
}

LLVM IR (-O2):
@.str = [27 x i8] c"Usage: %s <pattern> [num]\0A\00"
@EXIT_FAILURE = global i32 0
@.str.3 = [7 x i8] c"--test\00"
@.str.4 = [13 x i8] c"/dev/urandom\00"
@.str.5 = [3 x i8] c"rb\00"
@stderr = global i32 0
@.str.6 = [21 x i8] c"%s: invalid pattern\0A\00"
@str = [43 x i8] c" pattern template for names to generate\00"
@str.8 = [40 x i8] c" num number of names to generate\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [4 x i8]
%4 = alloca [1 x i64]
%5 = alloca [256 x i8]
%6 = getelementptr inbounds [4 x i8], [4 x i8]* %3, i64 0, i64 0
%7 = bitcast [1 x i64]* %4 to i8*
%8 = getelementptr inbounds [1 x i64], [1 x i64]* %4, i64 0, i64 0
store i64 2331382188, i64* %8
%9 = add i32 %0, -4
%10 = icmp ult i32 %9, -2
br i1 %10, label %11, label %18
11: ; preds = %2
%12 = load i8*, i8** %1
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i8* %12)
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @str, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.8, i64 0, i64 0))
%16 = load i32, i32* @EXIT_FAILURE
%17 = tail call i32 @exit(i32 %16)
unreachable
18: ; preds = %2
%19 = icmp eq i32 %0, 3
br i1 %19, label %20, label %24
20: ; preds = %18
%21 = getelementptr inbounds i8*, i8** %1, i64 2
%22 = load i8*, i8** %21
%23 = tail call i32 @atoi(i8* %22)
br label %24
24: ; preds = %18, %20
%25 = phi i32 [ %23, %20 ], [ 1, %18 ]
%26 = getelementptr inbounds i8*, i8** %1, i64 1
%27 = load i8*, i8** %26
%28 = tail call i32 @strcmp(i8* dereferenceable(1) %27, i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
%29 = icmp eq i32 %28, 0
br i1 %29, label %30, label %32
30: ; preds = %24
%31 = tail call i32 (...) @tests()
br label %32
32: ; preds = %30, %24
%33 = tail call i32* @fopen(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%34 = icmp eq i32* %33, null
br i1 %34, label %58, label %35
35: ; preds = %32
%36 = call i64 @fread(i8* %6, i32 4, i32 1, i32* %33)
%37 = icmp eq i64 %36, 0
br i1 %37, label %58, label %38
38: ; preds = %35
%39 = load i8, i8* %6
%40 = zext i8 %39 to i64
%41 = getelementptr inbounds [4 x i8], [4 x i8]* %3, i64 0, i64 1
%42 = load i8, i8* %41
%43 = zext i8 %42 to i64
%44 = shl nuw nsw i64 %43, 8
%45 = or i64 %44, %40
%46 = getelementptr inbounds [4 x i8], [4 x i8]* %3, i64 0, i64 2
%47 = load i8, i8* %46
%48 = zext i8 %47 to i64
%49 = shl nuw nsw i64 %48, 16
%50 = or i64 %45, %49
%51 = getelementptr inbounds [4 x i8], [4 x i8]* %3, i64 0, i64 3
%52 = load i8, i8* %51
%53 = zext i8 %52 to i64
%54 = shl nuw nsw i64 %53, 24
%55 = or i64 %50, %54
%56 = xor i64 %55, 2331382188
store i64 %56, i64* %8
%57 = tail call i32 @fclose(i32* %33)
br label %79
58: ; preds = %35, %32
%59 = tail call dereferenceable_or_null(4194304) i8* @malloc(i64 4194304)
%60 = tail call i32 @time(i32 0)
%61 = tail call i64 @hash32(i32 %60)
%62 = tail call i64 @hash32(i32 ptrtoint (i32 (i32, i8**)* @main to i32))
%63 = xor i64 %61, %62
%64 = xor i64 %63, 2331382188
store i64 %64, i64* %8
%65 = ptrtoint [1 x i64]* %4 to i64
%66 = trunc i64 %65 to i32
%67 = call i64 @hash32(i32 %66)
%68 = load i64, i64* %8
%69 = xor i64 %68, %67
store i64 %69, i64* %8
%70 = ptrtoint i8* %59 to i64
%71 = trunc i64 %70 to i32
%72 = call i64 @hash32(i32 %71)
%73 = load i64, i64* %8
%74 = xor i64 %73, %72
store i64 %74, i64* %8
%75 = call i64 @hash32(i32 ptrtoint (i8* (i64)* @malloc to i32))
%76 = load i64, i64* %8
%77 = xor i64 %76, %75
store i64 %77, i64* %8
%78 = call i32 @free(i8* %59)
br label %79
79: ; preds = %58, %38
%80 = icmp sgt i32 %25, 0
br i1 %80, label %81, label %98
81: ; preds = %79
%82 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 0
br label %83
83: ; preds = %81, %94
%84 = phi i32 [ 0, %81 ], [ %96, %94 ]
%85 = load i8*, i8** %26
%86 = call i32 @namegen(i8* %82, i32 256, i8* %85, i64* %8)
%87 = icmp eq i32 %86, 2
br i1 %87, label %88, label %94
88: ; preds = %83
%89 = load i32, i32* @stderr
%90 = load i8*, i8** %1
%91 = call i32 @fprintf(i32 %89, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0), i8* %90)
%92 = load i32, i32* @EXIT_FAILURE
%93 = call i32 @exit(i32 %92)
unreachable
94: ; preds = %83
%95 = call i32 @puts(i8* %82)
%96 = add nuw nsw i32 %84, 1
%97 = icmp eq i32 %96, %25
br i1 %97, label %98, label %83
98: ; preds = %94, %79
ret i32 0
}