#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 */
char *s_let(char *, char *);
char *tt_error_txt(char *arg, int i) {
  *arg = '\0';
  switch (i) {
  case 0:
    return s_let("Can't open file", arg);
  case -1:
    return s_let("Unspecified non-fatal error.", arg);
  case -2:
    return s_let("Unspecified fatal error.", arg);
  case -3:
    return s_let("Not enough memory.", arg);
  case -4:
    return s_let("Invalid topology.", arg);
  case -5:
    return s_let("Not found by lookup.", arg);
  case -7:
    return s_let("Unexpected EOF.", arg);
  case -8:
    return s_let("Too many topologies.", arg);
  case -9:
    return s_let("Double defined topology name.", arg);
  case -10:
    return s_let("Token conversion error.", arg);
  case -11:
    return s_let("Empty tables not allowed.", arg);
  case -12:
    return s_let("Can't initialize a scanner.", arg);
  case -13:
    return s_let("Call getToken without initializing of a scanner.", arg);
  case -14:
    return s_let("Two topologies in the table are coincide after reduction.",
                 arg);
  case -15:
    return s_let("Too many alternative momenta sets.", arg);
  case -16:
    return s_let("Too long string.", arg);
  case -17:
    return s_let("Double defined translation token.", arg);
  case -18:
    return s_let("Undefined topology name.", arg);
  case -19:
    return s_let("Invalid re-ordering set.", arg);
  case -20:
    return s_let("Double defined remark name.", arg);
  case -21:
    return s_let("Empty name is not allowed.", arg);
  case -22:
    return s_let("Unexpected '='.", arg);
  case -23:
    return s_let("Can't write to disk.", arg);
  }
  return arg;
}


x86 assembly (clang, -O0):
<tt_error_txt>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    -0x10(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x14(%rbp),%eax
add    $0x17,%eax
mov    %eax,%ecx
mov    %rcx,-0x20(%rbp)
sub    $0x17,%eax
ja     138e <tt_error_txt+0x27e>
mov    -0x20(%rbp),%rax
lea    0xeba(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x10(%rbp),%rsi
lea    0xf06(%rip),%rdi
call   1030 <s_let@plt>
mov    %rax,-0x8(%rbp)
jmp    1396 <tt_error_txt+0x286>
mov    -0x10(%rbp),%rsi
lea    0xefd(%rip),%rdi
call   1030 <s_let@plt>
mov    %rax,-0x8(%rbp)
jmp    1396 <tt_error_txt+0x286>
mov    -0x10(%rbp),%rsi
lea    0xf01(%rip),%rdi
call   1030 <s_let@plt>
mov    %rax,-0x8(%rbp)
jmp    1396 <tt_error_txt+0x286>
mov    -0x10(%rbp),%rsi
lea    0xf01(%rip),%rdi
call   1030 <s_let@plt>
mov    %rax,-0x8(%rbp)
jmp    1396 <tt_error_txt+0x286>
mov    -0x10(%rbp),%rsi
lea    0xefb(%rip),%rdi
call   1030 <s_let@plt>
mov    %rax,-0x8(%rbp)
jmp    1396 <tt_error_txt+0x286>
mov    -0x10(%rbp),%rsi
lea    0xef4(%rip),%rdi
call   1030 <s_let@plt>
mov    %rax,-0x8(%rbp)
jmp    1396 <tt_error_txt+0x286>
mov    -0x10(%rbp),%rsi
lea    0xef0(%rip),%rdi
call   1030 <s_let@plt>
mov    %rax,-0x8(%rbp)
jmp    1396 <tt_error_txt+0x286>
mov    -0x10(%rbp),%rsi
lea    0xee7(%rip),%rdi
call   1030 <s_let@plt>
mov    %rax,-0x8(%rbp)
jmp    1396 <tt_error_txt+0x286>
mov    -0x10(%rbp),%rsi
lea    0xee3(%rip),%rdi
call   1030 <s_let@plt>
mov    %rax,-0x8(%rbp)
jmp    1396 <tt_error_txt+0x286>
mov    -0x10(%rbp),%rsi
lea    0xee8(%rip),%rdi
call   1030 <s_let@plt>
mov    %rax,-0x8(%rbp)
jmp    1396 <tt_error_txt+0x286>
mov    -0x10(%rbp),%rsi
lea    0xee7(%rip),%rdi
call   1030 <s_let@plt>
mov    %rax,-0x8(%rbp)
jmp    1396 <tt_error_txt+0x286>
mov    -0x10(%rbp),%rsi
lea    0xee8(%rip),%rdi
call   1030 <s_let@plt>
mov    %rax,-0x8(%rbp)
jmp    1396 <tt_error_txt+0x286>
mov    -0x10(%rbp),%rsi
lea    0xeeb(%rip),%rdi
call   1030 <s_let@plt>
mov    %rax,-0x8(%rbp)
jmp    1396 <tt_error_txt+0x286>
mov    -0x10(%rbp),%rsi
lea    0xf03(%rip),%rdi
call   1030 <s_let@plt>
mov    %rax,-0x8(%rbp)
jmp    1396 <tt_error_txt+0x286>
mov    -0x10(%rbp),%rsi
lea    0xf24(%rip),%rdi
call   1030 <s_let@plt>
mov    %rax,-0x8(%rbp)
jmp    1396 <tt_error_txt+0x286>
mov    -0x10(%rbp),%rsi
lea    0xf2e(%rip),%rdi
call   1030 <s_let@plt>
mov    %rax,-0x8(%rbp)
jmp    1396 <tt_error_txt+0x286>
mov    -0x10(%rbp),%rsi
lea    0xf26(%rip),%rdi
call   1030 <s_let@plt>
mov    %rax,-0x8(%rbp)
jmp    1396 <tt_error_txt+0x286>
mov    -0x10(%rbp),%rsi
lea    0xf2f(%rip),%rdi
call   1030 <s_let@plt>
mov    %rax,-0x8(%rbp)
jmp    1396 <tt_error_txt+0x286>
mov    -0x10(%rbp),%rsi
lea    0xf2f(%rip),%rdi
call   1030 <s_let@plt>
mov    %rax,-0x8(%rbp)
jmp    1396 <tt_error_txt+0x286>
mov    -0x10(%rbp),%rsi
lea    0xf2f(%rip),%rdi
call   1030 <s_let@plt>
mov    %rax,-0x8(%rbp)
jmp    1396 <tt_error_txt+0x286>
mov    -0x10(%rbp),%rsi
lea    0xf32(%rip),%rdi
call   1030 <s_let@plt>
mov    %rax,-0x8(%rbp)
jmp    1396 <tt_error_txt+0x286>
mov    -0x10(%rbp),%rsi
lea    0xf34(%rip),%rdi
call   1030 <s_let@plt>
mov    %rax,-0x8(%rbp)
jmp    1396 <tt_error_txt+0x286>
mov    -0x10(%rbp),%rsi
lea    0xf2b(%rip),%rdi
call   1030 <s_let@plt>
mov    %rax,-0x8(%rbp)
jmp    1396 <tt_error_txt+0x286>
mov    -0x10(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<tt_error_txt>:
mov    %rdi,%rax
movb   $0x0,(%rdi)
add    $0x17,%esi
cmp    $0x17,%esi
ja     1128 <tt_error_txt+0x18>
mov    $0xfdffff,%ecx
bt     %esi,%ecx
jb     1129 <tt_error_txt+0x19>
ret
movslq %esi,%rcx
lea    0x112d(%rip),%rdx
movslq (%rdx,%rcx,4),%rdi
add    %rdx,%rdi
mov    %rax,%rsi
jmp    1030 <s_let@plt>

LLVM IR (-O0):
@.str = [16 x i8] c"Can't open file\00"
@.str.1 = [29 x i8] c"Unspecified non-fatal error.\00"
@.str.2 = [25 x i8] c"Unspecified fatal error.\00"
@.str.3 = [19 x i8] c"Not enough memory.\00"
@.str.4 = [18 x i8] c"Invalid topology.\00"
@.str.5 = [21 x i8] c"Not found by lookup.\00"
@.str.6 = [16 x i8] c"Unexpected EOF.\00"
@.str.7 = [21 x i8] c"Too many topologies.\00"
@.str.8 = [30 x i8] c"Double defined topology name.\00"
@.str.9 = [24 x i8] c"Token conversion error.\00"
@.str.10 = [26 x i8] c"Empty tables not allowed.\00"
@.str.11 = [28 x i8] c"Can't initialize a scanner.\00"
@.str.12 = [49 x i8] c"Call getToken without initializing of a scanner.\00"
@.str.13 = [58 x i8] c"Two topologies in the table are coincide after reduction.\00"
@.str.14 = [35 x i8] c"Too many alternative momenta sets.\00"
@.str.15 = [17 x i8] c"Too long string.\00"
@.str.16 = [34 x i8] c"Double defined translation token.\00"
@.str.17 = [25 x i8] c"Undefined topology name.\00"
@.str.18 = [25 x i8] c"Invalid re-ordering set.\00"
@.str.19 = [28 x i8] c"Double defined remark name.\00"
@.str.20 = [27 x i8] c"Empty name is not allowed.\00"
@.str.21 = [16 x i8] c"Unexpected '='.\00"
@.str.22 = [21 x i8] c"Can't write to disk.\00"
define i8* @tt_error_txt(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i32
store i8* %0, i8** %4
store i32 %1, i32* %5
%6 = load i8*, i8** %4
store i8 0, i8* %6
%7 = load i32, i32* %5
switch i32 %7, label %77 [
i32 0, label %8
i32 -1, label %11
i32 -2, label %14
i32 -3, label %17
i32 -4, label %20
i32 -5, label %23
i32 -7, label %26
i32 -8, label %29
i32 -9, label %32
i32 -10, label %35
i32 -11, label %38
i32 -12, label %41
i32 -13, label %44
i32 -14, label %47
i32 -15, label %50
i32 -16, label %53
i32 -17, label %56
i32 -18, label %59
i32 -19, label %62
i32 -20, label %65
i32 -21, label %68
i32 -22, label %71
i32 -23, label %74
]
8: ; preds = %2
%9 = load i8*, i8** %4
%10 = call i8* @s_let(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* %9)
store i8* %10, i8** %3
br label %79
11: ; preds = %2
%12 = load i8*, i8** %4
%13 = call i8* @s_let(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0), i8* %12)
store i8* %13, i8** %3
br label %79
14: ; preds = %2
%15 = load i8*, i8** %4
%16 = call i8* @s_let(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0), i8* %15)
store i8* %16, i8** %3
br label %79
17: ; preds = %2
%18 = load i8*, i8** %4
%19 = call i8* @s_let(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i8* %18)
store i8* %19, i8** %3
br label %79
20: ; preds = %2
%21 = load i8*, i8** %4
%22 = call i8* @s_let(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0), i8* %21)
store i8* %22, i8** %3
br label %79
23: ; preds = %2
%24 = load i8*, i8** %4
%25 = call i8* @s_let(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0), i8* %24)
store i8* %25, i8** %3
br label %79
26: ; preds = %2
%27 = load i8*, i8** %4
%28 = call i8* @s_let(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.6, i64 0, i64 0), i8* %27)
store i8* %28, i8** %3
br label %79
29: ; preds = %2
%30 = load i8*, i8** %4
%31 = call i8* @s_let(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0), i8* %30)
store i8* %31, i8** %3
br label %79
32: ; preds = %2
%33 = load i8*, i8** %4
%34 = call i8* @s_let(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.8, i64 0, i64 0), i8* %33)
store i8* %34, i8** %3
br label %79
35: ; preds = %2
%36 = load i8*, i8** %4
%37 = call i8* @s_let(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.9, i64 0, i64 0), i8* %36)
store i8* %37, i8** %3
br label %79
38: ; preds = %2
%39 = load i8*, i8** %4
%40 = call i8* @s_let(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.10, i64 0, i64 0), i8* %39)
store i8* %40, i8** %3
br label %79
41: ; preds = %2
%42 = load i8*, i8** %4
%43 = call i8* @s_let(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.11, i64 0, i64 0), i8* %42)
store i8* %43, i8** %3
br label %79
44: ; preds = %2
%45 = load i8*, i8** %4
%46 = call i8* @s_let(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.12, i64 0, i64 0), i8* %45)
store i8* %46, i8** %3
br label %79
47: ; preds = %2
%48 = load i8*, i8** %4
%49 = call i8* @s_let(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.13, i64 0, i64 0), i8* %48)
store i8* %49, i8** %3
br label %79
50: ; preds = %2
%51 = load i8*, i8** %4
%52 = call i8* @s_let(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.14, i64 0, i64 0), i8* %51)
store i8* %52, i8** %3
br label %79
53: ; preds = %2
%54 = load i8*, i8** %4
%55 = call i8* @s_let(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.15, i64 0, i64 0), i8* %54)
store i8* %55, i8** %3
br label %79
56: ; preds = %2
%57 = load i8*, i8** %4
%58 = call i8* @s_let(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.16, i64 0, i64 0), i8* %57)
store i8* %58, i8** %3
br label %79
59: ; preds = %2
%60 = load i8*, i8** %4
%61 = call i8* @s_let(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.17, i64 0, i64 0), i8* %60)
store i8* %61, i8** %3
br label %79
62: ; preds = %2
%63 = load i8*, i8** %4
%64 = call i8* @s_let(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.18, i64 0, i64 0), i8* %63)
store i8* %64, i8** %3
br label %79
65: ; preds = %2
%66 = load i8*, i8** %4
%67 = call i8* @s_let(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.19, i64 0, i64 0), i8* %66)
store i8* %67, i8** %3
br label %79
68: ; preds = %2
%69 = load i8*, i8** %4
%70 = call i8* @s_let(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.20, i64 0, i64 0), i8* %69)
store i8* %70, i8** %3
br label %79
71: ; preds = %2
%72 = load i8*, i8** %4
%73 = call i8* @s_let(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.21, i64 0, i64 0), i8* %72)
store i8* %73, i8** %3
br label %79
74: ; preds = %2
%75 = load i8*, i8** %4
%76 = call i8* @s_let(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.22, i64 0, i64 0), i8* %75)
store i8* %76, i8** %3
br label %79
77: ; preds = %2
%78 = load i8*, i8** %4
store i8* %78, i8** %3
br label %79
79: ; preds = %77, %74, %71, %68, %65, %62, %59, %56, %53, %50, %47, %44, %41, %38, %35, %32, %29, %26, %23, %20, %17, %14, %11, %8
%80 = load i8*, i8** %3
ret i8* %80
}

LLVM IR (-O2):
@.str = [16 x i8] c"Can't open file\00"
@.str.1 = [29 x i8] c"Unspecified non-fatal error.\00"
@.str.2 = [25 x i8] c"Unspecified fatal error.\00"
@.str.3 = [19 x i8] c"Not enough memory.\00"
@.str.4 = [18 x i8] c"Invalid topology.\00"
@.str.5 = [21 x i8] c"Not found by lookup.\00"
@.str.6 = [16 x i8] c"Unexpected EOF.\00"
@.str.7 = [21 x i8] c"Too many topologies.\00"
@.str.8 = [30 x i8] c"Double defined topology name.\00"
@.str.9 = [24 x i8] c"Token conversion error.\00"
@.str.10 = [26 x i8] c"Empty tables not allowed.\00"
@.str.11 = [28 x i8] c"Can't initialize a scanner.\00"
@.str.12 = [49 x i8] c"Call getToken without initializing of a scanner.\00"
@.str.13 = [58 x i8] c"Two topologies in the table are coincide after reduction.\00"
@.str.14 = [35 x i8] c"Too many alternative momenta sets.\00"
@.str.15 = [17 x i8] c"Too long string.\00"
@.str.16 = [34 x i8] c"Double defined translation token.\00"
@.str.17 = [25 x i8] c"Undefined topology name.\00"
@.str.18 = [25 x i8] c"Invalid re-ordering set.\00"
@.str.19 = [28 x i8] c"Double defined remark name.\00"
@.str.20 = [27 x i8] c"Empty name is not allowed.\00"
@.str.21 = [16 x i8] c"Unexpected '='.\00"
@.str.22 = [21 x i8] c"Can't write to disk.\00"
@reltable.tt_error_txt = [24 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([21 x i8]* @.str.22 to i64), i64 ptrtoint ([24 x i32]* @reltable.tt_error_txt to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([16 x i8]* @.str.21 to i64), i64 ptrtoint ([24 x i32]* @reltable.tt_error_txt to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([27 x i8]* @.str.20 to i64), i64 ptrtoint ([24 x i32]* @reltable.tt_error_txt to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([28 x i8]* @.str.19 to i64), i64 ptrtoint ([24 x i32]* @reltable.tt_error_txt to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([25 x i8]* @.str.18 to i64), i64 ptrtoint ([24 x i32]* @reltable.tt_error_txt to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([25 x i8]* @.str.17 to i64), i64 ptrtoint ([24 x i32]* @reltable.tt_error_txt to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([34 x i8]* @.str.16 to i64), i64 ptrtoint ([24 x i32]* @reltable.tt_error_txt to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([17 x i8]* @.str.15 to i64), i64 ptrtoint ([24 x i32]* @reltable.tt_error_txt to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([35 x i8]* @.str.14 to i64), i64 ptrtoint ([24 x i32]* @reltable.tt_error_txt to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([58 x i8]* @.str.13 to i64), i64 ptrtoint ([24 x i32]* @reltable.tt_error_txt to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([49 x i8]* @.str.12 to i64), i64 ptrtoint ([24 x i32]* @reltable.tt_error_txt to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([28 x i8]* @.str.11 to i64), i64 ptrtoint ([24 x i32]* @reltable.tt_error_txt to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([26 x i8]* @.str.10 to i64), i64 ptrtoint ([24 x i32]* @reltable.tt_error_txt to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([24 x i8]* @.str.9 to i64), i64 ptrtoint ([24 x i32]* @reltable.tt_error_txt to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([30 x i8]* @.str.8 to i64), i64 ptrtoint ([24 x i32]* @reltable.tt_error_txt to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([21 x i8]* @.str.7 to i64), i64 ptrtoint ([24 x i32]* @reltable.tt_error_txt to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([16 x i8]* @.str.6 to i64), i64 ptrtoint ([24 x i32]* @reltable.tt_error_txt to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([16 x i8]* @.str to i64), i64 ptrtoint ([24 x i32]* @reltable.tt_error_txt to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([21 x i8]* @.str.5 to i64), i64 ptrtoint ([24 x i32]* @reltable.tt_error_txt to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([18 x i8]* @.str.4 to i64), i64 ptrtoint ([24 x i32]* @reltable.tt_error_txt to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([19 x i8]* @.str.3 to i64), i64 ptrtoint ([24 x i32]* @reltable.tt_error_txt to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([25 x i8]* @.str.2 to i64), i64 ptrtoint ([24 x i32]* @reltable.tt_error_txt to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([29 x i8]* @.str.1 to i64), i64 ptrtoint ([24 x i32]* @reltable.tt_error_txt to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([16 x i8]* @.str to i64), i64 ptrtoint ([24 x i32]* @reltable.tt_error_txt to i64)) to i32)]
define i8* @tt_error_txt(i8* %0, i32 %1) {
store i8 0, i8* %0
%3 = add i32 %1, 23
%4 = icmp ult i32 %3, 24
br i1 %4, label %5, label %14
5: ; preds = %2
%6 = lshr i32 16646143, %3
%7 = and i32 %6, 1
%8 = icmp eq i32 %7, 0
br i1 %8, label %14, label %9
9: ; preds = %5
%10 = sext i32 %3 to i64
%11 = shl i64 %10, 2
%12 = call i8* @llvm.load.relative.i64(i8* bitcast ([24 x i32]* @reltable.tt_error_txt to i8*), i64 %11)
%13 = tail call i8* @s_let(i8* %12, i8* %0)
br label %14
14: ; preds = %5, %2, %9
%15 = phi i8* [ %0, %2 ], [ %13, %9 ], [ %0, %5 ]
ret i8* %15
}