#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 */
double flaecheDreieck(double, double);
double flaecheKreis(double);
double flaecheTrapez(double, double, double);
int /*<<< orphan*/ printf(char *, ...);
int sscanf(char *, char *, double *, ...);
int main(int argc, char *argv[]) {
  int i, kreisc = 0, trapezc = 0, dreieckc = 0, fehler = 0;
  double r = 0, g = 0, h = 0, a = 0, c = 0;
  char chr;
  for (i = 1; i < argc; i++) {
    if (argv[i][0] == '-') {
      switch (argv[i][1]) {
      case 'k':
        if ((fehler == 0) && (argc > 2) &&
            (sscanf(argv[i + 1], "%lf%c", &r, &chr) == 1) && (r > 0)) {
          return 0;
          break;
        } else {
          printf("Usage: ueb03 [-k <r> | -d <g> <h> | -t <h> <a> <c>] \n");
          fehler = 1;
          return 1;
          break;
        }
      case 'd':
        if ((fehler == 0) && (argc > 3) &&
            (sscanf(argv[i + 1], "%lf%c", &g, &chr) == 1) &&
            (sscanf(argv[i + 2], "%lf%c", &h, &chr) == 1) && (g > 0) &&
            (h > 0)) {
          return 0;
          break;
        } else {
          printf("Usage: ueb03 [-k <r> | -d <g> <h> | -t <h> <a> <c>] \n");
          fehler = 1;
          return 1;
          break;
        }
      case 't':
        if ((fehler == 0) && (argc > 4) &&
            (sscanf(argv[i + 1], "%lf%c", &h, &chr) == 1) &&
            (sscanf(argv[i + 2], "%lf%c", &a, &chr) == 1) &&
            (sscanf(argv[i + 3], "%lf%c", &c, &chr) == 1) && (h > 0) &&
            (a > 0) && (c > 0)) {
          return 0;
          break;
        } else {
          printf("Usage: ueb03 [-k <r> | -d <g> <h> | -t <h> <a> <c>] \n");
          fehler = 1;
          return 1;
          break;
        }
      default:
        printf("Usage: ueb03 [-k <r> | -d <g> <h> | -t <h> <a> <c>] \n");
        fehler = 1;
        return 1;
        break;
      }
    }
  }
  if (fehler == 0) {
    for (i = 1; i < argc; i++) {
      if (argv[i][0] == '-') {
        switch (argv[i][1]) {
        case 'k':
          kreisc++;
          sscanf(argv[i + 1], "%lf", &r);
          printf("Kreis%d: %.3f \n", kreisc, flaecheKreis(r));
          break;
        case 'd':
          dreieckc++;
          sscanf(argv[i + 1], "%lf", &g);
          sscanf(argv[i + 2], "%lf", &h);
          printf("Dreieck%d: %.3f \n", dreieckc, flaecheDreieck(g, h));
          break;
        case 't':
          trapezc++;
          sscanf(argv[i + 1], "%lf", &h);
          sscanf(argv[i + 2], "%lf", &a);
          sscanf(argv[i + 3], "%lf", &c);
          printf("Trapez%d: %.3f \n", trapezc, flaecheTrapez(h, a, c));
          break;
        }
      }
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x30(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x38(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x40(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x48(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x50(%rbp)
movl   $0x1,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    149b <main+0x34b>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsbl (%rax),%eax
cmp    $0x2d,%eax
jne    1488 <main+0x338>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsbl 0x1(%rax),%eax
mov    %eax,-0x58(%rbp)
sub    $0x64,%eax
je     129b <main+0x14b>
jmp    11f6 <main+0xa6>
mov    -0x58(%rbp),%eax
sub    $0x6b,%eax
je     1218 <main+0xc8>
jmp    1207 <main+0xb7>
mov    -0x58(%rbp),%eax
sub    $0x74,%eax
je     1360 <main+0x210>
jmp    1467 <main+0x317>
cmpl   $0x0,-0x24(%rbp)
jne    127a <main+0x12a>
cmpl   $0x2,-0x8(%rbp)
jle    127a <main+0x12a>
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xdbc(%rip),%rsi
lea    -0x30(%rbp),%rdx
lea    -0x51(%rbp),%rcx
mov    $0x0,%al
call   1070 <sscanf@plt>
cmp    $0x1,%eax
jne    127a <main+0x12a>
movsd  -0x30(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    127a <main+0x12a>
movl   $0x0,-0x4(%rbp)
jmp    16a0 <main+0x550>
lea    0xd85(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x1,-0x24(%rbp)
movl   $0x1,-0x4(%rbp)
jmp    16a0 <main+0x550>
cmpl   $0x0,-0x24(%rbp)
jne    133f <main+0x1ef>
cmpl   $0x3,-0x8(%rbp)
jle    133f <main+0x1ef>
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xd39(%rip),%rsi
lea    -0x38(%rbp),%rdx
lea    -0x51(%rbp),%rcx
mov    $0x0,%al
call   1070 <sscanf@plt>
cmp    $0x1,%eax
jne    133f <main+0x1ef>
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xd09(%rip),%rsi
lea    -0x40(%rbp),%rdx
lea    -0x51(%rbp),%rcx
mov    $0x0,%al
call   1070 <sscanf@plt>
cmp    $0x1,%eax
jne    133f <main+0x1ef>
movsd  -0x38(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    133f <main+0x1ef>
movsd  -0x40(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    133f <main+0x1ef>
movl   $0x0,-0x4(%rbp)
jmp    16a0 <main+0x550>
lea    0xcc0(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x1,-0x24(%rbp)
movl   $0x1,-0x4(%rbp)
jmp    16a0 <main+0x550>
cmpl   $0x0,-0x24(%rbp)
jne    1446 <main+0x2f6>
cmpl   $0x4,-0x8(%rbp)
jle    1446 <main+0x2f6>
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xc74(%rip),%rsi
lea    -0x40(%rbp),%rdx
lea    -0x51(%rbp),%rcx
mov    $0x0,%al
call   1070 <sscanf@plt>
cmp    $0x1,%eax
jne    1446 <main+0x2f6>
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xc44(%rip),%rsi
lea    -0x48(%rbp),%rdx
lea    -0x51(%rbp),%rcx
mov    $0x0,%al
call   1070 <sscanf@plt>
cmp    $0x1,%eax
jne    1446 <main+0x2f6>
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
add    $0x3,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xc14(%rip),%rsi
lea    -0x50(%rbp),%rdx
lea    -0x51(%rbp),%rcx
mov    $0x0,%al
call   1070 <sscanf@plt>
cmp    $0x1,%eax
jne    1446 <main+0x2f6>
movsd  -0x40(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    1446 <main+0x2f6>
movsd  -0x48(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    1446 <main+0x2f6>
movsd  -0x50(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    1446 <main+0x2f6>
movl   $0x0,-0x4(%rbp)
jmp    16a0 <main+0x550>
lea    0xbb9(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x1,-0x24(%rbp)
movl   $0x1,-0x4(%rbp)
jmp    16a0 <main+0x550>
lea    0xb98(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x1,-0x24(%rbp)
movl   $0x1,-0x4(%rbp)
jmp    16a0 <main+0x550>
jmp    148d <main+0x33d>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    11b1 <main+0x61>
cmpl   $0x0,-0x24(%rbp)
jne    1699 <main+0x549>
movl   $0x1,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1694 <main+0x544>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsbl (%rax),%eax
cmp    $0x2d,%eax
jne    1681 <main+0x531>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsbl 0x1(%rax),%eax
mov    %eax,-0x5c(%rbp)
sub    $0x64,%eax
je     1565 <main+0x415>
jmp    14f1 <main+0x3a1>
mov    -0x5c(%rbp),%eax
sub    $0x6b,%eax
je     1513 <main+0x3c3>
jmp    1502 <main+0x3b2>
mov    -0x5c(%rbp),%eax
sub    $0x74,%eax
je     15df <main+0x48f>
jmp    167c <main+0x52c>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xb08(%rip),%rsi
lea    -0x30(%rbp),%rdx
mov    $0x0,%al
call   1070 <sscanf@plt>
mov    -0x18(%rbp),%eax
mov    %eax,-0x60(%rbp)
movsd  -0x30(%rbp),%xmm0
call   1060 <flaecheKreis@plt>
mov    -0x60(%rbp),%esi
lea    0xae7(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
jmp    167c <main+0x52c>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xab6(%rip),%rsi
lea    -0x38(%rbp),%rdx
mov    $0x0,%al
call   1070 <sscanf@plt>
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xa93(%rip),%rsi
lea    -0x40(%rbp),%rdx
mov    $0x0,%al
call   1070 <sscanf@plt>
mov    -0x20(%rbp),%eax
mov    %eax,-0x64(%rbp)
movsd  -0x38(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm1
call   1050 <flaecheDreieck@plt>
mov    -0x64(%rbp),%esi
lea    0xa7d(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
jmp    167c <main+0x52c>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xa3c(%rip),%rsi
lea    -0x40(%rbp),%rdx
mov    $0x0,%al
call   1070 <sscanf@plt>
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xa19(%rip),%rsi
lea    -0x48(%rbp),%rdx
mov    $0x0,%al
call   1070 <sscanf@plt>
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
add    $0x3,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rdi
lea    0x9f6(%rip),%rsi
lea    -0x50(%rbp),%rdx
mov    $0x0,%al
call   1070 <sscanf@plt>
mov    -0x1c(%rbp),%eax
mov    %eax,-0x68(%rbp)
movsd  -0x40(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm1
movsd  -0x50(%rbp),%xmm2
call   1030 <flaecheTrapez@plt>
mov    -0x68(%rbp),%esi
lea    0x9ed(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
jmp    1681 <main+0x531>
jmp    1686 <main+0x536>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    14ac <main+0x35c>
jmp    1699 <main+0x549>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
movq   $0x0,0x38(%rsp)
movq   $0x0,0x30(%rsp)
movq   $0x0,0x10(%rsp)
movq   $0x0,0x28(%rsp)
movq   $0x0,0x20(%rsp)
xor    %r14d,%r14d
cmp    $0x2,%edi
jl     14d4 <main+0x374>
mov    %rsi,%rbx
mov    %edi,%r12d
lea    -0x1(%r12),%rax
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    0x8(%rbx,%rbp,8),%rcx
cmpb   $0x2d,(%rcx)
je     1343 <main+0x1e3>
add    $0x1,%rbp
cmp    %rbp,%rax
jne    11c0 <main+0x60>
xor    %r14d,%r14d
cmp    $0x2,%edi
jl     14d4 <main+0x374>
add    $0xffffffffffffffff,%r12
lea    0x10(%rsp),%r13
xor    %r14d,%r14d
movl   $0x0,0x1c(%rsp)
xor    %r15d,%r15d
movl   $0x0,0x18(%rsp)
jmp    127e <main+0x11e>
add    $0x1,%r15d
mov    0x10(%rbx,%r14,8),%rdi
lea    0xdf2(%rip),%rbp
mov    %rbp,%rsi
mov    %r13,%rdx
xor    %eax,%eax
call   1080 <sscanf@plt>
mov    0x18(%rbx,%r14,8),%rdi
mov    %rbp,%rsi
lea    0x28(%rsp),%rdx
xor    %eax,%eax
call   1080 <sscanf@plt>
mov    0x20(%rbx,%r14,8),%rdi
mov    %rbp,%rsi
lea    0x20(%rsp),%rdx
xor    %eax,%eax
call   1080 <sscanf@plt>
movsd  0x10(%rsp),%xmm0
movsd  0x28(%rsp),%xmm1
movsd  0x20(%rsp),%xmm2
call   1030 <flaecheTrapez@plt>
lea    0xdc5(%rip),%rdi
mov    %r15d,%esi
mov    $0x1,%al
call   1050 <printf@plt>
add    $0x1,%r14
cmp    %r14,%r12
je     139b <main+0x23b>
mov    0x8(%rbx,%r14,8),%rax
cmpb   $0x2d,(%rax)
jne    1271 <main+0x111>
movsbl 0x1(%rax),%eax
cmp    $0x64,%eax
je     12d8 <main+0x178>
cmp    $0x74,%eax
je     1204 <main+0xa4>
cmp    $0x6b,%eax
jne    1271 <main+0x111>
mov    0x18(%rsp),%ebp
add    $0x1,%ebp
mov    0x10(%rbx,%r14,8),%rdi
lea    0xd54(%rip),%rsi
lea    0x38(%rsp),%rdx
xor    %eax,%eax
call   1080 <sscanf@plt>
movsd  0x38(%rsp),%xmm0
call   1070 <flaecheKreis@plt>
lea    0xd3a(%rip),%rdi
mov    %ebp,0x18(%rsp)
mov    %ebp,%esi
jmp    126a <main+0x10a>
mov    %r15d,0x44(%rsp)
mov    0x1c(%rsp),%r15d
add    $0x1,%r15d
mov    0x10(%rbx,%r14,8),%rdi
mov    %r13,%rbp
lea    0xd11(%rip),%r13
mov    %r13,%rsi
lea    0x30(%rsp),%rdx
xor    %eax,%eax
call   1080 <sscanf@plt>
mov    0x18(%rbx,%r14,8),%rdi
mov    %r13,%rsi
mov    %rbp,%r13
mov    %rbp,%rdx
xor    %eax,%eax
call   1080 <sscanf@plt>
movsd  0x30(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
call   1060 <flaecheDreieck@plt>
lea    0xce9(%rip),%rdi
mov    %r15d,0x1c(%rsp)
mov    %r15d,%esi
mov    0x44(%rsp),%r15d
jmp    126a <main+0x10a>
movsbl 0x1(%rcx),%eax
cmp    $0x64,%eax
je     13a3 <main+0x243>
cmp    $0x74,%eax
je     1424 <main+0x2c4>
cmp    $0x6b,%eax
jne    14c2 <main+0x362>
cmp    $0x3,%edi
jl     14c2 <main+0x362>
mov    0x10(%rbx,%rbp,8),%rdi
lea    0xc8d(%rip),%rsi
xor    %r14d,%r14d
lea    0x38(%rsp),%rdx
lea    0xf(%rsp),%rcx
xor    %eax,%eax
call   1080 <sscanf@plt>
cmp    $0x1,%eax
jne    14c2 <main+0x362>
movsd  0x38(%rsp),%xmm0
jmp    14b8 <main+0x358>
xor    %r14d,%r14d
jmp    14d4 <main+0x374>
cmp    $0x4,%edi
jl     14c2 <main+0x362>
mov    0x10(%rbx,%rbp,8),%rdi
lea    0xc48(%rip),%rsi
xor    %r14d,%r14d
lea    0x30(%rsp),%rdx
lea    0xf(%rsp),%rcx
xor    %eax,%eax
call   1080 <sscanf@plt>
cmp    $0x1,%eax
jne    14c2 <main+0x362>
mov    0x18(%rbx,%rbp,8),%rdi
lea    0xc1f(%rip),%rsi
lea    0x10(%rsp),%rdx
lea    0xf(%rsp),%rcx
xor    %eax,%eax
call   1080 <sscanf@plt>
cmp    $0x1,%eax
jne    14c2 <main+0x362>
movsd  0x30(%rsp),%xmm1
xorpd  %xmm0,%xmm0
ucomisd %xmm0,%xmm1
jbe    14c2 <main+0x362>
movsd  0x10(%rsp),%xmm1
ucomisd %xmm0,%xmm1
ja     14d4 <main+0x374>
jmp    14c2 <main+0x362>
cmp    $0x5,%edi
jl     14c2 <main+0x362>
mov    0x10(%rbx,%rbp,8),%rdi
lea    0xbc7(%rip),%rsi
lea    0x10(%rsp),%rdx
lea    0xf(%rsp),%rcx
xor    %eax,%eax
call   1080 <sscanf@plt>
cmp    $0x1,%eax
jne    14c2 <main+0x362>
mov    0x18(%rbx,%rbp,8),%rdi
lea    0xba5(%rip),%rsi
xor    %r14d,%r14d
lea    0x28(%rsp),%rdx
lea    0xf(%rsp),%rcx
xor    %eax,%eax
call   1080 <sscanf@plt>
cmp    $0x1,%eax
jne    14c2 <main+0x362>
mov    0x20(%rbx,%rbp,8),%rdi
lea    0xb80(%rip),%rsi
lea    0x20(%rsp),%rdx
lea    0xf(%rsp),%rcx
xor    %eax,%eax
call   1080 <sscanf@plt>
cmp    $0x1,%eax
jne    14c2 <main+0x362>
movsd  0x10(%rsp),%xmm1
xorpd  %xmm0,%xmm0
ucomisd %xmm0,%xmm1
jbe    14c2 <main+0x362>
movsd  0x28(%rsp),%xmm1
ucomisd %xmm0,%xmm1
jbe    14c2 <main+0x362>
movsd  0x20(%rsp),%xmm0
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
ja     14d4 <main+0x374>
lea    0xb74(%rip),%rdi
call   1040 <puts@plt>
mov    $0x1,%r14d
mov    %r14d,%eax
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [6 x i8] c"%lf%c\00"
@.str.1 = [54 x i8] c"Usage: ueb03 [-k <r> | -d <g> <h> | -t <h> <a> <c>] \0A\00"
@.str.2 = [4 x i8] c"%lf\00"
@.str.3 = [16 x i8] c"Kreis%d: %.3f \0A\00"
@.str.4 = [18 x i8] c"Dreieck%d: %.3f \0A\00"
@.str.5 = [17 x i8] c"Trapez%d: %.3f \0A\00"
define i32 @main(i32 %0, i8** %1) {
%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 double
%12 = alloca double
%13 = alloca double
%14 = alloca double
%15 = alloca double
%16 = alloca i8
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %7
store i32 0, i32* %8
store i32 0, i32* %9
store i32 0, i32* %10
store double 0.000000e+00, double* %11
store double 0.000000e+00, double* %12
store double 0.000000e+00, double* %13
store double 0.000000e+00, double* %14
store double 0.000000e+00, double* %15
store i32 1, i32* %6
br label %17
17: ; preds = %142, %2
%18 = load i32, i32* %6
%19 = load i32, i32* %4
%20 = icmp slt i32 %18, %19
br i1 %20, label %21, label %145
21: ; preds = %17
%22 = load i8**, i8*** %5
%23 = load i32, i32* %6
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i8*, i8** %22, i64 %24
%26 = load i8*, i8** %25
%27 = getelementptr inbounds i8, i8* %26, i64 0
%28 = load i8, i8* %27
%29 = sext i8 %28 to i32
%30 = icmp eq i32 %29, 45
br i1 %30, label %31, label %141
31: ; preds = %21
%32 = load i8**, i8*** %5
%33 = load i32, i32* %6
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i8*, i8** %32, i64 %34
%36 = load i8*, i8** %35
%37 = getelementptr inbounds i8, i8* %36, i64 1
%38 = load i8, i8* %37
%39 = sext i8 %38 to i32
switch i32 %39, label %139 [
i32 107, label %40
i32 100, label %61
i32 116, label %94
]
40: ; preds = %31
%41 = load i32, i32* %10
%42 = icmp eq i32 %41, 0
br i1 %42, label %43, label %59
43: ; preds = %40
%44 = load i32, i32* %4
%45 = icmp sgt i32 %44, 2
br i1 %45, label %46, label %59
46: ; preds = %43
%47 = load i8**, i8*** %5
%48 = load i32, i32* %6
%49 = add nsw i32 %48, 1
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds i8*, i8** %47, i64 %50
%52 = load i8*, i8** %51
%53 = call i32 (i8*, i8*, double*, ...) @sscanf(i8* %52, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), double* %11, i8* %16)
%54 = icmp eq i32 %53, 1
br i1 %54, label %55, label %59
55: ; preds = %46
%56 = load double, double* %11
%57 = fcmp ogt double %56, 0.000000e+00
br i1 %57, label %58, label %59
58: ; preds = %55
store i32 0, i32* %3
br label %245
59: ; preds = %55, %46, %43, %40
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.1, i64 0, i64 0))
store i32 1, i32* %10
store i32 1, i32* %3
br label %245
61: ; preds = %31
%62 = load i32, i32* %10
%63 = icmp eq i32 %62, 0
br i1 %63, label %64, label %92
64: ; preds = %61
%65 = load i32, i32* %4
%66 = icmp sgt i32 %65, 3
br i1 %66, label %67, label %92
67: ; preds = %64
%68 = load i8**, i8*** %5
%69 = load i32, i32* %6
%70 = add nsw i32 %69, 1
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds i8*, i8** %68, i64 %71
%73 = load i8*, i8** %72
%74 = call i32 (i8*, i8*, double*, ...) @sscanf(i8* %73, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), double* %12, i8* %16)
%75 = icmp eq i32 %74, 1
br i1 %75, label %76, label %92
76: ; preds = %67
%77 = load i8**, i8*** %5
%78 = load i32, i32* %6
%79 = add nsw i32 %78, 2
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds i8*, i8** %77, i64 %80
%82 = load i8*, i8** %81
%83 = call i32 (i8*, i8*, double*, ...) @sscanf(i8* %82, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), double* %13, i8* %16)
%84 = icmp eq i32 %83, 1
br i1 %84, label %85, label %92
85: ; preds = %76
%86 = load double, double* %12
%87 = fcmp ogt double %86, 0.000000e+00
br i1 %87, label %88, label %92
88: ; preds = %85
%89 = load double, double* %13
%90 = fcmp ogt double %89, 0.000000e+00
br i1 %90, label %91, label %92
91: ; preds = %88
store i32 0, i32* %3
br label %245
92: ; preds = %88, %85, %76, %67, %64, %61
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.1, i64 0, i64 0))
store i32 1, i32* %10
store i32 1, i32* %3
br label %245
94: ; preds = %31
%95 = load i32, i32* %10
%96 = icmp eq i32 %95, 0
br i1 %96, label %97, label %137
97: ; preds = %94
%98 = load i32, i32* %4
%99 = icmp sgt i32 %98, 4
br i1 %99, label %100, label %137
100: ; preds = %97
%101 = load i8**, i8*** %5
%102 = load i32, i32* %6
%103 = add nsw i32 %102, 1
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds i8*, i8** %101, i64 %104
%106 = load i8*, i8** %105
%107 = call i32 (i8*, i8*, double*, ...) @sscanf(i8* %106, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), double* %13, i8* %16)
%108 = icmp eq i32 %107, 1
br i1 %108, label %109, label %137
109: ; preds = %100
%110 = load i8**, i8*** %5
%111 = load i32, i32* %6
%112 = add nsw i32 %111, 2
%113 = sext i32 %112 to i64
%114 = getelementptr inbounds i8*, i8** %110, i64 %113
%115 = load i8*, i8** %114
%116 = call i32 (i8*, i8*, double*, ...) @sscanf(i8* %115, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), double* %14, i8* %16)
%117 = icmp eq i32 %116, 1
br i1 %117, label %118, label %137
118: ; preds = %109
%119 = load i8**, i8*** %5
%120 = load i32, i32* %6
%121 = add nsw i32 %120, 3
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds i8*, i8** %119, i64 %122
%124 = load i8*, i8** %123
%125 = call i32 (i8*, i8*, double*, ...) @sscanf(i8* %124, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), double* %15, i8* %16)
%126 = icmp eq i32 %125, 1
br i1 %126, label %127, label %137
127: ; preds = %118
%128 = load double, double* %13
%129 = fcmp ogt double %128, 0.000000e+00
br i1 %129, label %130, label %137
130: ; preds = %127
%131 = load double, double* %14
%132 = fcmp ogt double %131, 0.000000e+00
br i1 %132, label %133, label %137
133: ; preds = %130
%134 = load double, double* %15
%135 = fcmp ogt double %134, 0.000000e+00
br i1 %135, label %136, label %137
136: ; preds = %133
store i32 0, i32* %3
br label %245
137: ; preds = %133, %130, %127, %118, %109, %100, %97, %94
%138 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.1, i64 0, i64 0))
store i32 1, i32* %10
store i32 1, i32* %3
br label %245
139: ; preds = %31
%140 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.1, i64 0, i64 0))
store i32 1, i32* %10
store i32 1, i32* %3
br label %245
141: ; preds = %21
br label %142
142: ; preds = %141
%143 = load i32, i32* %6
%144 = add nsw i32 %143, 1
store i32 %144, i32* %6
br label %17
145: ; preds = %17
%146 = load i32, i32* %10
%147 = icmp eq i32 %146, 0
br i1 %147, label %148, label %244
148: ; preds = %145
store i32 1, i32* %6
br label %149
149: ; preds = %240, %148
%150 = load i32, i32* %6
%151 = load i32, i32* %4
%152 = icmp slt i32 %150, %151
br i1 %152, label %153, label %243
153: ; preds = %149
%154 = load i8**, i8*** %5
%155 = load i32, i32* %6
%156 = sext i32 %155 to i64
%157 = getelementptr inbounds i8*, i8** %154, i64 %156
%158 = load i8*, i8** %157
%159 = getelementptr inbounds i8, i8* %158, i64 0
%160 = load i8, i8* %159
%161 = sext i8 %160 to i32
%162 = icmp eq i32 %161, 45
br i1 %162, label %163, label %239
163: ; preds = %153
%164 = load i8**, i8*** %5
%165 = load i32, i32* %6
%166 = sext i32 %165 to i64
%167 = getelementptr inbounds i8*, i8** %164, i64 %166
%168 = load i8*, i8** %167
%169 = getelementptr inbounds i8, i8* %168, i64 1
%170 = load i8, i8* %169
%171 = sext i8 %170 to i32
switch i32 %171, label %238 [
i32 107, label %172
i32 100, label %186
i32 116, label %208
]
172: ; preds = %163
%173 = load i32, i32* %7
%174 = add nsw i32 %173, 1
store i32 %174, i32* %7
%175 = load i8**, i8*** %5
%176 = load i32, i32* %6
%177 = add nsw i32 %176, 1
%178 = sext i32 %177 to i64
%179 = getelementptr inbounds i8*, i8** %175, i64 %178
%180 = load i8*, i8** %179
%181 = call i32 (i8*, i8*, double*, ...) @sscanf(i8* %180, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), double* %11)
%182 = load i32, i32* %7
%183 = load double, double* %11
%184 = call double @flaecheKreis(double %183)
%185 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i32 %182, double %184)
br label %238
186: ; preds = %163
%187 = load i32, i32* %9
%188 = add nsw i32 %187, 1
store i32 %188, i32* %9
%189 = load i8**, i8*** %5
%190 = load i32, i32* %6
%191 = add nsw i32 %190, 1
%192 = sext i32 %191 to i64
%193 = getelementptr inbounds i8*, i8** %189, i64 %192
%194 = load i8*, i8** %193
%195 = call i32 (i8*, i8*, double*, ...) @sscanf(i8* %194, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), double* %12)
%196 = load i8**, i8*** %5
%197 = load i32, i32* %6
%198 = add nsw i32 %197, 2
%199 = sext i32 %198 to i64
%200 = getelementptr inbounds i8*, i8** %196, i64 %199
%201 = load i8*, i8** %200
%202 = call i32 (i8*, i8*, double*, ...) @sscanf(i8* %201, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), double* %13)
%203 = load i32, i32* %9
%204 = load double, double* %12
%205 = load double, double* %13
%206 = call double @flaecheDreieck(double %204, double %205)
%207 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0), i32 %203, double %206)
br label %238
208: ; preds = %163
%209 = load i32, i32* %8
%210 = add nsw i32 %209, 1
store i32 %210, i32* %8
%211 = load i8**, i8*** %5
%212 = load i32, i32* %6
%213 = add nsw i32 %212, 1
%214 = sext i32 %213 to i64
%215 = getelementptr inbounds i8*, i8** %211, i64 %214
%216 = load i8*, i8** %215
%217 = call i32 (i8*, i8*, double*, ...) @sscanf(i8* %216, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), double* %13)
%218 = load i8**, i8*** %5
%219 = load i32, i32* %6
%220 = add nsw i32 %219, 2
%221 = sext i32 %220 to i64
%222 = getelementptr inbounds i8*, i8** %218, i64 %221
%223 = load i8*, i8** %222
%224 = call i32 (i8*, i8*, double*, ...) @sscanf(i8* %223, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), double* %14)
%225 = load i8**, i8*** %5
%226 = load i32, i32* %6
%227 = add nsw i32 %226, 3
%228 = sext i32 %227 to i64
%229 = getelementptr inbounds i8*, i8** %225, i64 %228
%230 = load i8*, i8** %229
%231 = call i32 (i8*, i8*, double*, ...) @sscanf(i8* %230, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), double* %15)
%232 = load i32, i32* %8
%233 = load double, double* %13
%234 = load double, double* %14
%235 = load double, double* %15
%236 = call double @flaecheTrapez(double %233, double %234, double %235)
%237 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0), i32 %232, double %236)
br label %238
238: ; preds = %163, %208, %186, %172
br label %239
239: ; preds = %238, %153
br label %240
240: ; preds = %239
%241 = load i32, i32* %6
%242 = add nsw i32 %241, 1
store i32 %242, i32* %6
br label %149
243: ; preds = %149
br label %244
244: ; preds = %243, %145
store i32 0, i32* %3
br label %245
245: ; preds = %244, %139, %137, %136, %92, %91, %59, %58
%246 = load i32, i32* %3
ret i32 %246
}

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