#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 */
float diffTime();
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ stdout;
void _fatal(register int returnCode, register char *s, register char *file,
            register int line) {
  register float totalTime;
  switch (returnCode) {
  case 10:
    fprintf(stderr, "error in %s:%d: no more memory\n", file, line);
    break;
  case 40:
    fprintf(stderr, "error in %s:%d: no enough space for offspring\n", file,
            line);
    break;
  case 90:
    fprintf(stderr, "error in %s:%d: MAXATOMS reached. Recompile\n", file,
            line);
    break;
  case 110:
    fprintf(stderr, "error in %s:%d: unexpected atom %s\n", file, line, s);
    break;
  case 80:
    fprintf(
        stderr,
        "error in %s:%d: instantiated operators exceed maximum. Recompile\n",
        file, line);
    break;
  case 70:
    fprintf(stderr,
            "usage: %s [-h] [-i <n>] [-l] [-u] [-m <n>] [-N <n>] [-r <n>]\n",
            s);
    break;
  case 120:
    fprintf(stderr, "error in %s:%d: max time reached\n", file, line);
    exit(returnCode);
    break;
  case 00:
    break;
  }
  fprintf(stderr, "NO SOLUTION\n");
  fprintf(stderr, "END PLAN\n");
  fprintf(stdout, "NO SOLUTION\n");
  fprintf(stdout, "END PLAN\n");
  totalTime = diffTime();
  fprintf(stderr, "elapsed time = %.2fms\n", totalTime);
  fprintf(stdout, "elapsed time = %.2fms\n", totalTime);
  exit(returnCode);
}


x86 assembly (clang, -O0):
<_fatal>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x24(%rbp)
test   %eax,%eax
je     12c9 <_fatal+0x199>
jmp    1159 <_fatal+0x29>
mov    -0x24(%rbp),%eax
sub    $0xa,%eax
je     11d0 <_fatal+0xa0>
jmp    116a <_fatal+0x3a>
mov    -0x24(%rbp),%eax
sub    $0x28,%eax
je     11f3 <_fatal+0xc3>
jmp    117b <_fatal+0x4b>
mov    -0x24(%rbp),%eax
sub    $0x46,%eax
je     1283 <_fatal+0x153>
jmp    118c <_fatal+0x5c>
mov    -0x24(%rbp),%eax
sub    $0x50,%eax
je     1260 <_fatal+0x130>
jmp    119d <_fatal+0x6d>
mov    -0x24(%rbp),%eax
sub    $0x5a,%eax
je     1216 <_fatal+0xe6>
jmp    11ae <_fatal+0x7e>
mov    -0x24(%rbp),%eax
sub    $0x6e,%eax
je     1239 <_fatal+0x109>
jmp    11bf <_fatal+0x8f>
mov    -0x24(%rbp),%eax
sub    $0x78,%eax
je     12a3 <_fatal+0x173>
jmp    12ce <_fatal+0x19e>
mov    0x2e09(%rip),%rax
mov    (%rax),%edi
mov    -0x18(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
lea    0xe19(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    12ce <_fatal+0x19e>
mov    0x2de6(%rip),%rax
mov    (%rax),%edi
mov    -0x18(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
lea    0xe16(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    12ce <_fatal+0x19e>
mov    0x2dc3(%rip),%rax
mov    (%rax),%edi
mov    -0x18(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
lea    0xe22(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    12ce <_fatal+0x19e>
mov    0x2da0(%rip),%rax
mov    (%rax),%edi
mov    -0x18(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
mov    -0x10(%rbp),%r8
lea    0xe28(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    12ce <_fatal+0x19e>
mov    0x2d79(%rip),%rax
mov    (%rax),%edi
mov    -0x18(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
lea    0xe29(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    12ce <_fatal+0x19e>
mov    0x2d56(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rdx
lea    0xe4b(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    12ce <_fatal+0x19e>
mov    0x2d36(%rip),%rax
mov    (%rax),%edi
mov    -0x18(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
lea    0xe66(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x4(%rbp),%edi
call   1050 <exit@plt>
jmp    12ce <_fatal+0x19e>
mov    0x2d0b(%rip),%rax
mov    (%rax),%edi
lea    0xe64(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2cf4(%rip),%rax
mov    (%rax),%edi
lea    0xe5a(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2cd5(%rip),%rax
mov    (%rax),%edi
lea    0xe36(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2cbe(%rip),%rax
mov    (%rax),%edi
lea    0xe2c(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    $0x0,%al
call   1040 <diffTime@plt>
movss  %xmm0,-0x20(%rbp)
mov    0x2ca3(%rip),%rax
mov    (%rax),%edi
movss  -0x20(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe0a(%rip),%rsi
mov    $0x1,%al
call   1030 <fprintf@plt>
mov    0x2c7b(%rip),%rax
mov    (%rax),%edi
movss  -0x20(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xdea(%rip),%rsi
mov    $0x1,%al
call   1030 <fprintf@plt>
mov    -0x4(%rbp),%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<_fatal>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x10,%rsp
mov    %rsi,%r8
mov    %edi,%r14d
cmp    $0x4f,%edi
jle    1176 <_fatal+0x46>
cmp    $0x6d,%r14d
jg     11af <_fatal+0x7f>
cmp    $0x50,%r14d
je     11dc <_fatal+0xac>
cmp    $0x5a,%r14d
jne    1230 <_fatal+0x100>
mov    0x2e78(%rip),%rax
mov    (%rax),%edi
lea    0xede(%rip),%rsi
jmp    1229 <_fatal+0xf9>
cmp    $0xa,%r14d
je     11ee <_fatal+0xbe>
cmp    $0x28,%r14d
je     1219 <_fatal+0xe9>
cmp    $0x46,%r14d
jne    1230 <_fatal+0x100>
mov    0x2e49(%rip),%rax
mov    (%rax),%edi
lea    0xf42(%rip),%rsi
mov    %r8,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
jmp    1230 <_fatal+0x100>
cmp    $0x6e,%r14d
je     1200 <_fatal+0xd0>
cmp    $0x78,%r14d
jne    1230 <_fatal+0x100>
mov    0x2e1e(%rip),%rax
mov    (%rax),%edi
lea    0xf55(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    $0x78,%edi
call   1050 <exit@plt>
mov    0x2dfd(%rip),%rax
mov    (%rax),%edi
lea    0xeb4(%rip),%rsi
jmp    1229 <_fatal+0xf9>
mov    0x2deb(%rip),%rax
mov    (%rax),%edi
lea    0xe02(%rip),%rsi
jmp    1229 <_fatal+0xf9>
mov    0x2dd9(%rip),%rax
mov    (%rax),%edi
lea    0xe6c(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
jmp    1230 <_fatal+0x100>
mov    0x2dc0(%rip),%rax
mov    (%rax),%edi
lea    0xdf7(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    0x2da9(%rip),%r15
mov    (%r15),%edi
lea    0xf01(%rip),%rbx
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%r15),%edi
lea    0xefa(%rip),%rbp
mov    %rbp,%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    0x2d72(%rip),%r12
mov    (%r12),%edi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%r12),%edi
mov    %rbp,%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
xor    %eax,%eax
call   1040 <diffTime@plt>
mov    (%r15),%edi
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,0x8(%rsp)
lea    0xebc(%rip),%rbx
mov    %rbx,%rsi
mov    $0x1,%al
call   1030 <fprintf@plt>
mov    (%r12),%edi
mov    %rbx,%rsi
movsd  0x8(%rsp),%xmm0
mov    $0x1,%al
call   1030 <fprintf@plt>
mov    %r14d,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [32 x i8] c"error in %s:%d: no more memory\0A\00"
@.str.1 = [47 x i8] c"error in %s:%d: no enough space for offspring\0A\00"
@.str.2 = [45 x i8] c"error in %s:%d: MAXATOMS reached. Recompile\0A\00"
@.str.3 = [36 x i8] c"error in %s:%d: unexpected atom %s\0A\00"
@.str.4 = [66 x i8] c"error in %s:%d: instantiated operators exceed maximum. Recompile\0A\00"
@.str.5 = [62 x i8] c"usage: %s [-h] [-i <n>] [-l] [-u] [-m <n>] [-N <n>] [-r <n>]\0A\00"
@.str.6 = [34 x i8] c"error in %s:%d: max time reached\0A\00"
@.str.7 = [13 x i8] c"NO SOLUTION\0A\00"
@.str.8 = [10 x i8] c"END PLAN\0A\00"
@stdout = global i32 0
@.str.9 = [23 x i8] c"elapsed time = %.2fms\0A\00"
define void @_fatal(i32 %0, i8* %1, i8* %2, i32 %3) {
%5 = alloca i32
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i32
%9 = alloca float
store i32 %0, i32* %5
store i8* %1, i8** %6
store i8* %2, i8** %7
store i32 %3, i32* %8
%10 = load i32, i32* %5
switch i32 %10, label %49 [
i32 10, label %11
i32 40, label %16
i32 90, label %21
i32 110, label %26
i32 80, label %32
i32 70, label %37
i32 120, label %41
i32 0, label %48
]
11: ; preds = %4
%12 = load i32, i32* @stderr
%13 = load i8*, i8** %7
%14 = load i32, i32* %8
%15 = call i32 (i32, i8*, ...) @fprintf(i32 %12, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0), i8* %13, i32 %14)
br label %49
16: ; preds = %4
%17 = load i32, i32* @stderr
%18 = load i8*, i8** %7
%19 = load i32, i32* %8
%20 = call i32 (i32, i8*, ...) @fprintf(i32 %17, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.1, i64 0, i64 0), i8* %18, i32 %19)
br label %49
21: ; preds = %4
%22 = load i32, i32* @stderr
%23 = load i8*, i8** %7
%24 = load i32, i32* %8
%25 = call i32 (i32, i8*, ...) @fprintf(i32 %22, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.2, i64 0, i64 0), i8* %23, i32 %24)
br label %49
26: ; preds = %4
%27 = load i32, i32* @stderr
%28 = load i8*, i8** %7
%29 = load i32, i32* %8
%30 = load i8*, i8** %6
%31 = call i32 (i32, i8*, ...) @fprintf(i32 %27, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.3, i64 0, i64 0), i8* %28, i32 %29, i8* %30)
br label %49
32: ; preds = %4
%33 = load i32, i32* @stderr
%34 = load i8*, i8** %7
%35 = load i32, i32* %8
%36 = call i32 (i32, i8*, ...) @fprintf(i32 %33, i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.4, i64 0, i64 0), i8* %34, i32 %35)
br label %49
37: ; preds = %4
%38 = load i32, i32* @stderr
%39 = load i8*, i8** %6
%40 = call i32 (i32, i8*, ...) @fprintf(i32 %38, i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.5, i64 0, i64 0), i8* %39)
br label %49
41: ; preds = %4
%42 = load i32, i32* @stderr
%43 = load i8*, i8** %7
%44 = load i32, i32* %8
%45 = call i32 (i32, i8*, ...) @fprintf(i32 %42, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.6, i64 0, i64 0), i8* %43, i32 %44)
%46 = load i32, i32* %5
%47 = call i32 @exit(i32 %46)
unreachable
48: ; preds = %4
br label %49
49: ; preds = %4, %48, %37, %32, %26, %21, %16, %11
%50 = load i32, i32* @stderr
%51 = call i32 (i32, i8*, ...) @fprintf(i32 %50, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.7, i64 0, i64 0))
%52 = load i32, i32* @stderr
%53 = call i32 (i32, i8*, ...) @fprintf(i32 %52, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0))
%54 = load i32, i32* @stdout
%55 = call i32 (i32, i8*, ...) @fprintf(i32 %54, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.7, i64 0, i64 0))
%56 = load i32, i32* @stdout
%57 = call i32 (i32, i8*, ...) @fprintf(i32 %56, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0))
%58 = call float (...) @diffTime()
store float %58, float* %9
%59 = load i32, i32* @stderr
%60 = load float, float* %9
%61 = fpext float %60 to double
%62 = call i32 (i32, i8*, ...) @fprintf(i32 %59, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.9, i64 0, i64 0), double %61)
%63 = load i32, i32* @stdout
%64 = load float, float* %9
%65 = fpext float %64 to double
%66 = call i32 (i32, i8*, ...) @fprintf(i32 %63, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.9, i64 0, i64 0), double %65)
%67 = load i32, i32* %5
%68 = call i32 @exit(i32 %67)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [32 x i8] c"error in %s:%d: no more memory\0A\00"
@.str.1 = [47 x i8] c"error in %s:%d: no enough space for offspring\0A\00"
@.str.2 = [45 x i8] c"error in %s:%d: MAXATOMS reached. Recompile\0A\00"
@.str.3 = [36 x i8] c"error in %s:%d: unexpected atom %s\0A\00"
@.str.4 = [66 x i8] c"error in %s:%d: instantiated operators exceed maximum. Recompile\0A\00"
@.str.5 = [62 x i8] c"usage: %s [-h] [-i <n>] [-l] [-u] [-m <n>] [-N <n>] [-r <n>]\0A\00"
@.str.6 = [34 x i8] c"error in %s:%d: max time reached\0A\00"
@.str.7 = [13 x i8] c"NO SOLUTION\0A\00"
@.str.8 = [10 x i8] c"END PLAN\0A\00"
@stdout = global i32 0
@.str.9 = [23 x i8] c"elapsed time = %.2fms\0A\00"
define void @_fatal(i32 %0, i8* %1, i8* %2, i32 %3) {
switch i32 %0, label %27 [
i32 10, label %5
i32 40, label %8
i32 90, label %11
i32 110, label %14
i32 80, label %17
i32 70, label %20
i32 120, label %23
]
5: ; preds = %4
%6 = load i32, i32* @stderr
%7 = tail call i32 (i32, i8*, ...) @fprintf(i32 %6, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0), i8* %2, i32 %3)
br label %27
8: ; preds = %4
%9 = load i32, i32* @stderr
%10 = tail call i32 (i32, i8*, ...) @fprintf(i32 %9, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.1, i64 0, i64 0), i8* %2, i32 %3)
br label %27
11: ; preds = %4
%12 = load i32, i32* @stderr
%13 = tail call i32 (i32, i8*, ...) @fprintf(i32 %12, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.2, i64 0, i64 0), i8* %2, i32 %3)
br label %27
14: ; preds = %4
%15 = load i32, i32* @stderr
%16 = tail call i32 (i32, i8*, ...) @fprintf(i32 %15, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.3, i64 0, i64 0), i8* %2, i32 %3, i8* %1)
br label %27
17: ; preds = %4
%18 = load i32, i32* @stderr
%19 = tail call i32 (i32, i8*, ...) @fprintf(i32 %18, i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.4, i64 0, i64 0), i8* %2, i32 %3)
br label %27
20: ; preds = %4
%21 = load i32, i32* @stderr
%22 = tail call i32 (i32, i8*, ...) @fprintf(i32 %21, i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.5, i64 0, i64 0), i8* %1)
br label %27
23: ; preds = %4
%24 = load i32, i32* @stderr
%25 = tail call i32 (i32, i8*, ...) @fprintf(i32 %24, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.6, i64 0, i64 0), i8* %2, i32 %3)
%26 = tail call i32 @exit(i32 120)
unreachable
27: ; preds = %4, %20, %17, %14, %11, %8, %5
%28 = load i32, i32* @stderr
%29 = tail call i32 (i32, i8*, ...) @fprintf(i32 %28, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.7, i64 0, i64 0))
%30 = load i32, i32* @stderr
%31 = tail call i32 (i32, i8*, ...) @fprintf(i32 %30, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0))
%32 = load i32, i32* @stdout
%33 = tail call i32 (i32, i8*, ...) @fprintf(i32 %32, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.7, i64 0, i64 0))
%34 = load i32, i32* @stdout
%35 = tail call i32 (i32, i8*, ...) @fprintf(i32 %34, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0))
%36 = tail call float (...) @diffTime()
%37 = load i32, i32* @stderr
%38 = fpext float %36 to double
%39 = tail call i32 (i32, i8*, ...) @fprintf(i32 %37, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.9, i64 0, i64 0), double %38)
%40 = load i32, i32* @stdout
%41 = tail call i32 (i32, i8*, ...) @fprintf(i32 %40, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.9, i64 0, i64 0), double %38)
%42 = tail call i32 @exit(i32 %0)
unreachable
}