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

/* Variables and functions */
float atof(char *);
int /*<<< orphan*/ bzero(char *, int);
float execExpression(char **, unsigned char *, float, char *);
int nextToken(char **, char **, int *);
int /*<<< orphan*/ pushBack(char **, int);
int /*<<< orphan*/ sprintf(char *, char *, char);
int /*<<< orphan*/ sscanf(char *, char *, float *);
int /*<<< orphan*/ strcpy(char *, char *);
float execFactor(char **str, unsigned char *bPtr, float floatV, char *err) {
  char nstring[100];
  float expression;
  float factor;
  char *nPtr;
  char *item;
  char token;
  int n;
  switch (nextToken(str, &item, &n)) {
  case 200:
    return (bPtr[0]);
  case 201:
    return (bPtr[1]);
  case 202:
    return (bPtr[2]);
  case 203:
    return (bPtr[3]);
  case 204:
    return (bPtr[4]);
  case 205:
    return (bPtr[5]);
  case 206:
    return (bPtr[6]);
  case 207:
    return (bPtr[7]);
  case 208:
    return (bPtr[8]);
  case 209:
    return (bPtr[9]);
  case 300:
    return (floatV);
  case 8:
    nPtr = nstring;
    bzero(nstring, sizeof(nstring));
    strcpy(nstring, "0x");
    nPtr += 2;
    token = nextToken(str, &item, &n);
    while ((token == 11) || (token == 10)) {
      *nPtr++ = *item;
      token = nextToken(str, &item, &n);
    };
    pushBack(str, n);
    sscanf(nstring, "%f", &factor);
    return (factor);
  case 11:
    nPtr = nstring;
    do {
      *nPtr++ = *item;
    } while ((token = nextToken(str, &item, &n)) == 11);
    if (token == 12) {
      do {
        *nPtr++ = *item;
      } while ((token = nextToken(str, &item, &n)) == 11);
    }
    pushBack(str, n);
    *nPtr = '\0';
    factor = atof(nstring);
    return (factor);
  case 110:
    expression = execExpression(str, bPtr, floatV, err);
    if (*err) {
      return (0);
    }
    if (nextToken(str, &item, &n) != 111) {
      sprintf(err, "factor Erwartet:) [%c]\n", *item);
      return (0);
    }
    return (expression);
  default:
    sprintf(err, "factor Erwartet: B0..B9 Zahl ( ) [%c]\n", *item);
    return (0);
  }
}


x86 assembly (clang, -O0):
<execFactor>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc0,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
movss  %xmm0,-0x1c(%rbp)
mov    %rdx,-0x28(%rbp)
mov    -0x10(%rbp),%rdi
lea    -0xa8(%rbp),%rsi
lea    -0xb0(%rbp),%rdx
call   1060 <nextToken@plt>
mov    %eax,%ecx
mov    %ecx,-0xb4(%rbp)
sub    $0x8,%eax
je     13cd <execFactor+0x24d>
jmp    11c9 <execFactor+0x49>
mov    -0xb4(%rbp),%eax
sub    $0xb,%eax
je     14e9 <execFactor+0x369>
jmp    11dd <execFactor+0x5d>
mov    -0xb4(%rbp),%eax
sub    $0x6e,%eax
je     15e2 <execFactor+0x462>
jmp    11f1 <execFactor+0x71>
mov    -0xb4(%rbp),%eax
sub    $0xc8,%eax
je     12e3 <execFactor+0x163>
jmp    1207 <execFactor+0x87>
mov    -0xb4(%rbp),%eax
sub    $0xc9,%eax
je     12f8 <execFactor+0x178>
jmp    121d <execFactor+0x9d>
mov    -0xb4(%rbp),%eax
sub    $0xca,%eax
je     130e <execFactor+0x18e>
jmp    1233 <execFactor+0xb3>
mov    -0xb4(%rbp),%eax
sub    $0xcb,%eax
je     1324 <execFactor+0x1a4>
jmp    1249 <execFactor+0xc9>
mov    -0xb4(%rbp),%eax
sub    $0xcc,%eax
je     133a <execFactor+0x1ba>
jmp    125f <execFactor+0xdf>
mov    -0xb4(%rbp),%eax
sub    $0xcd,%eax
je     1350 <execFactor+0x1d0>
jmp    1275 <execFactor+0xf5>
mov    -0xb4(%rbp),%eax
sub    $0xce,%eax
je     1366 <execFactor+0x1e6>
jmp    128b <execFactor+0x10b>
mov    -0xb4(%rbp),%eax
sub    $0xcf,%eax
je     137c <execFactor+0x1fc>
jmp    12a1 <execFactor+0x121>
mov    -0xb4(%rbp),%eax
sub    $0xd0,%eax
je     1392 <execFactor+0x212>
jmp    12b7 <execFactor+0x137>
mov    -0xb4(%rbp),%eax
sub    $0xd1,%eax
je     13a8 <execFactor+0x228>
jmp    12cd <execFactor+0x14d>
mov    -0xb4(%rbp),%eax
sub    $0x12c,%eax
je     13be <execFactor+0x23e>
jmp    1673 <execFactor+0x4f3>
mov    -0x18(%rbp),%rax
movzbl (%rax),%eax
cvtsi2ss %eax,%xmm0
movss  %xmm0,-0x4(%rbp)
jmp    1695 <execFactor+0x515>
mov    -0x18(%rbp),%rax
movzbl 0x1(%rax),%eax
cvtsi2ss %eax,%xmm0
movss  %xmm0,-0x4(%rbp)
jmp    1695 <execFactor+0x515>
mov    -0x18(%rbp),%rax
movzbl 0x2(%rax),%eax
cvtsi2ss %eax,%xmm0
movss  %xmm0,-0x4(%rbp)
jmp    1695 <execFactor+0x515>
mov    -0x18(%rbp),%rax
movzbl 0x3(%rax),%eax
cvtsi2ss %eax,%xmm0
movss  %xmm0,-0x4(%rbp)
jmp    1695 <execFactor+0x515>
mov    -0x18(%rbp),%rax
movzbl 0x4(%rax),%eax
cvtsi2ss %eax,%xmm0
movss  %xmm0,-0x4(%rbp)
jmp    1695 <execFactor+0x515>
mov    -0x18(%rbp),%rax
movzbl 0x5(%rax),%eax
cvtsi2ss %eax,%xmm0
movss  %xmm0,-0x4(%rbp)
jmp    1695 <execFactor+0x515>
mov    -0x18(%rbp),%rax
movzbl 0x6(%rax),%eax
cvtsi2ss %eax,%xmm0
movss  %xmm0,-0x4(%rbp)
jmp    1695 <execFactor+0x515>
mov    -0x18(%rbp),%rax
movzbl 0x7(%rax),%eax
cvtsi2ss %eax,%xmm0
movss  %xmm0,-0x4(%rbp)
jmp    1695 <execFactor+0x515>
mov    -0x18(%rbp),%rax
movzbl 0x8(%rax),%eax
cvtsi2ss %eax,%xmm0
movss  %xmm0,-0x4(%rbp)
jmp    1695 <execFactor+0x515>
mov    -0x18(%rbp),%rax
movzbl 0x9(%rax),%eax
cvtsi2ss %eax,%xmm0
movss  %xmm0,-0x4(%rbp)
jmp    1695 <execFactor+0x515>
movss  -0x1c(%rbp),%xmm0
movss  %xmm0,-0x4(%rbp)
jmp    1695 <execFactor+0x515>
lea    -0x90(%rbp),%rax
mov    %rax,-0xa0(%rbp)
lea    -0x90(%rbp),%rdi
mov    $0x64,%esi
call   1090 <bzero@plt>
lea    -0x90(%rbp),%rdi
lea    0xc06(%rip),%rsi
call   1030 <strcpy@plt>
mov    -0xa0(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0xa0(%rbp)
mov    -0x10(%rbp),%rdi
lea    -0xa8(%rbp),%rsi
lea    -0xb0(%rbp),%rdx
call   1060 <nextToken@plt>
mov    %al,-0xa9(%rbp)
movsbl -0xa9(%rbp),%ecx
mov    $0x1,%al
cmp    $0xb,%ecx
mov    %al,-0xb5(%rbp)
je     1459 <execFactor+0x2d9>
movsbl -0xa9(%rbp),%eax
cmp    $0xa,%eax
sete   %al
mov    %al,-0xb5(%rbp)
mov    -0xb5(%rbp),%al
test   $0x1,%al
jne    146c <execFactor+0x2ec>
jmp    14ae <execFactor+0x32e>
mov    -0xa8(%rbp),%rax
mov    (%rax),%cl
mov    -0xa0(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0xa0(%rbp)
mov    %cl,(%rax)
mov    -0x10(%rbp),%rdi
lea    -0xa8(%rbp),%rsi
lea    -0xb0(%rbp),%rdx
call   1060 <nextToken@plt>
mov    %al,-0xa9(%rbp)
jmp    142e <execFactor+0x2ae>
mov    -0x10(%rbp),%rdi
mov    -0xb0(%rbp),%esi
call   1050 <pushBack@plt>
lea    -0x90(%rbp),%rdi
lea    0xb38(%rip),%rsi
lea    -0x98(%rbp),%rdx
call   1080 <sscanf@plt>
movss  -0x98(%rbp),%xmm0
ff
movss  %xmm0,-0x4(%rbp)
jmp    1695 <execFactor+0x515>
lea    -0x90(%rbp),%rax
mov    %rax,-0xa0(%rbp)
mov    -0xa8(%rbp),%rax
mov    (%rax),%cl
mov    -0xa0(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0xa0(%rbp)
mov    %cl,(%rax)
mov    -0x10(%rbp),%rdi
lea    -0xa8(%rbp),%rsi
lea    -0xb0(%rbp),%rdx
call   1060 <nextToken@plt>
mov    %al,-0xa9(%rbp)
movsbl %al,%eax
cmp    $0xb,%eax
je     14f7 <execFactor+0x377>
movsbl -0xa9(%rbp),%eax
cmp    $0xc,%eax
jne    15a3 <execFactor+0x423>
jmp    1555 <execFactor+0x3d5>
mov    -0xa8(%rbp),%rax
mov    (%rax),%cl
mov    -0xa0(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0xa0(%rbp)
mov    %cl,(%rax)
mov    -0x10(%rbp),%rdi
lea    -0xa8(%rbp),%rsi
lea    -0xb0(%rbp),%rdx
call   1060 <nextToken@plt>
mov    %al,-0xa9(%rbp)
movsbl %al,%eax
cmp    $0xb,%eax
je     1555 <execFactor+0x3d5>
jmp    15a3 <execFactor+0x423>
mov    -0x10(%rbp),%rdi
mov    -0xb0(%rbp),%esi
call   1050 <pushBack@plt>
mov    -0xa0(%rbp),%rax
movb   $0x0,(%rax)
lea    -0x90(%rbp),%rdi
call   1040 <atof@plt>
movss  %xmm0,-0x98(%rbp)
ff
movss  -0x98(%rbp),%xmm0
ff
movss  %xmm0,-0x4(%rbp)
jmp    1695 <execFactor+0x515>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
movss  -0x1c(%rbp),%xmm0
mov    -0x28(%rbp),%rdx
call   1070 <execExpression@plt>
movss  %xmm0,-0x94(%rbp)
ff
mov    -0x28(%rbp),%rax
cmpb   $0x0,(%rax)
je     161a <execFactor+0x49a>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x4(%rbp)
jmp    1695 <execFactor+0x515>
mov    -0x10(%rbp),%rdi
lea    -0xa8(%rbp),%rsi
lea    -0xb0(%rbp),%rdx
call   1060 <nextToken@plt>
cmp    $0x6f,%eax
je     1661 <execFactor+0x4e1>
mov    -0x28(%rbp),%rdi
mov    -0xa8(%rbp),%rax
lea    0x9ba(%rip),%rsi
movsbl (%rax),%edx
call   10a0 <sprintf@plt>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x4(%rbp)
jmp    1695 <execFactor+0x515>
movss  -0x94(%rbp),%xmm0
ff
movss  %xmm0,-0x4(%rbp)
jmp    1695 <execFactor+0x515>
mov    -0x28(%rbp),%rdi
mov    -0xa8(%rbp),%rax
lea    0x999(%rip),%rsi
movsbl (%rax),%edx
call   10a0 <sprintf@plt>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
add    $0xc0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<execFactor>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x88,%rsp
mov    %rdx,%r14
movss  %xmm0,0x18(%rsp)
mov    %rsi,%r15
mov    %rdi,%r12
lea    0x10(%rsp),%rsi
lea    0xc(%rsp),%rdx
call   1060 <nextToken@plt>
cmp    $0xc7,%eax
jle    11e7 <execFactor+0x67>
add    $0xffffff38,%eax
cmp    $0x64,%eax
movss  0x18(%rsp),%xmm0
ja     1441 <execFactor+0x2c1>
lea    0xe32(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movzbl (%r15),%eax
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
jmp    145b <execFactor+0x2db>
cmp    $0x8,%eax
je     12fa <execFactor+0x17a>
cmp    $0xb,%eax
je     13a3 <execFactor+0x223>
cmp    $0x6e,%eax
movss  0x18(%rsp),%xmm0
jne    1441 <execFactor+0x2c1>
mov    %r12,%rdi
mov    %r15,%rsi
mov    %r14,%rdx
call   1070 <execExpression@plt>
movaps %xmm0,%xmm1
xorps  %xmm0,%xmm0
cmpb   $0x0,(%r14)
jne    145b <execFactor+0x2db>
lea    0x10(%rsp),%rsi
lea    0xc(%rsp),%rdx
mov    %r12,%rdi
movss  %xmm1,0x18(%rsp)
call   1060 <nextToken@plt>
movss  0x18(%rsp),%xmm0
cmp    $0x6f,%eax
je     145b <execFactor+0x2db>
mov    0x10(%rsp),%rax
movsbl (%rax),%edx
lea    0xf3e(%rip),%rsi
jmp    1450 <execFactor+0x2d0>
movzbl 0x1(%r15),%eax
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
jmp    145b <execFactor+0x2db>
movzbl 0x2(%r15),%eax
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
jmp    145b <execFactor+0x2db>
movzbl 0x3(%r15),%eax
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
jmp    145b <execFactor+0x2db>
movzbl 0x4(%r15),%eax
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
jmp    145b <execFactor+0x2db>
movzbl 0x5(%r15),%eax
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
jmp    145b <execFactor+0x2db>
movzbl 0x6(%r15),%eax
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
jmp    145b <execFactor+0x2db>
movzbl 0x7(%r15),%eax
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
jmp    145b <execFactor+0x2db>
movzbl 0x8(%r15),%eax
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
jmp    145b <execFactor+0x2db>
movzbl 0x9(%r15),%eax
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
jmp    145b <execFactor+0x2db>
lea    0x20(%rsp),%r14
mov    %r14,%rdi
mov    $0x64,%esi
call   1090 <bzero@plt>
lea    0xe81(%rip),%rsi
mov    %r14,%rdi
call   1030 <strcpy@plt>
lea    0x10(%rsp),%rsi
lea    0xc(%rsp),%rdx
mov    %r12,%rdi
call   1060 <nextToken@plt>
and    $0xfe,%eax
cmp    $0xa,%eax
jne    1376 <execFactor+0x1f6>
lea    0x22(%rsp),%rbx
lea    0x10(%rsp),%r14
lea    0xc(%rsp),%r15
cs nopw 0x0(%rax,%rax,1)
mov    0x10(%rsp),%rax
movzbl (%rax),%eax
mov    %al,(%rbx)
add    $0x1,%rbx
mov    %r12,%rdi
mov    %r14,%rsi
mov    %r15,%rdx
call   1060 <nextToken@plt>
and    $0xfe,%eax
cmp    $0xa,%eax
je     1350 <execFactor+0x1d0>
mov    0xc(%rsp),%esi
mov    %r12,%rdi
call   1050 <pushBack@plt>
lea    0xe0e(%rip),%rsi
lea    0x20(%rsp),%rdi
lea    0x1c(%rsp),%rdx
call   1080 <sscanf@plt>
movss  0x1c(%rsp),%xmm0
jmp    145b <execFactor+0x2db>
lea    0x20(%rsp),%rbx
lea    0x10(%rsp),%r14
lea    0xc(%rsp),%r15
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    0x10(%rsp),%rax
movzbl (%rax),%eax
mov    %al,(%rbx)
add    $0x1,%rbx
mov    %r12,%rdi
mov    %r14,%rsi
mov    %r15,%rdx
call   1060 <nextToken@plt>
shl    $0x18,%eax
cmp    $0xb000000,%eax
je     13c0 <execFactor+0x240>
cmp    $0xc000000,%eax
jne    1420 <execFactor+0x2a0>
lea    0x10(%rsp),%r14
lea    0xc(%rsp),%r15
nopw   0x0(%rax,%rax,1)
mov    0x10(%rsp),%rax
movzbl (%rax),%eax
mov    %al,(%rbx)
add    $0x1,%rbx
mov    %r12,%rdi
mov    %r14,%rsi
mov    %r15,%rdx
call   1060 <nextToken@plt>
cmp    $0xb,%al
je     1400 <execFactor+0x280>
mov    0xc(%rsp),%esi
mov    %r12,%rdi
call   1050 <pushBack@plt>
movb   $0x0,(%rbx)
lea    0x20(%rsp),%rdi
call   1040 <atof@plt>
movss  %xmm0,0x1c(%rsp)
jmp    145b <execFactor+0x2db>
mov    0x10(%rsp),%rax
movsbl (%rax),%edx
lea    0xd62(%rip),%rsi
mov    %r14,%rdi
call   10a0 <sprintf@plt>
xorps  %xmm0,%xmm0
add    $0x88,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [3 x i8] c"0x\00"
@.str.1 = [3 x i8] c"%f\00"
@.str.2 = [24 x i8] c"factor Erwartet:) [%c]\0A\00"
@.str.3 = [39 x i8] c"factor Erwartet: B0..B9 Zahl ( ) [%c]\0A\00"
define float @execFactor(i8** %0, i8* %1, float %2, i8* %3) {
%5 = alloca float
%6 = alloca i8**
%7 = alloca i8*
%8 = alloca float
%9 = alloca i8*
%10 = alloca [100 x i8]
%11 = alloca float
%12 = alloca float
%13 = alloca i8*
%14 = alloca i8*
%15 = alloca i8
%16 = alloca i32
store i8** %0, i8*** %6
store i8* %1, i8** %7
store float %2, float* %8
store i8* %3, i8** %9
%17 = load i8**, i8*** %6
%18 = call i32 @nextToken(i8** %17, i8** %14, i32* %16)
switch i32 %18, label %166 [
i32 200, label %19
i32 201, label %24
i32 202, label %29
i32 203, label %34
i32 204, label %39
i32 205, label %44
i32 206, label %49
i32 207, label %54
i32 208, label %59
i32 209, label %64
i32 300, label %69
i32 8, label %71
i32 11, label %107
i32 110, label %145
]
19: ; preds = %4
%20 = load i8*, i8** %7
%21 = getelementptr inbounds i8, i8* %20, i64 0
%22 = load i8, i8* %21
%23 = uitofp i8 %22 to float
store float %23, float* %5
br label %171
24: ; preds = %4
%25 = load i8*, i8** %7
%26 = getelementptr inbounds i8, i8* %25, i64 1
%27 = load i8, i8* %26
%28 = uitofp i8 %27 to float
store float %28, float* %5
br label %171
29: ; preds = %4
%30 = load i8*, i8** %7
%31 = getelementptr inbounds i8, i8* %30, i64 2
%32 = load i8, i8* %31
%33 = uitofp i8 %32 to float
store float %33, float* %5
br label %171
34: ; preds = %4
%35 = load i8*, i8** %7
%36 = getelementptr inbounds i8, i8* %35, i64 3
%37 = load i8, i8* %36
%38 = uitofp i8 %37 to float
store float %38, float* %5
br label %171
39: ; preds = %4
%40 = load i8*, i8** %7
%41 = getelementptr inbounds i8, i8* %40, i64 4
%42 = load i8, i8* %41
%43 = uitofp i8 %42 to float
store float %43, float* %5
br label %171
44: ; preds = %4
%45 = load i8*, i8** %7
%46 = getelementptr inbounds i8, i8* %45, i64 5
%47 = load i8, i8* %46
%48 = uitofp i8 %47 to float
store float %48, float* %5
br label %171
49: ; preds = %4
%50 = load i8*, i8** %7
%51 = getelementptr inbounds i8, i8* %50, i64 6
%52 = load i8, i8* %51
%53 = uitofp i8 %52 to float
store float %53, float* %5
br label %171
54: ; preds = %4
%55 = load i8*, i8** %7
%56 = getelementptr inbounds i8, i8* %55, i64 7
%57 = load i8, i8* %56
%58 = uitofp i8 %57 to float
store float %58, float* %5
br label %171
59: ; preds = %4
%60 = load i8*, i8** %7
%61 = getelementptr inbounds i8, i8* %60, i64 8
%62 = load i8, i8* %61
%63 = uitofp i8 %62 to float
store float %63, float* %5
br label %171
64: ; preds = %4
%65 = load i8*, i8** %7
%66 = getelementptr inbounds i8, i8* %65, i64 9
%67 = load i8, i8* %66
%68 = uitofp i8 %67 to float
store float %68, float* %5
br label %171
69: ; preds = %4
%70 = load float, float* %8
store float %70, float* %5
br label %171
71: ; preds = %4
%72 = getelementptr inbounds [100 x i8], [100 x i8]* %10, i64 0, i64 0
store i8* %72, i8** %13
%73 = getelementptr inbounds [100 x i8], [100 x i8]* %10, i64 0, i64 0
%74 = call i32 @bzero(i8* %73, i32 100)
%75 = getelementptr inbounds [100 x i8], [100 x i8]* %10, i64 0, i64 0
%76 = call i32 @strcpy(i8* %75, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%77 = load i8*, i8** %13
%78 = getelementptr inbounds i8, i8* %77, i64 2
store i8* %78, i8** %13
%79 = load i8**, i8*** %6
%80 = call i32 @nextToken(i8** %79, i8** %14, i32* %16)
%81 = trunc i32 %80 to i8
store i8 %81, i8* %15
br label %82
82: ; preds = %92, %71
%83 = load i8, i8* %15
%84 = sext i8 %83 to i32
%85 = icmp eq i32 %84, 11
br i1 %85, label %90, label %86
86: ; preds = %82
%87 = load i8, i8* %15
%88 = sext i8 %87 to i32
%89 = icmp eq i32 %88, 10
br label %90
90: ; preds = %86, %82
%91 = phi i1 [ true, %82 ], [ %89, %86 ]
br i1 %91, label %92, label %100
92: ; preds = %90
%93 = load i8*, i8** %14
%94 = load i8, i8* %93
%95 = load i8*, i8** %13
%96 = getelementptr inbounds i8, i8* %95, i32 1
store i8* %96, i8** %13
store i8 %94, i8* %95
%97 = load i8**, i8*** %6
%98 = call i32 @nextToken(i8** %97, i8** %14, i32* %16)
%99 = trunc i32 %98 to i8
store i8 %99, i8* %15
br label %82
100: ; preds = %90
%101 = load i8**, i8*** %6
%102 = load i32, i32* %16
%103 = call i32 @pushBack(i8** %101, i32 %102)
%104 = getelementptr inbounds [100 x i8], [100 x i8]* %10, i64 0, i64 0
%105 = call i32 @sscanf(i8* %104, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %12)
%106 = load float, float* %12
store float %106, float* %5
br label %171
107: ; preds = %4
%108 = getelementptr inbounds [100 x i8], [100 x i8]* %10, i64 0, i64 0
store i8* %108, i8** %13
br label %109
109: ; preds = %114, %107
%110 = load i8*, i8** %14
%111 = load i8, i8* %110
%112 = load i8*, i8** %13
%113 = getelementptr inbounds i8, i8* %112, i32 1
store i8* %113, i8** %13
store i8 %111, i8* %112
br label %114
114: ; preds = %109
%115 = load i8**, i8*** %6
%116 = call i32 @nextToken(i8** %115, i8** %14, i32* %16)
%117 = trunc i32 %116 to i8
store i8 %117, i8* %15
%118 = sext i8 %117 to i32
%119 = icmp eq i32 %118, 11
br i1 %119, label %109, label %120
120: ; preds = %114
%121 = load i8, i8* %15
%122 = sext i8 %121 to i32
%123 = icmp eq i32 %122, 12
br i1 %123, label %124, label %137
124: ; preds = %120
br label %125
125: ; preds = %130, %124
%126 = load i8*, i8** %14
%127 = load i8, i8* %126
%128 = load i8*, i8** %13
%129 = getelementptr inbounds i8, i8* %128, i32 1
store i8* %129, i8** %13
store i8 %127, i8* %128
br label %130
130: ; preds = %125
%131 = load i8**, i8*** %6
%132 = call i32 @nextToken(i8** %131, i8** %14, i32* %16)
%133 = trunc i32 %132 to i8
store i8 %133, i8* %15
%134 = sext i8 %133 to i32
%135 = icmp eq i32 %134, 11
br i1 %135, label %125, label %136
136: ; preds = %130
br label %137
137: ; preds = %136, %120
%138 = load i8**, i8*** %6
%139 = load i32, i32* %16
%140 = call i32 @pushBack(i8** %138, i32 %139)
%141 = load i8*, i8** %13
store i8 0, i8* %141
%142 = getelementptr inbounds [100 x i8], [100 x i8]* %10, i64 0, i64 0
%143 = call float @atof(i8* %142)
store float %143, float* %12
%144 = load float, float* %12
store float %144, float* %5
br label %171
145: ; preds = %4
%146 = load i8**, i8*** %6
%147 = load i8*, i8** %7
%148 = load float, float* %8
%149 = load i8*, i8** %9
%150 = call float @execExpression(i8** %146, i8* %147, float %148, i8* %149)
store float %150, float* %11
%151 = load i8*, i8** %9
%152 = load i8, i8* %151
%153 = icmp ne i8 %152, 0
br i1 %153, label %154, label %155
154: ; preds = %145
store float 0.000000e+00, float* %5
br label %171
155: ; preds = %145
%156 = load i8**, i8*** %6
%157 = call i32 @nextToken(i8** %156, i8** %14, i32* %16)
%158 = icmp ne i32 %157, 111
br i1 %158, label %159, label %164
159: ; preds = %155
%160 = load i8*, i8** %9
%161 = load i8*, i8** %14
%162 = load i8, i8* %161
%163 = call i32 @sprintf(i8* %160, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i8 signext %162)
store float 0.000000e+00, float* %5
br label %171
164: ; preds = %155
%165 = load float, float* %11
store float %165, float* %5
br label %171
166: ; preds = %4
%167 = load i8*, i8** %9
%168 = load i8*, i8** %14
%169 = load i8, i8* %168
%170 = call i32 @sprintf(i8* %167, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.3, i64 0, i64 0), i8 signext %169)
store float 0.000000e+00, float* %5
br label %171
171: ; preds = %166, %164, %159, %154, %137, %100, %69, %64, %59, %54, %49, %44, %39, %34, %29, %24, %19
%172 = load float, float* %5
ret float %172
}

LLVM IR (-O2):
@.str = [3 x i8] c"0x\00"
@.str.1 = [3 x i8] c"%f\00"
@.str.2 = [24 x i8] c"factor Erwartet:) [%c]\0A\00"
@.str.3 = [39 x i8] c"factor Erwartet: B0..B9 Zahl ( ) [%c]\0A\00"
define float @execFactor(i8** %0, i8* %1, float %2, i8* %3) {
%5 = alloca [100 x i8]
%6 = alloca float
%7 = alloca i8*
%8 = alloca i32
%9 = getelementptr inbounds [100 x i8], [100 x i8]* %5, i64 0, i64 0
%10 = bitcast float* %6 to i8*
%11 = bitcast i8** %7 to i8*
%12 = bitcast i32* %8 to i8*
%13 = call i32 @nextToken(i8** %0, i8** %7, i32* %8)
switch i32 %13, label %105 [
i32 200, label %14
i32 201, label %17
i32 202, label %21
i32 203, label %25
i32 204, label %29
i32 205, label %33
i32 206, label %37
i32 207, label %41
i32 208, label %45
i32 209, label %49
i32 300, label %109
i32 8, label %53
i32 11, label %74
i32 110, label %94
]
14: ; preds = %4
%15 = load i8, i8* %1
%16 = uitofp i8 %15 to float
br label %109
17: ; preds = %4
%18 = getelementptr inbounds i8, i8* %1, i64 1
%19 = load i8, i8* %18
%20 = uitofp i8 %19 to float
br label %109
21: ; preds = %4
%22 = getelementptr inbounds i8, i8* %1, i64 2
%23 = load i8, i8* %22
%24 = uitofp i8 %23 to float
br label %109
25: ; preds = %4
%26 = getelementptr inbounds i8, i8* %1, i64 3
%27 = load i8, i8* %26
%28 = uitofp i8 %27 to float
br label %109
29: ; preds = %4
%30 = getelementptr inbounds i8, i8* %1, i64 4
%31 = load i8, i8* %30
%32 = uitofp i8 %31 to float
br label %109
33: ; preds = %4
%34 = getelementptr inbounds i8, i8* %1, i64 5
%35 = load i8, i8* %34
%36 = uitofp i8 %35 to float
br label %109
37: ; preds = %4
%38 = getelementptr inbounds i8, i8* %1, i64 6
%39 = load i8, i8* %38
%40 = uitofp i8 %39 to float
br label %109
41: ; preds = %4
%42 = getelementptr inbounds i8, i8* %1, i64 7
%43 = load i8, i8* %42
%44 = uitofp i8 %43 to float
br label %109
45: ; preds = %4
%46 = getelementptr inbounds i8, i8* %1, i64 8
%47 = load i8, i8* %46
%48 = uitofp i8 %47 to float
br label %109
49: ; preds = %4
%50 = getelementptr inbounds i8, i8* %1, i64 9
%51 = load i8, i8* %50
%52 = uitofp i8 %51 to float
br label %109
53: ; preds = %4
%54 = call i32 @bzero(i8* %9, i32 100)
%55 = call i32 @strcpy(i8* %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%56 = call i32 @nextToken(i8** %0, i8** %7, i32* %8)
%57 = and i32 %56, 254
%58 = icmp eq i32 %57, 10
br i1 %58, label %59, label %69
59: ; preds = %53
%60 = getelementptr inbounds [100 x i8], [100 x i8]* %5, i64 0, i64 2
br label %61
61: ; preds = %59, %61
%62 = phi i8* [ %65, %61 ], [ %60, %59 ]
%63 = load i8*, i8** %7
%64 = load i8, i8* %63
%65 = getelementptr inbounds i8, i8* %62, i64 1
store i8 %64, i8* %62
%66 = call i32 @nextToken(i8** %0, i8** %7, i32* %8)
%67 = and i32 %66, 254
%68 = icmp eq i32 %67, 10
br i1 %68, label %61, label %69
69: ; preds = %61, %53
%70 = load i32, i32* %8
%71 = call i32 @pushBack(i8** %0, i32 %70)
%72 = call i32 @sscanf(i8* %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %6)
%73 = load float, float* %6
br label %109
74: ; preds = %4, %74
%75 = phi i8* [ %78, %74 ], [ %9, %4 ]
%76 = load i8*, i8** %7
%77 = load i8, i8* %76
%78 = getelementptr inbounds i8, i8* %75, i64 1
store i8 %77, i8* %75
%79 = call i32 @nextToken(i8** %0, i8** %7, i32* %8)
%80 = shl i32 %79, 24
switch i32 %80, label %89 [
i32 184549376, label %74
i32 201326592, label %81
]
81: ; preds = %74, %81
%82 = phi i8* [ %85, %81 ], [ %78, %74 ]
%83 = load i8*, i8** %7
%84 = load i8, i8* %83
%85 = getelementptr inbounds i8, i8* %82, i64 1
store i8 %84, i8* %82
%86 = call i32 @nextToken(i8** %0, i8** %7, i32* %8)
%87 = and i32 %86, 255
%88 = icmp eq i32 %87, 11
br i1 %88, label %81, label %89
89: ; preds = %74, %81
%90 = phi i8* [ %85, %81 ], [ %78, %74 ]
%91 = load i32, i32* %8
%92 = call i32 @pushBack(i8** %0, i32 %91)
store i8 0, i8* %90
%93 = call float @atof(i8* %9)
store float %93, float* %6
br label %109
94: ; preds = %4
%95 = call float @execExpression(i8** %0, i8* %1, float %2, i8* %3)
%96 = load i8, i8* %3
%97 = icmp eq i8 %96, 0
br i1 %97, label %98, label %109
98: ; preds = %94
%99 = call i32 @nextToken(i8** %0, i8** %7, i32* %8)
%100 = icmp eq i32 %99, 111
br i1 %100, label %109, label %101
101: ; preds = %98
%102 = load i8*, i8** %7
%103 = load i8, i8* %102
%104 = call i32 @sprintf(i8* %3, i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i8 signext %103)
br label %109
105: ; preds = %4
%106 = load i8*, i8** %7
%107 = load i8, i8* %106
%108 = call i32 @sprintf(i8* dereferenceable(1) %3, i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.3, i64 0, i64 0), i8 signext %107)
br label %109
109: ; preds = %98, %94, %4, %105, %101, %89, %69, %49, %45, %41, %37, %33, %29, %25, %21, %17, %14
%110 = phi float [ 0.000000e+00, %105 ], [ 0.000000e+00, %101 ], [ %93, %89 ], [ %73, %69 ], [ %52, %49 ], [ %48, %45 ], [ %44, %41 ], [ %40, %37 ], [ %36, %33 ], [ %32, %29 ], [ %28, %25 ], [ %24, %21 ], [ %20, %17 ], [ %16, %14 ], [ %2, %4 ], [ 0.000000e+00, %94 ], [ %95, %98 ]
ret float %110
}