void reset_parameters(double *z, double *a, double *gradient) {
  int j;
  for (j = 0; j < 600; j++) {
    *(z + j) = 0;
    *(a + j) = 0;
    *(gradient + j) = 0;
  }
}


x86 assembly (clang, -O0):
<reset_parameters>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
cmpl   $0x258,-0x1c(%rbp)
jge    1162 <reset_parameters+0x62>
mov    -0x8(%rbp),%rax
movslq -0x1c(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%rax
movslq -0x1c(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1117 <reset_parameters+0x17>
pop    %rbp
ret

x86 assembly (clang, -O2):
<reset_parameters>:
push   %rbp
push   %r14
push   %rbx
lea    0x12c0(%rsi),%rax
cmp    %rdi,%rax
seta   %r11b
lea    0x12c0(%rdi),%rcx
cmp    %rsi,%rcx
seta   %r14b
lea    0x12c0(%rdx),%rbp
cmp    %rdi,%rbp
seta   %bl
cmp    %rdx,%rcx
seta   %r9b
cmp    %rsi,%rbp
seta   %r10b
cmp    %rdx,%rax
seta   %r8b
test   %r14b,%r11b
jne    11c5 <reset_parameters+0xc5>
and    %r9b,%bl
jne    11c5 <reset_parameters+0xc5>
and    %r8b,%r10b
jne    11c5 <reset_parameters+0xc5>
mov    $0xa,%eax
xorps  %xmm0,%xmm0
nopl   0x0(%rax)
movups %xmm0,-0x50(%rdi,%rax,8)
movups %xmm0,-0x40(%rdi,%rax,8)
movups %xmm0,-0x50(%rsi,%rax,8)
movups %xmm0,-0x40(%rsi,%rax,8)
movups %xmm0,-0x50(%rdx,%rax,8)
movups %xmm0,-0x40(%rdx,%rax,8)
movups %xmm0,-0x30(%rdi,%rax,8)
movups %xmm0,-0x20(%rdi,%rax,8)
movups %xmm0,-0x30(%rsi,%rax,8)
movups %xmm0,-0x20(%rsi,%rax,8)
movups %xmm0,-0x30(%rdx,%rax,8)
movups %xmm0,-0x20(%rdx,%rax,8)
movups %xmm0,-0x10(%rdi,%rax,8)
movups %xmm0,(%rdi,%rax,8)
movups %xmm0,-0x10(%rsi,%rax,8)
movups %xmm0,(%rsi,%rax,8)
movups %xmm0,-0x10(%rdx,%rax,8)
movups %xmm0,(%rdx,%rax,8)
add    $0xc,%rax
cmp    $0x262,%rax
jne    1160 <reset_parameters+0x60>
jmp    122a <reset_parameters+0x12a>
mov    $0x2,%eax
nopw   0x0(%rax,%rax,1)
movq   $0x0,-0x10(%rdi,%rax,8)
movq   $0x0,-0x10(%rsi,%rax,8)
movq   $0x0,-0x10(%rdx,%rax,8)
movq   $0x0,-0x8(%rdi,%rax,8)
movq   $0x0,-0x8(%rsi,%rax,8)
movq   $0x0,-0x8(%rdx,%rax,8)
movq   $0x0,(%rdi,%rax,8)
movq   $0x0,(%rsi,%rax,8)
movq   $0x0,(%rdx,%rax,8)
add    $0x3,%rax
cmp    $0x25a,%rax
jne    11d0 <reset_parameters+0xd0>
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
define void @reset_parameters(double* %0, double* %1, double* %2) {
%4 = alloca double*
%5 = alloca double*
%6 = alloca double*
%7 = alloca i32
store double* %0, double** %4
store double* %1, double** %5
store double* %2, double** %6
store i32 0, i32* %7
br label %8
8: ; preds = %24, %3
%9 = load i32, i32* %7
%10 = icmp slt i32 %9, 600
br i1 %10, label %11, label %27
11: ; preds = %8
%12 = load double*, double** %4
%13 = load i32, i32* %7
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds double, double* %12, i64 %14
store double 0.000000e+00, double* %15
%16 = load double*, double** %5
%17 = load i32, i32* %7
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds double, double* %16, i64 %18
store double 0.000000e+00, double* %19
%20 = load double*, double** %6
%21 = load i32, i32* %7
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds double, double* %20, i64 %22
store double 0.000000e+00, double* %23
br label %24
24: ; preds = %11
%25 = load i32, i32* %7
%26 = add nsw i32 %25, 1
store i32 %26, i32* %7
br label %8
27: ; preds = %8
ret void
}

LLVM IR (-O2):
define void @reset_parameters(double* nocapture writeonly %0, double* nocapture writeonly %1, double* nocapture writeonly %2) {
%4 = getelementptr double, double* %0, i64 600
%5 = getelementptr double, double* %1, i64 600
%6 = getelementptr double, double* %2, i64 600
%7 = icmp ugt double* %5, %0
%8 = icmp ugt double* %4, %1
%9 = and i1 %7, %8
%10 = icmp ugt double* %6, %0
%11 = icmp ugt double* %4, %2
%12 = and i1 %10, %11
%13 = or i1 %9, %12
%14 = icmp ugt double* %6, %1
%15 = icmp ugt double* %5, %2
%16 = and i1 %14, %15
%17 = or i1 %13, %16
br i1 %17, label %60, label %18
18: ; preds = %3, %18
%19 = phi i64 [ %58, %18 ], [ 0, %3 ]
%20 = getelementptr inbounds double, double* %0, i64 %19
%21 = bitcast double* %20 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %21
%22 = getelementptr inbounds double, double* %20, i64 2
%23 = bitcast double* %22 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %23
%24 = getelementptr inbounds double, double* %1, i64 %19
%25 = bitcast double* %24 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %25
%26 = getelementptr inbounds double, double* %24, i64 2
%27 = bitcast double* %26 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %27
%28 = getelementptr inbounds double, double* %2, i64 %19
%29 = bitcast double* %28 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %29
%30 = getelementptr inbounds double, double* %28, i64 2
%31 = bitcast double* %30 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %31
%32 = add nuw nsw i64 %19, 4
%33 = getelementptr inbounds double, double* %0, i64 %32
%34 = bitcast double* %33 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %34
%35 = getelementptr inbounds double, double* %33, i64 2
%36 = bitcast double* %35 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %36
%37 = getelementptr inbounds double, double* %1, i64 %32
%38 = bitcast double* %37 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %38
%39 = getelementptr inbounds double, double* %37, i64 2
%40 = bitcast double* %39 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %40
%41 = getelementptr inbounds double, double* %2, i64 %32
%42 = bitcast double* %41 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %42
%43 = getelementptr inbounds double, double* %41, i64 2
%44 = bitcast double* %43 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %44
%45 = add nuw nsw i64 %19, 8
%46 = getelementptr inbounds double, double* %0, i64 %45
%47 = bitcast double* %46 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %47
%48 = getelementptr inbounds double, double* %46, i64 2
%49 = bitcast double* %48 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %49
%50 = getelementptr inbounds double, double* %1, i64 %45
%51 = bitcast double* %50 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %51
%52 = getelementptr inbounds double, double* %50, i64 2
%53 = bitcast double* %52 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %53
%54 = getelementptr inbounds double, double* %2, i64 %45
%55 = bitcast double* %54 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %55
%56 = getelementptr inbounds double, double* %54, i64 2
%57 = bitcast double* %56 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %57
%58 = add nuw nsw i64 %19, 12
%59 = icmp eq i64 %58, 600
br i1 %59, label %75, label %18
60: ; preds = %3, %60
%61 = phi i64 [ %73, %60 ], [ 0, %3 ]
%62 = getelementptr inbounds double, double* %0, i64 %61
store double 0.000000e+00, double* %62
%63 = getelementptr inbounds double, double* %1, i64 %61
store double 0.000000e+00, double* %63
%64 = getelementptr inbounds double, double* %2, i64 %61
store double 0.000000e+00, double* %64
%65 = add nuw nsw i64 %61, 1
%66 = getelementptr inbounds double, double* %0, i64 %65
store double 0.000000e+00, double* %66
%67 = getelementptr inbounds double, double* %1, i64 %65
store double 0.000000e+00, double* %67
%68 = getelementptr inbounds double, double* %2, i64 %65
store double 0.000000e+00, double* %68
%69 = add nuw nsw i64 %61, 2
%70 = getelementptr inbounds double, double* %0, i64 %69
store double 0.000000e+00, double* %70
%71 = getelementptr inbounds double, double* %1, i64 %69
store double 0.000000e+00, double* %71
%72 = getelementptr inbounds double, double* %2, i64 %69
store double 0.000000e+00, double* %72
%73 = add nuw nsw i64 %61, 3
%74 = icmp eq i64 %73, 600
br i1 %74, label %75, label %60
75: ; preds = %18, %60
ret void
}