void jacmods235(double *p, double *jac, int m, int n, void *data) {
  register int j = 0;
  jac[j++] = 0.1;
  jac[j++] = 0.0;
  jac[j++] = 0.0;
  jac[j++] = -2.0 * p[0];
  jac[j++] = 1.0;
  jac[j++] = 0.0;
}


x86 assembly (clang, -O0):
<jacmods235>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
mov    %r8,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x24(%rbp)
movslq %ecx,%rcx
movsd  0xed9(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x24(%rbp)
movslq %ecx,%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x24(%rbp)
movslq %ecx,%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x8(%rbp),%rax
movsd  0xe8c(%rip),%xmm0
mulsd  (%rax),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x24(%rbp)
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x24(%rbp)
movslq %ecx,%rcx
movsd  0xe4f(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x24(%rbp)
movslq %ecx,%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
pop    %rbp
ret

x86 assembly (clang, -O2):
<jacmods235>:
movabs $0x3fb999999999999a,%rax
99 b9 3f
mov    %rax,(%rsi)
xorps  %xmm0,%xmm0
movups %xmm0,0x8(%rsi)
movsd  (%rdi),%xmm0
mulsd  0xee0(%rip),%xmm0
movsd  %xmm0,0x18(%rsi)
movsd  0xedb(%rip),%xmm0
movups %xmm0,0x20(%rsi)
ret

LLVM IR (-O0):
define void @jacmods235(double* %0, double* %1, i32 %2, i32 %3, i8* %4) {
%6 = alloca double*
%7 = alloca double*
%8 = alloca i32
%9 = alloca i32
%10 = alloca i8*
%11 = alloca i32
store double* %0, double** %6
store double* %1, double** %7
store i32 %2, i32* %8
store i32 %3, i32* %9
store i8* %4, i8** %10
store i32 0, i32* %11
%12 = load double*, double** %7
%13 = load i32, i32* %11
%14 = add nsw i32 %13, 1
store i32 %14, i32* %11
%15 = sext i32 %13 to i64
%16 = getelementptr inbounds double, double* %12, i64 %15
store double 1.000000e-01, double* %16
%17 = load double*, double** %7
%18 = load i32, i32* %11
%19 = add nsw i32 %18, 1
store i32 %19, i32* %11
%20 = sext i32 %18 to i64
%21 = getelementptr inbounds double, double* %17, i64 %20
store double 0.000000e+00, double* %21
%22 = load double*, double** %7
%23 = load i32, i32* %11
%24 = add nsw i32 %23, 1
store i32 %24, i32* %11
%25 = sext i32 %23 to i64
%26 = getelementptr inbounds double, double* %22, i64 %25
store double 0.000000e+00, double* %26
%27 = load double*, double** %6
%28 = getelementptr inbounds double, double* %27, i64 0
%29 = load double, double* %28
%30 = fmul double -2.000000e+00, %29
%31 = load double*, double** %7
%32 = load i32, i32* %11
%33 = add nsw i32 %32, 1
store i32 %33, i32* %11
%34 = sext i32 %32 to i64
%35 = getelementptr inbounds double, double* %31, i64 %34
store double %30, double* %35
%36 = load double*, double** %7
%37 = load i32, i32* %11
%38 = add nsw i32 %37, 1
store i32 %38, i32* %11
%39 = sext i32 %37 to i64
%40 = getelementptr inbounds double, double* %36, i64 %39
store double 1.000000e+00, double* %40
%41 = load double*, double** %7
%42 = load i32, i32* %11
%43 = add nsw i32 %42, 1
store i32 %43, i32* %11
%44 = sext i32 %42 to i64
%45 = getelementptr inbounds double, double* %41, i64 %44
store double 0.000000e+00, double* %45
ret void
}

LLVM IR (-O2):
define void @jacmods235(double* nocapture %0, double* nocapture writeonly %1, i32 %2, i32 %3, i8* nocapture readnone %4) {
store double 1.000000e-01, double* %1
%6 = getelementptr inbounds double, double* %1, i64 1
%7 = bitcast double* %6 to i8*
%8 = load double, double* %0
%9 = fmul double %8, -2.000000e+00
%10 = getelementptr inbounds double, double* %1, i64 3
store double %9, double* %10
%11 = getelementptr inbounds double, double* %1, i64 4
%12 = bitcast double* %11 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 0.000000e+00>, <2 x double>* %12
ret void
}