#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_FAILURE;
int /*<<< orphan*/ EXIT_SUCCESS;
int execvp(char *, char **);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
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;
  int result = -1;
  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] = NULL;
    pid = fork();
    switch (pid) {
    case -1:
      fprintf(stderr, "Erreur dans le fork\n");
      break;
    case 0:
      result = execvp(tab, arg_tab);
      if (result == -1) {
        fprintf(stderr, "Erreur dans le exec\n");
        exit(EXIT_FAILURE);
      }
      break;
    default:
      wait(NULL);
      break;
    }
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x940,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0xffffffff,-0x18(%rbp)
mov    0x2e28(%rip),%rax
mov    (%rax),%esi
lea    0xe57(%rip),%rdi
call   1040 <fputs@plt>
lea    -0x120(%rbp),%rdi
mov    0x2e2c(%rip),%rax
mov    (%rax),%edx
mov    $0x100,%esi
call   1050 <fgets@plt>
mov    %rax,-0x128(%rbp)
cmpq   $0x0,-0x128(%rbp)
jne    1200 <main+0x80>
mov    0x2df4(%rip),%rax
mov    (%rax),%edi
lea    0xe25(%rip),%rsi
call   1060 <fprintf@plt>
mov    0x2dc7(%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    136d <main+0x1ed>
jmp    124d <main+0xcd>
movslq -0x10(%rbp),%rax
movsbl -0x120(%rbp,%rax,1),%ecx
ff
mov    $0x1,%al
cmp    $0x20,%ecx
mov    %al,-0x931(%rbp)
je     1282 <main+0x102>
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    1295 <main+0x115>
jmp    12a3 <main+0x123>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    124d <main+0xcd>
movslq -0x10(%rbp),%rax
movsbl -0x120(%rbp,%rax,1),%eax
ff
cmp    $0x0,%eax
jne    12bd <main+0x13d>
jmp    136d <main+0x1ed>
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     1332 <main+0x1b2>
movslq -0x10(%rbp),%rax
movsbl -0x120(%rbp,%rax,1),%ecx
ff
xor    %eax,%eax
cmp    $0x9,%ecx
mov    %al,-0x932(%rbp)
je     1332 <main+0x1b2>
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    1345 <main+0x1c5>
jmp    1353 <main+0x1d3>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    12e0 <main+0x160>
mov    -0x10(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x10(%rbp)
cltq
movb   $0x0,-0x120(%rbp,%rax,1)
jmp    123c <main+0xbc>
cmpl   $0x0,-0x14(%rbp)
jne    137c <main+0x1fc>
jmp    1199 <main+0x19>
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     13c0 <main+0x240>
jmp    13ad <main+0x22d>
mov    -0x938(%rbp),%eax
test   %eax,%eax
je     13da <main+0x25a>
jmp    1422 <main+0x2a2>
mov    0x2c11(%rip),%rax
mov    (%rax),%edi
lea    0xc50(%rip),%rsi
call   1060 <fprintf@plt>
jmp    142b <main+0x2ab>
lea    -0x120(%rbp),%rdi
lea    -0x930(%rbp),%rsi
call   1070 <execvp@plt>
mov    %eax,-0x18(%rbp)
cmpl   $0xffffffff,-0x18(%rbp)
jne    141d <main+0x29d>
mov    0x2bd7(%rip),%rax
mov    (%rax),%edi
lea    0xc2b(%rip),%rsi
call   1060 <fprintf@plt>
mov    0x2bba(%rip),%rax
mov    (%rax),%edi
call   1080 <exit@plt>
jmp    142b <main+0x2ab>
xor    %eax,%eax
mov    %eax,%edi
call   1090 <wait@plt>
jmp    1199 <main+0x19>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x908,%rsp
mov    0x2e30(%rip),%rax
mov    (%rax),%esi
lea    0xe5f(%rip),%rdi
call   1040 <fputs@plt>
mov    0x2e3b(%rip),%rax
mov    (%rax),%edx
mov    %rsp,%r13
mov    %r13,%rdi
mov    $0x100,%esi
call   1050 <fgets@plt>
test   %rax,%rax
jne    11e7 <main+0x67>
mov    0x2e0d(%rip),%rax
mov    (%rax),%edi
lea    0xe3e(%rip),%rsi
call   1060 <fprintf@plt>
mov    0x2de0(%rip),%rax
mov    (%rax),%edi
call   1080 <exit@plt>
movabs $0x100000000,%r14
movabs $0x100000201,%r15
lea    0xdfe(%rip),%r12
jmp    123c <main+0xbc>
xor    %edi,%edi
call   1090 <wait@plt>
nopl   0x0(%rax,%rax,1)
mov    0x2db1(%rip),%rax
mov    (%rax),%esi
mov    %r12,%rdi
call   1040 <fputs@plt>
mov    0x2dc0(%rip),%rax
mov    (%rax),%edx
mov    %r13,%rdi
mov    $0x100,%esi
call   1050 <fgets@plt>
test   %rax,%rax
je     11c4 <main+0x44>
mov    %rax,%rdi
call   1030 <strlen@plt>
cltq
movb   $0x0,-0x1(%rax,%r13,1)
mov    %r13,%rdi
call   1030 <strlen@plt>
test   %eax,%eax
jle    1210 <main+0x90>
xor    %ecx,%ecx
xor    %ebp,%ebp
mov    %ebp,%esi
movslq %ebp,%rbp
lea    (%rsp,%rbp,1),%rdi
mov    %rbp,%rdx
shl    $0x20,%rdx
jmp    127a <main+0xfa>
xchg   %ax,%ax
add    $0x1,%rdi
add    %r14,%rdx
add    $0x1,%esi
add    $0x1,%ebp
movzbl (%rdi),%ebx
cmp    $0x9,%bl
je     1270 <main+0xf0>
cmp    $0x20,%bl
je     1270 <main+0xf0>
test   %bl,%bl
je     12d0 <main+0x150>
mov    %rdi,0x100(%rsp,%rcx,8)
add    $0x1,%rcx
movslq %esi,%rdx
add    %rsp,%rdx
jmp    12b7 <main+0x137>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
add    $0x1,%rdx
add    $0x1,%ebp
movzbl (%rdx),%esi
cmp    $0x20,%rsi
ja     12b0 <main+0x130>
bt     %rsi,%r15
jae    12b0 <main+0x130>
movb   $0x0,(%rdx)
cmp    %eax,%ebp
jl     125c <main+0xdc>
nopl   (%rax)
test   %ecx,%ecx
je     1210 <main+0x90>
mov    %ecx,%eax
movq   $0x0,0x100(%rsp,%rax,8)
xor    %eax,%eax
call   10a0 <fork@plt>
test   %eax,%eax
je     1314 <main+0x194>
cmp    $0xffffffff,%eax
jne    1204 <main+0x84>
mov    0x2cd7(%rip),%rax
mov    (%rax),%edi
lea    0xd16(%rip),%rsi
call   1060 <fprintf@plt>
jmp    1210 <main+0x90>
mov    %r13,%rdi
lea    0x100(%rsp),%rsi
call   1070 <execvp@plt>
cmp    $0xffffffff,%eax
jne    1210 <main+0x90>
mov    0x2ca4(%rip),%rax
mov    (%rax),%edi
lea    0xcf8(%rip),%rsi
call   1060 <fprintf@plt>
mov    0x2c87(%rip),%rax
mov    (%rax),%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 = [21 x i8] c"Erreur dans le fork\0A\00"
@.str.3 = [21 x i8] c"Erreur dans le exec\0A\00"
@EXIT_FAILURE = global i32 0
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
store i32 -1, i32* %6
br label %10
10: ; preds = %0, %106, %130
%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 @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 %128 [
i32 -1, label %113
i32 0, label %116
]
113: ; preds = %107
%114 = load i32, i32* @stderr
%115 = call i32 @fprintf(i32 %114, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0))
br label %130
116: ; preds = %107
%117 = getelementptr inbounds [256 x i8], [256 x i8]* %7, i64 0, i64 0
%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 eq i32 %120, -1
br i1 %121, label %122, label %127
122: ; preds = %116
%123 = load i32, i32* @stderr
%124 = call i32 @fprintf(i32 %123, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0))
%125 = load i32, i32* @EXIT_FAILURE
%126 = call i32 @exit(i32 %125)
unreachable
127: ; preds = %116
br label %130
128: ; preds = %107
%129 = call i32 @wait(i32* null)
br label %130
130: ; preds = %128, %127, %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 = [21 x i8] c"Erreur dans le fork\0A\00"
@.str.3 = [21 x i8] c"Erreur dans le exec\0A\00"
@EXIT_FAILURE = global i32 0
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 %12, label %10
10: ; preds = %0
%11 = getelementptr inbounds [256 x i8*], [256 x i8*]* %2, i64 0, i64 0
br label %17
12: ; preds = %73, %0
%13 = load i32, i32* @stderr
%14 = call i32 @fprintf(i32 %13, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
%15 = load i32, i32* @EXIT_SUCCESS
%16 = call i32 @exit(i32 %15)
unreachable
17: ; preds = %10, %73
%18 = phi i8* [ %8, %10 ], [ %77, %73 ]
%19 = call i32 @strlen(i8* %18)
%20 = add nsw i32 %19, -1
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 %21
store i8 0, i8* %22
%23 = call i32 @strlen(i8* %3)
%24 = icmp sgt i32 %23, 0
br i1 %24, label %25, label %73
25: ; preds = %17, %47
%26 = phi i64 [ %37, %47 ], [ 0, %17 ]
%27 = phi i32 [ %50, %47 ], [ 0, %17 ]
%28 = sext i32 %27 to i64
br label %29
29: ; preds = %25, %33
%30 = phi i64 [ %28, %25 ], [ %34, %33 ]
%31 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 %30
%32 = load i8, i8* %31
switch i8 %32, label %35 [
i8 32, label %33
i8 9, label %33
i8 0, label %52
]
33: ; preds = %29, %29
%34 = add i64 %30, 1
br label %29
35: ; preds = %29
%36 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 %30
%37 = add nuw i64 %26, 1
%38 = getelementptr inbounds [256 x i8*], [256 x i8*]* %2, i64 0, i64 %26
store i8* %36, i8** %38
%39 = shl i64 %30, 32
%40 = ashr exact i64 %39, 32
br label %41
41: ; preds = %45, %35
%42 = phi i64 [ %46, %45 ], [ %40, %35 ]
%43 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 %42
%44 = load i8, i8* %43
switch i8 %44, label %45 [
i8 32, label %47
i8 9, label %47
i8 0, label %47
]
45: ; preds = %41
%46 = add i64 %42, 1
br label %41
47: ; preds = %41, %41, %41
%48 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 %42
%49 = trunc i64 %42 to i32
%50 = add nsw i32 %49, 1
store i8 0, i8* %48
%51 = icmp slt i32 %50, %23
br i1 %51, label %25, label %52
52: ; preds = %47, %29
%53 = phi i64 [ %26, %29 ], [ %37, %47 ]
%54 = trunc i64 %53 to i32
%55 = icmp eq i32 %54, 0
br i1 %55, label %73, label %56
56: ; preds = %52
%57 = and i64 %53, 4294967295
%58 = getelementptr inbounds [256 x i8*], [256 x i8*]* %2, i64 0, i64 %57
store i8* null, i8** %58
%59 = call i32 (...) @fork()
switch i32 %59, label %71 [
i32 -1, label %60
i32 0, label %63
]
60: ; preds = %56
%61 = load i32, i32* @stderr
%62 = call i32 @fprintf(i32 %61, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0))
br label %73
63: ; preds = %56
%64 = call i32 @execvp(i8* %3, i8** %11)
%65 = icmp eq i32 %64, -1
br i1 %65, label %66, label %73
66: ; preds = %63
%67 = load i32, i32* @stderr
%68 = call i32 @fprintf(i32 %67, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0))
%69 = load i32, i32* @EXIT_FAILURE
%70 = call i32 @exit(i32 %69)
unreachable
71: ; preds = %56
%72 = call i32 @wait(i32* null)
br label %73
73: ; preds = %17, %60, %71, %63, %52
%74 = load i32, i32* @stdout
%75 = call i32 @fputs(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 %74)
%76 = load i32, i32* @stdin
%77 = call i8* @fgets(i8* %3, i32 256, i32 %76)
%78 = icmp eq i8* %77, null
br i1 %78, label %12, label %17
}