#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*/ ffpmsg(char *);
int /*<<< orphan*/ snprintf(char *, int, char *, int, int);
int /*<<< orphan*/ strcat(char *, char *);
size_t strlen(char *);
int /*<<< orphan*/ strncpy(char *, char *, int);
int fftrec(char *card, int *status) {
  size_t ii, maxchr;
  char msg[81];
  if (*status > 0)
    return (*status);
  maxchr = strlen(card);
  for (ii = 8; ii < maxchr; ii++) {
    if (card[ii] < 32 || card[ii] > 126) {
      snprintf(msg, 81,
               "Character %d in this keyword is illegal. Hex Value = %X",
               (int)(ii + 1), (int)card[ii]);
      if (card[ii] == 0)
        strcat(msg, " (NULL char.)");
      else if (card[ii] == 9)
        strcat(msg, " (TAB char.)");
      else if (card[ii] == 10)
        strcat(msg, " (Line Feed char.)");
      else if (card[ii] == 11)
        strcat(msg, " (Vertical Tab)");
      else if (card[ii] == 12)
        strcat(msg, " (Form Feed char.)");
      else if (card[ii] == 13)
        strcat(msg, " (Carriage Return)");
      else if (card[ii] == 27)
        strcat(msg, " (Escape char.)");
      else if (card[ii] == 127)
        strcat(msg, " (Delete char.)");
      ffpmsg(msg);
      strncpy(msg, card, 80);
      msg[80] = '\0';
      ffpmsg(msg);
      return (*status = 207);
    }
  }
  return (*status);
}


x86 assembly (clang, -O0):
<fftrec>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x18(%rbp),%rax
cmpl   $0x0,(%rax)
jle    117e <fftrec+0x2e>
mov    -0x18(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    13c2 <fftrec+0x272>
mov    -0x10(%rbp),%rdi
call   1040 <strlen@plt>
mov    %rax,-0x28(%rbp)
movq   $0x8,-0x20(%rbp)
mov    -0x20(%rbp),%rax
cmp    -0x28(%rbp),%rax
jae    13b9 <fftrec+0x269>
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x20,%eax
jl     11cb <fftrec+0x7b>
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x7e,%eax
jle    13a3 <fftrec+0x253>
lea    -0x80(%rbp),%rdi
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %eax,%ecx
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%rdx
movsbl (%rax,%rdx,1),%r8d
mov    $0x51,%esi
lea    0xe0e(%rip),%rdx
call   1060 <snprintf@plt>
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x0,%eax
jne    1221 <fftrec+0xd1>
lea    -0x80(%rbp),%rdi
lea    0xe21(%rip),%rsi
call   1070 <strcat@plt>
jmp    1365 <fftrec+0x215>
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x9,%eax
jne    124b <fftrec+0xfb>
lea    -0x80(%rbp),%rdi
lea    0xe05(%rip),%rsi
call   1070 <strcat@plt>
jmp    1360 <fftrec+0x210>
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0xa,%eax
jne    1275 <fftrec+0x125>
lea    -0x80(%rbp),%rdi
lea    0xde8(%rip),%rsi
call   1070 <strcat@plt>
jmp    135b <fftrec+0x20b>
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0xb,%eax
jne    129f <fftrec+0x14f>
lea    -0x80(%rbp),%rdi
lea    0xdd1(%rip),%rsi
call   1070 <strcat@plt>
jmp    1356 <fftrec+0x206>
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0xc,%eax
jne    12c9 <fftrec+0x179>
lea    -0x80(%rbp),%rdi
lea    0xdb7(%rip),%rsi
call   1070 <strcat@plt>
jmp    1351 <fftrec+0x201>
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0xd,%eax
jne    12f3 <fftrec+0x1a3>
lea    -0x80(%rbp),%rdi
lea    0xda0(%rip),%rsi
call   1070 <strcat@plt>
jmp    134c <fftrec+0x1fc>
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x1b,%eax
jne    131d <fftrec+0x1cd>
lea    -0x80(%rbp),%rdi
lea    0xd89(%rip),%rsi
call   1070 <strcat@plt>
jmp    1347 <fftrec+0x1f7>
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x7f,%eax
jne    1342 <fftrec+0x1f2>
lea    -0x80(%rbp),%rdi
lea    0xd6f(%rip),%rsi
call   1070 <strcat@plt>
jmp    1347 <fftrec+0x1f7>
jmp    134c <fftrec+0x1fc>
jmp    1351 <fftrec+0x201>
jmp    1356 <fftrec+0x206>
jmp    135b <fftrec+0x20b>
jmp    1360 <fftrec+0x210>
jmp    1365 <fftrec+0x215>
lea    -0x80(%rbp),%rdi
call   1050 <ffpmsg@plt>
lea    -0x80(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    $0x50,%edx
call   1030 <strncpy@plt>
movb   $0x0,-0x30(%rbp)
lea    -0x80(%rbp),%rdi
call   1050 <ffpmsg@plt>
mov    -0x18(%rbp),%rax
movl   $0xcf,(%rax)
movl   $0xcf,-0x4(%rbp)
jmp    13c2 <fftrec+0x272>
jmp    13a8 <fftrec+0x258>
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
jmp    1193 <fftrec+0x43>
mov    -0x18(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fftrec>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x58,%rsp
mov    (%rsi),%ebp
test   %ebp,%ebp
jg     1252 <fftrec+0x102>
mov    %rsi,%r14
mov    %rdi,%r15
call   1040 <strlen@plt>
cmp    $0x9,%rax
jb     1252 <fftrec+0x102>
mov    $0x8,%ebx
xchg   %ax,%ax
movsbl (%r15,%rbx,1),%r8d
lea    -0x7f(%r8),%ecx
cmp    $0xa0,%cl
jbe    119c <fftrec+0x4c>
add    $0x1,%rbx
cmp    %rbx,%rax
jne    1180 <fftrec+0x30>
jmp    1252 <fftrec+0x102>
lea    0x1(%rbx),%ecx
lea    0xeca(%rip),%rdx
mov    %rsp,%rdi
mov    $0x51,%esi
call   1060 <snprintf@plt>
movzbl (%r15,%rbx,1),%eax
cmp    $0x1b,%rax
ja     11de <fftrec+0x8e>
lea    0xee3(%rip),%rsi
lea    0xe34(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xeda(%rip),%rsi
jmp    1216 <fftrec+0xc6>
cmp    $0x7f,%al
jne    121e <fftrec+0xce>
lea    0xf33(%rip),%rsi
jmp    1216 <fftrec+0xc6>
lea    0xed1(%rip),%rsi
jmp    1216 <fftrec+0xc6>
lea    0xedb(%rip),%rsi
jmp    1216 <fftrec+0xc6>
lea    0xee2(%rip),%rsi
jmp    1216 <fftrec+0xc6>
lea    0xeec(%rip),%rsi
jmp    1216 <fftrec+0xc6>
lea    0xef6(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strcat@plt>
mov    %rsp,%rbp
mov    %rbp,%rdi
call   1050 <ffpmsg@plt>
mov    %rbp,%rdi
mov    %r15,%rsi
mov    $0x50,%edx
call   1030 <strncpy@plt>
movb   $0x0,0x50(%rsp)
mov    %rbp,%rdi
call   1050 <ffpmsg@plt>
movl   $0xcf,(%r14)
mov    $0xcf,%ebp
mov    %ebp,%eax
add    $0x58,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [56 x i8] c"Character %d in this keyword is illegal. Hex Value = %X\00"
@.str.1 = [14 x i8] c" (NULL char.)\00"
@.str.2 = [13 x i8] c" (TAB char.)\00"
@.str.3 = [19 x i8] c" (Line Feed char.)\00"
@.str.4 = [16 x i8] c" (Vertical Tab)\00"
@.str.5 = [19 x i8] c" (Form Feed char.)\00"
@.str.6 = [19 x i8] c" (Carriage Return)\00"
@.str.7 = [16 x i8] c" (Escape char.)\00"
@.str.8 = [16 x i8] c" (Delete char.)\00"
define i32 @fftrec(i8* %0, i32* %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i32*
%6 = alloca i64
%7 = alloca i64
%8 = alloca [81 x i8]
store i8* %0, i8** %4
store i32* %1, i32** %5
%9 = load i32*, i32** %5
%10 = load i32, i32* %9
%11 = icmp sgt i32 %10, 0
br i1 %11, label %12, label %15
12: ; preds = %2
%13 = load i32*, i32** %5
%14 = load i32, i32* %13
store i32 %14, i32* %3
br label %150
15: ; preds = %2
%16 = load i8*, i8** %4
%17 = call i64 @strlen(i8* %16)
store i64 %17, i64* %7
store i64 8, i64* %6
br label %18
18: ; preds = %144, %15
%19 = load i64, i64* %6
%20 = load i64, i64* %7
%21 = icmp ult i64 %19, %20
br i1 %21, label %22, label %147
22: ; preds = %18
%23 = load i8*, i8** %4
%24 = load i64, i64* %6
%25 = getelementptr inbounds i8, i8* %23, i64 %24
%26 = load i8, i8* %25
%27 = sext i8 %26 to i32
%28 = icmp slt i32 %27, 32
br i1 %28, label %36, label %29
29: ; preds = %22
%30 = load i8*, i8** %4
%31 = load i64, i64* %6
%32 = getelementptr inbounds i8, i8* %30, i64 %31
%33 = load i8, i8* %32
%34 = sext i8 %33 to i32
%35 = icmp sgt i32 %34, 126
br i1 %35, label %36, label %143
36: ; preds = %29, %22
%37 = getelementptr inbounds [81 x i8], [81 x i8]* %8, i64 0, i64 0
%38 = load i64, i64* %6
%39 = add i64 %38, 1
%40 = trunc i64 %39 to i32
%41 = load i8*, i8** %4
%42 = load i64, i64* %6
%43 = getelementptr inbounds i8, i8* %41, i64 %42
%44 = load i8, i8* %43
%45 = sext i8 %44 to i32
%46 = call i32 @snprintf(i8* %37, i32 81, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str, i64 0, i64 0), i32 %40, i32 %45)
%47 = load i8*, i8** %4
%48 = load i64, i64* %6
%49 = getelementptr inbounds i8, i8* %47, i64 %48
%50 = load i8, i8* %49
%51 = sext i8 %50 to i32
%52 = icmp eq i32 %51, 0
br i1 %52, label %53, label %56
53: ; preds = %36
%54 = getelementptr inbounds [81 x i8], [81 x i8]* %8, i64 0, i64 0
%55 = call i32 @strcat(i8* %54, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
br label %133
56: ; preds = %36
%57 = load i8*, i8** %4
%58 = load i64, i64* %6
%59 = getelementptr inbounds i8, i8* %57, i64 %58
%60 = load i8, i8* %59
%61 = sext i8 %60 to i32
%62 = icmp eq i32 %61, 9
br i1 %62, label %63, label %66
63: ; preds = %56
%64 = getelementptr inbounds [81 x i8], [81 x i8]* %8, i64 0, i64 0
%65 = call i32 @strcat(i8* %64, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
br label %132
66: ; preds = %56
%67 = load i8*, i8** %4
%68 = load i64, i64* %6
%69 = getelementptr inbounds i8, i8* %67, i64 %68
%70 = load i8, i8* %69
%71 = sext i8 %70 to i32
%72 = icmp eq i32 %71, 10
br i1 %72, label %73, label %76
73: ; preds = %66
%74 = getelementptr inbounds [81 x i8], [81 x i8]* %8, i64 0, i64 0
%75 = call i32 @strcat(i8* %74, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0))
br label %131
76: ; preds = %66
%77 = load i8*, i8** %4
%78 = load i64, i64* %6
%79 = getelementptr inbounds i8, i8* %77, i64 %78
%80 = load i8, i8* %79
%81 = sext i8 %80 to i32
%82 = icmp eq i32 %81, 11
br i1 %82, label %83, label %86
83: ; preds = %76
%84 = getelementptr inbounds [81 x i8], [81 x i8]* %8, i64 0, i64 0
%85 = call i32 @strcat(i8* %84, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0))
br label %130
86: ; preds = %76
%87 = load i8*, i8** %4
%88 = load i64, i64* %6
%89 = getelementptr inbounds i8, i8* %87, i64 %88
%90 = load i8, i8* %89
%91 = sext i8 %90 to i32
%92 = icmp eq i32 %91, 12
br i1 %92, label %93, label %96
93: ; preds = %86
%94 = getelementptr inbounds [81 x i8], [81 x i8]* %8, i64 0, i64 0
%95 = call i32 @strcat(i8* %94, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0))
br label %129
96: ; preds = %86
%97 = load i8*, i8** %4
%98 = load i64, i64* %6
%99 = getelementptr inbounds i8, i8* %97, i64 %98
%100 = load i8, i8* %99
%101 = sext i8 %100 to i32
%102 = icmp eq i32 %101, 13
br i1 %102, label %103, label %106
103: ; preds = %96
%104 = getelementptr inbounds [81 x i8], [81 x i8]* %8, i64 0, i64 0
%105 = call i32 @strcat(i8* %104, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.6, i64 0, i64 0))
br label %128
106: ; preds = %96
%107 = load i8*, i8** %4
%108 = load i64, i64* %6
%109 = getelementptr inbounds i8, i8* %107, i64 %108
%110 = load i8, i8* %109
%111 = sext i8 %110 to i32
%112 = icmp eq i32 %111, 27
br i1 %112, label %113, label %116
113: ; preds = %106
%114 = getelementptr inbounds [81 x i8], [81 x i8]* %8, i64 0, i64 0
%115 = call i32 @strcat(i8* %114, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0))
br label %127
116: ; preds = %106
%117 = load i8*, i8** %4
%118 = load i64, i64* %6
%119 = getelementptr inbounds i8, i8* %117, i64 %118
%120 = load i8, i8* %119
%121 = sext i8 %120 to i32
%122 = icmp eq i32 %121, 127
br i1 %122, label %123, label %126
123: ; preds = %116
%124 = getelementptr inbounds [81 x i8], [81 x i8]* %8, i64 0, i64 0
%125 = call i32 @strcat(i8* %124, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.8, i64 0, i64 0))
br label %126
126: ; preds = %123, %116
br label %127
127: ; preds = %126, %113
br label %128
128: ; preds = %127, %103
br label %129
129: ; preds = %128, %93
br label %130
130: ; preds = %129, %83
br label %131
131: ; preds = %130, %73
br label %132
132: ; preds = %131, %63
br label %133
133: ; preds = %132, %53
%134 = getelementptr inbounds [81 x i8], [81 x i8]* %8, i64 0, i64 0
%135 = call i32 @ffpmsg(i8* %134)
%136 = getelementptr inbounds [81 x i8], [81 x i8]* %8, i64 0, i64 0
%137 = load i8*, i8** %4
%138 = call i32 @strncpy(i8* %136, i8* %137, i32 80)
%139 = getelementptr inbounds [81 x i8], [81 x i8]* %8, i64 0, i64 80
store i8 0, i8* %139
%140 = getelementptr inbounds [81 x i8], [81 x i8]* %8, i64 0, i64 0
%141 = call i32 @ffpmsg(i8* %140)
%142 = load i32*, i32** %5
store i32 207, i32* %142
store i32 207, i32* %3
br label %150
143: ; preds = %29
br label %144
144: ; preds = %143
%145 = load i64, i64* %6
%146 = add i64 %145, 1
store i64 %146, i64* %6
br label %18
147: ; preds = %18
%148 = load i32*, i32** %5
%149 = load i32, i32* %148
store i32 %149, i32* %3
br label %150
150: ; preds = %147, %133, %12
%151 = load i32, i32* %3
ret i32 %151
}

LLVM IR (-O2):
@.str = [56 x i8] c"Character %d in this keyword is illegal. Hex Value = %X\00"
@.str.1 = [14 x i8] c" (NULL char.)\00"
@.str.2 = [13 x i8] c" (TAB char.)\00"
@.str.3 = [19 x i8] c" (Line Feed char.)\00"
@.str.4 = [16 x i8] c" (Vertical Tab)\00"
@.str.5 = [19 x i8] c" (Form Feed char.)\00"
@.str.6 = [19 x i8] c" (Carriage Return)\00"
@.str.7 = [16 x i8] c" (Escape char.)\00"
@.str.8 = [16 x i8] c" (Delete char.)\00"
define i32 @fftrec(i8* %0, i32* nocapture %1) {
%3 = alloca [81 x i8]
%4 = getelementptr inbounds [81 x i8], [81 x i8]* %3, i64 0, i64 0
%5 = load i32, i32* %1
%6 = icmp sgt i32 %5, 0
br i1 %6, label %41, label %7
7: ; preds = %2
%8 = tail call i64 @strlen(i8* dereferenceable(1) %0)
%9 = icmp ugt i64 %8, 8
br i1 %9, label %10, label %41
10: ; preds = %7, %38
%11 = phi i64 [ %39, %38 ], [ 8, %7 ]
%12 = getelementptr inbounds i8, i8* %0, i64 %11
%13 = load i8, i8* %12
%14 = add i8 %13, -127
%15 = icmp ult i8 %14, -95
br i1 %15, label %16, label %38
16: ; preds = %10
%17 = getelementptr inbounds i8, i8* %0, i64 %11
%18 = trunc i64 %11 to i32
%19 = add i32 %18, 1
%20 = sext i8 %13 to i32
%21 = call i32 @snprintf(i8* %4, i32 81, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str, i64 0, i64 0), i32 %19, i32 %20)
%22 = load i8, i8* %17
switch i8 %22, label %33 [
i8 0, label %30
i8 9, label %23
i8 10, label %24
i8 11, label %25
i8 12, label %26
i8 13, label %27
i8 27, label %28
i8 127, label %29
]
23: ; preds = %16
br label %30
24: ; preds = %16
br label %30
25: ; preds = %16
br label %30
26: ; preds = %16
br label %30
27: ; preds = %16
br label %30
28: ; preds = %16
br label %30
29: ; preds = %16
br label %30
30: ; preds = %16, %24, %26, %28, %29, %27, %25, %23
%31 = phi i8* [ getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), %23 ], [ getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), %25 ], [ getelementptr inbounds ([19 x i8], [19 x i8]* @.str.6, i64 0, i64 0), %27 ], [ getelementptr inbounds ([16 x i8], [16 x i8]* @.str.8, i64 0, i64 0), %29 ], [ getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0), %28 ], [ getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0), %26 ], [ getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), %24 ], [ getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), %16 ]
%32 = call i32 @strcat(i8* %4, i8* %31)
br label %33
33: ; preds = %30, %16
%34 = call i32 @ffpmsg(i8* %4)
%35 = call i32 @strncpy(i8* %4, i8* %0, i32 80)
%36 = getelementptr inbounds [81 x i8], [81 x i8]* %3, i64 0, i64 80
store i8 0, i8* %36
%37 = call i32 @ffpmsg(i8* %4)
store i32 207, i32* %1
br label %41
38: ; preds = %10
%39 = add nuw i64 %11, 1
%40 = icmp eq i64 %39, %8
br i1 %40, label %41, label %10
41: ; preds = %38, %7, %2, %33
%42 = phi i32 [ 207, %33 ], [ %5, %2 ], [ %5, %7 ], [ %5, %38 ]
ret i32 %42
}