#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 EXIT_SUCCESS;
int execvp(char *, char **);
int /*<<< orphan*/ exit(int);
char *fgets(char *, int, int /*<<< orphan*/);
int fork();
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ fputs(char *, int /*<<< orphan*/);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ stdin;
int /*<<< orphan*/ stdout;
int strlen(char *);
int /*<<< orphan*/ wait(int /*<<< orphan*/ *);
int main() {
  int pid, longueur, i, n, r;
  char tab[256], *s;
  char *arg_tab[256];
  while (1) {
    fputs("petit_shell1...> ", stdout);
    s = fgets(tab, 256, stdin);
    if (s == NULL) {
      fprintf(stderr, "Fin du Shell\n");
      exit(EXIT_SUCCESS);
    }
    longueur = strlen(s);
    tab[longueur - 1] = '\0';
    longueur = strlen(tab);
    i = 0;
    n = 0;
    while (i < longueur) {
      while (tab[i] == ' ' || tab[i] == '\t') {
        i++;
      }
      if (tab[i] == '\0')
        break;
      arg_tab[n++] = &tab[i];
      while (tab[i] != ' ' && tab[i] != '\t' && tab[i] != '\0')
        i++;
      tab[i++] = '\0';
    }
    if (n == 0)
      continue;
    arg_tab[n] = (char *)NULL;
    pid = fork();
    switch (pid) {
    case -1:
      fprintf(stderr, "Error creathing thread!");
      break;
    case 0:
      r = execvp(s, arg_tab);
      if (r) {
        fprintf(stderr, "Error executing command: %s\n", s);
      }
      exit(r);
    default:
      wait(NULL);
    }
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x940,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2e37(%rip),%rax
mov    (%rax),%esi
lea    0xe5e(%rip),%rdi
call   1040 <fputs@plt>
lea    -0x120(%rbp),%rdi
mov    0x2e33(%rip),%rax
mov    (%rax),%edx
mov    $0x100,%esi
call   1050 <fgets@plt>
mov    %rax,-0x128(%rbp)
cmpq   $0x0,-0x128(%rbp)
jne    11fb <main+0x7b>
mov    0x2dfb(%rip),%rax
mov    (%rax),%edi
lea    0xe2c(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    0x2dd4(%rip),%rax
mov    (%rax),%edi
call   1080 <exit@plt>
mov    -0x128(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
sub    $0x1,%eax
cltq
movb   $0x0,-0x120(%rbp,%rax,1)
lea    -0x120(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1368 <main+0x1e8>
jmp    1248 <main+0xc8>
movslq -0x10(%rbp),%rax
movsbl -0x120(%rbp,%rax,1),%ecx
ff
mov    $0x1,%al
cmp    $0x20,%ecx
mov    %al,-0x931(%rbp)
je     127d <main+0xfd>
movslq -0x10(%rbp),%rax
movsbl -0x120(%rbp,%rax,1),%eax
ff
cmp    $0x9,%eax
sete   %al
mov    %al,-0x931(%rbp)
mov    -0x931(%rbp),%al
test   $0x1,%al
jne    1290 <main+0x110>
jmp    129e <main+0x11e>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1248 <main+0xc8>
movslq -0x10(%rbp),%rax
movsbl -0x120(%rbp,%rax,1),%eax
ff
cmp    $0x0,%eax
jne    12b8 <main+0x138>
jmp    1368 <main+0x1e8>
movslq -0x10(%rbp),%rax
lea    -0x120(%rbp),%rcx
add    %rax,%rcx
mov    -0x14(%rbp),%eax
mov    %eax,%edx
add    $0x1,%edx
mov    %edx,-0x14(%rbp)
cltq
mov    %rcx,-0x930(%rbp,%rax,8)
ff
movslq -0x10(%rbp),%rax
movsbl -0x120(%rbp,%rax,1),%ecx
ff
xor    %eax,%eax
cmp    $0x20,%ecx
mov    %al,-0x932(%rbp)
je     132d <main+0x1ad>
movslq -0x10(%rbp),%rax
movsbl -0x120(%rbp,%rax,1),%ecx
ff
xor    %eax,%eax
cmp    $0x9,%ecx
mov    %al,-0x932(%rbp)
je     132d <main+0x1ad>
movslq -0x10(%rbp),%rax
movsbl -0x120(%rbp,%rax,1),%eax
ff
cmp    $0x0,%eax
setne  %al
mov    %al,-0x932(%rbp)
mov    -0x932(%rbp),%al
test   $0x1,%al
jne    1340 <main+0x1c0>
jmp    134e <main+0x1ce>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    12db <main+0x15b>
mov    -0x10(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x10(%rbp)
cltq
movb   $0x0,-0x120(%rbp,%rax,1)
jmp    1237 <main+0xb7>
cmpl   $0x0,-0x14(%rbp)
jne    1377 <main+0x1f7>
jmp    1192 <main+0x12>
movslq -0x14(%rbp),%rax
movq   $0x0,-0x930(%rbp,%rax,8)
xor    %eax,%eax
call   10a0 <fork@plt>
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x938(%rbp)
sub    $0xffffffff,%eax
je     13bb <main+0x23b>
jmp    13a8 <main+0x228>
mov    -0x938(%rbp),%eax
test   %eax,%eax
je     13d7 <main+0x257>
jmp    141d <main+0x29d>
mov    0x2c16(%rip),%rax
mov    (%rax),%edi
lea    0xc55(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
jmp    1426 <main+0x2a6>
mov    -0x128(%rbp),%rdi
lea    -0x930(%rbp),%rsi
call   1070 <execvp@plt>
mov    %eax,-0x18(%rbp)
cmpl   $0x0,-0x18(%rbp)
je     1415 <main+0x295>
mov    0x2bda(%rip),%rax
mov    (%rax),%edi
mov    -0x128(%rbp),%rdx
lea    0xc2a(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x18(%rbp),%edi
call   1080 <exit@plt>
xor    %eax,%eax
mov    %eax,%edi
call   1090 <wait@plt>
jmp    1192 <main+0x12>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x908,%rsp
mov    0x2e38(%rip),%rax
mov    (%rax),%esi
lea    0xe5f(%rip),%rdi
call   1040 <fputs@plt>
mov    0x2e3b(%rip),%rax
mov    (%rax),%edx
mov    %rsp,%r12
mov    %r12,%rdi
mov    $0x100,%esi
call   1050 <fgets@plt>
test   %rax,%rax
jne    11e9 <main+0x69>
mov    0x2e0d(%rip),%rax
mov    (%rax),%edi
lea    0xe3e(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    0x2de6(%rip),%rax
mov    (%rax),%edi
call   1080 <exit@plt>
mov    %rax,%r15
movabs $0x100000000,%r14
movabs $0x100000201,%r13
jmp    1257 <main+0xd7>
mov    0x2dcf(%rip),%rax
mov    (%rax),%edi
lea    0xe0e(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
nopl   0x0(%rax)
mov    0x2da9(%rip),%rax
mov    (%rax),%esi
lea    0xdd0(%rip),%rdi
call   1040 <fputs@plt>
mov    0x2dac(%rip),%rax
mov    (%rax),%edx
mov    %r12,%rdi
mov    $0x100,%esi
call   1050 <fgets@plt>
mov    %rax,%r15
test   %rax,%rax
je     11c4 <main+0x44>
mov    %r15,%rdi
call   1030 <strlen@plt>
cltq
movb   $0x0,-0x1(%rax,%r12,1)
mov    %r12,%rdi
call   1030 <strlen@plt>
test   %eax,%eax
jle    1220 <main+0xa0>
xor    %ecx,%ecx
xor    %ebp,%ebp
mov    %ebp,%esi
movslq %ebp,%rbp
lea    (%rsp,%rbp,1),%rdi
mov    %rbp,%rdx
shl    $0x20,%rdx
jmp    129a <main+0x11a>
nopl   0x0(%rax)
add    $0x1,%rdi
add    %r14,%rdx
add    $0x1,%esi
add    $0x1,%ebp
movzbl (%rdi),%ebx
cmp    $0x9,%bl
je     1290 <main+0x110>
cmp    $0x20,%bl
je     1290 <main+0x110>
test   %bl,%bl
je     12f0 <main+0x170>
mov    %rdi,0x100(%rsp,%rcx,8)
add    $0x1,%rcx
movslq %esi,%rdx
add    %rsp,%rdx
jmp    12d7 <main+0x157>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
add    $0x1,%rdx
add    $0x1,%ebp
movzbl (%rdx),%esi
cmp    $0x20,%rsi
ja     12d0 <main+0x150>
bt     %rsi,%r13
jae    12d0 <main+0x150>
movb   $0x0,(%rdx)
cmp    %eax,%ebp
jl     1277 <main+0xf7>
nopl   (%rax)
test   %ecx,%ecx
je     1220 <main+0xa0>
mov    %ecx,%eax
movq   $0x0,0x100(%rsp,%rax,8)
xor    %eax,%eax
call   10a0 <fork@plt>
cmp    $0xffffffff,%eax
je     1202 <main+0x82>
test   %eax,%eax
je     1326 <main+0x1a6>
xor    %edi,%edi
call   1090 <wait@plt>
jmp    1220 <main+0xa0>
lea    0x100(%rsp),%rsi
mov    %r15,%rdi
call   1070 <execvp@plt>
mov    %eax,%ebp
test   %eax,%eax
je     1356 <main+0x1d6>
mov    0x2c95(%rip),%rax
mov    (%rax),%edi
lea    0xcec(%rip),%rsi
mov    %r15,%rdx
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %ebp,%edi
call   1080 <exit@plt>

LLVM IR (-O0):
@.str = [18 x i8] c"petit_shell1...> \00"
@stdout = global i32 0
@stdin = global i32 0
@stderr = global i32 0
@.str.1 = [14 x i8] c"Fin du Shell\0A\00"
@EXIT_SUCCESS = global i32 0
@.str.2 = [24 x i8] c"Error creathing thread!\00"
@.str.3 = [29 x i8] c"Error executing command: %s\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca [256 x i8]
%8 = alloca i8*
%9 = alloca [256 x i8*]
store i32 0, i32* %1
br label %10
10: ; preds = %0, %106, %131
%11 = load i32, i32* @stdout
%12 = call i32 @fputs(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 %11)
%13 = getelementptr inbounds [256 x i8], [256 x i8]* %7, i64 0, i64 0
%14 = load i32, i32* @stdin
%15 = call i8* @fgets(i8* %13, i32 256, i32 %14)
store i8* %15, i8** %8
%16 = load i8*, i8** %8
%17 = icmp eq i8* %16, null
br i1 %17, label %18, label %23
18: ; preds = %10
%19 = load i32, i32* @stderr
%20 = call i32 (i32, i8*, ...) @fprintf(i32 %19, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
%21 = load i32, i32* @EXIT_SUCCESS
%22 = call i32 @exit(i32 %21)
unreachable
23: ; preds = %10
%24 = load i8*, i8** %8
%25 = call i32 @strlen(i8* %24)
store i32 %25, i32* %3
%26 = load i32, i32* %3
%27 = sub nsw i32 %26, 1
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [256 x i8], [256 x i8]* %7, i64 0, i64 %28
store i8 0, i8* %29
%30 = getelementptr inbounds [256 x i8], [256 x i8]* %7, i64 0, i64 0
%31 = call i32 @strlen(i8* %30)
store i32 %31, i32* %3
store i32 0, i32* %4
store i32 0, i32* %5
br label %32
32: ; preds = %98, %23
%33 = load i32, i32* %4
%34 = load i32, i32* %3
%35 = icmp slt i32 %33, %34
br i1 %35, label %36, label %103
36: ; preds = %32
br label %37
37: ; preds = %53, %36
%38 = load i32, i32* %4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [256 x i8], [256 x i8]* %7, i64 0, i64 %39
%41 = load i8, i8* %40
%42 = sext i8 %41 to i32
%43 = icmp eq i32 %42, 32
br i1 %43, label %51, label %44
44: ; preds = %37
%45 = load i32, i32* %4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [256 x i8], [256 x i8]* %7, i64 0, i64 %46
%48 = load i8, i8* %47
%49 = sext i8 %48 to i32
%50 = icmp eq i32 %49, 9
br label %51
51: ; preds = %44, %37
%52 = phi i1 [ true, %37 ], [ %50, %44 ]
br i1 %52, label %53, label %56
53: ; preds = %51
%54 = load i32, i32* %4
%55 = add nsw i32 %54, 1
store i32 %55, i32* %4
br label %37
56: ; preds = %51
%57 = load i32, i32* %4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds [256 x i8], [256 x i8]* %7, i64 0, i64 %58
%60 = load i8, i8* %59
%61 = sext i8 %60 to i32
%62 = icmp eq i32 %61, 0
br i1 %62, label %63, label %64
63: ; preds = %56
br label %103
64: ; preds = %56
%65 = load i32, i32* %4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [256 x i8], [256 x i8]* %7, i64 0, i64 %66
%68 = load i32, i32* %5
%69 = add nsw i32 %68, 1
store i32 %69, i32* %5
%70 = sext i32 %68 to i64
%71 = getelementptr inbounds [256 x i8*], [256 x i8*]* %9, i64 0, i64 %70
store i8* %67, i8** %71
br label %72
72: ; preds = %95, %64
%73 = load i32, i32* %4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds [256 x i8], [256 x i8]* %7, i64 0, i64 %74
%76 = load i8, i8* %75
%77 = sext i8 %76 to i32
%78 = icmp ne i32 %77, 32
br i1 %78, label %79, label %93
79: ; preds = %72
%80 = load i32, i32* %4
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds [256 x i8], [256 x i8]* %7, i64 0, i64 %81
%83 = load i8, i8* %82
%84 = sext i8 %83 to i32
%85 = icmp ne i32 %84, 9
br i1 %85, label %86, label %93
86: ; preds = %79
%87 = load i32, i32* %4
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds [256 x i8], [256 x i8]* %7, i64 0, i64 %88
%90 = load i8, i8* %89
%91 = sext i8 %90 to i32
%92 = icmp ne i32 %91, 0
br label %93
93: ; preds = %86, %79, %72
%94 = phi i1 [ false, %79 ], [ false, %72 ], [ %92, %86 ]
br i1 %94, label %95, label %98
95: ; preds = %93
%96 = load i32, i32* %4
%97 = add nsw i32 %96, 1
store i32 %97, i32* %4
br label %72
98: ; preds = %93
%99 = load i32, i32* %4
%100 = add nsw i32 %99, 1
store i32 %100, i32* %4
%101 = sext i32 %99 to i64
%102 = getelementptr inbounds [256 x i8], [256 x i8]* %7, i64 0, i64 %101
store i8 0, i8* %102
br label %32
103: ; preds = %63, %32
%104 = load i32, i32* %5
%105 = icmp eq i32 %104, 0
br i1 %105, label %106, label %107
106: ; preds = %103
br label %10
107: ; preds = %103
%108 = load i32, i32* %5
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds [256 x i8*], [256 x i8*]* %9, i64 0, i64 %109
store i8* null, i8** %110
%111 = call i32 (...) @fork()
store i32 %111, i32* %2
%112 = load i32, i32* %2
switch i32 %112, label %129 [
i32 -1, label %113
i32 0, label %116
]
113: ; preds = %107
%114 = load i32, i32* @stderr
%115 = call i32 (i32, i8*, ...) @fprintf(i32 %114, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0))
br label %131
116: ; preds = %107
%117 = load i8*, i8** %8
%118 = getelementptr inbounds [256 x i8*], [256 x i8*]* %9, i64 0, i64 0
%119 = call i32 @execvp(i8* %117, i8** %118)
store i32 %119, i32* %6
%120 = load i32, i32* %6
%121 = icmp ne i32 %120, 0
br i1 %121, label %122, label %126
122: ; preds = %116
%123 = load i32, i32* @stderr
%124 = load i8*, i8** %8
%125 = call i32 (i32, i8*, ...) @fprintf(i32 %123, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0), i8* %124)
br label %126
126: ; preds = %122, %116
%127 = load i32, i32* %6
%128 = call i32 @exit(i32 %127)
unreachable
129: ; preds = %107
%130 = call i32 @wait(i32* null)
br label %131
131: ; preds = %129, %113
br label %10
}

LLVM IR (-O2):
@.str = [18 x i8] c"petit_shell1...> \00"
@stdout = global i32 0
@stdin = global i32 0
@stderr = global i32 0
@.str.1 = [14 x i8] c"Fin du Shell\0A\00"
@EXIT_SUCCESS = global i32 0
@.str.2 = [24 x i8] c"Error creathing thread!\00"
@.str.3 = [29 x i8] c"Error executing command: %s\0A\00"
define i32 @main() {
%1 = alloca [256 x i8]
%2 = alloca [256 x i8*]
%3 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 0
%4 = bitcast [256 x i8*]* %2 to i8*
%5 = load i32, i32* @stdout
%6 = call i32 @fputs(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 %5)
%7 = load i32, i32* @stdin
%8 = call i8* @fgets(i8* %3, i32 256, i32 %7)
%9 = icmp eq i8* %8, null
br i1 %9, label %10, label %15
10: ; preds = %72, %0
%11 = load i32, i32* @stderr
%12 = call i32 (i32, i8*, ...) @fprintf(i32 %11, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
%13 = load i32, i32* @EXIT_SUCCESS
%14 = call i32 @exit(i32 %13)
unreachable
15: ; preds = %0, %72
%16 = phi i8* [ %76, %72 ], [ %8, %0 ]
%17 = call i32 @strlen(i8* %16)
%18 = add nsw i32 %17, -1
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 %19
store i8 0, i8* %20
%21 = call i32 @strlen(i8* %3)
%22 = icmp sgt i32 %21, 0
br i1 %22, label %23, label %72
23: ; preds = %15, %45
%24 = phi i64 [ %35, %45 ], [ 0, %15 ]
%25 = phi i32 [ %48, %45 ], [ 0, %15 ]
%26 = sext i32 %25 to i64
br label %27
27: ; preds = %23, %31
%28 = phi i64 [ %26, %23 ], [ %32, %31 ]
%29 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 %28
%30 = load i8, i8* %29
switch i8 %30, label %33 [
i8 32, label %31
i8 9, label %31
i8 0, label %50
]
31: ; preds = %27, %27
%32 = add i64 %28, 1
br label %27
33: ; preds = %27
%34 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 %28
%35 = add nuw i64 %24, 1
%36 = getelementptr inbounds [256 x i8*], [256 x i8*]* %2, i64 0, i64 %24
store i8* %34, i8** %36
%37 = shl i64 %28, 32
%38 = ashr exact i64 %37, 32
br label %39
39: ; preds = %43, %33
%40 = phi i64 [ %44, %43 ], [ %38, %33 ]
%41 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 %40
%42 = load i8, i8* %41
switch i8 %42, label %43 [
i8 32, label %45
i8 9, label %45
i8 0, label %45
]
43: ; preds = %39
%44 = add i64 %40, 1
br label %39
45: ; preds = %39, %39, %39
%46 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 %40
%47 = trunc i64 %40 to i32
%48 = add nsw i32 %47, 1
store i8 0, i8* %46
%49 = icmp slt i32 %48, %21
br i1 %49, label %23, label %50
50: ; preds = %45, %27
%51 = phi i64 [ %24, %27 ], [ %35, %45 ]
%52 = trunc i64 %51 to i32
%53 = icmp eq i32 %52, 0
br i1 %53, label %72, label %54
54: ; preds = %50
%55 = and i64 %51, 4294967295
%56 = getelementptr inbounds [256 x i8*], [256 x i8*]* %2, i64 0, i64 %55
store i8* null, i8** %56
%57 = call i32 (...) @fork()
switch i32 %57, label %70 [
i32 -1, label %58
i32 0, label %61
]
58: ; preds = %54
%59 = load i32, i32* @stderr
%60 = call i32 (i32, i8*, ...) @fprintf(i32 %59, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0))
br label %72
61: ; preds = %54
%62 = getelementptr inbounds [256 x i8*], [256 x i8*]* %2, i64 0, i64 0
%63 = call i32 @execvp(i8* %16, i8** %62)
%64 = icmp eq i32 %63, 0
br i1 %64, label %68, label %65
65: ; preds = %61
%66 = load i32, i32* @stderr
%67 = call i32 (i32, i8*, ...) @fprintf(i32 %66, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0), i8* %16)
br label %68
68: ; preds = %65, %61
%69 = call i32 @exit(i32 %63)
unreachable
70: ; preds = %54
%71 = call i32 @wait(i32* null)
br label %72
72: ; preds = %15, %58, %70, %50
%73 = load i32, i32* @stdout
%74 = call i32 @fputs(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 %73)
%75 = load i32, i32* @stdin
%76 = call i8* @fgets(i8* %3, i32 256, i32 %75)
%77 = icmp eq i8* %76, null
br i1 %77, label %10, label %15
}