#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*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ gets(char *);
int /*<<< orphan*/ printf(char *, ...);
int main() {
  char s[20], c;
  int state = 0, i = 0;
  printf("\n Enter a string: \n");
  gets(s);
  while (s[i] != '\0') {
    switch (state) {
    case 0:
      c = s[i++];
      if (c == 'a')
        state = 1;
      else if (c == 'b')
        state = 2;
      else
        state = 6;
      break;
    case 1:
      c = s[i++];
      if (c == 'a')
        state = 3;
      else if (c == 'b')
        state = 4;
      else
        state = 6;
      break;
    case 2:
      c = s[i++];
      if (c == 'a')
        state = 6;
      else if (c == 'b')
        state = 2;
      else
        state = 6;
      break;
    case 3:
      c = s[i++];
      if (c == 'a')
        state = 3;
      else if (c == 'b')
        state = 2;
      else
        state = 6;
      break;
    case 4:
      c = s[i++];
      if (c == 'a')
        state = 6;
      else if (c == 'b')
        state = 5;
      else
        state = 6;
      break;
    case 5:
      c = s[i++];
      if (c == 'a')
        state = 6;
      else if (c == 'b')
        state = 2;
      else
        state = 6;
      break;
    case 6:
      printf("\n %s is not recognised. \n", s);
      exit(0);
    }
  }
  if (state == 1)
    printf("%s is accepted under rule 'a' \n", s);
  if ((state == 2) || (state == 4))
    printf("\n %s is accepted under rule 'a*b+' \n", s);
  if (state == 5)
    printf("\n %s is accepted under rule 'abb' \n", s);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x28(%rbp)
movl   $0x0,-0x2c(%rbp)
lea    0xec8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x20(%rbp),%rdi
call   1040 <gets@plt>
movslq -0x2c(%rbp),%rax
movsbl -0x20(%rbp,%rax,1),%eax
cmp    $0x0,%eax
je     13c3 <main+0x293>
mov    -0x28(%rbp),%eax
mov    %rax,-0x38(%rbp)
sub    $0x6,%rax
ja     13be <main+0x28e>
mov    -0x38(%rbp),%rax
lea    0xe6e(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x2c(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x2c(%rbp)
cltq
mov    -0x20(%rbp,%rax,1),%al
mov    %al,-0x21(%rbp)
movsbl -0x21(%rbp),%eax
cmp    $0x61,%eax
jne    11c8 <main+0x98>
movl   $0x1,-0x28(%rbp)
jmp    11ed <main+0xbd>
movsbl -0x21(%rbp),%eax
cmp    $0x62,%eax
jne    11e1 <main+0xb1>
movl   $0x2,-0x28(%rbp)
jmp    11e8 <main+0xb8>
movl   $0x6,-0x28(%rbp)
jmp    11ed <main+0xbd>
jmp    13be <main+0x28e>
mov    -0x2c(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x2c(%rbp)
cltq
mov    -0x20(%rbp,%rax,1),%al
mov    %al,-0x21(%rbp)
movsbl -0x21(%rbp),%eax
cmp    $0x61,%eax
jne    121f <main+0xef>
movl   $0x3,-0x28(%rbp)
jmp    1244 <main+0x114>
movsbl -0x21(%rbp),%eax
cmp    $0x62,%eax
jne    1238 <main+0x108>
movl   $0x4,-0x28(%rbp)
jmp    123f <main+0x10f>
movl   $0x6,-0x28(%rbp)
jmp    1244 <main+0x114>
jmp    13be <main+0x28e>
mov    -0x2c(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x2c(%rbp)
cltq
mov    -0x20(%rbp,%rax,1),%al
mov    %al,-0x21(%rbp)
movsbl -0x21(%rbp),%eax
cmp    $0x61,%eax
jne    1276 <main+0x146>
movl   $0x6,-0x28(%rbp)
jmp    129b <main+0x16b>
movsbl -0x21(%rbp),%eax
cmp    $0x62,%eax
jne    128f <main+0x15f>
movl   $0x2,-0x28(%rbp)
jmp    1296 <main+0x166>
movl   $0x6,-0x28(%rbp)
jmp    129b <main+0x16b>
jmp    13be <main+0x28e>
mov    -0x2c(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x2c(%rbp)
cltq
mov    -0x20(%rbp,%rax,1),%al
mov    %al,-0x21(%rbp)
movsbl -0x21(%rbp),%eax
cmp    $0x61,%eax
jne    12cd <main+0x19d>
movl   $0x3,-0x28(%rbp)
jmp    12f2 <main+0x1c2>
movsbl -0x21(%rbp),%eax
cmp    $0x62,%eax
jne    12e6 <main+0x1b6>
movl   $0x2,-0x28(%rbp)
jmp    12ed <main+0x1bd>
movl   $0x6,-0x28(%rbp)
jmp    12f2 <main+0x1c2>
jmp    13be <main+0x28e>
mov    -0x2c(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x2c(%rbp)
cltq
mov    -0x20(%rbp,%rax,1),%al
mov    %al,-0x21(%rbp)
movsbl -0x21(%rbp),%eax
cmp    $0x61,%eax
jne    1324 <main+0x1f4>
movl   $0x6,-0x28(%rbp)
jmp    1349 <main+0x219>
movsbl -0x21(%rbp),%eax
cmp    $0x62,%eax
jne    133d <main+0x20d>
movl   $0x5,-0x28(%rbp)
jmp    1344 <main+0x214>
movl   $0x6,-0x28(%rbp)
jmp    1349 <main+0x219>
jmp    13be <main+0x28e>
mov    -0x2c(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x2c(%rbp)
cltq
mov    -0x20(%rbp,%rax,1),%al
mov    %al,-0x21(%rbp)
movsbl -0x21(%rbp),%eax
cmp    $0x61,%eax
jne    137b <main+0x24b>
movl   $0x6,-0x28(%rbp)
jmp    13a0 <main+0x270>
movsbl -0x21(%rbp),%eax
cmp    $0x62,%eax
jne    1394 <main+0x264>
movl   $0x2,-0x28(%rbp)
jmp    139b <main+0x26b>
movl   $0x6,-0x28(%rbp)
jmp    13a0 <main+0x270>
jmp    13be <main+0x28e>
lea    -0x20(%rbp),%rsi
lea    0xc80(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %edi,%edi
call   1050 <exit@plt>
jmp    1164 <main+0x34>
cmpl   $0x1,-0x28(%rbp)
jne    13df <main+0x2af>
lea    -0x20(%rbp),%rsi
lea    0xc72(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x2,-0x28(%rbp)
je     13f3 <main+0x2c3>
cmpl   $0x4,-0x28(%rbp)
jne    1405 <main+0x2d5>
lea    -0x20(%rbp),%rsi
lea    0xc6c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x5,-0x28(%rbp)
jne    1421 <main+0x2f1>
lea    -0x20(%rbp),%rsi
lea    0xc75(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
lea    0xf68(%rip),%rdi
call   1030 <puts@plt>
mov    %rsp,%rdi
call   1050 <gets@plt>
mov    (%rsp),%cl
test   %cl,%cl
je     1232 <main+0xf2>
xor    %eax,%eax
lea    0xe94(%rip),%rsi
xor    %edx,%edx
jmp    118b <main+0x4b>
mov    $0x6,%edx
cs nopw 0x0(%rax,%rax,1)
nop
movslq %eax,%rcx
movzbl (%rsp,%rcx,1),%ecx
test   %cl,%cl
je     1205 <main+0xc5>
cmp    $0x6,%edx
ja     1180 <main+0x40>
mov    %edx,%edx
movslq (%rsi,%rdx,4),%rdx
add    %rsi,%rdx
jmp    *%rdx
add    $0x1,%eax
xor    %edx,%edx
cmp    $0x62,%cl
setne  %dl
lea    0x2(,%rdx,4),%edx
jmp    1180 <main+0x40>
add    $0x1,%eax
cmp    $0x61,%cl
jne    11da <main+0x9a>
mov    $0x1,%edx
jmp    1180 <main+0x40>
add    $0x1,%eax
cmp    $0x61,%cl
je     11fb <main+0xbb>
cmp    $0x62,%cl
jne    1170 <main+0x30>
mov    $0x4,%edx
jmp    1180 <main+0x40>
add    $0x1,%eax
cmp    $0x61,%cl
je     11fb <main+0xbb>
cmp    $0x62,%cl
jne    1170 <main+0x30>
mov    $0x2,%edx
jmp    1180 <main+0x40>
add    $0x1,%eax
xor    %edi,%edi
cmp    $0x62,%cl
sete   %dil
mov    $0x6,%edx
sub    %edi,%edx
jmp    1180 <main+0x40>
mov    $0x3,%edx
jmp    1180 <main+0x40>
add    $0xffffffff,%edx
cmp    $0x4,%edx
ja     1232 <main+0xf2>
mov    $0x1b,%eax
bt     %edx,%eax
jae    1232 <main+0xf2>
movslq %edx,%rax
lea    0xdfb(%rip),%rcx
movslq (%rcx,%rax,4),%rdi
add    %rcx,%rdi
mov    %rsp,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret
lea    0xdf0(%rip),%rdi
mov    %rsp,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %edi,%edi
call   1060 <exit@plt>

LLVM IR (-O0):
@.str = [20 x i8] c"\0A Enter a string: \0A\00"
@.str.1 = [26 x i8] c"\0A %s is not recognised. \0A\00"
@.str.2 = [32 x i8] c"%s is accepted under rule 'a' \0A\00"
@.str.3 = [37 x i8] c"\0A %s is accepted under rule 'a*b+' \0A\00"
@.str.4 = [36 x i8] c"\0A %s is accepted under rule 'abb' \0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [20 x i8]
%3 = alloca i8
%4 = alloca i32
%5 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %4
store i32 0, i32* %5
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
%7 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 0
%8 = call i32 @gets(i8* %7)
br label %9
9: ; preds = %130, %0
%10 = load i32, i32* %5
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 %11
%13 = load i8, i8* %12
%14 = sext i8 %13 to i32
%15 = icmp ne i32 %14, 0
br i1 %15, label %16, label %131
16: ; preds = %9
%17 = load i32, i32* %4
switch i32 %17, label %130 [
i32 0, label %18
i32 1, label %36
i32 2, label %54
i32 3, label %72
i32 4, label %90
i32 5, label %108
i32 6, label %126
]
18: ; preds = %16
%19 = load i32, i32* %5
%20 = add nsw i32 %19, 1
store i32 %20, i32* %5
%21 = sext i32 %19 to i64
%22 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 %21
%23 = load i8, i8* %22
store i8 %23, i8* %3
%24 = load i8, i8* %3
%25 = sext i8 %24 to i32
%26 = icmp eq i32 %25, 97
br i1 %26, label %27, label %28
27: ; preds = %18
store i32 1, i32* %4
br label %35
28: ; preds = %18
%29 = load i8, i8* %3
%30 = sext i8 %29 to i32
%31 = icmp eq i32 %30, 98
br i1 %31, label %32, label %33
32: ; preds = %28
store i32 2, i32* %4
br label %34
33: ; preds = %28
store i32 6, i32* %4
br label %34
34: ; preds = %33, %32
br label %35
35: ; preds = %34, %27
br label %130
36: ; preds = %16
%37 = load i32, i32* %5
%38 = add nsw i32 %37, 1
store i32 %38, i32* %5
%39 = sext i32 %37 to i64
%40 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 %39
%41 = load i8, i8* %40
store i8 %41, i8* %3
%42 = load i8, i8* %3
%43 = sext i8 %42 to i32
%44 = icmp eq i32 %43, 97
br i1 %44, label %45, label %46
45: ; preds = %36
store i32 3, i32* %4
br label %53
46: ; preds = %36
%47 = load i8, i8* %3
%48 = sext i8 %47 to i32
%49 = icmp eq i32 %48, 98
br i1 %49, label %50, label %51
50: ; preds = %46
store i32 4, i32* %4
br label %52
51: ; preds = %46
store i32 6, i32* %4
br label %52
52: ; preds = %51, %50
br label %53
53: ; preds = %52, %45
br label %130
54: ; preds = %16
%55 = load i32, i32* %5
%56 = add nsw i32 %55, 1
store i32 %56, i32* %5
%57 = sext i32 %55 to i64
%58 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 %57
%59 = load i8, i8* %58
store i8 %59, i8* %3
%60 = load i8, i8* %3
%61 = sext i8 %60 to i32
%62 = icmp eq i32 %61, 97
br i1 %62, label %63, label %64
63: ; preds = %54
store i32 6, i32* %4
br label %71
64: ; preds = %54
%65 = load i8, i8* %3
%66 = sext i8 %65 to i32
%67 = icmp eq i32 %66, 98
br i1 %67, label %68, label %69
68: ; preds = %64
store i32 2, i32* %4
br label %70
69: ; preds = %64
store i32 6, i32* %4
br label %70
70: ; preds = %69, %68
br label %71
71: ; preds = %70, %63
br label %130
72: ; preds = %16
%73 = load i32, i32* %5
%74 = add nsw i32 %73, 1
store i32 %74, i32* %5
%75 = sext i32 %73 to i64
%76 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 %75
%77 = load i8, i8* %76
store i8 %77, i8* %3
%78 = load i8, i8* %3
%79 = sext i8 %78 to i32
%80 = icmp eq i32 %79, 97
br i1 %80, label %81, label %82
81: ; preds = %72
store i32 3, i32* %4
br label %89
82: ; preds = %72
%83 = load i8, i8* %3
%84 = sext i8 %83 to i32
%85 = icmp eq i32 %84, 98
br i1 %85, label %86, label %87
86: ; preds = %82
store i32 2, i32* %4
br label %88
87: ; preds = %82
store i32 6, i32* %4
br label %88
88: ; preds = %87, %86
br label %89
89: ; preds = %88, %81
br label %130
90: ; preds = %16
%91 = load i32, i32* %5
%92 = add nsw i32 %91, 1
store i32 %92, i32* %5
%93 = sext i32 %91 to i64
%94 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 %93
%95 = load i8, i8* %94
store i8 %95, i8* %3
%96 = load i8, i8* %3
%97 = sext i8 %96 to i32
%98 = icmp eq i32 %97, 97
br i1 %98, label %99, label %100
99: ; preds = %90
store i32 6, i32* %4
br label %107
100: ; preds = %90
%101 = load i8, i8* %3
%102 = sext i8 %101 to i32
%103 = icmp eq i32 %102, 98
br i1 %103, label %104, label %105
104: ; preds = %100
store i32 5, i32* %4
br label %106
105: ; preds = %100
store i32 6, i32* %4
br label %106
106: ; preds = %105, %104
br label %107
107: ; preds = %106, %99
br label %130
108: ; preds = %16
%109 = load i32, i32* %5
%110 = add nsw i32 %109, 1
store i32 %110, i32* %5
%111 = sext i32 %109 to i64
%112 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 %111
%113 = load i8, i8* %112
store i8 %113, i8* %3
%114 = load i8, i8* %3
%115 = sext i8 %114 to i32
%116 = icmp eq i32 %115, 97
br i1 %116, label %117, label %118
117: ; preds = %108
store i32 6, i32* %4
br label %125
118: ; preds = %108
%119 = load i8, i8* %3
%120 = sext i8 %119 to i32
%121 = icmp eq i32 %120, 98
br i1 %121, label %122, label %123
122: ; preds = %118
store i32 2, i32* %4
br label %124
123: ; preds = %118
store i32 6, i32* %4
br label %124
124: ; preds = %123, %122
br label %125
125: ; preds = %124, %117
br label %130
126: ; preds = %16
%127 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 0
%128 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0), i8* %127)
%129 = call i32 @exit(i32 0)
unreachable
130: ; preds = %16, %125, %107, %89, %71, %53, %35
br label %9
131: ; preds = %9
%132 = load i32, i32* %4
%133 = icmp eq i32 %132, 1
br i1 %133, label %134, label %137
134: ; preds = %131
%135 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 0
%136 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0), i8* %135)
br label %137
137: ; preds = %134, %131
%138 = load i32, i32* %4
%139 = icmp eq i32 %138, 2
br i1 %139, label %143, label %140
140: ; preds = %137
%141 = load i32, i32* %4
%142 = icmp eq i32 %141, 4
br i1 %142, label %143, label %146
143: ; preds = %140, %137
%144 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 0
%145 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0), i8* %144)
br label %146
146: ; preds = %143, %140
%147 = load i32, i32* %4
%148 = icmp eq i32 %147, 5
br i1 %148, label %149, label %152
149: ; preds = %146
%150 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 0
%151 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.4, i64 0, i64 0), i8* %150)
br label %152
152: ; preds = %149, %146
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [26 x i8] c"\0A %s is not recognised. \0A\00"
@.str.2 = [32 x i8] c"%s is accepted under rule 'a' \0A\00"
@.str.3 = [37 x i8] c"\0A %s is accepted under rule 'a*b+' \0A\00"
@.str.4 = [36 x i8] c"\0A %s is accepted under rule 'abb' \0A\00"
@str = [19 x i8] c"\0A Enter a string: \00"
@reltable.main = [5 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([32 x i8]* @.str.2 to i64), i64 ptrtoint ([5 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([37 x i8]* @.str.3 to i64), i64 ptrtoint ([5 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([32 x i8]* @.str.2 to i64), i64 ptrtoint ([5 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([37 x i8]* @.str.3 to i64), i64 ptrtoint ([5 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([36 x i8]* @.str.4 to i64), i64 ptrtoint ([5 x i32]* @reltable.main to i64)) to i32)]
define i32 @main() {
%1 = alloca [20 x i8]
%2 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 0
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str, i64 0, i64 0))
%4 = call i32 @gets(i8* %2)
%5 = load i8, i8* %2
%6 = icmp eq i8 %5, 0
br i1 %6, label %58, label %7
7: ; preds = %0, %38
%8 = phi i8 [ %43, %38 ], [ %5, %0 ]
%9 = phi i32 [ %40, %38 ], [ 0, %0 ]
%10 = phi i32 [ %39, %38 ], [ 0, %0 ]
switch i32 %10, label %38 [
i32 0, label %11
i32 1, label %15
i32 2, label %19
i32 3, label %23
i32 4, label %27
i32 5, label %31
i32 6, label %35
]
11: ; preds = %7
%12 = add nsw i32 %9, 1
switch i8 %8, label %14 [
i8 97, label %38
i8 98, label %13
]
13: ; preds = %11
br label %38
14: ; preds = %11
br label %38
15: ; preds = %7
%16 = add nsw i32 %9, 1
switch i8 %8, label %18 [
i8 97, label %38
i8 98, label %17
]
17: ; preds = %15
br label %38
18: ; preds = %15
br label %38
19: ; preds = %7
%20 = add nsw i32 %9, 1
%21 = icmp eq i8 %8, 98
%22 = select i1 %21, i32 2, i32 6
br label %38
23: ; preds = %7
%24 = add nsw i32 %9, 1
switch i8 %8, label %26 [
i8 97, label %38
i8 98, label %25
]
25: ; preds = %23
br label %38
26: ; preds = %23
br label %38
27: ; preds = %7
%28 = add nsw i32 %9, 1
%29 = icmp eq i8 %8, 98
%30 = select i1 %29, i32 5, i32 6
br label %38
31: ; preds = %7
%32 = add nsw i32 %9, 1
%33 = icmp eq i8 %8, 98
%34 = select i1 %33, i32 2, i32 6
br label %38
35: ; preds = %7
%36 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0), i8* %2)
%37 = call i32 @exit(i32 0)
unreachable
38: ; preds = %31, %27, %19, %23, %15, %11, %26, %25, %18, %17, %14, %13, %7
%39 = phi i32 [ %10, %7 ], [ 2, %25 ], [ 6, %26 ], [ 4, %17 ], [ 6, %18 ], [ 2, %13 ], [ 6, %14 ], [ 1, %11 ], [ 3, %15 ], [ 3, %23 ], [ %22, %19 ], [ %30, %27 ], [ %34, %31 ]
%40 = phi i32 [ %9, %7 ], [ %24, %25 ], [ %24, %26 ], [ %16, %17 ], [ %16, %18 ], [ %12, %13 ], [ %12, %14 ], [ %12, %11 ], [ %16, %15 ], [ %24, %23 ], [ %20, %19 ], [ %28, %27 ], [ %32, %31 ]
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 %41
%43 = load i8, i8* %42
%44 = icmp eq i8 %43, 0
br i1 %44, label %45, label %7
45: ; preds = %38
%46 = add i32 %39, -1
%47 = icmp ult i32 %46, 5
br i1 %47, label %48, label %58
48: ; preds = %45
%49 = trunc i32 %46 to i8
%50 = lshr i8 27, %49
%51 = and i8 %50, 1
%52 = icmp eq i8 %51, 0
br i1 %52, label %58, label %53
53: ; preds = %48
%54 = sext i32 %46 to i64
%55 = shl i64 %54, 2
%56 = call i8* @llvm.load.relative.i64(i8* bitcast ([5 x i32]* @reltable.main to i8*), i64 %55)
%57 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) %56, i8* %2)
br label %58
58: ; preds = %48, %45, %53, %0
ret i32 0
}