void f_(double *t, double *x, double *u, double *ux, double *uxx, double *fval,
        int *npde) {
  double t1, t2;
  (void)t;
  (void)x;
  (void)npde;
  t1 = 1. - u[2] - u[3];
  t2 = t1 * t1;
  fval[0] = -ux[0] + 0.01 * uxx[0] + 1.5 * u[2] - 30. * u[0] * t1;
  fval[1] = -ux[1] + 0.01 * uxx[1] + 1.2 * u[3] - 30. * u[1] * t1;
  fval[2] =
      0.01 * uxx[2] + 30. * u[0] * t1 - 1.5 * u[2] - 1000. * u[2] * u[3] * t2;
  fval[3] =
      0.01 * uxx[3] + 30. * u[1] * t1 - 1.2 * u[3] - 1000. * u[2] * u[3] * t2;
}


x86 assembly (clang, -O0):
<f_>:
push   %rbp
mov    %rsp,%rbp
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x18(%rbp),%rax
movsd  0xf0c(%rip),%xmm0
subsd  0x10(%rax),%xmm0
mov    -0x18(%rbp),%rax
subsd  0x18(%rax),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x38(%rbp),%xmm0
mulsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mov    -0x28(%rbp),%rax
movsd  (%rax),%xmm0
movsd  0xe93(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movsd  0x10(%rax),%xmm1
movsd  0xe9a(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x18(%rbp),%rax
movsd  0xe6e(%rip),%xmm0
mulsd  (%rax),%xmm0
movsd  -0x38(%rbp),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x20(%rbp),%rax
movsd  0x8(%rax),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mov    -0x28(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  0xe05(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movsd  0x18(%rax),%xmm1
movsd  0xe04(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x18(%rbp),%rax
movsd  0xde0(%rip),%xmm0
mulsd  0x8(%rax),%xmm0
movsd  -0x38(%rbp),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x8(%rax)
mov    -0x28(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x18(%rbp),%rax
movsd  0xd99(%rip),%xmm1
mulsd  (%rax),%xmm1
mulsd  -0x38(%rbp),%xmm1
movsd  0xd80(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movsd  0x10(%rax),%xmm1
movsd  0xd77(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x18(%rbp),%rax
movsd  0xd43(%rip),%xmm0
mulsd  0x10(%rax),%xmm0
mov    -0x18(%rbp),%rax
mulsd  0x18(%rax),%xmm0
movsd  -0x40(%rbp),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x10(%rax)
mov    -0x28(%rbp),%rax
movsd  0x18(%rax),%xmm0
mov    -0x18(%rbp),%rax
movsd  0xd0b(%rip),%xmm1
mulsd  0x8(%rax),%xmm1
mulsd  -0x38(%rbp),%xmm1
movsd  0xcf1(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movsd  0x18(%rax),%xmm1
movsd  0xcd0(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x18(%rbp),%rax
movsd  0xcb4(%rip),%xmm0
mulsd  0x10(%rax),%xmm0
mov    -0x18(%rbp),%rax
mulsd  0x18(%rax),%xmm0
movsd  -0x40(%rbp),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x18(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<f_>:
movsd  0x10(%rdx),%xmm3
movsd  0xef3(%rip),%xmm1
subsd  %xmm3,%xmm1
subsd  0x18(%rdx),%xmm1
movsd  0xeea(%rip),%xmm0
movsd  (%r8),%xmm4
mulsd  %xmm0,%xmm4
subsd  (%rcx),%xmm4
mulsd  0xedd(%rip),%xmm3
movapd %xmm1,%xmm2
addsd  %xmm4,%xmm3
movsd  0xed5(%rip),%xmm4
movsd  (%rdx),%xmm5
mulsd  %xmm4,%xmm5
mulsd  %xmm1,%xmm5
addsd  %xmm3,%xmm5
movsd  %xmm5,(%r9)
movsd  0x8(%r8),%xmm3
mulsd  %xmm0,%xmm3
subsd  0x8(%rcx),%xmm3
movsd  0x18(%rdx),%xmm5
mulsd  0xeac(%rip),%xmm5
addsd  %xmm3,%xmm5
mulsd  0x8(%rdx),%xmm4
mulsd  %xmm1,%xmm4
addsd  %xmm5,%xmm4
movsd  %xmm4,0x8(%r9)
movsd  0xe95(%rip),%xmm3
movsd  (%rdx),%xmm4
mulsd  %xmm3,%xmm4
mulsd  %xmm1,%xmm4
movsd  0x10(%r8),%xmm5
mulsd  %xmm0,%xmm5
addsd  %xmm4,%xmm5
movsd  0x10(%rdx),%xmm4
movsd  0xe76(%rip),%xmm6
mulsd  %xmm4,%xmm6
addsd  %xmm5,%xmm6
movsd  0xe6e(%rip),%xmm5
mulsd  %xmm5,%xmm4
mulsd  0x18(%rdx),%xmm4
mulsd  %xmm1,%xmm2
mulsd  %xmm2,%xmm4
addsd  %xmm6,%xmm4
movsd  %xmm4,0x10(%r9)
mulsd  0x8(%rdx),%xmm3
mulsd  0x18(%r8),%xmm0
mulsd  %xmm1,%xmm3
addsd  %xmm3,%xmm0
movsd  0x18(%rdx),%xmm1
movsd  0xe3b(%rip),%xmm3
mulsd  %xmm1,%xmm3
addsd  %xmm0,%xmm3
mulsd  0x10(%rdx),%xmm5
mulsd  %xmm1,%xmm5
mulsd  %xmm2,%xmm5
addsd  %xmm3,%xmm5
movsd  %xmm5,0x18(%r9)
ret

LLVM IR (-O0):
define void @f_(double* %0, double* %1, double* %2, double* %3, double* %4, double* %5, i32* %6) {
%8 = alloca double*
%9 = alloca double*
%10 = alloca double*
%11 = alloca double*
%12 = alloca double*
%13 = alloca double*
%14 = alloca i32*
%15 = alloca double
%16 = alloca double
store double* %0, double** %8
store double* %1, double** %9
store double* %2, double** %10
store double* %3, double** %11
store double* %4, double** %12
store double* %5, double** %13
store i32* %6, i32** %14
%17 = load double*, double** %8
%18 = load double*, double** %9
%19 = load i32*, i32** %14
%20 = load double*, double** %10
%21 = getelementptr inbounds double, double* %20, i64 2
%22 = load double, double* %21
%23 = fsub double 1.000000e+00, %22
%24 = load double*, double** %10
%25 = getelementptr inbounds double, double* %24, i64 3
%26 = load double, double* %25
%27 = fsub double %23, %26
store double %27, double* %15
%28 = load double, double* %15
%29 = load double, double* %15
%30 = fmul double %28, %29
store double %30, double* %16
%31 = load double*, double** %11
%32 = getelementptr inbounds double, double* %31, i64 0
%33 = load double, double* %32
%34 = fneg double %33
%35 = load double*, double** %12
%36 = getelementptr inbounds double, double* %35, i64 0
%37 = load double, double* %36
%38 = call double @llvm.fmuladd.f64(double 1.000000e-02, double %37, double %34)
%39 = load double*, double** %10
%40 = getelementptr inbounds double, double* %39, i64 2
%41 = load double, double* %40
%42 = call double @llvm.fmuladd.f64(double 1.500000e+00, double %41, double %38)
%43 = load double*, double** %10
%44 = getelementptr inbounds double, double* %43, i64 0
%45 = load double, double* %44
%46 = fmul double 3.000000e+01, %45
%47 = load double, double* %15
%48 = fneg double %46
%49 = call double @llvm.fmuladd.f64(double %48, double %47, double %42)
%50 = load double*, double** %13
%51 = getelementptr inbounds double, double* %50, i64 0
store double %49, double* %51
%52 = load double*, double** %11
%53 = getelementptr inbounds double, double* %52, i64 1
%54 = load double, double* %53
%55 = fneg double %54
%56 = load double*, double** %12
%57 = getelementptr inbounds double, double* %56, i64 1
%58 = load double, double* %57
%59 = call double @llvm.fmuladd.f64(double 1.000000e-02, double %58, double %55)
%60 = load double*, double** %10
%61 = getelementptr inbounds double, double* %60, i64 3
%62 = load double, double* %61
%63 = call double @llvm.fmuladd.f64(double 1.200000e+00, double %62, double %59)
%64 = load double*, double** %10
%65 = getelementptr inbounds double, double* %64, i64 1
%66 = load double, double* %65
%67 = fmul double 3.000000e+01, %66
%68 = load double, double* %15
%69 = fneg double %67
%70 = call double @llvm.fmuladd.f64(double %69, double %68, double %63)
%71 = load double*, double** %13
%72 = getelementptr inbounds double, double* %71, i64 1
store double %70, double* %72
%73 = load double*, double** %12
%74 = getelementptr inbounds double, double* %73, i64 2
%75 = load double, double* %74
%76 = load double*, double** %10
%77 = getelementptr inbounds double, double* %76, i64 0
%78 = load double, double* %77
%79 = fmul double 3.000000e+01, %78
%80 = load double, double* %15
%81 = fmul double %79, %80
%82 = call double @llvm.fmuladd.f64(double 1.000000e-02, double %75, double %81)
%83 = load double*, double** %10
%84 = getelementptr inbounds double, double* %83, i64 2
%85 = load double, double* %84
%86 = call double @llvm.fmuladd.f64(double -1.500000e+00, double %85, double %82)
%87 = load double*, double** %10
%88 = getelementptr inbounds double, double* %87, i64 2
%89 = load double, double* %88
%90 = fmul double 1.000000e+03, %89
%91 = load double*, double** %10
%92 = getelementptr inbounds double, double* %91, i64 3
%93 = load double, double* %92
%94 = fmul double %90, %93
%95 = load double, double* %16
%96 = fneg double %94
%97 = call double @llvm.fmuladd.f64(double %96, double %95, double %86)
%98 = load double*, double** %13
%99 = getelementptr inbounds double, double* %98, i64 2
store double %97, double* %99
%100 = load double*, double** %12
%101 = getelementptr inbounds double, double* %100, i64 3
%102 = load double, double* %101
%103 = load double*, double** %10
%104 = getelementptr inbounds double, double* %103, i64 1
%105 = load double, double* %104
%106 = fmul double 3.000000e+01, %105
%107 = load double, double* %15
%108 = fmul double %106, %107
%109 = call double @llvm.fmuladd.f64(double 1.000000e-02, double %102, double %108)
%110 = load double*, double** %10
%111 = getelementptr inbounds double, double* %110, i64 3
%112 = load double, double* %111
%113 = call double @llvm.fmuladd.f64(double -1.200000e+00, double %112, double %109)
%114 = load double*, double** %10
%115 = getelementptr inbounds double, double* %114, i64 2
%116 = load double, double* %115
%117 = fmul double 1.000000e+03, %116
%118 = load double*, double** %10
%119 = getelementptr inbounds double, double* %118, i64 3
%120 = load double, double* %119
%121 = fmul double %117, %120
%122 = load double, double* %16
%123 = fneg double %121
%124 = call double @llvm.fmuladd.f64(double %123, double %122, double %113)
%125 = load double*, double** %13
%126 = getelementptr inbounds double, double* %125, i64 3
store double %124, double* %126
ret void
}

LLVM IR (-O2):
define void @f_(double* nocapture readnone %0, double* nocapture readnone %1, double* nocapture %2, double* nocapture %3, double* nocapture %4, double* nocapture writeonly %5, i32* nocapture readnone %6) {
%8 = getelementptr inbounds double, double* %2, i64 2
%9 = load double, double* %8
%10 = fsub double 1.000000e+00, %9
%11 = getelementptr inbounds double, double* %2, i64 3
%12 = load double, double* %11
%13 = fsub double %10, %12
%14 = fmul double %13, %13
%15 = load double, double* %3
%16 = fneg double %15
%17 = load double, double* %4
%18 = tail call double @llvm.fmuladd.f64(double %17, double 1.000000e-02, double %16)
%19 = tail call double @llvm.fmuladd.f64(double %9, double 1.500000e+00, double %18)
%20 = load double, double* %2
%21 = fmul double %20, -3.000000e+01
%22 = tail call double @llvm.fmuladd.f64(double %21, double %13, double %19)
store double %22, double* %5
%23 = getelementptr inbounds double, double* %3, i64 1
%24 = load double, double* %23
%25 = fneg double %24
%26 = getelementptr inbounds double, double* %4, i64 1
%27 = load double, double* %26
%28 = tail call double @llvm.fmuladd.f64(double %27, double 1.000000e-02, double %25)
%29 = load double, double* %11
%30 = tail call double @llvm.fmuladd.f64(double %29, double 1.200000e+00, double %28)
%31 = getelementptr inbounds double, double* %2, i64 1
%32 = load double, double* %31
%33 = fmul double %32, -3.000000e+01
%34 = tail call double @llvm.fmuladd.f64(double %33, double %13, double %30)
%35 = getelementptr inbounds double, double* %5, i64 1
store double %34, double* %35
%36 = getelementptr inbounds double, double* %4, i64 2
%37 = load double, double* %36
%38 = load double, double* %2
%39 = fmul double %38, 3.000000e+01
%40 = fmul double %13, %39
%41 = tail call double @llvm.fmuladd.f64(double %37, double 1.000000e-02, double %40)
%42 = load double, double* %8
%43 = tail call double @llvm.fmuladd.f64(double %42, double -1.500000e+00, double %41)
%44 = load double, double* %11
%45 = fmul double %42, -1.000000e+03
%46 = fmul double %45, %44
%47 = tail call double @llvm.fmuladd.f64(double %46, double %14, double %43)
%48 = getelementptr inbounds double, double* %5, i64 2
store double %47, double* %48
%49 = getelementptr inbounds double, double* %4, i64 3
%50 = load double, double* %49
%51 = load double, double* %31
%52 = fmul double %51, 3.000000e+01
%53 = fmul double %13, %52
%54 = tail call double @llvm.fmuladd.f64(double %50, double 1.000000e-02, double %53)
%55 = load double, double* %11
%56 = tail call double @llvm.fmuladd.f64(double %55, double -1.200000e+00, double %54)
%57 = load double, double* %8
%58 = fmul double %57, -1.000000e+03
%59 = fmul double %55, %58
%60 = tail call double @llvm.fmuladd.f64(double %59, double %14, double %56)
%61 = getelementptr inbounds double, double* %5, i64 3
store double %60, double* %61
ret void
}