#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*/ INT_MAX;
int /*<<< orphan*/ atol(char *);
char *date(int, int, int);
scalar_t__ isdate(char *);
scalar_t__ isnum(char *);
scalar_t__ ispalindrom(char *);
scalar_t__ isprime(int /*<<< orphan*/);
scalar_t__ istext(char *);
int /*<<< orphan*/ printf(char *, ...);
int scanf(char *, char *);
int /*<<< orphan*/ sscanf(char *, char *, int *, int *, int *);
int strlength(char *);
int main(int argc, char *argv[]) {
  if (argc > 1) {
    printf("%s is a text parsing program\n"
           "        which gets text from standard input\n\n"
           "usage:   <command> < <filename>\n"
           "example: ./proj1 < data.txt\n",
           argv[0]);
    return 0;
  }
  char word[101];
  while (scanf("%100s", word) == 1 && istext(&word[0])) {
    if (ispalindrom(&word[0]) && !isnum(&word[0]))
      printf("word: %s (palindrome)\n", word);
    else if (isnum(&word[0])) {
      if (strlength(&word[0]) < 11 && atol(word) <= INT_MAX &&
          isprime(atol(word)))
        printf("number: %ld (prime)\n", atol(word));
      else
        printf("number: %ld\n", atol(word));
    } else if (isdate(&word[0])) {
      int day, month, year;
      sscanf(word, "%4d-%2d-%2d", &year, &month, &day);
      if ((month <= 12) && (year >= 1901) && (month >= 1) && (day <= 31) &&
          (day >= 1))
        printf("date: %.3s %s\n", date(day, month, year), word);
      else
        printf("word: %s\n", word);
    } else
      printf("word: %s\n", word);
  }
  if (!istext(&word[0])) {
    printf("The characters you\'ve entered are not printable.\n"
           "Exiting ..\n");
    return 1;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x1,-0x8(%rbp)
jle    11f4 <main+0x44>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xe1f(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    142e <main+0x27e>
jmp    11f9 <main+0x49>
lea    -0x80(%rbp),%rsi
lea    0xe83(%rip),%rdi
call   10b0 <scanf@plt>
mov    %eax,%ecx
xor    %eax,%eax
cmp    $0x1,%ecx
mov    %al,-0x8d(%rbp)
jne    1232 <main+0x82>
lea    -0x80(%rbp),%rdi
call   1030 <istext@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0x8d(%rbp)
mov    -0x8d(%rbp),%al
test   $0x1,%al
jne    1245 <main+0x95>
jmp    13fa <main+0x24a>
lea    -0x80(%rbp),%rdi
call   1060 <ispalindrom@plt>
cmp    $0x0,%rax
je     1282 <main+0xd2>
lea    -0x80(%rbp),%rdi
call   10c0 <isnum@plt>
cmp    $0x0,%rax
jne    1282 <main+0xd2>
lea    -0x80(%rbp),%rsi
lea    0xe17(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    13f5 <main+0x245>
lea    -0x80(%rbp),%rdi
call   10c0 <isnum@plt>
cmp    $0x0,%rax
je     1315 <main+0x165>
lea    -0x80(%rbp),%rdi
call   1040 <strlength@plt>
cmp    $0xb,%eax
jge    12f7 <main+0x147>
lea    -0x80(%rbp),%rdi
call   10d0 <atol@plt>
mov    0x2d31(%rip),%rcx
cmp    (%rcx),%eax
jg     12f7 <main+0x147>
lea    -0x80(%rbp),%rdi
call   10d0 <atol@plt>
mov    %eax,%edi
call   1080 <isprime@plt>
cmp    $0x0,%rax
je     12f7 <main+0x147>
lea    -0x80(%rbp),%rdi
call   10d0 <atol@plt>
mov    %eax,%esi
lea    0xdb9(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1310 <main+0x160>
lea    -0x80(%rbp),%rdi
call   10d0 <atol@plt>
mov    %eax,%esi
lea    0xdb0(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    13f0 <main+0x240>
lea    -0x80(%rbp),%rdi
call   1070 <isdate@plt>
cmp    $0x0,%rax
je     13d9 <main+0x229>
lea    -0x80(%rbp),%rdi
lea    0xd93(%rip),%rsi
lea    -0x8c(%rbp),%rdx
lea    -0x88(%rbp),%rcx
lea    -0x84(%rbp),%r8
call   10a0 <sscanf@plt>
cmpl   $0xc,-0x88(%rbp)
jg     13c2 <main+0x212>
cmpl   $0x76d,-0x8c(%rbp)
jl     13c2 <main+0x212>
cmpl   $0x1,-0x88(%rbp)
jl     13c2 <main+0x212>
cmpl   $0x1f,-0x84(%rbp)
jg     13c2 <main+0x212>
cmpl   $0x1,-0x84(%rbp)
jl     13c2 <main+0x212>
mov    -0x84(%rbp),%edi
mov    -0x88(%rbp),%esi
mov    -0x8c(%rbp),%edx
call   1090 <date@plt>
mov    %rax,%rsi
lea    -0x80(%rbp),%rdx
lea    0xd1c(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    13d4 <main+0x224>
lea    -0x80(%rbp),%rsi
lea    0xd14(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    13eb <main+0x23b>
lea    -0x80(%rbp),%rsi
lea    0xcfd(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    13f0 <main+0x240>
jmp    13f5 <main+0x245>
jmp    11f9 <main+0x49>
lea    -0x80(%rbp),%rdi
call   1030 <istext@plt>
cmp    $0x0,%rax
jne    1427 <main+0x277>
lea    0xcd7(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    142e <main+0x27e>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x78,%rsp
cmp    $0x2,%edi
jl     11eb <main+0x2b>
mov    (%rsi),%rsi
lea    0xe23(%rip),%rdi
xor    %ebx,%ebx
xor    %eax,%eax
call   1060 <printf@plt>
jmp    1376 <main+0x1b6>
lea    0xe95(%rip),%rdi
lea    0x10(%rsp),%rsi
call   10c0 <scanf@plt>
cmp    $0x1,%eax
jne    1354 <main+0x194>
lea    0x10(%rsp),%rbx
lea    0xed0(%rip),%r14
mov    0x2dd0(%rip),%rbp
lea    0xe9a(%rip),%r15
lea    0xe61(%rip),%r12
lea    0xe60(%rip),%r13
jmp    1251 <main+0x91>
nop
mov    %r13,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
call   10c0 <scanf@plt>
cmp    $0x1,%eax
jne    1354 <main+0x194>
mov    %rbx,%rdi
call   1030 <istext@plt>
test   %rax,%rax
je     1354 <main+0x194>
mov    %rbx,%rdi
call   1070 <ispalindrom@plt>
test   %rax,%rax
je     127c <main+0xbc>
mov    %rbx,%rdi
call   10d0 <isnum@plt>
test   %rax,%rax
je     1230 <main+0x70>
mov    %rbx,%rdi
call   10d0 <isnum@plt>
mov    %rbx,%rdi
test   %rax,%rax
je     12e0 <main+0x120>
call   1050 <strlength@plt>
cmp    $0xa,%eax
jg     12c0 <main+0x100>
mov    %rbx,%rdi
call   10e0 <atol@plt>
cmp    0x0(%rbp),%eax
jg     12c0 <main+0x100>
mov    %eax,%edi
call   1090 <isprime@plt>
test   %rax,%rax
je     12c0 <main+0x100>
mov    %rbx,%rdi
call   10e0 <atol@plt>
lea    0xde6(%rip),%rdi
jmp    12cb <main+0x10b>
mov    %rbx,%rdi
call   10e0 <atol@plt>
mov    %r15,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
jmp    123d <main+0x7d>
nopl   0x0(%rax)
call   1080 <isdate@plt>
test   %rax,%rax
je     134c <main+0x18c>
mov    %rbx,%rdi
lea    0xdd2(%rip),%rsi
lea    0x4(%rsp),%rdx
lea    0x8(%rsp),%rcx
lea    0xc(%rsp),%r8
call   10b0 <sscanf@plt>
mov    0x8(%rsp),%esi
test   %esi,%esi
jle    134c <main+0x18c>
cmp    $0xc,%esi
jg     134c <main+0x18c>
mov    0x4(%rsp),%edx
cmp    $0x76d,%edx
jl     134c <main+0x18c>
mov    0xc(%rsp),%edi
cmp    $0x1f,%edi
jg     134c <main+0x18c>
test   %edi,%edi
jle    134c <main+0x18c>
call   10a0 <date@plt>
lea    0xd98(%rip),%rdi
mov    %rax,%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
jmp    123d <main+0x7d>
mov    %r14,%rdi
jmp    1233 <main+0x73>
lea    0x10(%rsp),%rdi
call   1030 <istext@plt>
xor    %ebx,%ebx
test   %rax,%rax
jne    1376 <main+0x1b6>
lea    0xd7f(%rip),%rdi
call   1040 <puts@plt>
mov    $0x1,%ebx
mov    %ebx,%eax
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [135 x i8] c"%s is a text parsing program\0A which gets text from standard input\0A\0Ausage: <command> < <filename>\0Aexample: ./proj1 < data.txt\0A\00"
@.str.1 = [6 x i8] c"%100s\00"
@.str.2 = [23 x i8] c"word: %s (palindrome)\0A\00"
@INT_MAX = global i32 0
@.str.3 = [21 x i8] c"number: %ld (prime)\0A\00"
@.str.4 = [13 x i8] c"number: %ld\0A\00"
@.str.5 = [12 x i8] c"%4d-%2d-%2d\00"
@.str.6 = [15 x i8] c"date: %.3s %s\0A\00"
@.str.7 = [10 x i8] c"word: %s\0A\00"
@.str.8 = [61 x i8] c"The characters you've entered are not printable.\0AExiting ..\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [101 x i8]
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%10 = load i32, i32* %4
%11 = icmp sgt i32 %10, 1
br i1 %11, label %12, label %17
12: ; preds = %2
%13 = load i8**, i8*** %5
%14 = getelementptr inbounds i8*, i8** %13, i64 0
%15 = load i8*, i8** %14
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i8* %15)
store i32 0, i32* %3
br label %111
17: ; preds = %2
br label %18
18: ; preds = %103, %17
%19 = getelementptr inbounds [101 x i8], [101 x i8]* %6, i64 0, i64 0
%20 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %19)
%21 = icmp eq i32 %20, 1
br i1 %21, label %22, label %26
22: ; preds = %18
%23 = getelementptr inbounds [101 x i8], [101 x i8]* %6, i64 0, i64 0
%24 = call i64 @istext(i8* %23)
%25 = icmp ne i64 %24, 0
br label %26
26: ; preds = %22, %18
%27 = phi i1 [ false, %18 ], [ %25, %22 ]
br i1 %27, label %28, label %104
28: ; preds = %26
%29 = getelementptr inbounds [101 x i8], [101 x i8]* %6, i64 0, i64 0
%30 = call i64 @ispalindrom(i8* %29)
%31 = icmp ne i64 %30, 0
br i1 %31, label %32, label %39
32: ; preds = %28
%33 = getelementptr inbounds [101 x i8], [101 x i8]* %6, i64 0, i64 0
%34 = call i64 @isnum(i8* %33)
%35 = icmp ne i64 %34, 0
br i1 %35, label %39, label %36
36: ; preds = %32
%37 = getelementptr inbounds [101 x i8], [101 x i8]* %6, i64 0, i64 0
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i8* %37)
br label %103
39: ; preds = %32, %28
%40 = getelementptr inbounds [101 x i8], [101 x i8]* %6, i64 0, i64 0
%41 = call i64 @isnum(i8* %40)
%42 = icmp ne i64 %41, 0
br i1 %42, label %43, label %66
43: ; preds = %39
%44 = getelementptr inbounds [101 x i8], [101 x i8]* %6, i64 0, i64 0
%45 = call i32 @strlength(i8* %44)
%46 = icmp slt i32 %45, 11
br i1 %46, label %47, label %61
47: ; preds = %43
%48 = getelementptr inbounds [101 x i8], [101 x i8]* %6, i64 0, i64 0
%49 = call i32 @atol(i8* %48)
%50 = load i32, i32* @INT_MAX
%51 = icmp sle i32 %49, %50
br i1 %51, label %52, label %61
52: ; preds = %47
%53 = getelementptr inbounds [101 x i8], [101 x i8]* %6, i64 0, i64 0
%54 = call i32 @atol(i8* %53)
%55 = call i64 @isprime(i32 %54)
%56 = icmp ne i64 %55, 0
br i1 %56, label %57, label %61
57: ; preds = %52
%58 = getelementptr inbounds [101 x i8], [101 x i8]* %6, i64 0, i64 0
%59 = call i32 @atol(i8* %58)
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0), i32 %59)
br label %65
61: ; preds = %52, %47, %43
%62 = getelementptr inbounds [101 x i8], [101 x i8]* %6, i64 0, i64 0
%63 = call i32 @atol(i8* %62)
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), i32 %63)
br label %65
65: ; preds = %61, %57
br label %102
66: ; preds = %39
%67 = getelementptr inbounds [101 x i8], [101 x i8]* %6, i64 0, i64 0
%68 = call i64 @isdate(i8* %67)
%69 = icmp ne i64 %68, 0
br i1 %69, label %70, label %98
70: ; preds = %66
%71 = getelementptr inbounds [101 x i8], [101 x i8]* %6, i64 0, i64 0
%72 = call i32 @sscanf(i8* %71, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i32* %9, i32* %8, i32* %7)
%73 = load i32, i32* %8
%74 = icmp sle i32 %73, 12
br i1 %74, label %75, label %94
75: ; preds = %70
%76 = load i32, i32* %9
%77 = icmp sge i32 %76, 1901
br i1 %77, label %78, label %94
78: ; preds = %75
%79 = load i32, i32* %8
%80 = icmp sge i32 %79, 1
br i1 %80, label %81, label %94
81: ; preds = %78
%82 = load i32, i32* %7
%83 = icmp sle i32 %82, 31
br i1 %83, label %84, label %94
84: ; preds = %81
%85 = load i32, i32* %7
%86 = icmp sge i32 %85, 1
br i1 %86, label %87, label %94
87: ; preds = %84
%88 = load i32, i32* %7
%89 = load i32, i32* %8
%90 = load i32, i32* %9
%91 = call i8* @date(i32 %88, i32 %89, i32 %90)
%92 = getelementptr inbounds [101 x i8], [101 x i8]* %6, i64 0, i64 0
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0), i8* %91, i8* %92)
br label %97
94: ; preds = %84, %81, %78, %75, %70
%95 = getelementptr inbounds [101 x i8], [101 x i8]* %6, i64 0, i64 0
%96 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), i8* %95)
br label %97
97: ; preds = %94, %87
br label %101
98: ; preds = %66
%99 = getelementptr inbounds [101 x i8], [101 x i8]* %6, i64 0, i64 0
%100 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), i8* %99)
br label %101
101: ; preds = %98, %97
br label %102
102: ; preds = %101, %65
br label %103
103: ; preds = %102, %36
br label %18
104: ; preds = %26
%105 = getelementptr inbounds [101 x i8], [101 x i8]* %6, i64 0, i64 0
%106 = call i64 @istext(i8* %105)
%107 = icmp ne i64 %106, 0
br i1 %107, label %110, label %108
108: ; preds = %104
%109 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.8, i64 0, i64 0))
store i32 1, i32* %3
br label %111
110: ; preds = %104
store i32 0, i32* %3
br label %111
111: ; preds = %110, %108, %12
%112 = load i32, i32* %3
ret i32 %112
}

LLVM IR (-O2):
@.str = [135 x i8] c"%s is a text parsing program\0A which gets text from standard input\0A\0Ausage: <command> < <filename>\0Aexample: ./proj1 < data.txt\0A\00"
@.str.1 = [6 x i8] c"%100s\00"
@.str.2 = [23 x i8] c"word: %s (palindrome)\0A\00"
@INT_MAX = global i32 0
@.str.3 = [21 x i8] c"number: %ld (prime)\0A\00"
@.str.4 = [13 x i8] c"number: %ld\0A\00"
@.str.5 = [12 x i8] c"%4d-%2d-%2d\00"
@.str.6 = [15 x i8] c"date: %.3s %s\0A\00"
@.str.7 = [10 x i8] c"word: %s\0A\00"
@str = [60 x i8] c"The characters you've entered are not printable.\0AExiting ..\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [101 x i8]
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = icmp sgt i32 %0, 1
br i1 %7, label %8, label %11
8: ; preds = %2
%9 = load i8*, i8** %1
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i8* %9)
br label %84
11: ; preds = %2
%12 = getelementptr inbounds [101 x i8], [101 x i8]* %3, i64 0, i64 0
%13 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %12)
%14 = icmp eq i32 %13, 1
br i1 %14, label %15, label %77
15: ; preds = %11
%16 = bitcast i32* %4 to i8*
%17 = bitcast i32* %5 to i8*
%18 = bitcast i32* %6 to i8*
br label %19
19: ; preds = %15, %74
%20 = call i64 @istext(i8* %12)
%21 = icmp eq i64 %20, 0
br i1 %21, label %77, label %22
22: ; preds = %19
%23 = call i64 @ispalindrom(i8* %12)
%24 = icmp eq i64 %23, 0
br i1 %24, label %30, label %25
25: ; preds = %22
%26 = call i64 @isnum(i8* %12)
%27 = icmp eq i64 %26, 0
br i1 %27, label %28, label %30
28: ; preds = %25
%29 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i8* %12)
br label %74
30: ; preds = %25, %22
%31 = call i64 @isnum(i8* %12)
%32 = icmp eq i64 %31, 0
br i1 %32, label %49, label %33
33: ; preds = %30
%34 = call i32 @strlength(i8* %12)
%35 = icmp slt i32 %34, 11
br i1 %35, label %36, label %46
36: ; preds = %33
%37 = call i32 @atol(i8* %12)
%38 = load i32, i32* @INT_MAX
%39 = icmp sgt i32 %37, %38
br i1 %39, label %46, label %40
40: ; preds = %36
%41 = call i64 @isprime(i32 %37)
%42 = icmp eq i64 %41, 0
br i1 %42, label %46, label %43
43: ; preds = %40
%44 = call i32 @atol(i8* %12)
%45 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0), i32 %44)
br label %74
46: ; preds = %40, %36, %33
%47 = call i32 @atol(i8* %12)
%48 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), i32 %47)
br label %74
49: ; preds = %30
%50 = call i64 @isdate(i8* %12)
%51 = icmp eq i64 %50, 0
br i1 %51, label %72, label %52
52: ; preds = %49
%53 = call i32 @sscanf(i8* %12, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i32* %6, i32* %5, i32* %4)
%54 = load i32, i32* %5
%55 = icmp slt i32 %54, 13
%56 = load i32, i32* %6
%57 = icmp sgt i32 %56, 1900
%58 = select i1 %55, i1 %57, i1 false
%59 = icmp sgt i32 %54, 0
%60 = and i1 %59, %58
%61 = load i32, i32* %4
%62 = icmp slt i32 %61, 32
%63 = select i1 %60, i1 %62, i1 false
%64 = icmp sgt i32 %61, 0
%65 = select i1 %63, i1 %64, i1 false
br i1 %65, label %66, label %69
66: ; preds = %52
%67 = call i8* @date(i32 %61, i32 %54, i32 %56)
%68 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0), i8* %67, i8* %12)
br label %71
69: ; preds = %52
%70 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), i8* %12)
br label %71
71: ; preds = %69, %66
br label %74
72: ; preds = %49
%73 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), i8* %12)
br label %74
74: ; preds = %46, %43, %72, %71, %28
%75 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %12)
%76 = icmp eq i32 %75, 1
br i1 %76, label %19, label %77
77: ; preds = %19, %74, %11
%78 = call i64 @istext(i8* %12)
%79 = icmp eq i64 %78, 0
br i1 %79, label %80, label %82
80: ; preds = %77
%81 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str, i64 0, i64 0))
br label %82
82: ; preds = %77, %80
%83 = phi i32 [ 1, %80 ], [ 0, %77 ]
br label %84
84: ; preds = %82, %8
%85 = phi i32 [ 0, %8 ], [ %83, %82 ]
ret i32 %85
}