#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 */
scalar_t__ SearchChar(char *, char);
int atoi(char *);
scalar_t__ gets(char *);
int jiecheng(int);
int /*<<< orphan*/ printf(char *, ...);
char *strtok(char *, char *);
int main() {
  int num1, num2;
  char line[100], *ch;
  while (gets(line)) {
    if (SearchChar(line, '+')) {
      ch = strtok(line, " ");
      num1 = atoi(ch);
      strtok(NULL, " ");
      ch = strtok(NULL, " ");
      num2 = atoi(ch);
      printf("%d\n", num1 + num2);
    } else if (SearchChar(line, '-')) {
      ch = strtok(line, " ");
      num1 = atoi(ch);
      strtok(NULL, " ");
      ch = strtok(NULL, " ");
      num2 = atoi(ch);
      printf("%d\n", num1 - num2);
    } else if (SearchChar(line, '*')) {
      ch = strtok(line, " ");
      num1 = atoi(ch);
      strtok(NULL, " ");
      ch = strtok(NULL, " ");
      num2 = atoi(ch);
      printf("%d\n", num1 * num2);
    } else if (SearchChar(line, '/')) {
      ch = strtok(line, " ");
      num1 = atoi(ch);
      strtok(NULL, " ");
      ch = strtok(NULL, " ");
      num2 = atoi(ch);
      if (num2 == 0)
        printf("error\n");
      else
        printf("%d\n", num1 / num2);
    } else if (SearchChar(line, '!')) {
      ch = strtok(line, " ");
      num1 = atoi(ch);
      printf("%d\n", jiecheng(num1));
    } else if (SearchChar(line, '%')) {
      ch = strtok(line, " ");
      num1 = atoi(ch);
      strtok(NULL, " ");
      ch = strtok(NULL, " ");
      num2 = atoi(ch);
      if (num2 == 0)
        printf("error\n");
      else
        printf("%d\n", num1 % num2);
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x70(%rbp),%rdi
call   1050 <gets@plt>
cmp    $0x0,%rax
je     14be <main+0x35e>
lea    -0x70(%rbp),%rdi
mov    $0x2b,%esi
call   1080 <SearchChar@plt>
cmp    $0x0,%rax
je     1206 <main+0xa6>
lea    -0x70(%rbp),%rdi
lea    0xe58(%rip),%rsi
call   1060 <strtok@plt>
mov    %rax,-0x78(%rbp)
mov    -0x78(%rbp),%rdi
call   1070 <atoi@plt>
mov    %eax,-0x8(%rbp)
xor    %eax,%eax
mov    %eax,%edi
lea    0xe38(%rip),%rsi
call   1060 <strtok@plt>
xor    %eax,%eax
mov    %eax,%edi
lea    0xe28(%rip),%rsi
call   1060 <strtok@plt>
mov    %rax,-0x78(%rbp)
mov    -0x78(%rbp),%rdi
call   1070 <atoi@plt>
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%esi
add    -0xc(%rbp),%esi
lea    0xe08(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    14b9 <main+0x359>
lea    -0x70(%rbp),%rdi
mov    $0x2d,%esi
call   1080 <SearchChar@plt>
cmp    $0x0,%rax
je     1287 <main+0x127>
lea    -0x70(%rbp),%rdi
lea    0xdd7(%rip),%rsi
call   1060 <strtok@plt>
mov    %rax,-0x78(%rbp)
mov    -0x78(%rbp),%rdi
call   1070 <atoi@plt>
mov    %eax,-0x8(%rbp)
xor    %eax,%eax
mov    %eax,%edi
lea    0xdb7(%rip),%rsi
call   1060 <strtok@plt>
xor    %eax,%eax
mov    %eax,%edi
lea    0xda7(%rip),%rsi
call   1060 <strtok@plt>
mov    %rax,-0x78(%rbp)
mov    -0x78(%rbp),%rdi
call   1070 <atoi@plt>
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%esi
sub    -0xc(%rbp),%esi
lea    0xd87(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    14b4 <main+0x354>
lea    -0x70(%rbp),%rdi
mov    $0x2a,%esi
call   1080 <SearchChar@plt>
cmp    $0x0,%rax
je     1309 <main+0x1a9>
lea    -0x70(%rbp),%rdi
lea    0xd56(%rip),%rsi
call   1060 <strtok@plt>
mov    %rax,-0x78(%rbp)
mov    -0x78(%rbp),%rdi
call   1070 <atoi@plt>
mov    %eax,-0x8(%rbp)
xor    %eax,%eax
mov    %eax,%edi
lea    0xd36(%rip),%rsi
call   1060 <strtok@plt>
xor    %eax,%eax
mov    %eax,%edi
lea    0xd26(%rip),%rsi
call   1060 <strtok@plt>
mov    %rax,-0x78(%rbp)
mov    -0x78(%rbp),%rdi
call   1070 <atoi@plt>
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%esi
imul   -0xc(%rbp),%esi
lea    0xd05(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    14af <main+0x34f>
lea    -0x70(%rbp),%rdi
mov    $0x2f,%esi
call   1080 <SearchChar@plt>
cmp    $0x0,%rax
je     13aa <main+0x24a>
lea    -0x70(%rbp),%rdi
lea    0xcd4(%rip),%rsi
call   1060 <strtok@plt>
mov    %rax,-0x78(%rbp)
mov    -0x78(%rbp),%rdi
call   1070 <atoi@plt>
mov    %eax,-0x8(%rbp)
xor    %eax,%eax
mov    %eax,%edi
lea    0xcb4(%rip),%rsi
call   1060 <strtok@plt>
xor    %eax,%eax
mov    %eax,%edi
lea    0xca4(%rip),%rsi
call   1060 <strtok@plt>
mov    %rax,-0x78(%rbp)
mov    -0x78(%rbp),%rdi
call   1070 <atoi@plt>
mov    %eax,-0xc(%rbp)
cmpl   $0x0,-0xc(%rbp)
jne    138e <main+0x22e>
lea    0xc84(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    13a5 <main+0x245>
mov    -0x8(%rbp),%eax
cltd
idivl  -0xc(%rbp)
mov    %eax,%esi
lea    0xc64(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    14aa <main+0x34a>
lea    -0x70(%rbp),%rdi
mov    $0x21,%esi
call   1080 <SearchChar@plt>
cmp    $0x0,%rax
je     13ff <main+0x29f>
lea    -0x70(%rbp),%rdi
lea    0xc33(%rip),%rsi
call   1060 <strtok@plt>
mov    %rax,-0x78(%rbp)
mov    -0x78(%rbp),%rdi
call   1070 <atoi@plt>
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%edi
call   1030 <jiecheng@plt>
mov    %eax,%esi
lea    0xc0f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    14a5 <main+0x345>
lea    -0x70(%rbp),%rdi
mov    $0x25,%esi
call   1080 <SearchChar@plt>
cmp    $0x0,%rax
je     14a0 <main+0x340>
lea    -0x70(%rbp),%rdi
lea    0xbde(%rip),%rsi
call   1060 <strtok@plt>
mov    %rax,-0x78(%rbp)
mov    -0x78(%rbp),%rdi
call   1070 <atoi@plt>
mov    %eax,-0x8(%rbp)
xor    %eax,%eax
mov    %eax,%edi
lea    0xbbe(%rip),%rsi
call   1060 <strtok@plt>
xor    %eax,%eax
mov    %eax,%edi
lea    0xbae(%rip),%rsi
call   1060 <strtok@plt>
mov    %rax,-0x78(%rbp)
mov    -0x78(%rbp),%rdi
call   1070 <atoi@plt>
mov    %eax,-0xc(%rbp)
cmpl   $0x0,-0xc(%rbp)
jne    1484 <main+0x324>
lea    0xb8e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    149b <main+0x33b>
mov    -0x8(%rbp),%eax
cltd
idivl  -0xc(%rbp)
mov    %edx,%esi
lea    0xb6e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    14a0 <main+0x340>
jmp    14a5 <main+0x345>
jmp    14aa <main+0x34a>
jmp    14af <main+0x34f>
jmp    14b4 <main+0x354>
jmp    14b9 <main+0x359>
jmp    1172 <main+0x12>
xor    %eax,%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x70,%rsp
mov    %rsp,%rdi
call   1060 <gets@plt>
test   %rax,%rax
je     139c <main+0x22c>
mov    %rsp,%rbx
lea    0xe69(%rip),%r14
lea    0xe68(%rip),%r15
lea    0xe5d(%rip),%r12
cs nopw 0x0(%rax,%rax,1)
nop
mov    %rbx,%rdi
mov    $0x2b,%esi
call   1090 <SearchChar@plt>
mov    %rbx,%rdi
test   %rax,%rax
je     1200 <main+0x90>
mov    %r14,%rsi
call   1070 <strtok@plt>
mov    %rax,%rdi
call   1080 <atoi@plt>
mov    %eax,%ebp
xor    %edi,%edi
mov    %r14,%rsi
call   1070 <strtok@plt>
xor    %edi,%edi
mov    %r14,%rsi
call   1070 <strtok@plt>
mov    %rax,%rdi
call   1080 <atoi@plt>
add    %eax,%ebp
jmp    1290 <main+0x120>
nopw   0x0(%rax,%rax,1)
mov    $0x2d,%esi
call   1090 <SearchChar@plt>
mov    %rbx,%rdi
test   %rax,%rax
je     1244 <main+0xd4>
mov    %r14,%rsi
call   1070 <strtok@plt>
mov    %rax,%rdi
call   1080 <atoi@plt>
mov    %eax,%ebp
xor    %edi,%edi
mov    %r14,%rsi
call   1070 <strtok@plt>
xor    %edi,%edi
mov    %r14,%rsi
call   1070 <strtok@plt>
mov    %rax,%rdi
call   1080 <atoi@plt>
sub    %eax,%ebp
jmp    1290 <main+0x120>
mov    $0x2a,%esi
call   1090 <SearchChar@plt>
mov    %rbx,%rdi
test   %rax,%rax
je     12b2 <main+0x142>
mov    %r14,%rsi
call   1070 <strtok@plt>
mov    %rax,%rdi
call   1080 <atoi@plt>
mov    %eax,%ebp
xor    %edi,%edi
mov    %r14,%rsi
call   1070 <strtok@plt>
xor    %edi,%edi
mov    %r14,%rsi
call   1070 <strtok@plt>
mov    %rax,%rdi
call   1080 <atoi@plt>
imul   %eax,%ebp
nopw   0x0(%rax,%rax,1)
mov    %r12,%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
call   1060 <gets@plt>
test   %rax,%rax
jne    11b0 <main+0x40>
jmp    139c <main+0x22c>
mov    $0x2f,%esi
call   1090 <SearchChar@plt>
mov    %rbx,%rdi
test   %rax,%rax
je     1303 <main+0x193>
mov    %r14,%rsi
call   1070 <strtok@plt>
mov    %rax,%rdi
call   1080 <atoi@plt>
mov    %eax,%ebp
xor    %edi,%edi
mov    %r14,%rsi
call   1070 <strtok@plt>
xor    %edi,%edi
mov    %r14,%rsi
call   1070 <strtok@plt>
mov    %rax,%rdi
call   1080 <atoi@plt>
test   %eax,%eax
je     138f <main+0x21f>
mov    %eax,%ecx
mov    %ebp,%eax
cltd
idiv   %ecx
jmp    132c <main+0x1bc>
mov    $0x21,%esi
call   1090 <SearchChar@plt>
mov    %rbx,%rdi
test   %rax,%rax
je     1336 <main+0x1c6>
mov    %r14,%rsi
call   1070 <strtok@plt>
mov    %rax,%rdi
call   1080 <atoi@plt>
mov    %eax,%edi
call   1030 <jiecheng@plt>
mov    %r12,%rdi
mov    %eax,%esi
jmp    1295 <main+0x125>
mov    $0x25,%esi
call   1090 <SearchChar@plt>
test   %rax,%rax
je     129c <main+0x12c>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1070 <strtok@plt>
mov    %rax,%rdi
call   1080 <atoi@plt>
mov    %eax,%ebp
xor    %edi,%edi
mov    %r14,%rsi
call   1070 <strtok@plt>
xor    %edi,%edi
mov    %r14,%rsi
call   1070 <strtok@plt>
mov    %rax,%rdi
call   1080 <atoi@plt>
test   %eax,%eax
je     138f <main+0x21f>
mov    %eax,%ecx
mov    %ebp,%eax
cltd
idiv   %ecx
mov    %r12,%rdi
mov    %edx,%esi
jmp    1295 <main+0x125>
mov    %r15,%rdi
call   1040 <puts@plt>
jmp    129c <main+0x12c>
xor    %eax,%eax
add    $0x70,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [2 x i8] c" \00"
@.str.1 = [4 x i8] c"%d\0A\00"
@.str.2 = [7 x i8] c"error\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca [100 x i8]
%5 = alloca i8*
store i32 0, i32* %1
br label %6
6: ; preds = %124, %0
%7 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%8 = call i64 @gets(i8* %7)
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %125
10: ; preds = %6
%11 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%12 = call i64 @SearchChar(i8* %11, i8 signext 43)
%13 = icmp ne i64 %12, 0
br i1 %13, label %14, label %27
14: ; preds = %10
%15 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%16 = call i8* @strtok(i8* %15, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i8* %16, i8** %5
%17 = load i8*, i8** %5
%18 = call i32 @atoi(i8* %17)
store i32 %18, i32* %2
%19 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%20 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i8* %20, i8** %5
%21 = load i8*, i8** %5
%22 = call i32 @atoi(i8* %21)
store i32 %22, i32* %3
%23 = load i32, i32* %2
%24 = load i32, i32* %3
%25 = add nsw i32 %23, %24
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %25)
br label %124
27: ; preds = %10
%28 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%29 = call i64 @SearchChar(i8* %28, i8 signext 45)
%30 = icmp ne i64 %29, 0
br i1 %30, label %31, label %44
31: ; preds = %27
%32 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%33 = call i8* @strtok(i8* %32, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i8* %33, i8** %5
%34 = load i8*, i8** %5
%35 = call i32 @atoi(i8* %34)
store i32 %35, i32* %2
%36 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%37 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i8* %37, i8** %5
%38 = load i8*, i8** %5
%39 = call i32 @atoi(i8* %38)
store i32 %39, i32* %3
%40 = load i32, i32* %2
%41 = load i32, i32* %3
%42 = sub nsw i32 %40, %41
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %42)
br label %123
44: ; preds = %27
%45 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%46 = call i64 @SearchChar(i8* %45, i8 signext 42)
%47 = icmp ne i64 %46, 0
br i1 %47, label %48, label %61
48: ; preds = %44
%49 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%50 = call i8* @strtok(i8* %49, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i8* %50, i8** %5
%51 = load i8*, i8** %5
%52 = call i32 @atoi(i8* %51)
store i32 %52, i32* %2
%53 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%54 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i8* %54, i8** %5
%55 = load i8*, i8** %5
%56 = call i32 @atoi(i8* %55)
store i32 %56, i32* %3
%57 = load i32, i32* %2
%58 = load i32, i32* %3
%59 = mul nsw i32 %57, %58
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %59)
br label %122
61: ; preds = %44
%62 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%63 = call i64 @SearchChar(i8* %62, i8 signext 47)
%64 = icmp ne i64 %63, 0
br i1 %64, label %65, label %84
65: ; preds = %61
%66 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%67 = call i8* @strtok(i8* %66, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i8* %67, i8** %5
%68 = load i8*, i8** %5
%69 = call i32 @atoi(i8* %68)
store i32 %69, i32* %2
%70 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%71 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i8* %71, i8** %5
%72 = load i8*, i8** %5
%73 = call i32 @atoi(i8* %72)
store i32 %73, i32* %3
%74 = load i32, i32* %3
%75 = icmp eq i32 %74, 0
br i1 %75, label %76, label %78
76: ; preds = %65
%77 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
br label %83
78: ; preds = %65
%79 = load i32, i32* %2
%80 = load i32, i32* %3
%81 = sdiv i32 %79, %80
%82 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %81)
br label %83
83: ; preds = %78, %76
br label %121
84: ; preds = %61
%85 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%86 = call i64 @SearchChar(i8* %85, i8 signext 33)
%87 = icmp ne i64 %86, 0
br i1 %87, label %88, label %96
88: ; preds = %84
%89 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%90 = call i8* @strtok(i8* %89, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i8* %90, i8** %5
%91 = load i8*, i8** %5
%92 = call i32 @atoi(i8* %91)
store i32 %92, i32* %2
%93 = load i32, i32* %2
%94 = call i32 @jiecheng(i32 %93)
%95 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %94)
br label %120
96: ; preds = %84
%97 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%98 = call i64 @SearchChar(i8* %97, i8 signext 37)
%99 = icmp ne i64 %98, 0
br i1 %99, label %100, label %119
100: ; preds = %96
%101 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%102 = call i8* @strtok(i8* %101, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i8* %102, i8** %5
%103 = load i8*, i8** %5
%104 = call i32 @atoi(i8* %103)
store i32 %104, i32* %2
%105 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%106 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i8* %106, i8** %5
%107 = load i8*, i8** %5
%108 = call i32 @atoi(i8* %107)
store i32 %108, i32* %3
%109 = load i32, i32* %3
%110 = icmp eq i32 %109, 0
br i1 %110, label %111, label %113
111: ; preds = %100
%112 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
br label %118
113: ; preds = %100
%114 = load i32, i32* %2
%115 = load i32, i32* %3
%116 = srem i32 %114, %115
%117 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %116)
br label %118
118: ; preds = %113, %111
br label %119
119: ; preds = %118, %96
br label %120
120: ; preds = %119, %88
br label %121
121: ; preds = %120, %83
br label %122
122: ; preds = %121, %48
br label %123
123: ; preds = %122, %31
br label %124
124: ; preds = %123, %14
br label %6
125: ; preds = %6
ret i32 0
}

LLVM IR (-O2):
@.str = [2 x i8] c" \00"
@.str.1 = [4 x i8] c"%d\0A\00"
@str.3 = [6 x i8] c"error\00"
define i32 @main() {
%1 = alloca [100 x i8]
%2 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 0
%3 = call i64 @gets(i8* %2)
%4 = icmp eq i64 %3, 0
br i1 %4, label %79, label %5
5: ; preds = %0, %76
%6 = call i64 @SearchChar(i8* %2, i8 signext 43)
%7 = icmp eq i64 %6, 0
br i1 %7, label %16, label %8
8: ; preds = %5
%9 = call i8* @strtok(i8* %2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%10 = call i32 @atoi(i8* %9)
%11 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%12 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%13 = call i32 @atoi(i8* %12)
%14 = add nsw i32 %13, %10
%15 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %14)
br label %76
16: ; preds = %5
%17 = call i64 @SearchChar(i8* %2, i8 signext 45)
%18 = icmp eq i64 %17, 0
br i1 %18, label %27, label %19
19: ; preds = %16
%20 = call i8* @strtok(i8* %2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%21 = call i32 @atoi(i8* %20)
%22 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%23 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%24 = call i32 @atoi(i8* %23)
%25 = sub nsw i32 %21, %24
%26 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %25)
br label %76
27: ; preds = %16
%28 = call i64 @SearchChar(i8* %2, i8 signext 42)
%29 = icmp eq i64 %28, 0
br i1 %29, label %38, label %30
30: ; preds = %27
%31 = call i8* @strtok(i8* %2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%32 = call i32 @atoi(i8* %31)
%33 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%34 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%35 = call i32 @atoi(i8* %34)
%36 = mul nsw i32 %35, %32
%37 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %36)
br label %76
38: ; preds = %27
%39 = call i64 @SearchChar(i8* %2, i8 signext 47)
%40 = icmp eq i64 %39, 0
br i1 %40, label %53, label %41
41: ; preds = %38
%42 = call i8* @strtok(i8* %2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%43 = call i32 @atoi(i8* %42)
%44 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%45 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%46 = call i32 @atoi(i8* %45)
%47 = icmp eq i32 %46, 0
br i1 %47, label %48, label %50
48: ; preds = %41
%49 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str.3, i64 0, i64 0))
br label %76
50: ; preds = %41
%51 = sdiv i32 %43, %46
%52 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %51)
br label %76
53: ; preds = %38
%54 = call i64 @SearchChar(i8* %2, i8 signext 33)
%55 = icmp eq i64 %54, 0
br i1 %55, label %61, label %56
56: ; preds = %53
%57 = call i8* @strtok(i8* %2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%58 = call i32 @atoi(i8* %57)
%59 = call i32 @jiecheng(i32 %58)
%60 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %59)
br label %76
61: ; preds = %53
%62 = call i64 @SearchChar(i8* %2, i8 signext 37)
%63 = icmp eq i64 %62, 0
br i1 %63, label %76, label %64
64: ; preds = %61
%65 = call i8* @strtok(i8* %2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%66 = call i32 @atoi(i8* %65)
%67 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%68 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%69 = call i32 @atoi(i8* %68)
%70 = icmp eq i32 %69, 0
br i1 %70, label %71, label %73
71: ; preds = %64
%72 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str.3, i64 0, i64 0))
br label %76
73: ; preds = %64
%74 = srem i32 %66, %69
%75 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %74)
br label %76
76: ; preds = %19, %50, %48, %61, %73, %71, %56, %30, %8
%77 = call i64 @gets(i8* %2)
%78 = icmp eq i64 %77, 0
br i1 %78, label %79, label %5
79: ; preds = %76, %0
ret i32 0
}