#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 */
char EOF;
int atoi(char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
char getopt(int, char **, char *);
int /*<<< orphan*/ help();
char *optarg;
scalar_t__ optind;
double pow(double, int);
int /*<<< orphan*/ printf(char *, double, double, double, double);
int /*<<< orphan*/ stderr;
void inflammation(int argc, char *argv[]) {
  int N = 80;
  char ch;
  double Ts = 0.1;
  double headerFlag = 0;
  double P = 1;
  double W = 0;
  double D = 0;
  double CA = 0.125;
  double kpm = 0.6;
  double kmp = 0.01;
  double sm = 0.005;
  double um = 0.002;
  double kpg = 0.3;
  double pinf = 20e6;
  double kpn = 1.8;
  double knp = 0.1;
  double knn = 0.01;
  double snr = 0.08;
  double unr = 0.12;
  double un = 0.05;
  double knd = 0.02;
  double kdn = 0.35;
  double xdn = 0.06;
  double ud = 0.02;
  double cinf = 0.28;
  double sc = 0.0125;
  double kcn = 0.04;
  double kcnd = 48;
  double uc = 0.1;
  while ((ch = getopt(argc, argv, "hN:v")) != EOF)
    switch (ch) {
    case 'N':
      N = atoi(optarg);
      break;
    case 'h':
      help();
      break;
    case 'v':
      headerFlag = 1;
      break;
    default:
      fprintf(stderr, "Unknown option for one: '%s'\n", optarg);
      help();
    }
  argc -= optind;
  argv += optind;
  double dP;
  double dW;
  double dD;
  double dCA;
  int n = 0;
  double fn, fs, fn2, R;
  xdn = pow(xdn, 6);
  for (; n < N; n++) {
    R = knn * W + knp * P + knd * D;
    R = R / (1 + (CA / cinf) * (CA / cinf));
    fn = W / (1 + (CA / cinf) * (CA / cinf));
    fn2 = W + kcnd * D;
    fn2 = fn2 / (1 + (CA / cinf) * (CA / cinf));
    fs = pow(fn, 6) / (xdn + pow(fn, 6));
    dP =
        kpg * P * (1 - P / pinf) - kpm * sm * P / (um + kmp * P) - kpn * fn * P;
    dW = snr * R / (unr + R) - un * W;
    dD = kdn * fs - ud * D;
    dCA = sc + (kcn * fn2 / (1 + fn2)) - uc * CA;
    P = P + Ts * dP;
    W = W + Ts * dW;
    D = D + Ts * dD;
    CA = CA + Ts * dCA;
    if (headerFlag) {
      printf("Pathogen\tPhagocyte\tDamage\tAnti-inflammatory Mediator\t\n", P,
             W, D, CA);
    }
    printf("%.6f %.6f %.6f %.6f \n", P, W, D, CA);
  }
}


x86 assembly (clang, -O0):
<inflammation>:
push   %rbp
mov    %rsp,%rbp
sub    $0x150,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x50,-0x14(%rbp)
movsd  0xe7f(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  0xf02(%rip),%xmm0
movsd  %xmm0,-0x30(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x38(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  0xedd(%rip),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  0xec8(%rip),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  0xe8b(%rip),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  0xea6(%rip),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  0xe91(%rip),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  0xe7c(%rip),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  0xe67(%rip),%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  0xe52(%rip),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  0xde5(%rip),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  0xe2d(%rip),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  0xe15(%rip),%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  0xdfd(%rip),%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  0xde5(%rip),%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  0xdbd(%rip),%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  0xdbd(%rip),%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  0xda5(%rip),%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
movsd  0xd8d(%rip),%xmm0
movsd  %xmm0,-0xc8(%rbp)
ff
movsd  0xd75(%rip),%xmm0
movsd  %xmm0,-0xd0(%rbp)
ff
movsd  0xd5d(%rip),%xmm0
movsd  %xmm0,-0xd8(%rbp)
ff
movsd  0xd45(%rip),%xmm0
movsd  %xmm0,-0xe0(%rbp)
ff
movsd  0xd2d(%rip),%xmm0
movsd  %xmm0,-0xe8(%rbp)
ff
movsd  0xd15(%rip),%xmm0
movsd  %xmm0,-0xf0(%rbp)
ff
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
lea    0xd9f(%rip),%rdx
call   1060 <getopt@plt>
mov    %al,-0x15(%rbp)
movsbl %al,%eax
mov    0x2ccd(%rip),%rcx
movsbl (%rcx),%ecx
cmp    %ecx,%eax
je     13be <inflammation+0x25e>
movsbl -0x15(%rbp),%eax
mov    %eax,-0x13c(%rbp)
sub    $0x4e,%eax
je     135e <inflammation+0x1fe>
jmp    1336 <inflammation+0x1d6>
mov    -0x13c(%rbp),%eax
sub    $0x68,%eax
je     1375 <inflammation+0x215>
jmp    134a <inflammation+0x1ea>
mov    -0x13c(%rbp),%eax
sub    $0x76,%eax
je     1381 <inflammation+0x221>
jmp    1393 <inflammation+0x233>
mov    0x2c93(%rip),%rax
mov    (%rax),%rdi
call   1080 <atoi@plt>
mov    %eax,-0x14(%rbp)
jmp    13b9 <inflammation+0x259>
mov    $0x0,%al
call   1070 <help@plt>
jmp    13b9 <inflammation+0x259>
movsd  0xd0f(%rip),%xmm0
movsd  %xmm0,-0x28(%rbp)
jmp    13b9 <inflammation+0x259>
mov    0x2c2e(%rip),%rax
mov    (%rax),%edi
mov    0x2c55(%rip),%rax
mov    (%rax),%rdx
lea    0xcf8(%rip),%rsi
call   1040 <fprintf@plt>
mov    $0x0,%al
call   1070 <help@plt>
jmp    12f3 <inflammation+0x193>
mov    0x2c13(%rip),%rax
mov    (%rax),%rcx
movslq -0x4(%rbp),%rax
sub    %rcx,%rax
mov    %eax,-0x4(%rbp)
mov    0x2bff(%rip),%rax
mov    (%rax),%rax
shl    $0x3,%rax
add    -0x10(%rbp),%rax
mov    %rax,-0x10(%rbp)
movl   $0x0,-0x114(%rbp)
movsd  -0xc0(%rbp),%xmm0
ff
mov    $0x6,%edi
call   1050 <pow@plt>
movsd  %xmm0,-0xc0(%rbp)
ff
mov    -0x114(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1821 <inflammation+0x6c1>
movsd  -0x90(%rbp),%xmm1
ff
movsd  -0x38(%rbp),%xmm2
movsd  -0x88(%rbp),%xmm0
ff
mulsd  -0x30(%rbp),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0xb0(%rbp),%xmm0
ff
movsd  -0x40(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x138(%rbp)
ff
movsd  -0x138(%rbp),%xmm0
ff
movsd  -0x48(%rbp),%xmm1
divsd  -0xd0(%rbp),%xmm1
ff
movsd  -0x48(%rbp),%xmm2
divsd  -0xd0(%rbp),%xmm2
ff
mulsd  %xmm2,%xmm1
movsd  0xc10(%rip),%xmm2
addsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x138(%rbp)
ff
movsd  -0x38(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm1
divsd  -0xd0(%rbp),%xmm1
ff
movsd  -0x48(%rbp),%xmm2
divsd  -0xd0(%rbp),%xmm2
ff
mulsd  %xmm2,%xmm1
movsd  0xbd5(%rip),%xmm2
addsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x120(%rbp)
ff
movsd  -0x38(%rbp),%xmm1
movsd  -0xe8(%rbp),%xmm0
ff
movsd  -0x40(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x130(%rbp)
ff
movsd  -0x130(%rbp),%xmm0
ff
movsd  -0x48(%rbp),%xmm1
divsd  -0xd0(%rbp),%xmm1
ff
movsd  -0x48(%rbp),%xmm2
divsd  -0xd0(%rbp),%xmm2
ff
mulsd  %xmm2,%xmm1
movsd  0xb75(%rip),%xmm2
addsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x130(%rbp)
ff
movsd  -0x120(%rbp),%xmm0
ff
mov    $0x6,%edi
call   1050 <pow@plt>
movsd  %xmm0,-0x148(%rbp)
ff
movsd  -0xc0(%rbp),%xmm0
ff
movsd  %xmm0,-0x150(%rbp)
ff
movsd  -0x120(%rbp),%xmm0
ff
mov    $0x6,%edi
call   1050 <pow@plt>
movsd  -0x150(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0x148(%rbp),%xmm0
ff
addsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x128(%rbp)
ff
movsd  -0x70(%rbp),%xmm1
mulsd  -0x30(%rbp),%xmm1
movsd  -0x30(%rbp),%xmm0
divsd  -0x78(%rbp),%xmm0
movsd  0xaea(%rip),%xmm2
subsd  %xmm0,%xmm2
movsd  -0x50(%rbp),%xmm0
mulsd  -0x60(%rbp),%xmm0
mulsd  -0x30(%rbp),%xmm0
movsd  -0x68(%rbp),%xmm4
movsd  -0x58(%rbp),%xmm3
movsd  -0x30(%rbp),%xmm5
mulsd  %xmm5,%xmm3
addsd  %xmm4,%xmm3
divsd  %xmm3,%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x80(%rbp),%xmm0
mulsd  -0x120(%rbp),%xmm0
ff
movsd  -0x30(%rbp),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xf8(%rbp)
ff
movsd  -0x98(%rbp),%xmm1
ff
mulsd  -0x138(%rbp),%xmm1
ff
movsd  -0xa0(%rbp),%xmm0
ff
addsd  -0x138(%rbp),%xmm0
ff
divsd  %xmm0,%xmm1
movsd  -0xa8(%rbp),%xmm0
ff
movsd  -0x38(%rbp),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x100(%rbp)
ff
movsd  -0xb8(%rbp),%xmm0
ff
movsd  -0x128(%rbp),%xmm2
ff
movsd  -0xc8(%rbp),%xmm1
ff
mulsd  -0x40(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x108(%rbp)
ff
movsd  -0xd8(%rbp),%xmm1
ff
movsd  -0xe0(%rbp),%xmm0
ff
mulsd  -0x130(%rbp),%xmm0
ff
movsd  0x9a8(%rip),%xmm2
addsd  -0x130(%rbp),%xmm2
ff
divsd  %xmm2,%xmm0
addsd  %xmm0,%xmm1
movsd  -0xf0(%rbp),%xmm0
ff
movsd  -0x48(%rbp),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x110(%rbp)
ff
movsd  -0x30(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm0
movsd  -0xf8(%rbp),%xmm2
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x38(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm0
movsd  -0x100(%rbp),%xmm2
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x40(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm0
movsd  -0x108(%rbp),%xmm2
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x48(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm0
movsd  -0x110(%rbp),%xmm2
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x28(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    17cd <inflammation+0x66d>
jp     17cd <inflammation+0x66d>
jmp    17ed <inflammation+0x68d>
movsd  -0x30(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm1
movsd  -0x40(%rbp),%xmm2
movsd  -0x48(%rbp),%xmm3
lea    0x8db(%rip),%rdi
call   1030 <printf@plt>
movsd  -0x30(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm1
movsd  -0x40(%rbp),%xmm2
movsd  -0x48(%rbp),%xmm3
lea    0x8f2(%rip),%rdi
call   1030 <printf@plt>
mov    -0x114(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x114(%rbp)
jmp    140c <inflammation+0x2ac>
add    $0x150,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<inflammation>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x88,%rsp
mov    %rsi,%r14
mov    %edi,%ebp
lea    0xf53(%rip),%rdx
call   1060 <getopt@plt>
mov    0x2e57(%rip),%r13
cmp    0x0(%r13),%al
jne    11bb <inflammation+0x5b>
movsd  0xe71(%rip),%xmm0
mov    $0x6,%edi
call   1050 <pow@plt>
movsd  %xmm0,0x38(%rsp)
xorpd  %xmm0,%xmm0
movsd  %xmm0,0x8(%rsp)
mov    $0x50,%ebx
jmp    1270 <inflammation+0x110>
xorps  %xmm0,%xmm0
movsd  %xmm0,0x8(%rsp)
mov    $0x50,%ebx
lea    0xf00(%rip),%r15
mov    0x2e21(%rip),%r12
jmp    1213 <inflammation+0xb3>
nopl   0x0(%rax)
mov    0x2de9(%rip),%rax
mov    (%rax),%edi
mov    (%r12),%rdx
lea    0xee1(%rip),%rsi
call   1040 <fprintf@plt>
xor    %eax,%eax
call   1070 <help@plt>
mov    %ebp,%edi
mov    %r14,%rsi
mov    %r15,%rdx
call   1060 <getopt@plt>
cmp    0x0(%r13),%al
je     1250 <inflammation+0xf0>
movsbl %al,%eax
cmp    $0x76,%eax
je     1240 <inflammation+0xe0>
cmp    $0x68,%eax
je     11f9 <inflammation+0x99>
cmp    $0x4e,%eax
jne    11e0 <inflammation+0x80>
mov    (%r12),%rdi
call   1080 <atoi@plt>
mov    %eax,%ebx
jmp    1200 <inflammation+0xa0>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movsd  0xdb8(%rip),%xmm0
movsd  %xmm0,0x8(%rsp)
jmp    1200 <inflammation+0xa0>
movsd  0xdb0(%rip),%xmm0
mov    $0x6,%edi
call   1050 <pow@plt>
movsd  %xmm0,0x38(%rsp)
test   %ebx,%ebx
jle    150c <inflammation+0x3ac>
xorpd  %xmm0,%xmm0
movhpd 0xd94(%rip),%xmm0
movapd %xmm0,0x10(%rsp)
movsd  0xd76(%rip),%xmm0
lea    0xe62(%rip),%r14
lea    0xe92(%rip),%r15
jmp    12c0 <inflammation+0x160>
nopw   0x0(%rax,%rax,1)
mov    %r15,%rdi
movapd %xmm4,%xmm0
movaps 0x10(%rsp),%xmm2
call   1030 <printf@plt>
movapd 0x20(%rsp),%xmm0
add    $0xffffffff,%ebx
je     150c <inflammation+0x3ac>
movapd 0x10(%rsp),%xmm1
movapd %xmm1,0x50(%rsp)
movapd %xmm0,0x70(%rsp)
unpckhpd %xmm0,%xmm0
movapd %xmm0,%xmm2
movapd %xmm0,0x60(%rsp)
unpckhpd %xmm1,%xmm1
divsd  0xd2c(%rip),%xmm1
mulsd  %xmm1,%xmm1
movsd  0xd08(%rip),%xmm0
addsd  %xmm0,%xmm1
movapd %xmm1,0x40(%rsp)
movapd %xmm2,%xmm0
divsd  %xmm1,%xmm0
movapd %xmm0,0x20(%rsp)
mov    $0x6,%edi
call   1050 <pow@plt>
movapd %xmm0,0x10(%rsp)
movapd 0x20(%rsp),%xmm0
mov    $0x6,%edi
call   1050 <pow@plt>
movapd 0x70(%rsp),%xmm7
movapd %xmm7,%xmm1
mulsd  0xcde(%rip),%xmm1
movapd 0x60(%rsp),%xmm4
movapd %xmm4,%xmm3
movsd  0xcd3(%rip),%xmm9
mulsd  %xmm9,%xmm3
addsd  %xmm1,%xmm3
movapd 0x50(%rsp),%xmm6
movapd %xmm6,%xmm2
mulsd  0xcc0(%rip),%xmm2
addsd  %xmm3,%xmm2
movapd 0x40(%rsp),%xmm3
divsd  %xmm3,%xmm2
movapd %xmm6,%xmm1
movapd %xmm6,%xmm8
mulsd  0xca9(%rip),%xmm1
addsd  %xmm4,%xmm1
divsd  %xmm3,%xmm1
addsd  0x38(%rsp),%xmm0
movapd 0x10(%rsp),%xmm6
divsd  %xmm0,%xmm6
movapd %xmm7,%xmm0
mulsd  0xc8d(%rip),%xmm0
movapd %xmm7,%xmm3
divsd  0xc89(%rip),%xmm3
movsd  0xc39(%rip),%xmm5
addsd  %xmm5,%xmm3
mulsd  %xmm0,%xmm3
movapd %xmm7,%xmm4
mulsd  %xmm9,%xmm4
addsd  0xc70(%rip),%xmm4
movapd %xmm7,%xmm0
mulsd  0xc6c(%rip),%xmm0
divsd  %xmm4,%xmm0
addsd  %xmm3,%xmm0
movapd %xmm2,%xmm3
mulsd  0xc68(%rip),%xmm3
addsd  0xc68(%rip),%xmm2
divsd  %xmm2,%xmm3
movapd 0x20(%rsp),%xmm4
mulsd  0xc46(%rip),%xmm4
unpcklpd %xmm3,%xmm0
movapd %xmm1,%xmm2
mulsd  0xc56(%rip),%xmm2
addsd  %xmm5,%xmm1
divsd  %xmm1,%xmm2
movapd %xmm8,%xmm1
mulsd  0xc39(%rip),%xmm1
addsd  0xc41(%rip),%xmm2
unpcklpd %xmm2,%xmm1
movapd %xmm7,%xmm3
shufpd $0x2,%xmm7,%xmm4
movapd %xmm4,%xmm5
movapd 0xc40(%rip),%xmm4
movsd  %xmm7,%xmm4
mulpd  %xmm5,%xmm4
addpd  %xmm0,%xmm4
movapd %xmm6,%xmm2
shufpd $0x2,%xmm8,%xmm2
mulpd  0xc32(%rip),%xmm2
addpd  %xmm1,%xmm2
movsd  0x8(%rsp),%xmm0
ucomisd 0xc00(%rip),%xmm0
movapd 0xc28(%rip),%xmm0
mulpd  %xmm0,%xmm4
addpd  %xmm7,%xmm4
mulpd  %xmm0,%xmm2
addpd  %xmm8,%xmm2
movapd %xmm4,%xmm1
unpckhpd %xmm4,%xmm1
movapd %xmm2,0x10(%rsp)
movapd %xmm2,%xmm3
unpckhpd %xmm2,%xmm3
movapd %xmm4,0x20(%rsp)
jne    14cd <inflammation+0x36d>
jnp    12a0 <inflammation+0x140>
mov    %r14,%rdi
movapd %xmm4,%xmm0
movapd %xmm1,0x50(%rsp)
movaps 0x50(%rsp),%xmm1
movapd 0x10(%rsp),%xmm2
movapd %xmm3,0x40(%rsp)
movaps 0x40(%rsp),%xmm3
call   1030 <printf@plt>
movapd 0x40(%rsp),%xmm3
movapd 0x50(%rsp),%xmm1
movapd 0x20(%rsp),%xmm4
jmp    12a0 <inflammation+0x140>
add    $0x88,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [5 x i8] c"hN:v\00"
@EOF = global i8 0
@optarg = global i8* null
@stderr = global i32 0
@.str.1 = [30 x i8] c"Unknown option for one: '%s'\0A\00"
@optind = global i64 0
@.str.2 = [55 x i8] c"Pathogen\09Phagocyte\09Damage\09Anti-inflammatory Mediator\09\0A\00"
@.str.3 = [22 x i8] c"%.6f %.6f %.6f %.6f \0A\00"
define void @inflammation(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
%5 = alloca i32
%6 = alloca i8
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca double
%12 = alloca double
%13 = alloca double
%14 = alloca double
%15 = alloca double
%16 = alloca double
%17 = alloca double
%18 = alloca double
%19 = alloca double
%20 = alloca double
%21 = alloca double
%22 = alloca double
%23 = alloca double
%24 = alloca double
%25 = alloca double
%26 = alloca double
%27 = alloca double
%28 = alloca double
%29 = alloca double
%30 = alloca double
%31 = alloca double
%32 = alloca double
%33 = alloca double
%34 = alloca double
%35 = alloca double
%36 = alloca double
%37 = alloca double
%38 = alloca i32
%39 = alloca double
%40 = alloca double
%41 = alloca double
%42 = alloca double
store i32 %0, i32* %3
store i8** %1, i8*** %4
store i32 80, i32* %5
store double 1.000000e-01, double* %7
store double 0.000000e+00, double* %8
store double 1.000000e+00, double* %9
store double 0.000000e+00, double* %10
store double 0.000000e+00, double* %11
store double 1.250000e-01, double* %12
store double 6.000000e-01, double* %13
store double 1.000000e-02, double* %14
store double 5.000000e-03, double* %15
store double 2.000000e-03, double* %16
store double 3.000000e-01, double* %17
store double 2.000000e+07, double* %18
store double 1.800000e+00, double* %19
store double 1.000000e-01, double* %20
store double 1.000000e-02, double* %21
store double 8.000000e-02, double* %22
store double 1.200000e-01, double* %23
store double 5.000000e-02, double* %24
store double 2.000000e-02, double* %25
store double 3.500000e-01, double* %26
store double 6.000000e-02, double* %27
store double 2.000000e-02, double* %28
store double 2.800000e-01, double* %29
store double 1.250000e-02, double* %30
store double 4.000000e-02, double* %31
store double 4.800000e+01, double* %32
store double 1.000000e-01, double* %33
br label %43
43: ; preds = %65, %2
%44 = load i32, i32* %3
%45 = load i8**, i8*** %4
%46 = call signext i8 @getopt(i32 %44, i8** %45, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
store i8 %46, i8* %6
%47 = sext i8 %46 to i32
%48 = load i8, i8* @EOF
%49 = sext i8 %48 to i32
%50 = icmp ne i32 %47, %49
br i1 %50, label %51, label %66
51: ; preds = %43
%52 = load i8, i8* %6
%53 = sext i8 %52 to i32
switch i32 %53, label %60 [
i32 78, label %54
i32 104, label %57
i32 118, label %59
]
54: ; preds = %51
%55 = load i8*, i8** @optarg
%56 = call i32 @atoi(i8* %55)
store i32 %56, i32* %5
br label %65
57: ; preds = %51
%58 = call i32 (...) @help()
br label %65
59: ; preds = %51
store double 1.000000e+00, double* %8
br label %65
60: ; preds = %51
%61 = load i32, i32* @stderr
%62 = load i8*, i8** @optarg
%63 = call i32 @fprintf(i32 %61, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0), i8* %62)
%64 = call i32 (...) @help()
br label %65
65: ; preds = %60, %59, %57, %54
br label %43
66: ; preds = %43
%67 = load i64, i64* @optind
%68 = load i32, i32* %3
%69 = sext i32 %68 to i64
%70 = sub nsw i64 %69, %67
%71 = trunc i64 %70 to i32
store i32 %71, i32* %3
%72 = load i64, i64* @optind
%73 = load i8**, i8*** %4
%74 = getelementptr inbounds i8*, i8** %73, i64 %72
store i8** %74, i8*** %4
store i32 0, i32* %38
%75 = load double, double* %27
%76 = call double @pow(double %75, i32 6)
store double %76, double* %27
br label %77
77: ; preds = %214, %66
%78 = load i32, i32* %38
%79 = load i32, i32* %5
%80 = icmp slt i32 %78, %79
br i1 %80, label %81, label %217
81: ; preds = %77
%82 = load double, double* %21
%83 = load double, double* %10
%84 = load double, double* %20
%85 = load double, double* %9
%86 = fmul double %84, %85
%87 = call double @llvm.fmuladd.f64(double %82, double %83, double %86)
%88 = load double, double* %25
%89 = load double, double* %11
%90 = call double @llvm.fmuladd.f64(double %88, double %89, double %87)
store double %90, double* %42
%91 = load double, double* %42
%92 = load double, double* %12
%93 = load double, double* %29
%94 = fdiv double %92, %93
%95 = load double, double* %12
%96 = load double, double* %29
%97 = fdiv double %95, %96
%98 = call double @llvm.fmuladd.f64(double %94, double %97, double 1.000000e+00)
%99 = fdiv double %91, %98
store double %99, double* %42
%100 = load double, double* %10
%101 = load double, double* %12
%102 = load double, double* %29
%103 = fdiv double %101, %102
%104 = load double, double* %12
%105 = load double, double* %29
%106 = fdiv double %104, %105
%107 = call double @llvm.fmuladd.f64(double %103, double %106, double 1.000000e+00)
%108 = fdiv double %100, %107
store double %108, double* %39
%109 = load double, double* %10
%110 = load double, double* %32
%111 = load double, double* %11
%112 = call double @llvm.fmuladd.f64(double %110, double %111, double %109)
store double %112, double* %41
%113 = load double, double* %41
%114 = load double, double* %12
%115 = load double, double* %29
%116 = fdiv double %114, %115
%117 = load double, double* %12
%118 = load double, double* %29
%119 = fdiv double %117, %118
%120 = call double @llvm.fmuladd.f64(double %116, double %119, double 1.000000e+00)
%121 = fdiv double %113, %120
store double %121, double* %41
%122 = load double, double* %39
%123 = call double @pow(double %122, i32 6)
%124 = load double, double* %27
%125 = load double, double* %39
%126 = call double @pow(double %125, i32 6)
%127 = fadd double %124, %126
%128 = fdiv double %123, %127
store double %128, double* %40
%129 = load double, double* %17
%130 = load double, double* %9
%131 = fmul double %129, %130
%132 = load double, double* %9
%133 = load double, double* %18
%134 = fdiv double %132, %133
%135 = fsub double 1.000000e+00, %134
%136 = load double, double* %13
%137 = load double, double* %15
%138 = fmul double %136, %137
%139 = load double, double* %9
%140 = fmul double %138, %139
%141 = load double, double* %16
%142 = load double, double* %14
%143 = load double, double* %9
%144 = call double @llvm.fmuladd.f64(double %142, double %143, double %141)
%145 = fdiv double %140, %144
%146 = fneg double %145
%147 = call double @llvm.fmuladd.f64(double %131, double %135, double %146)
%148 = load double, double* %19
%149 = load double, double* %39
%150 = fmul double %148, %149
%151 = load double, double* %9
%152 = fneg double %150
%153 = call double @llvm.fmuladd.f64(double %152, double %151, double %147)
store double %153, double* %34
%154 = load double, double* %22
%155 = load double, double* %42
%156 = fmul double %154, %155
%157 = load double, double* %23
%158 = load double, double* %42
%159 = fadd double %157, %158
%160 = fdiv double %156, %159
%161 = load double, double* %24
%162 = load double, double* %10
%163 = fneg double %161
%164 = call double @llvm.fmuladd.f64(double %163, double %162, double %160)
store double %164, double* %35
%165 = load double, double* %26
%166 = load double, double* %40
%167 = load double, double* %28
%168 = load double, double* %11
%169 = fmul double %167, %168
%170 = fneg double %169
%171 = call double @llvm.fmuladd.f64(double %165, double %166, double %170)
store double %171, double* %36
%172 = load double, double* %30
%173 = load double, double* %31
%174 = load double, double* %41
%175 = fmul double %173, %174
%176 = load double, double* %41
%177 = fadd double 1.000000e+00, %176
%178 = fdiv double %175, %177
%179 = fadd double %172, %178
%180 = load double, double* %33
%181 = load double, double* %12
%182 = fneg double %180
%183 = call double @llvm.fmuladd.f64(double %182, double %181, double %179)
store double %183, double* %37
%184 = load double, double* %9
%185 = load double, double* %7
%186 = load double, double* %34
%187 = call double @llvm.fmuladd.f64(double %185, double %186, double %184)
store double %187, double* %9
%188 = load double, double* %10
%189 = load double, double* %7
%190 = load double, double* %35
%191 = call double @llvm.fmuladd.f64(double %189, double %190, double %188)
store double %191, double* %10
%192 = load double, double* %11
%193 = load double, double* %7
%194 = load double, double* %36
%195 = call double @llvm.fmuladd.f64(double %193, double %194, double %192)
store double %195, double* %11
%196 = load double, double* %12
%197 = load double, double* %7
%198 = load double, double* %37
%199 = call double @llvm.fmuladd.f64(double %197, double %198, double %196)
store double %199, double* %12
%200 = load double, double* %8
%201 = fcmp une double %200, 0.000000e+00
br i1 %201, label %202, label %208
202: ; preds = %81
%203 = load double, double* %9
%204 = load double, double* %10
%205 = load double, double* %11
%206 = load double, double* %12
%207 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.2, i64 0, i64 0), double %203, double %204, double %205, double %206)
br label %208
208: ; preds = %202, %81
%209 = load double, double* %9
%210 = load double, double* %10
%211 = load double, double* %11
%212 = load double, double* %12
%213 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), double %209, double %210, double %211, double %212)
br label %214
214: ; preds = %208
%215 = load i32, i32* %38
%216 = add nsw i32 %215, 1
store i32 %216, i32* %38
br label %77
217: ; preds = %77
ret void
}

LLVM IR (-O2):
@.str = [5 x i8] c"hN:v\00"
@EOF = global i8 0
@optarg = global i8* null
@stderr = global i32 0
@.str.1 = [30 x i8] c"Unknown option for one: '%s'\0A\00"
@optind = global i64 0
@.str.2 = [55 x i8] c"Pathogen\09Phagocyte\09Damage\09Anti-inflammatory Mediator\09\0A\00"
@.str.3 = [22 x i8] c"%.6f %.6f %.6f %.6f \0A\00"
define void @inflammation(i32 %0, i8** %1) {
%3 = tail call signext i8 @getopt(i32 %0, i8** %1, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%4 = load i8, i8* @EOF
%5 = icmp eq i8 %3, %4
br i1 %5, label %6, label %8
6: ; preds = %2
%7 = tail call double @pow(double 6.000000e-02, i32 6)
br label %32
8: ; preds = %2, %23
%9 = phi i8 [ %26, %23 ], [ %3, %2 ]
%10 = phi i32 [ %25, %23 ], [ 80, %2 ]
%11 = phi double [ %24, %23 ], [ 0.000000e+00, %2 ]
%12 = sext i8 %9 to i32
switch i32 %12, label %18 [
i32 78, label %13
i32 104, label %16
i32 118, label %23
]
13: ; preds = %8
%14 = load i8*, i8** @optarg
%15 = tail call i32 @atoi(i8* %14)
br label %23
16: ; preds = %8
%17 = tail call i32 (...) @help()
br label %23
18: ; preds = %8
%19 = load i32, i32* @stderr
%20 = load i8*, i8** @optarg
%21 = tail call i32 @fprintf(i32 %19, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0), i8* %20)
%22 = tail call i32 (...) @help()
br label %23
23: ; preds = %8, %18, %16, %13
%24 = phi double [ %11, %18 ], [ %11, %16 ], [ %11, %13 ], [ 1.000000e+00, %8 ]
%25 = phi i32 [ %10, %18 ], [ %10, %16 ], [ %15, %13 ], [ %10, %8 ]
%26 = tail call signext i8 @getopt(i32 %0, i8** %1, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%27 = load i8, i8* @EOF
%28 = icmp eq i8 %26, %27
br i1 %28, label %29, label %8
29: ; preds = %23
%30 = tail call double @pow(double 6.000000e-02, i32 6)
%31 = icmp sgt i32 %25, 0
br i1 %31, label %32, label %98
32: ; preds = %6, %29
%33 = phi double [ %7, %6 ], [ %30, %29 ]
%34 = phi i32 [ 80, %6 ], [ %25, %29 ]
%35 = phi double [ 0.000000e+00, %6 ], [ %24, %29 ]
%36 = fcmp une double %35, 0.000000e+00
br label %37
37: ; preds = %32, %90
%38 = phi i32 [ 0, %32 ], [ %96, %90 ]
%39 = phi <4 x double> [ <double 1.000000e+00, double 0.000000e+00, double 0.000000e+00, double 1.250000e-01>, %32 ], [ %83, %90 ]
%40 = extractelement <4 x double> %39, i64 0
%41 = fmul double %40, 1.000000e-01
%42 = extractelement <4 x double> %39, i64 1
%43 = tail call double @llvm.fmuladd.f64(double %42, double 1.000000e-02, double %41)
%44 = extractelement <4 x double> %39, i64 2
%45 = tail call double @llvm.fmuladd.f64(double %44, double 2.000000e-02, double %43)
%46 = extractelement <4 x double> %39, i64 3
%47 = fdiv double %46, 2.800000e-01
%48 = tail call double @llvm.fmuladd.f64(double %47, double %47, double 1.000000e+00)
%49 = fdiv double %45, %48
%50 = fdiv double %42, %48
%51 = tail call double @llvm.fmuladd.f64(double %44, double 4.800000e+01, double %42)
%52 = fdiv double %51, %48
%53 = tail call double @pow(double %50, i32 6)
%54 = tail call double @pow(double %50, i32 6)
%55 = fadd double %33, %54
%56 = fdiv double %53, %55
%57 = fmul double %40, 3.000000e-01
%58 = fdiv double %40, 2.000000e+07
%59 = fsub double 1.000000e+00, %58
%60 = tail call double @llvm.fmuladd.f64(double %40, double 1.000000e-02, double 2.000000e-03)
%61 = fmul double %40, -3.000000e-03
%62 = fdiv double %61, %60
%63 = tail call double @llvm.fmuladd.f64(double %57, double %59, double %62)
%64 = fmul double %50, -1.800000e+00
%65 = fmul double %49, 8.000000e-02
%66 = fadd double %49, 1.200000e-01
%67 = fdiv double %65, %66
%68 = fmul double %44, -2.000000e-02
%69 = fmul double %52, 4.000000e-02
%70 = fadd double %52, 1.000000e+00
%71 = fdiv double %69, %70
%72 = fadd double %71, 1.250000e-02
%73 = insertelement <4 x double> poison, double %64, i64 0
%74 = insertelement <4 x double> %73, double %42, i64 1
%75 = insertelement <4 x double> %74, double %56, i64 2
%76 = shufflevector <4 x double> %75, <4 x double> %39, <4 x i32> <i32 0, i32 1, i32 2, i32 7>
%77 = shufflevector <4 x double> %39, <4 x double> <double poison, double -5.000000e-02, double 3.500000e-01, double -1.000000e-01>, <4 x i32> <i32 0, i32 5, i32 6, i32 7>
%78 = insertelement <4 x double> poison, double %63, i64 0
%79 = insertelement <4 x double> %78, double %67, i64 1
%80 = insertelement <4 x double> %79, double %68, i64 2
%81 = insertelement <4 x double> %80, double %72, i64 3
%82 = call <4 x double> @llvm.fmuladd.v4f64(<4 x double> %76, <4 x double> %77, <4 x double> %81)
%83 = call <4 x double> @llvm.fmuladd.v4f64(<4 x double> %82, <4 x double> <double 1.000000e-01, double 1.000000e-01, double 1.000000e-01, double 1.000000e-01>, <4 x double> %39)
br i1 %36, label %84, label %90
84: ; preds = %37
%85 = extractelement <4 x double> %83, i64 0
%86 = extractelement <4 x double> %83, i64 1
%87 = extractelement <4 x double> %83, i64 2
%88 = extractelement <4 x double> %83, i64 3
%89 = tail call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.2, i64 0, i64 0), double %85, double %86, double %87, double %88)
br label %90
90: ; preds = %84, %37
%91 = extractelement <4 x double> %83, i64 0
%92 = extractelement <4 x double> %83, i64 1
%93 = extractelement <4 x double> %83, i64 2
%94 = extractelement <4 x double> %83, i64 3
%95 = tail call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), double %91, double %92, double %93, double %94)
%96 = add nuw nsw i32 %38, 1
%97 = icmp eq i32 %96, %34
br i1 %97, label %98, label %37
98: ; preds = %90, %29
ret void
}