#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*/ form;

/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
scalar_t__ scanf(char *, int *);
int main() {
  int exp;
  int coe;
  const int form_len = 101;
  int form[form_len];
  for (int i = 0; i < sizeof(form) / sizeof(form[0]); i++) {
    form[i] = 0;
  }
  int flag = 0;
  while (scanf("%d", &exp)) {
    int store_rev = form_len - exp - 1;
    scanf("%d", &coe);
    form[store_rev] += coe;
    if (exp == 0) {
      flag++;
    }
    if (flag == 2) {
      break;
    }
  }
  int pre_form_value = 0;
  int mark = 0;
  for (int i = 0; i < form_len; i++) {
    int exp = form_len - 1 - i;
    if (exp == 0) {
      switch (form[i]) {
      case 0:
        if (pre_form_value != 0) {
          printf("+0");
        } else {
          printf("%d", 0);
        }
        break;
      default:
        if (form[i] > 0) {
          printf("+%d", form[i]);
        }
      }
    } else {
      switch (form[i]) {
      case 0:
        break;
      case 1:
        if (exp == 1) {
          printf("+x");
        } else {
          printf("+x%d", exp);
        }
        break;
      case -1:
        if (exp == 1) {
          printf("-x");
        } else {
          printf("-x%d", exp);
        }
        break;
      default:
        if (form[i] > 0 && mark > 0) {
          printf("+");
        }
        if (exp == 1) {
          printf("%dx", form[i]);
        } else {
          printf("%dx%d", form[i], exp);
        }
      }
      if (form[i] != 0) {
        pre_form_value = form[i];
        mark++;
      }
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1e0,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x65,-0x10(%rbp)
mov    %rsp,%rax
mov    %rax,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
movslq -0x1c(%rbp),%rax
cmp    $0x65,%rax
jae    1172 <main+0x52>
movslq -0x1c(%rbp),%rax
movl   $0x0,-0x1d0(%rbp,%rax,4)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1147 <main+0x27>
movl   $0x0,-0x20(%rbp)
lea    0xe84(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
cmp    $0x0,%rax
je     11ed <main+0xcd>
mov    $0x65,%eax
sub    -0x8(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x24(%rbp)
lea    0xe5c(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0xc(%rbp),%ecx
movslq -0x24(%rbp),%rax
add    -0x1d0(%rbp,%rax,4),%ecx
mov    %ecx,-0x1d0(%rbp,%rax,4)
cmpl   $0x0,-0x8(%rbp)
jne    11d9 <main+0xb9>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
cmpl   $0x2,-0x20(%rbp)
jne    11e8 <main+0xc8>
jmp    11ed <main+0xcd>
jmp    1179 <main+0x59>
movl   $0x0,-0x28(%rbp)
movl   $0x0,-0x2c(%rbp)
movl   $0x0,-0x30(%rbp)
cmpl   $0x65,-0x30(%rbp)
jge    1405 <main+0x2e5>
mov    $0x64,%eax
sub    -0x30(%rbp),%eax
mov    %eax,-0x34(%rbp)
cmpl   $0x0,-0x34(%rbp)
jne    12a0 <main+0x180>
movslq -0x30(%rbp),%rax
mov    -0x1d0(%rbp,%rax,4),%eax
test   %eax,%eax
jne    126b <main+0x14b>
jmp    1239 <main+0x119>
cmpl   $0x0,-0x28(%rbp)
je     1256 <main+0x136>
lea    0xdb6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1266 <main+0x146>
lea    0xda7(%rip),%rdi
xor    %esi,%esi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    129b <main+0x17b>
movslq -0x30(%rbp),%rax
cmpl   $0x0,-0x1d0(%rbp,%rax,4)
jle    1296 <main+0x176>
movslq -0x30(%rbp),%rax
mov    -0x1d0(%rbp,%rax,4),%esi
lea    0xd74(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    129b <main+0x17b>
jmp    13f2 <main+0x2d2>
movslq -0x30(%rbp),%rax
mov    -0x1d0(%rbp,%rax,4),%eax
mov    %eax,-0x1d4(%rbp)
sub    $0xffffffff,%eax
je     131e <main+0x1fe>
jmp    12bf <main+0x19f>
mov    -0x1d4(%rbp),%eax
test   %eax,%eax
je     12e6 <main+0x1c6>
jmp    12d2 <main+0x1b2>
mov    -0x1d4(%rbp),%eax
sub    $0x1,%eax
je     12eb <main+0x1cb>
jmp    1351 <main+0x231>
jmp    13c4 <main+0x2a4>
cmpl   $0x1,-0x34(%rbp)
jne    1308 <main+0x1e8>
lea    0xd0b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1319 <main+0x1f9>
mov    -0x34(%rbp),%esi
lea    0xcf8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    13c4 <main+0x2a4>
cmpl   $0x1,-0x34(%rbp)
jne    133b <main+0x21b>
lea    0xce0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    134c <main+0x22c>
mov    -0x34(%rbp),%esi
lea    0xccd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    13c4 <main+0x2a4>
movslq -0x30(%rbp),%rax
cmpl   $0x0,-0x1d0(%rbp,%rax,4)
jle    137b <main+0x25b>
cmpl   $0x0,-0x2c(%rbp)
jle    137b <main+0x25b>
lea    0xca3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x1,-0x34(%rbp)
jne    13a3 <main+0x283>
movslq -0x30(%rbp),%rax
mov    -0x1d0(%rbp,%rax,4),%esi
lea    0xc82(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    13bf <main+0x29f>
movslq -0x30(%rbp),%rax
mov    -0x1d0(%rbp,%rax,4),%esi
mov    -0x34(%rbp),%edx
lea    0xc65(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    13c4 <main+0x2a4>
movslq -0x30(%rbp),%rax
cmpl   $0x0,-0x1d0(%rbp,%rax,4)
je     13ed <main+0x2cd>
movslq -0x30(%rbp),%rax
mov    -0x1d0(%rbp,%rax,4),%eax
mov    %eax,-0x28(%rbp)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    13f2 <main+0x2d2>
jmp    13f7 <main+0x2d7>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1202 <main+0xe2>
movl   $0x0,-0x4(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
add    $0x1e0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x1a8,%rsp
mov    %rsp,0x8(%rsp)
lea    0x10(%rsp),%r14
xor    %ebp,%ebp
mov    $0x194,%edx
mov    %r14,%rdi
xor    %esi,%esi
call   1050 <memset@plt>
lea    0xe91(%rip),%r13
mov    %rsp,%r15
lea    0x4(%rsp),%r12
nopl   0x0(%rax,%rax,1)
mov    %r13,%rdi
mov    %r15,%rsi
call   1060 <scanf@plt>
test   %rax,%rax
je     11ba <main+0x7a>
mov    $0x64,%ebx
sub    (%rsp),%ebx
mov    %r13,%rdi
mov    %r12,%rsi
call   1060 <scanf@plt>
mov    0x4(%rsp),%eax
movslq %ebx,%rcx
add    %eax,0x10(%rsp,%rcx,4)
cmpl   $0x1,(%rsp)
adc    $0x0,%ebp
cmp    $0x2,%ebp
jne    1180 <main+0x40>
mov    $0x64,%ebx
lea    0xe55(%rip),%r12
xor    %ebp,%ebp
xor    %r15d,%r15d
jmp    11f8 <main+0xb8>
lea    0xe33(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
test   %r13d,%r13d
cmovne %r13d,%ebp
setne  %al
add    %eax,%r15d
add    $0x4,%r14
add    $0xffffffffffffffff,%rbx
je     127c <main+0x13c>
mov    (%r14),%r13d
cmp    $0xffffffff,%r13d
je     1220 <main+0xe0>
test   %r13d,%r13d
je     11db <main+0x9b>
cmp    $0x1,%r13d
jne    1230 <main+0xf0>
cmp    $0x1,%rbx
je     11cd <main+0x8d>
lea    0xdf1(%rip),%rdi
jmp    125a <main+0x11a>
nopl   0x0(%rax,%rax,1)
cmp    $0x1,%rbx
jne    1253 <main+0x113>
lea    0xde2(%rip),%rdi
jmp    11d4 <main+0x94>
nop
jl     1241 <main+0x101>
test   %r15d,%r15d
je     1241 <main+0x101>
mov    $0x2b,%edi
call   1030 <putchar@plt>
cmp    $0x1,%rbx
jne    1268 <main+0x128>
lea    0xdc9(%rip),%rdi
mov    %r13d,%esi
jmp    125c <main+0x11c>
lea    0xdb8(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    11db <main+0x9b>
mov    %r12,%rdi
mov    %r13d,%esi
mov    %ebx,%edx
xor    %eax,%eax
call   1040 <printf@plt>
jmp    11db <main+0x9b>
mov    0x1a0(%rsp),%esi
test   %esi,%esi
je     1292 <main+0x152>
jle    12b6 <main+0x176>
lea    0xd73(%rip),%rdi
jmp    12af <main+0x16f>
test   %ebp,%ebp
je     12a6 <main+0x166>
lea    0xd63(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    12b6 <main+0x176>
lea    0xd57(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rsp),%rsp
xor    %eax,%eax
add    $0x1a8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [3 x i8] c"+0\00"
@.str.2 = [4 x i8] c"+%d\00"
@.str.3 = [3 x i8] c"+x\00"
@.str.4 = [5 x i8] c"+x%d\00"
@.str.5 = [3 x i8] c"-x\00"
@.str.6 = [5 x i8] c"-x%d\00"
@.str.8 = [4 x i8] c"%dx\00"
@.str.9 = [6 x i8] c"%dx%d\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = bitcast i32* %1 to i8*
%4 = bitcast i32* %2 to i8*
%5 = tail call i8* @llvm.stacksave()
%6 = alloca [101 x i32]
%7 = bitcast [101 x i32]* %6 to i8*
br label %8
8: ; preds = %0, %13
%9 = phi i32 [ %25, %13 ], [ 0, %0 ]
%10 = call i64 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %13
12: ; preds = %13, %8
br label %42
13: ; preds = %8
%14 = load i32, i32* %1
%15 = sub i32 100, %14
%16 = call i64 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
%17 = load i32, i32* %2
%18 = sext i32 %15 to i64
%19 = getelementptr inbounds [101 x i32], [101 x i32]* %6, i64 0, i64 %18
%20 = load i32, i32* %19
%21 = add nsw i32 %20, %17
store i32 %21, i32* %19
%22 = load i32, i32* %1
%23 = icmp eq i32 %22, 0
%24 = zext i1 %23 to i32
%25 = add nuw nsw i32 %9, %24
%26 = icmp eq i32 %25, 2
br i1 %26, label %12, label %8
27: ; preds = %36, %34, %40, %38
ret i32 0
28: ; preds = %76
%29 = getelementptr inbounds [101 x i32], [101 x i32]* %6, i64 0, i64 100
%30 = load i32, i32* %29
%31 = icmp eq i32 %30, 0
br i1 %31, label %32, label %38
32: ; preds = %28
%33 = icmp eq i32 %78, 0
br i1 %33, label %36, label %34
34: ; preds = %32
%35 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
br label %27
36: ; preds = %32
%37 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 0)
br label %27
38: ; preds = %28
%39 = icmp sgt i32 %30, 0
br i1 %39, label %40, label %27
40: ; preds = %38
%41 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %30)
br label %27
42: ; preds = %12, %76
%43 = phi i64 [ %83, %76 ], [ 100, %12 ]
%44 = phi i32 [ %78, %76 ], [ 0, %12 ]
%45 = phi i32 [ %81, %76 ], [ 0, %12 ]
%46 = phi i64 [ %82, %76 ], [ 0, %12 ]
%47 = getelementptr inbounds [101 x i32], [101 x i32]* %6, i64 0, i64 %46
%48 = load i32, i32* %47
switch i32 %48, label %63 [
i32 0, label %76
i32 1, label %49
i32 -1, label %56
]
49: ; preds = %42
%50 = icmp eq i64 %46, 99
br i1 %50, label %51, label %53
51: ; preds = %49
%52 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
br label %76
53: ; preds = %49
%54 = trunc i64 %43 to i32
%55 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %54)
br label %76
56: ; preds = %42
%57 = icmp eq i64 %46, 99
br i1 %57, label %58, label %60
58: ; preds = %56
%59 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
br label %76
60: ; preds = %56
%61 = trunc i64 %43 to i32
%62 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %61)
br label %76
63: ; preds = %42
%64 = icmp sgt i32 %48, 0
%65 = icmp ne i32 %45, 0
%66 = select i1 %64, i1 %65, i1 false
br i1 %66, label %67, label %69
67: ; preds = %63
%68 = call i32 @putchar(i32 43)
br label %69
69: ; preds = %67, %63
%70 = icmp eq i64 %46, 99
br i1 %70, label %71, label %73
71: ; preds = %69
%72 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i32 %48)
br label %76
73: ; preds = %69
%74 = trunc i64 %43 to i32
%75 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0), i32 %48, i32 %74)
br label %76
76: ; preds = %42, %53, %51, %60, %58, %73, %71
%77 = icmp eq i32 %48, 0
%78 = select i1 %77, i32 %44, i32 %48
%79 = xor i1 %77, true
%80 = zext i1 %79 to i32
%81 = add nuw nsw i32 %45, %80
%82 = add nuw nsw i64 %46, 1
%83 = sub nsw i64 99, %46
%84 = icmp eq i64 %82, 100
br i1 %84, label %28, label %42
}