#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*/ printf(char *, ...);
int main() {
  char ch;
  ch = '+';
  int f, a = 10, b = 20;
  double e, c = 10.0, d = 20.0;
  printf("ch = %c\n", ch);
  switch (ch) {
  case '+':
    f = a + b;
    printf("f = %d\n", f);
    break;
  case '-':
    f = a - b;
    printf("f = %d\n", f);
    break;
  case '*':
    f = a * b;
    printf("f = %d\n", f);
    break;
  case '/':
    f = a / b;
    printf("f = %d\n", f);
    break;
  default:
    printf("invalid operator\n");
  }
  ch = '-';
  printf("ch = %c\n", ch);
  switch (ch) {
  case '+':
    f = a + b;
    printf("f = %d\n", f);
    break;
  case '-':
    f = a - b;
    printf("f = %d\n", f);
    break;
  case '*':
    f = a * b;
    printf("f = %d\n", f);
    break;
  case '/':
    f = a / b;
    printf("f = %d\n", f);
    break;
  default:
    printf("invalid operator\n");
  }
  ch = '*';
  printf("ch = %c\n", ch);
  switch (ch) {
  case '+':
    f = a + b;
    printf("f = %d\n", f);
    break;
  case '-':
    f = a - b;
    printf("f = %d\n", f);
    break;
  case '*':
    f = a * b;
    printf("f = %d\n", f);
    break;
  case '/':
    f = a / b;
    printf("f = %d\n", f);
    break;
  default:
    printf("invalid operator\n");
  }
  ch = '/';
  printf("ch = %c\n", ch);
  switch (ch) {
  case '+':
    f = a + b;
    printf("f = %d\n", f);
    break;
  case '-':
    f = a - b;
    printf("f = %d\n", f);
    break;
  case '*':
    f = a * b;
    printf("f = %d\n", f);
    break;
  case '/':
    e = c / d;
    printf("f = %.2f\n", e);
    break;
  default:
    printf("invalid operator\n");
  }
  ch = '%';
  printf("ch = %c\n", ch);
  switch (ch) {
  case '+':
    f = a + b;
    printf("f = %d\n", f);
    break;
  case '-':
    f = a - b;
    printf("f = %d\n", f);
    break;
  case '*':
    f = a * b;
    printf("f = %d\n", f);
    break;
  case '/':
    f = a / b;
    printf("f = %d\n", f);
    break;
  default:
    printf("invalid operator\n");
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
movb   $0x2b,-0x5(%rbp)
movl   $0xa,-0x10(%rbp)
movl   $0x14,-0x14(%rbp)
movabs $0x4024000000000000,%rax
mov    %rax,-0x28(%rbp)
movabs $0x4034000000000000,%rax
mov    %rax,-0x30(%rbp)
movsbl -0x5(%rbp),%esi
lea    0xf20(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
movsbl -0x5(%rbp),%eax
add    $0xffffffd6,%eax
mov    %eax,%ecx
mov    %rcx,-0x38(%rbp)
sub    $0x5,%eax
ja     1207 <main+0xf7>
mov    -0x38(%rbp),%rax
lea    0xe80(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x10(%rbp),%eax
add    -0x14(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%esi
lea    0xee5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1215 <main+0x105>
mov    -0x10(%rbp),%eax
sub    -0x14(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%esi
lea    0xec6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1215 <main+0x105>
mov    -0x10(%rbp),%eax
imul   -0x14(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%esi
lea    0xea6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1215 <main+0x105>
mov    -0x10(%rbp),%eax
cltd
idivl  -0x14(%rbp)
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%esi
lea    0xe86(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1215 <main+0x105>
lea    0xe7b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movb   $0x2d,-0x5(%rbp)
movsbl -0x5(%rbp),%esi
lea    0xe54(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
movsbl -0x5(%rbp),%eax
add    $0xffffffd6,%eax
mov    %eax,%ecx
mov    %rcx,-0x40(%rbp)
sub    $0x5,%eax
ja     12d3 <main+0x1c3>
mov    -0x40(%rbp),%rax
lea    0xdcc(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x10(%rbp),%eax
add    -0x14(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%esi
lea    0xe19(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    12e1 <main+0x1d1>
mov    -0x10(%rbp),%eax
sub    -0x14(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%esi
lea    0xdfa(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    12e1 <main+0x1d1>
mov    -0x10(%rbp),%eax
imul   -0x14(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%esi
lea    0xdda(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    12e1 <main+0x1d1>
mov    -0x10(%rbp),%eax
cltd
idivl  -0x14(%rbp)
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%esi
lea    0xdba(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    12e1 <main+0x1d1>
lea    0xdaf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movb   $0x2a,-0x5(%rbp)
movsbl -0x5(%rbp),%esi
lea    0xd88(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
movsbl -0x5(%rbp),%eax
add    $0xffffffd6,%eax
mov    %eax,%ecx
mov    %rcx,-0x48(%rbp)
sub    $0x5,%eax
ja     139f <main+0x28f>
mov    -0x48(%rbp),%rax
lea    0xd18(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x10(%rbp),%eax
add    -0x14(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%esi
lea    0xd4d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    13ad <main+0x29d>
mov    -0x10(%rbp),%eax
sub    -0x14(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%esi
lea    0xd2e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    13ad <main+0x29d>
mov    -0x10(%rbp),%eax
imul   -0x14(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%esi
lea    0xd0e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    13ad <main+0x29d>
mov    -0x10(%rbp),%eax
cltd
idivl  -0x14(%rbp)
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%esi
lea    0xcee(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    13ad <main+0x29d>
lea    0xce3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movb   $0x2f,-0x5(%rbp)
movsbl -0x5(%rbp),%esi
lea    0xcbc(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
movsbl -0x5(%rbp),%eax
add    $0xffffffd6,%eax
mov    %eax,%ecx
mov    %rcx,-0x50(%rbp)
sub    $0x5,%eax
ja     1472 <main+0x362>
mov    -0x50(%rbp),%rax
lea    0xc64(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x10(%rbp),%eax
add    -0x14(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%esi
lea    0xc81(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1480 <main+0x370>
mov    -0x10(%rbp),%eax
sub    -0x14(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%esi
lea    0xc62(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1480 <main+0x370>
mov    -0x10(%rbp),%eax
imul   -0x14(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%esi
lea    0xc42(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1480 <main+0x370>
movsd  -0x28(%rbp),%xmm0
divsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
lea    0xc35(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
jmp    1480 <main+0x370>
lea    0xc10(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movb   $0x25,-0x5(%rbp)
movsbl -0x5(%rbp),%esi
lea    0xbe9(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
movsbl -0x5(%rbp),%eax
add    $0xffffffd6,%eax
mov    %eax,%ecx
mov    %rcx,-0x58(%rbp)
sub    $0x5,%eax
ja     153e <main+0x42e>
mov    -0x58(%rbp),%rax
lea    0xba9(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x10(%rbp),%eax
add    -0x14(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%esi
lea    0xbae(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    154c <main+0x43c>
mov    -0x10(%rbp),%eax
sub    -0x14(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%esi
lea    0xb8f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    154c <main+0x43c>
mov    -0x10(%rbp),%eax
imul   -0x14(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%esi
lea    0xb6f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    154c <main+0x43c>
mov    -0x10(%rbp),%eax
cltd
idivl  -0x14(%rbp)
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%esi
lea    0xb4f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    154c <main+0x43c>
lea    0xb44(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
lea    0xedd(%rip),%r14
mov    %r14,%rdi
mov    $0x2b,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xed0(%rip),%rbx
mov    %rbx,%rdi
mov    $0x1e,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
mov    $0x2d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0xfffffff6,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
mov    $0x2a,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0xc8,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
mov    $0x2f,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe77(%rip),%rdi
movsd  0xe56(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
mov    %r14,%rdi
mov    $0x25,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe5c(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
@.str = [9 x i8] c"ch = %c\0A\00"
@.str.1 = [8 x i8] c"f = %d\0A\00"
@.str.3 = [10 x i8] c"f = %.2f\0A\00"
@str = [17 x i8] c"invalid operator\00"
define i32 @main() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 43)
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i32 30)
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 45)
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i32 -10)
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 42)
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i32 200)
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 47)
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), double 5.000000e-01)
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 37)
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str, i64 0, i64 0))
ret i32 0
}