user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  lea    D29(%rip),%r13
  push   %r12
  lea    D192(%rip),%r12
  mov    %r13,%rdi
  push   %rbp
  mov    %r12,%rsi
  push   %rbx
  sub    $0x68,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x58(%rsp)
  xor    %eax,%eax
  call   <fopen@plt>
  test   %rax,%rax
  je     L205
  lea    0x40(%rsp),%r11
  lea    0x38(%rsp),%r9
  mov    %rax,%rbp
  mov    %rax,%rdi
  lea    0x48(%rsp),%rbx
  lea    0x30(%rsp),%r15
  xor    %eax,%eax
  lea    0x28(%rsp),%r14
  push   %r11
  lea    D70(%rip),%r13
  mov    %rbx,%r8
  mov    %r15,%rcx
  mov    %r14,%rdx
  mov    %r13,%rsi
  lea    0x58(%rsp),%r10
  mov    %r11,0x20(%rsp)
  push   %r10
  mov    %r10,0x20(%rsp)
  mov    %r9,0x18(%rsp)
  call   <fscanf@plt>
  mov    0x28(%rsp),%r11
  mov    %rbx,%r8
  mov    %r15,%rcx
  mov    %r14,%rdx
  mov    %r13,%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  push   %r11
  mov    0x28(%rsp),%r10
  push   %r10
  mov    0x28(%rsp),%r9
  call   <fscanf@plt>
  mov    %rbp,%rdi
  add    $0x20,%rsp
  call   <fclose@plt>
  mov    %r12,%rsi
  lea    D129(%rip),%r12
  mov    %r12,%rdi
  call   <fopen@plt>
  mov    %rax,%rbp
  test   %rax,%rax
  je     L99
  lea    D121(%rip),%r13
  mov    %rax,%rdi
  lea    0x2c(%rsp),%rdx
  xor    %eax,%eax
  mov    %r13,%rsi
  call   <fscanf@plt>
  mov    0x2c(%rsp),%edi
  call   <srand@plt>
  mov    %rbp,%rdi
  call   <fclose@plt>
L169:
  lea    D331(%rip),%rbp
  mov    %r12,%rdi
  xor    %r15d,%r15d
  mov    %rbp,%rsi
  call   <fopen@plt>
  mov    %rax,%r12
  xor    %eax,%eax
  call   <rand@plt>
  mov    %r13,%rsi
  mov    %r12,%rdi
  mov    %eax,%edx
  xor    %eax,%eax
  call   <fprintf@plt>
  mov    %r12,%rdi
  mov    %r15d,%r12d
  call   <fclose@plt>
  mov    %rbp,%rsi
  lea    D270(%rip),%rdi
  call   <fopen@plt>
  mov    %rbp,%rsi
  lea    D115(%rip),%rdi
  mov    %rax,%r14
  call   <fopen@plt>
  mov    %rbp,%rsi
  lea    D351(%rip),%rdi
  mov    %rax,%r13
  call   <fopen@plt>
  mov    %r14,%rcx
  mov    $0x12,%edx
  mov    $0x1,%esi
  lea    D131(%rip),%rdi
  mov    %rax,%rbp
  call   <fwrite@plt>
  mov    0x28(%rsp),%eax
  test   %eax,%eax
  jle    L191
  cs nopw 0x0(%rax,%rax,1)
L16:
  mov    $0x1,%ebx
  cmp    $0x2,%eax
  jg     L182
  jmp    L24
  nopl   0x0(%rax,%rax,1)
L112:
  call   <gaus@plt>
  pxor   %xmm1,%xmm1
  mov    %r12d,%r9d
  mov    %r15d,%r8d
  lea    (%rax,%rax,2),%eax
  mov    %r12d,%ecx
  mov    %r15d,%edx
  mov    %r14,%rdi
  cvtsi2sd %eax,%xmm1
  mulsd  0x40(%rsp),%xmm1
  lea    D302(%rip),%rsi
  mov    $0x1,%eax
  addsd  D54(%rip),%xmm1
  mulsd  0x50(%rsp),%xmm1
  push   %r12
  push   %rbx
  movapd %xmm1,%xmm0
  movsd  %xmm1,0x18(%rsp)
  call   <fprintf@plt>
  mov    %rbp,%rdi
  mov    %r12d,%r9d
  mov    %ebx,%r8d
  movsd  0x18(%rsp),%xmm1
  lea    D293(%rip),%rsi
  mov    %r12d,%ecx
  mov    %r15d,%edx
  mov    $0x2,%eax
  movapd %xmm1,%xmm0
  call   <fprintf@plt>
  pop    %rsi
  pop    %rdi
L247:
  mov    %r13,%rsi
  mov    $0xa,%edi
  call   <fputc@plt>
  mov    %rbp,%rsi
  mov    $0xa,%edi
  call   <fputc@plt>
  mov    0x28(%rsp),%eax
  lea    -0x1(%rax),%edx
  cmp    %ebx,%edx
  jle    L24
L182:
  lea    (%r12,%rbx,1),%eax
  mov    %ebx,%r15d
  add    $0x1,%ebx
  test   $0x1,%al
  mov    $0x0,%eax
  je     L112
  call   <gaus@plt>
  pxor   %xmm1,%xmm1
  mov    %r12d,%r9d
  mov    %r15d,%r8d
  lea    (%rax,%rax,2),%eax
  mov    %r12d,%ecx
  mov    %r15d,%edx
  mov    %r14,%rdi
  cvtsi2sd %eax,%xmm1
  mulsd  0x38(%rsp),%xmm1
  lea    D44(%rip),%rsi
  mov    $0x1,%eax
  addsd  D54(%rip),%xmm1
  mulsd  0x48(%rsp),%xmm1
  push   %r12
  push   %rbx
  movapd %xmm1,%xmm0
  movsd  %xmm1,0x18(%rsp)
  call   <fprintf@plt>
  push   %r12
  mov    %r12d,%r9d
  mov    %r15d,%r8d
  push   %rbx
  mov    %r12d,%ecx
  mov    %r15d,%edx
  mov    %r14,%rdi
  lea    D211(%rip),%rsi
  xor    %eax,%eax
  call   <fprintf@plt>
  add    $0x20,%rsp
  mov    %r12d,%r9d
  mov    %ebx,%r8d
  movsd  0x8(%rsp),%xmm1
  mov    %r12d,%ecx
  mov    %r15d,%edx
  mov    %r13,%rdi
  lea    D293(%rip),%rsi
  mov    $0x2,%eax
  movapd %xmm1,%xmm0
  call   <fprintf@plt>
  jmp    L247
  nopl   0x0(%rax)
L24:
  add    $0x1,%r12d
  cmp    %r12d,%eax
  jg     L16
L191:
  mov    %r13,%rsi
  mov    $0xa,%edi
  xor    %r12d,%r12d
  call   <fputc@plt>
  mov    %rbp,%rsi
  mov    $0xa,%edi
  call   <fputc@plt>
  mov    0x28(%rsp),%eax
  cmp    $0x1,%eax
  jle    L258
  nopw   0x0(%rax,%rax,1)
L37:
  mov    %r12d,0x8(%rsp)
  mov    %r12d,%ebx
  mov    $0x1,%r15d
  add    $0x1,%r12d
  cmp    $0x1,%eax
  jg     L237
  jmp    L133
L248:
  call   <gaus@plt>
  pxor   %xmm1,%xmm1
  mov    %ebx,%r9d
  mov    %r15d,%r8d
  lea    (%rax,%rax,2),%eax
  mov    %ebx,%ecx
  mov    %r15d,%edx
  mov    %r14,%rdi
  cvtsi2sd %eax,%xmm1
  mulsd  0x38(%rsp),%xmm1
  lea    D59(%rip),%rsi
  mov    $0x1,%eax
  addsd  D54(%rip),%xmm1
  mulsd  0x48(%rsp),%xmm1
  push   %r12
  push   %r15
  movapd %xmm1,%xmm0
  movsd  %xmm1,0x20(%rsp)
  call   <fprintf@plt>
  push   %r12
  mov    %ebx,%r9d
  mov    %r15d,%r8d
  push   %r15
  mov    %ebx,%ecx
  mov    %r15d,%edx
  lea    D220(%rip),%rsi
  mov    %r14,%rdi
  xor    %eax,%eax
  call   <fprintf@plt>
  movsd  0x30(%rsp),%xmm1
  mov    %r12d,%r9d
  mov    %ebx,%ecx
  add    $0x20,%rsp
  mov    %r15d,%r8d
  mov    %r15d,%edx
  mov    %r13,%rdi
  movapd %xmm1,%xmm0
  lea    D293(%rip),%rsi
  mov    $0x2,%eax
  call   <fprintf@plt>
L203:
  mov    %r13,%rsi
  mov    $0xa,%edi
  add    $0x1,%r15d
  call   <fputc@plt>
  mov    %rbp,%rsi
  mov    $0xa,%edi
  call   <fputc@plt>
  mov    0x28(%rsp),%eax
  cmp    %r15d,%eax
  jle    L133
L237:
  mov    0x8(%rsp),%eax
  add    %r15d,%eax
  test   $0x1,%al
  mov    $0x0,%eax
  je     L248
  call   <gaus@plt>
  pxor   %xmm1,%xmm1
  mov    %ebx,%r9d
  mov    %r15d,%r8d
  lea    (%rax,%rax,2),%eax
  mov    %ebx,%ecx
  mov    %r15d,%edx
  mov    %r14,%rdi
  cvtsi2sd %eax,%xmm1
  mulsd  0x40(%rsp),%xmm1
  lea    D134(%rip),%rsi
  mov    $0x1,%eax
  addsd  D54(%rip),%xmm1
  mulsd  0x50(%rsp),%xmm1
  push   %r12
  push   %r15
  movapd %xmm1,%xmm0
  movsd  %xmm1,0x20(%rsp)
  call   <fprintf@plt>
  movsd  0x20(%rsp),%xmm1
  mov    %ebx,%ecx
  mov    %r15d,%edx
  mov    %r12d,%r9d
  mov    %r15d,%r8d
  lea    D293(%rip),%rsi
  mov    %rbp,%rdi
  movapd %xmm1,%xmm0
  mov    $0x2,%eax
  call   <fprintf@plt>
  pop    %rdx
  pop    %rcx
  jmp    L203
  xchg   %ax,%ax
L133:
  lea    -0x1(%rax),%edx
  cmp    %r12d,%edx
  jg     L37
L258:
  mov    %r13,%rsi
  mov    $0xa,%edi
  xor    %r15d,%r15d
  call   <fputc@plt>
  mov    %rbp,%rsi
  mov    $0xa,%edi
  lea    D293(%rip),%rbx
  call   <fputc@plt>
  mov    0x28(%rsp),%eax
  lea    D285(%rip),%r12
  test   %eax,%eax
  jg     L83
  jmp    L242
  nopl   0x0(%rax,%rax,1)
L43:
  call   <gaus@plt>
  pxor   %xmm1,%xmm1
  mov    %r15d,%r9d
  mov    %r15d,%ecx
  lea    (%rax,%rax,2),%eax
  lea    D315(%rip),%rsi
  mov    %r14,%rdi
  cvtsi2sd %eax,%xmm1
  mulsd  0x38(%rsp),%xmm1
  mov    0x28(%rsp),%eax
  addsd  D54(%rip),%xmm1
  mulsd  0x48(%rsp),%xmm1
  lea    -0x1(%rax),%edx
  mov    $0x1,%eax
  mov    %edx,%r8d
  movapd %xmm1,%xmm0
  movsd  %xmm1,0x8(%rsp)
  call   <fprintf@plt>
  mov    0x28(%rsp),%eax
  mov    %r15d,%r9d
  mov    %r15d,%ecx
  lea    D79(%rip),%rsi
  mov    %r14,%rdi
  lea    -0x1(%rax),%edx
  xor    %eax,%eax
  mov    %edx,%r8d
  call   <fprintf@plt>
  mov    0x28(%rsp),%r8d
  mov    %r15d,%r9d
  mov    %r15d,%ecx
  movsd  0x8(%rsp),%xmm1
  mov    %rbx,%rsi
  mov    %r13,%rdi
  mov    $0x2,%eax
  lea    -0x1(%r8),%edx
  movapd %xmm1,%xmm0
  call   <fprintf@plt>
L104:
  mov    %r13,%rsi
  mov    $0xa,%edi
  add    $0x1,%r15d
  call   <fputc@plt>
  mov    %rbp,%rsi
  mov    $0xa,%edi
  call   <fputc@plt>
  cmp    %r15d,0x28(%rsp)
  jle    L242
L83:
  xor    %eax,%eax
  test   $0x1,%r15b
  jne    L97
  call   <gaus@plt>
  pxor   %xmm1,%xmm1
  mov    %r15d,%ecx
  mov    %r15d,%edx
  lea    (%rax,%rax,2),%eax
  lea    D219(%rip),%rsi
  mov    %r14,%rdi
  cvtsi2sd %eax,%xmm1
  mulsd  0x40(%rsp),%xmm1
  mov    $0x1,%eax
  addsd  D54(%rip),%xmm1
  mulsd  0x50(%rsp),%xmm1
  movapd %xmm1,%xmm0
  movsd  %xmm1,0x8(%rsp)
  call   <fprintf@plt>
  mov    %r15d,%ecx
  mov    %r15d,%edx
  mov    %r12,%rsi
  movsd  0x8(%rsp),%xmm1
  mov    %rbp,%rdi
  mov    $0x2,%eax
  movapd %xmm1,%xmm0
  call   <fprintf@plt>
L57:
  mov    %r13,%rsi
  mov    $0xa,%edi
  call   <fputc@plt>
  mov    %rbp,%rsi
  mov    $0xa,%edi
  call   <fputc@plt>
  mov    0x28(%rsp),%eax
  add    %r15d,%eax
  test   $0x1,%al
  mov    $0x0,%eax
  je     L43
  call   <gaus@plt>
  pxor   %xmm1,%xmm1
  mov    %r15d,%r9d
  mov    %r15d,%ecx
  lea    (%rax,%rax,2),%eax
  mov    %r14,%rdi
  lea    D32(%rip),%rsi
  cvtsi2sd %eax,%xmm1
  mulsd  0x40(%rsp),%xmm1
  mov    0x28(%rsp),%eax
  addsd  D54(%rip),%xmm1
  mulsd  0x50(%rsp),%xmm1
  lea    -0x1(%rax),%edx
  mov    $0x1,%eax
  mov    %edx,%r8d
  movapd %xmm1,%xmm0
  movsd  %xmm1,0x8(%rsp)
  call   <fprintf@plt>
  mov    0x28(%rsp),%r8d
  mov    %r15d,%r9d
  mov    %r15d,%ecx
  movsd  0x8(%rsp),%xmm1
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  mov    $0x2,%eax
  lea    -0x1(%r8),%edx
  movapd %xmm1,%xmm0
  call   <fprintf@plt>
  jmp    L104
  nopw   0x0(%rax,%rax,1)
L97:
  call   <gaus@plt>
  pxor   %xmm1,%xmm1
  mov    %r15d,%ecx
  mov    %r15d,%edx
  lea    (%rax,%rax,2),%eax
  mov    %r14,%rdi
  lea    D386(%rip),%rsi
  cvtsi2sd %eax,%xmm1
  mulsd  0x38(%rsp),%xmm1
  mov    $0x1,%eax
  addsd  D54(%rip),%xmm1
  mulsd  0x48(%rsp),%xmm1
  movapd %xmm1,%xmm0
  movsd  %xmm1,0x8(%rsp)
  call   <fprintf@plt>
  mov    %r15d,%ecx
  mov    %r15d,%edx
  mov    %r14,%rdi
  lea    D233(%rip),%rsi
  xor    %eax,%eax
  call   <fprintf@plt>
  mov    %r15d,%ecx
  mov    %r15d,%edx
  mov    %r12,%rsi
  movsd  0x8(%rsp),%xmm1
  mov    %r13,%rdi
  mov    $0x2,%eax
  movapd %xmm1,%xmm0
  call   <fprintf@plt>
  jmp    L57
  nopl   0x0(%rax)
L242:
  mov    %r14,%rcx
  mov    $0x24,%edx
  mov    $0x1,%esi
  lea    D294(%rip),%rdi
  call   <fwrite@plt>
  mov    %r14,%rdi
  call   <fclose@plt>
  mov    %r13,%rdi
  call   <fclose@plt>
  mov    %rbp,%rdi
  call   <fclose@plt>
L198:
  mov    0x58(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L239
  add    $0x68,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L99:
  xor    %edi,%edi
  lea    D121(%rip),%r13
  call   <time@plt>
  mov    %eax,%edi
  call   <srand@plt>
  jmp    L169
L205:
  mov    %r13,%rdi
  lea    D331(%rip),%rsi
  call   <fopen@plt>
  mov    $0x61,%edx
  mov    $0x1,%esi
  lea    D365(%rip),%rdi
  mov    %rax,%rcx
  call   <fwrite@plt>
  lea    D337(%rip),%rdi
  call   <printf@plt>
  jmp    L198
L239:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_tag: D29
datatype: string
name: unpack_data
arguments: data_tag: D192
datatype: string
name: unpack_data
arguments: data_tag: D70
datatype: string
name: unpack_data
arguments: data_tag: D129
datatype: string
name: unpack_data
arguments: data_tag: D121
datatype: string
name: unpack_data
arguments: data_tag: D331
datatype: string
name: unpack_data
arguments: data_tag: D270
datatype: string
name: unpack_data
arguments: data_tag: D115
datatype: string
name: unpack_data
arguments: data_tag: D351
datatype: string
name: unpack_data
arguments: data_tag: D131
datatype: string
name: unpack_data
arguments: data_tag: D302
datatype: string
name: unpack_data
arguments: data_tag: D54
datatype: byte[8]
name: unpack_data
arguments: data_tag: D293
datatype: string
name: unpack_data
arguments: data_tag: D44
datatype: string
name: unpack_data
arguments: data_tag: D211
datatype: string
name: unpack_data
arguments: data_tag: D59
datatype: string
name: unpack_data
arguments: data_tag: D220
datatype: string
name: unpack_data
arguments: data_tag: D134
datatype: string
name: unpack_data
arguments: data_tag: D285
datatype: string
name: unpack_data
arguments: data_tag: D315
datatype: string
name: unpack_data
arguments: data_tag: D79
datatype: string
name: unpack_data
arguments: data_tag: D219
datatype: string
name: unpack_data
arguments: data_tag: D32
datatype: string
name: unpack_data
arguments: data_tag: D386
datatype: string
name: unpack_data
arguments: data_tag: D233
datatype: string
name: unpack_data
arguments: data_tag: D294
datatype: string
name: unpack_data
arguments: data_tag: D365
datatype: string
name: unpack_data
arguments: data_tag: D337
datatype: string

tool: D29: parameters.ini

tool: D192: r

tool: D70: %d %lf %lf %lf %lf %lf

tool: D129: seed

tool: D121: %d

tool: D331: w

tool: D270: circuit.cir

tool: D115: capacitors.txt

tool: D351: resistors.txt

tool: D131: Random RC Network


tool: D302: Rx%dy%dX x%dy%d x%dy%d %ek


tool: {"D54": [0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x3f]}

tool: D293: %d %d %e
%d %d %e



tool: D44: Cx%dy%dX x%dy%d x%dy%d %en


tool: D211: Rx%dy%dX x%dy%d x%dy%d 1G


tool: D59: Cx%dy%dY x%dy%d x%dy%d %en


tool: D220: Rx%dy%dY x%dy%d x%dy%d 1G


tool: D134: Rx%dy%dY x%dy%d x%dy%d %ek


tool: D285: 0 %d %e
1 %d %e



tool: D315: Cx%dy%dX x%dy%d VOUT %en


tool: D79: Rx%dy%dX x%dy%d VOUT 1G


tool: D219: Rx0y%dX 0 x1y%d %ek


tool: D32: Rx%dy%dX x%dy%d VOUT %ek


tool: D386: Cx0y%dX 0 x1y%d %en


tool: D233: Rx0y%dX 0 x1y%d 1G


tool: D294: V1 R1_N 0 AC 50
R1 VOUT R1_N 100Meg


tool: D365: 50 0.4 1 0.333 1 0.333
N_vert_comps ratio_C C0 sigma_C(fraction of C0) R0 sigma_R(fraction of R0)

tool: D337: Edit Values in "parameters.ini" then rerun

assistant: ```c
int main() {
  double rnd_x, rnd_y, gauss, ratioC, Csig, Rsig, Cn, Rn, C0, R0;
  double e = 2.7182818, rmax = 2147483647;
  int i, cy, cx, size, seed;
  FILE *f0, *f1, *f2, *f3;
  if (f0 = fopen("parameters.ini", "r"))
    fscanf(f0, "%d %lf %lf %lf %lf %lf", &size, &ratioC, &C0, &Csig, &R0, &Rsig);
  else {
    f0 = fopen("parameters.ini", "w");
    fprintf(f0, "50 0.4 1 0.333 1 0.333\nN_vert_comps ratio_C C0 sigma_C(fraction of C0) R0 sigma_R(fraction of R0)");
    printf("Edit Values in \"parameters.ini\" then rerun");
    return 0;
  }
  fscanf(f0, "%d %lf %lf %lf %lf %lf", &size, &ratioC, &C0, &Csig, &R0, &Rsig);
  fclose(f0);
  rmax = RAND_MAX;
  if (f1 = fopen("seed", "r")) {
    fscanf(f1, "%d", &seed);
    srand(seed);
    fclose(f1);
  } else
    srand(time(NULL));
  f1 = fopen("seed", "w");
  fprintf(f1, "%d", rand());
  fclose(f1);
  f0 = fopen("circuit.cir", "w");
  f2 = fopen("capacitors.txt", "w");
  f3 = fopen("resistors.txt", "w");
  fprintf(f0, "Random RC Network\n");
  for (cy = 0; cy < size; cy++)
    for (cx = 1; cx < size - 1; cx++) {
      if ((cy + cx) % 2 == 1) {
        Cn = C0 * (1 + gaus() * 3 * Csig);
        fprintf(f0, "Cx%dy%dX x%dy%d x%dy%d %en\n", cx, cy, cx, cy, cx + 1, cy, Cn);
        fprintf(f0, "Rx%dy%dX x%dy%d x%dy%d 1G\n", cx, cy, cx, cy, cx + 1, cy);
        fprintf(f2, "%d %d %e\n%d %d %e\n\n", cx, cy, Cn, cx + 1, cy, Cn);
      } else {
        Rn = R0 * (1 + gaus() * 3 * Rsig);
        fprintf(f0, "Rx%dy%dX x%dy%d x%dy%d %ek\n", cx, cy, cx, cy, cx + 1, cy, Rn);
        fprintf(f3, "%d %d %e\n%d %d %e\n\n", cx, cy, Rn, cx + 1, cy, Rn);
      }
      fprintf(f2, "\n");
      fprintf(f3, "\n");
    }
  fprintf(f2, "\n");
  fprintf(f3, "\n");
  for (cy = 0; cy < size - 1; cy++)
    for (cx = 1; cx < size; cx++) {
      if ((cy + cx) % 2 == 0) {
        Cn = C0 * (1 + gaus() * 3 * Csig);
        fprintf(f0, "Cx%dy%dY x%dy%d x%dy%d %en\n", cx, cy, cx, cy, cx, cy + 1, Cn);
        fprintf(f0, "Rx%dy%dY x%dy%d x%dy%d 1G\n", cx, cy, cx, cy, cx, cy + 1);
        fprintf(f2, "%d %d %e\n%d %d %e\n\n", cx, cy, Cn, cx, cy + 1, Cn);
      } else {
        Rn = R0 * (1 + gaus() * 3 * Rsig);
        fprintf(f0, "Rx%dy%dY x%dy%d x%dy%d %ek\n", cx, cy, cx, cy, cx, cy + 1, Rn);
        fprintf(f3, "%d %d %e\n%d %d %e\n\n", cx, cy, Rn, cx, cy + 1, Rn);
      }
      fprintf(f2, "\n");
      fprintf(f3, "\n");
    }
  fprintf(f2, "\n");
  fprintf(f3, "\n");
  for (cy = 0; cy < size; cy++) {
    if ((cy) % 2 == 1) {
      Cn = C0 * (1 + gaus() * 3 * Csig);
      fprintf(f0, "Cx0y%dX 0 x1y%d %en\n", cy, cy, Cn);
      fprintf(f0, "Rx0y%dX 0 x1y%d 1G\n", cy, cy);
      fprintf(f2, "0 %d %e\n1 %d %e\n\n", cy, Cn, cy, Cn);
    } else {
      Rn = R0 * (1 + gaus() * 3 * Rsig);
      fprintf(f0, "Rx0y%dX 0 x1y%d %ek\n", cy, cy, Rn);
      fprintf(f3, "0 %d %e\n1 %d %e\n\n", cy, Rn, cy, Rn);
    }
    fprintf(f2, "\n");
    fprintf(f3, "\n");
    if ((cy + size) % 2 == 0) {
      Cn = C0 * (1 + gaus() * 3 * Csig);
      fprintf(f0, "Cx%dy%dX x%dy%d VOUT %en\n", size - 1, cy, size - 1, cy, Cn);
      fprintf(f0, "Rx%dy%dX x%dy%d VOUT 1G\n", size - 1, cy, size - 1, cy);
      fprintf(f2, "%d %d %e\n%d %d %e\n\n", size - 1, cy, Cn, size, cy, Cn);
    } else {
      Rn = R0 * (1 + gaus() * 3 * Rsig);
      fprintf(f0, "Rx%dy%dX x%dy%d VOUT %ek\n", size - 1, cy, size - 1, cy, Rn);
      fprintf(f3, "%d %d %e\n%d %d %e\n\n", size - 1, cy, Rn, size, cy, Rn);
    }
    fprintf(f2, "\n");
    fprintf(f3, "\n");
  }
  fprintf(f0, "V1 R1_N 0 AC 50\nR1 VOUT R1_N 100Meg\n");
  fclose(f0);
  fclose(f2);
  fclose(f3);
  return 0;
}
```