#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int EOF;
char *argv_cmd(char **);
int /*<<< orphan*/ exit(int);
int fgetc(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ *popen(char *, char *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ putchar(int);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ *stdin;
int /*<<< orphan*/ strcmp(char *, char *);
int main(int argc, char **argv) {
  int ch = 0;
  const char *project = argv[1];
  FILE *in = stdin;
  int i;
  for (i = 0; argv[i]; ++i)
    fprintf(stderr, "%s ", argv[i]);
  fprintf(stderr, "\n");
  if (!project) {
    fprintf(stderr, "sigfixer: must give project on command line\n%c", ch);
    exit(1);
  }
  if (argv[2]) {
    if (!strcmp(argv[2], "xsltproc")) {
      char *xsltcommand = argv_cmd(argv);
      fprintf(stderr, "sigfixer xsltcommand = %s\n", xsltcommand);
      in = popen(xsltcommand, "r");
    } else {
      in = fopen(argv[2], "r");
    }
  }
  while (EOF != (ch = fgetc(in))) {
    if ('p' == ch)
      if ('o' == (ch = fgetc(in)))
        if ('p' == (ch = fgetc(in)))
          if ('1' == (ch = fgetc(in)))
            if ('s' == (ch = fgetc(in)))
              if ('i' == (ch = fgetc(in)))
                if ('g' == (ch = fgetc(in)))
                  if ('(' == (ch = fgetc(in)))
                    printf("pop1sig('%s','',", project);
                  else
                    printf("pop1sig%c", ch);
                else
                  printf("pop1si%c", ch);
              else
                printf("pop1s%c", ch);
            else
              printf("pop1%c", ch);
          else
            printf("pop%c", ch);
        else
          printf("po%c", ch);
      else
        printf("p%c", ch);
    else
      putchar(ch);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x20(%rbp)
mov    0x2e28(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x28(%rbp)
movl   $0x0,-0x2c(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
cmpq   $0x0,(%rax,%rcx,8)
je     1212 <main+0x82>
mov    0x2de8(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
lea    0xe03(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    11ce <main+0x3e>
mov    0x2db7(%rip),%rax
mov    (%rax),%edi
lea    0xe33(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
cmpq   $0x0,-0x20(%rbp)
jne    1258 <main+0xc8>
mov    0x2d95(%rip),%rax
mov    (%rax),%edi
mov    -0x14(%rbp),%edx
lea    0xdbd(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    $0x1,%edi
call   10b0 <exit@plt>
mov    -0x10(%rbp),%rax
cmpq   $0x0,0x10(%rax)
je     12e2 <main+0x152>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xdbd(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    12c5 <main+0x135>
mov    -0x10(%rbp),%rdi
call   1030 <argv_cmd@plt>
mov    %rax,-0x38(%rbp)
mov    0x2d38(%rip),%rax
mov    (%rax),%edi
mov    -0x38(%rbp),%rdx
lea    0xd97(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    -0x38(%rbp),%rdi
lea    0xda0(%rip),%rsi
call   1090 <popen@plt>
mov    %rax,-0x28(%rbp)
jmp    12dd <main+0x14d>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xd83(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x28(%rbp)
jmp    12e2 <main+0x152>
jmp    12e7 <main+0x157>
mov    0x2cf2(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x28(%rbp),%rdi
call   1060 <fgetc@plt>
mov    %eax,%ecx
mov    -0x3c(%rbp),%eax
mov    %ecx,-0x14(%rbp)
cmp    %ecx,%eax
je     1495 <main+0x305>
mov    $0x70,%eax
cmp    -0x14(%rbp),%eax
jne    1488 <main+0x2f8>
mov    -0x28(%rbp),%rdi
call   1060 <fgetc@plt>
mov    %eax,%ecx
mov    %ecx,-0x14(%rbp)
mov    $0x6f,%eax
cmp    %ecx,%eax
jne    1472 <main+0x2e2>
mov    -0x28(%rbp),%rdi
call   1060 <fgetc@plt>
mov    %eax,%ecx
mov    %ecx,-0x14(%rbp)
mov    $0x70,%eax
cmp    %ecx,%eax
jne    145c <main+0x2cc>
mov    -0x28(%rbp),%rdi
call   1060 <fgetc@plt>
mov    %eax,%ecx
mov    %ecx,-0x14(%rbp)
mov    $0x31,%eax
cmp    %ecx,%eax
jne    1446 <main+0x2b6>
mov    -0x28(%rbp),%rdi
call   1060 <fgetc@plt>
mov    %eax,%ecx
mov    %ecx,-0x14(%rbp)
mov    $0x73,%eax
cmp    %ecx,%eax
jne    1430 <main+0x2a0>
mov    -0x28(%rbp),%rdi
call   1060 <fgetc@plt>
mov    %eax,%ecx
mov    %ecx,-0x14(%rbp)
mov    $0x69,%eax
cmp    %ecx,%eax
jne    141a <main+0x28a>
mov    -0x28(%rbp),%rdi
call   1060 <fgetc@plt>
mov    %eax,%ecx
mov    %ecx,-0x14(%rbp)
mov    $0x67,%eax
cmp    %ecx,%eax
jne    1404 <main+0x274>
mov    -0x28(%rbp),%rdi
call   1060 <fgetc@plt>
mov    %eax,%ecx
mov    %ecx,-0x14(%rbp)
mov    $0x28,%eax
cmp    %ecx,%eax
jne    13ee <main+0x25e>
mov    -0x20(%rbp),%rsi
lea    0xc77(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    13ff <main+0x26f>
mov    -0x14(%rbp),%esi
lea    0xc72(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1415 <main+0x285>
mov    -0x14(%rbp),%esi
lea    0xc66(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    142b <main+0x29b>
mov    -0x14(%rbp),%esi
lea    0xc59(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1441 <main+0x2b1>
mov    -0x14(%rbp),%esi
lea    0xc4b(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1457 <main+0x2c7>
mov    -0x14(%rbp),%esi
lea    0xc3c(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    146d <main+0x2dd>
mov    -0x14(%rbp),%esi
lea    0xc2c(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1483 <main+0x2f3>
mov    -0x14(%rbp),%esi
lea    0xc12(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1490 <main+0x300>
mov    -0x14(%rbp),%edi
call   1040 <putchar@plt>
jmp    12e7 <main+0x157>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rsi,%r15
mov    (%rsi),%rdx
mov    0x8(%rsi),%r14
mov    0x2e3c(%rip),%rax
mov    (%rax),%r13
test   %rdx,%rdx
je     11ea <main+0x5a>
lea    0x8(%r15),%rbx
mov    0x2e11(%rip),%r12
lea    0xe3a(%rip),%rbp
cs nopw 0x0(%rax,%rax,1)
mov    (%r12),%edi
mov    %rbp,%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    (%rbx),%rdx
add    $0x8,%rbx
test   %rdx,%rdx
jne    11d0 <main+0x40>
mov    0x2ddf(%rip),%r12
mov    (%r12),%edi
lea    0xe59(%rip),%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
test   %r14,%r14
je     138e <main+0x1fe>
mov    0x10(%r15),%rbp
test   %rbp,%rbp
je     126b <main+0xdb>
lea    0xe17(%rip),%rsi
mov    %rbp,%rdi
call   1070 <strcmp@plt>
test   %eax,%eax
je     1239 <main+0xa9>
lea    0xe28(%rip),%rsi
mov    %rbp,%rdi
call   10a0 <fopen@plt>
jmp    1268 <main+0xd8>
mov    %r15,%rdi
call   1030 <argv_cmd@plt>
mov    %rax,%rbx
mov    (%r12),%edi
lea    0xded(%rip),%rsi
mov    %rax,%rdx
xor    %eax,%eax
call   1080 <fprintf@plt>
lea    0xdf7(%rip),%rsi
mov    %rbx,%rdi
call   1090 <popen@plt>
mov    %rax,%r13
mov    0x2d6e(%rip),%r15
mov    (%r15),%ebx
mov    %r13,%rdi
call   1060 <fgetc@plt>
cmp    %eax,%ebx
jne    1292 <main+0x102>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xdf9(%rip),%rbx
lea    0xdee(%rip),%rbp
jmp    12c7 <main+0x137>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %eax,%edi
call   1040 <putchar@plt>
mov    (%r15),%r12d
mov    %r13,%rdi
call   1060 <fgetc@plt>
cmp    %eax,%r12d
je     1281 <main+0xf1>
cmp    $0x70,%eax
jne    12b0 <main+0x120>
mov    %r13,%rdi
call   1060 <fgetc@plt>
cmp    $0x6f,%eax
jne    1340 <main+0x1b0>
mov    %r13,%rdi
call   1060 <fgetc@plt>
cmp    $0x70,%eax
jne    1345 <main+0x1b5>
mov    %r13,%rdi
call   1060 <fgetc@plt>
cmp    $0x31,%eax
jne    134a <main+0x1ba>
mov    %r13,%rdi
call   1060 <fgetc@plt>
cmp    $0x73,%eax
jne    1353 <main+0x1c3>
mov    %r13,%rdi
call   1060 <fgetc@plt>
cmp    $0x69,%eax
jne    135c <main+0x1cc>
mov    %r13,%rdi
call   1060 <fgetc@plt>
cmp    $0x67,%eax
jne    1365 <main+0x1d5>
mov    %r13,%rdi
call   1060 <fgetc@plt>
cmp    $0x28,%eax
jne    136e <main+0x1de>
lea    0xd2b(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    12b7 <main+0x127>
nopl   (%rax)
mov    %rbp,%rdi
jmp    1380 <main+0x1f0>
mov    %rbx,%rdi
jmp    1380 <main+0x1f0>
lea    0xd3b(%rip),%rdi
jmp    1380 <main+0x1f0>
lea    0xd2b(%rip),%rdi
jmp    1380 <main+0x1f0>
lea    0xd1a(%rip),%rdi
jmp    1380 <main+0x1f0>
lea    0xd08(%rip),%rdi
jmp    1380 <main+0x1f0>
lea    0xcf5(%rip),%rdi
cs nopw 0x0(%rax,%rax,1)
nop
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    12b7 <main+0x127>
mov    (%r12),%edi
lea    0xc6b(%rip),%rsi
xor    %edx,%edx
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    $0x1,%edi
call   10b0 <exit@plt>

LLVM IR (-O0):
@stdin = global i32* null
@stderr = global i32 0
@.str = [4 x i8] c"%s \00"
@.str.1 = [2 x i8] c"\0A\00"
@.str.2 = [47 x i8] c"sigfixer: must give project on command line\0A%c\00"
@.str.3 = [9 x i8] c"xsltproc\00"
@.str.4 = [27 x i8] c"sigfixer xsltcommand = %s\0A\00"
@.str.5 = [2 x i8] c"r\00"
@EOF = global i32 0
@.str.6 = [17 x i8] c"pop1sig('%s','',\00"
@.str.7 = [10 x i8] c"pop1sig%c\00"
@.str.8 = [9 x i8] c"pop1si%c\00"
@.str.9 = [8 x i8] c"pop1s%c\00"
@.str.10 = [7 x i8] c"pop1%c\00"
@.str.11 = [6 x i8] c"pop%c\00"
@.str.12 = [5 x i8] c"po%c\00"
@.str.13 = [4 x i8] c"p%c\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i8*
%8 = alloca i32*
%9 = alloca i32
%10 = alloca i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
%11 = load i8**, i8*** %5
%12 = getelementptr inbounds i8*, i8** %11, i64 1
%13 = load i8*, i8** %12
store i8* %13, i8** %7
%14 = load i32*, i32** @stdin
store i32* %14, i32** %8
store i32 0, i32* %9
br label %15
15: ; preds = %30, %2
%16 = load i8**, i8*** %5
%17 = load i32, i32* %9
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i8*, i8** %16, i64 %18
%20 = load i8*, i8** %19
%21 = icmp ne i8* %20, null
br i1 %21, label %22, label %33
22: ; preds = %15
%23 = load i32, i32* @stderr
%24 = load i8**, i8*** %5
%25 = load i32, i32* %9
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i8*, i8** %24, i64 %26
%28 = load i8*, i8** %27
%29 = call i32 (i32, i8*, ...) @fprintf(i32 %23, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %28)
br label %30
30: ; preds = %22
%31 = load i32, i32* %9
%32 = add nsw i32 %31, 1
store i32 %32, i32* %9
br label %15
33: ; preds = %15
%34 = load i32, i32* @stderr
%35 = call i32 (i32, i8*, ...) @fprintf(i32 %34, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%36 = load i8*, i8** %7
%37 = icmp ne i8* %36, null
br i1 %37, label %43, label %38
38: ; preds = %33
%39 = load i32, i32* @stderr
%40 = load i32, i32* %6
%41 = call i32 (i32, i8*, ...) @fprintf(i32 %39, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.2, i64 0, i64 0), i32 %40)
%42 = call i32 @exit(i32 1)
unreachable
43: ; preds = %33
%44 = load i8**, i8*** %5
%45 = getelementptr inbounds i8*, i8** %44, i64 2
%46 = load i8*, i8** %45
%47 = icmp ne i8* %46, null
br i1 %47, label %48, label %68
48: ; preds = %43
%49 = load i8**, i8*** %5
%50 = getelementptr inbounds i8*, i8** %49, i64 2
%51 = load i8*, i8** %50
%52 = call i32 @strcmp(i8* %51, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
%53 = icmp ne i32 %52, 0
br i1 %53, label %62, label %54
54: ; preds = %48
%55 = load i8**, i8*** %5
%56 = call i8* @argv_cmd(i8** %55)
store i8* %56, i8** %10
%57 = load i32, i32* @stderr
%58 = load i8*, i8** %10
%59 = call i32 (i32, i8*, ...) @fprintf(i32 %57, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0), i8* %58)
%60 = load i8*, i8** %10
%61 = call i32* @popen(i8* %60, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
store i32* %61, i32** %8
br label %67
62: ; preds = %48
%63 = load i8**, i8*** %5
%64 = getelementptr inbounds i8*, i8** %63, i64 2
%65 = load i8*, i8** %64
%66 = call i32* @fopen(i8* %65, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
store i32* %66, i32** %8
br label %67
67: ; preds = %62, %54
br label %68
68: ; preds = %67, %43
br label %69
69: ; preds = %139, %68
%70 = load i32, i32* @EOF
%71 = load i32*, i32** %8
%72 = call i32 @fgetc(i32* %71)
store i32 %72, i32* %6
%73 = icmp ne i32 %70, %72
br i1 %73, label %74, label %140
74: ; preds = %69
%75 = load i32, i32* %6
%76 = icmp eq i32 112, %75
br i1 %76, label %77, label %136
77: ; preds = %74
%78 = load i32*, i32** %8
%79 = call i32 @fgetc(i32* %78)
store i32 %79, i32* %6
%80 = icmp eq i32 111, %79
br i1 %80, label %81, label %132
81: ; preds = %77
%82 = load i32*, i32** %8
%83 = call i32 @fgetc(i32* %82)
store i32 %83, i32* %6
%84 = icmp eq i32 112, %83
br i1 %84, label %85, label %128
85: ; preds = %81
%86 = load i32*, i32** %8
%87 = call i32 @fgetc(i32* %86)
store i32 %87, i32* %6
%88 = icmp eq i32 49, %87
br i1 %88, label %89, label %124
89: ; preds = %85
%90 = load i32*, i32** %8
%91 = call i32 @fgetc(i32* %90)
store i32 %91, i32* %6
%92 = icmp eq i32 115, %91
br i1 %92, label %93, label %120
93: ; preds = %89
%94 = load i32*, i32** %8
%95 = call i32 @fgetc(i32* %94)
store i32 %95, i32* %6
%96 = icmp eq i32 105, %95
br i1 %96, label %97, label %116
97: ; preds = %93
%98 = load i32*, i32** %8
%99 = call i32 @fgetc(i32* %98)
store i32 %99, i32* %6
%100 = icmp eq i32 103, %99
br i1 %100, label %101, label %112
101: ; preds = %97
%102 = load i32*, i32** %8
%103 = call i32 @fgetc(i32* %102)
store i32 %103, i32* %6
%104 = icmp eq i32 40, %103
br i1 %104, label %105, label %108
105: ; preds = %101
%106 = load i8*, i8** %7
%107 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i8* %106)
br label %111
108: ; preds = %101
%109 = load i32, i32* %6
%110 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), i32 %109)
br label %111
111: ; preds = %108, %105
br label %115
112: ; preds = %97
%113 = load i32, i32* %6
%114 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i32 %113)
br label %115
115: ; preds = %112, %111
br label %119
116: ; preds = %93
%117 = load i32, i32* %6
%118 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0), i32 %117)
br label %119
119: ; preds = %116, %115
br label %123
120: ; preds = %89
%121 = load i32, i32* %6
%122 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0), i32 %121)
br label %123
123: ; preds = %120, %119
br label %127
124: ; preds = %85
%125 = load i32, i32* %6
%126 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0), i32 %125)
br label %127
127: ; preds = %124, %123
br label %131
128: ; preds = %81
%129 = load i32, i32* %6
%130 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0), i32 %129)
br label %131
131: ; preds = %128, %127
br label %135
132: ; preds = %77
%133 = load i32, i32* %6
%134 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0), i32 %133)
br label %135
135: ; preds = %132, %131
br label %139
136: ; preds = %74
%137 = load i32, i32* %6
%138 = call i32 @putchar(i32 %137)
br label %139
139: ; preds = %136, %135
br label %69
140: ; preds = %69
ret i32 0
}

LLVM IR (-O2):
@stdin = global i32* null
@stderr = global i32 0
@.str = [4 x i8] c"%s \00"
@.str.1 = [2 x i8] c"\0A\00"
@.str.2 = [47 x i8] c"sigfixer: must give project on command line\0A%c\00"
@.str.3 = [9 x i8] c"xsltproc\00"
@.str.4 = [27 x i8] c"sigfixer xsltcommand = %s\0A\00"
@.str.5 = [2 x i8] c"r\00"
@EOF = global i32 0
@.str.6 = [17 x i8] c"pop1sig('%s','',\00"
@.str.7 = [10 x i8] c"pop1sig%c\00"
@.str.8 = [9 x i8] c"pop1si%c\00"
@.str.9 = [8 x i8] c"pop1s%c\00"
@.str.10 = [7 x i8] c"pop1%c\00"
@.str.11 = [6 x i8] c"pop%c\00"
@.str.12 = [5 x i8] c"po%c\00"
@.str.13 = [4 x i8] c"p%c\00"
define i32 @main(i32 %0, i8** %1) {
%3 = getelementptr inbounds i8*, i8** %1, i64 1
%4 = load i8*, i8** %3
%5 = load i32*, i32** @stdin
%6 = load i8*, i8** %1
%7 = icmp eq i8* %6, null
br i1 %7, label %17, label %8
8: ; preds = %2, %8
%9 = phi i64 [ %13, %8 ], [ 0, %2 ]
%10 = phi i8* [ %15, %8 ], [ %6, %2 ]
%11 = load i32, i32* @stderr
%12 = tail call i32 (i32, i8*, ...) @fprintf(i32 %11, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %10)
%13 = add nuw i64 %9, 1
%14 = getelementptr inbounds i8*, i8** %1, i64 %13
%15 = load i8*, i8** %14
%16 = icmp eq i8* %15, null
br i1 %16, label %17, label %8
17: ; preds = %8, %2
%18 = load i32, i32* @stderr
%19 = tail call i32 (i32, i8*, ...) @fprintf(i32 %18, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%20 = icmp eq i8* %4, null
br i1 %20, label %21, label %25
21: ; preds = %17
%22 = load i32, i32* @stderr
%23 = tail call i32 (i32, i8*, ...) @fprintf(i32 %22, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.2, i64 0, i64 0), i32 0)
%24 = tail call i32 @exit(i32 1)
unreachable
25: ; preds = %17
%26 = getelementptr inbounds i8*, i8** %1, i64 2
%27 = load i8*, i8** %26
%28 = icmp eq i8* %27, null
br i1 %28, label %39, label %29
29: ; preds = %25
%30 = tail call i32 @strcmp(i8* %27, i8* dereferenceable(9) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
%31 = icmp eq i32 %30, 0
br i1 %31, label %32, label %37
32: ; preds = %29
%33 = tail call i8* @argv_cmd(i8** %1)
%34 = load i32, i32* @stderr
%35 = tail call i32 (i32, i8*, ...) @fprintf(i32 %34, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0), i8* %33)
%36 = tail call i32* @popen(i8* %33, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
br label %39
37: ; preds = %29
%38 = tail call i32* @fopen(i8* %27, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
br label %39
39: ; preds = %32, %37, %25
%40 = phi i32* [ %38, %37 ], [ %36, %32 ], [ %5, %25 ]
%41 = load i32, i32* @EOF
%42 = tail call i32 @fgetc(i32* %40)
%43 = icmp eq i32 %41, %42
br i1 %43, label %90, label %44
44: ; preds = %39, %86
%45 = phi i32 [ %88, %86 ], [ %42, %39 ]
%46 = icmp eq i32 %45, 112
br i1 %46, label %47, label %84
47: ; preds = %44
%48 = tail call i32 @fgetc(i32* %40)
%49 = icmp eq i32 %48, 111
br i1 %49, label %50, label %82
50: ; preds = %47
%51 = tail call i32 @fgetc(i32* %40)
%52 = icmp eq i32 %51, 112
br i1 %52, label %53, label %80
53: ; preds = %50
%54 = tail call i32 @fgetc(i32* %40)
%55 = icmp eq i32 %54, 49
br i1 %55, label %56, label %78
56: ; preds = %53
%57 = tail call i32 @fgetc(i32* %40)
%58 = icmp eq i32 %57, 115
br i1 %58, label %59, label %76
59: ; preds = %56
%60 = tail call i32 @fgetc(i32* %40)
%61 = icmp eq i32 %60, 105
br i1 %61, label %62, label %74
62: ; preds = %59
%63 = tail call i32 @fgetc(i32* %40)
%64 = icmp eq i32 %63, 103
br i1 %64, label %65, label %72
65: ; preds = %62
%66 = tail call i32 @fgetc(i32* %40)
%67 = icmp eq i32 %66, 40
br i1 %67, label %68, label %70
68: ; preds = %65
%69 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i8* %4)
br label %86
70: ; preds = %65
%71 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), i32 %66)
br label %86
72: ; preds = %62
%73 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i32 %63)
br label %86
74: ; preds = %59
%75 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0), i32 %60)
br label %86
76: ; preds = %56
%77 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0), i32 %57)
br label %86
78: ; preds = %53
%79 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0), i32 %54)
br label %86
80: ; preds = %50
%81 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0), i32 %51)
br label %86
82: ; preds = %47
%83 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0), i32 %48)
br label %86
84: ; preds = %44
%85 = tail call i32 @putchar(i32 %45)
br label %86
86: ; preds = %82, %78, %74, %68, %70, %72, %76, %80, %84
%87 = load i32, i32* @EOF
%88 = tail call i32 @fgetc(i32* %40)
%89 = icmp eq i32 %87, %88
br i1 %89, label %90, label %44
90: ; preds = %86, %39
ret i32 0
}