#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, ...);
int rand();
int /*<<< orphan*/ scanf(char *, ...);
int /*<<< orphan*/ setbuf(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ stdout;
main(int argc, char **argv) {
  int sec, i, j, row, strip;
  int rcout = 1;
  int ccout = 1;
  int icout = 1;
  char name[256];
  double res_val, cap_val, ind_val;
  double I1, I2, I3, I4, I5;
  double voltage;
  double cur_var;
  FILE *fp;
  setbuf(stdout, 0);
  printf("#row:");
  scanf("%d", &row);
  printf("# RC/RLC s ection in each row:");
  scanf("%d", &sec);
  printf("# strip in each row:");
  scanf("%d", &strip);
  printf("filename:");
  scanf("%s", name);
  printf("voltage source:");
  scanf("%lf", &voltage);
  printf("#sec: %d\n", sec);
  printf("#row: %d\n", row);
  printf("#vertical strip: %d\n", strip);
  printf("filename: %s\n", name);
  printf("voltage: %g\n", voltage);
  if (strip >= sec) {
    printf("Invalid p/g strip number %d", strip);
    exit(-1);
  }
  fp = fopen(name, "w");
  if (!fp) {
    perror(name);
    exit(-1);
  }
  fprintf(fp, "\n** supply voltage: %g\n", voltage);
  fprintf(fp, "** #row: %d\n", row);
  fprintf(fp, "** #RC/RLC section per row: %d\n", sec);
  fprintf(fp, "** num_node %d\n", sec * row + 1);
  fprintf(fp, "** This is a %d x %d power network\n", row, sec);
  for (j = 0; j < row; j++) {
    fprintf(fp, "** row: %d\n", j + 1);
    if ((row - j) > 1) {
      int interval = sec / strip;
      if (interval >= 3) {
        fprintf(fp, "** p/g strip connection\n");
        for (i = 0; i < strip; i++) {
          res_val = 4 * 4 * ((1.76) * 1e-2) * (1 + ((rand() % 10) / 100.0));
          fprintf(fp, "R%d %d %d %g\n", rcout++, j * sec + interval * (i + 1),
                  (j + 1) * sec + interval * (i + 1), res_val);
        }
      } else {
        printf("P/G inseration is ignored as sec/strip is too small: %d\n",
               interval);
      }
      fprintf(fp, "** end of p/g strip connection\n");
    }
    res_val = 0.01 * 4 * ((1.76) * 1e-2) * (1 + ((rand() % 10) / 100.0));
    fprintf(fp, "R%d %d %d %g\n", rcout++, j * sec + 1, sec * row + 1, res_val);
    for (i = 1; i < sec; i++) {
      I1 = (0.35) * (((rand() % 100) / 100.0));
      I2 = (0.35) * (1.3 + ((rand() % 100) / 100.0));
      I3 = (0.35) * (1 + ((rand() % 90) / 100.0));
      I4 = (0.35) * (0.5 + ((rand() % 80) / 100.0));
      I5 = (0.35) * (((rand() % 10) / 100.0));
      fprintf(fp,
              "I%d %d %d DC 0 PWL(0 0.0 1ns %gmA 2ns %gmA 3ns %gmA 4ns %gmA "
              "5ns %gmA)\n",
              icout++, (i + j * sec), 0, I1, I2, I3, I4, I5);
      cap_val = (100e-12) * (1 + ((rand() % 100) / 100.0));
      fprintf(fp, "C%d %d %d %g\n", ccout++, (i + j * sec), 0, cap_val);
      res_val = 4 * ((1.76) * 1e-2) * (1 + ((rand() % 10) / 100.0));
      fprintf(fp, "R%d %d %d %g\n", rcout++, (i + j * sec), (i + 1 + j * sec),
              res_val);
    }
    I1 = (0.35) * (((rand() % 100) / 100.0));
    I2 = (0.35) * (1 + ((rand() % 100) / 100.0));
    I3 = (0.35) * (1 + ((rand() % 90) / 100.0));
    I4 = (0.35) * (0.5 + ((rand() % 80) / 100.0));
    I5 = (0.35) * (((rand() % 10) / 100.0));
    fprintf(fp,
            "I%d %d %d DC 0 PWL(0 0.0 1ns %gmA 2ns %gmA 3ns %gmA 4ns %gmA 5ns "
            "%gmA)\n",
            icout++, (i + j * sec), 0, I1, I2, I3, I4, I5);
    cap_val = (100e-12) * (1 + ((rand() % 100) / 100.0));
    fprintf(fp, "C%d %d %d %g\n", ccout++, (i + j * sec), 0, cap_val);
    res_val = 0.01 * 4 * ((1.76) * 1e-2) * (1 + ((rand() % 10) / 100.0));
    fprintf(fp, "R%d %d %d %g\n", rcout++, (i + j * sec), sec * row + 1,
            res_val);
  }
  fprintf(fp, "** supply voltage \n");
  fprintf(fp, "V1 %d %d %g \n", row * sec + 1, 0, voltage);
  fprintf(fp, "\n.tran 0.01ns 6n\n");
  fprintf(fp, "\n.end\n");
  fclose(fp);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x190,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x1,-0x28(%rbp)
movl   $0x1,-0x2c(%rbp)
movl   $0x1,-0x30(%rbp)
mov    0x2e1b(%rip),%rax
mov    (%rax),%edi
xor    %esi,%esi
call   1040 <setbuf@plt>
lea    0xe73(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xf06(%rip),%rdi
lea    -0x20(%rbp),%rsi
mov    $0x0,%al
call   1070 <scanf@plt>
lea    0xe59(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xee6(%rip),%rdi
lea    -0x14(%rbp),%rsi
mov    $0x0,%al
call   1070 <scanf@plt>
lea    0xe58(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xec6(%rip),%rdi
lea    -0x24(%rbp),%rsi
mov    $0x0,%al
call   1070 <scanf@plt>
lea    0xe4d(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x130(%rbp),%rsi
lea    0xe42(%rip),%rdi
mov    $0x0,%al
call   1070 <scanf@plt>
lea    0xe37(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xe39(%rip),%rdi
lea    -0x178(%rbp),%rsi
mov    $0x0,%al
call   1070 <scanf@plt>
mov    -0x14(%rbp),%esi
lea    0xe25(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x20(%rbp),%esi
lea    0xe7a(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x24(%rbp),%esi
lea    0xe0d(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x130(%rbp),%rsi
lea    0xe0d(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movsd  -0x178(%rbp),%xmm0
ff
lea    0xe2e(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    -0x24(%rbp),%eax
cmp    -0x14(%rbp),%eax
jl     12f9 <main+0x169>
mov    -0x24(%rbp),%esi
lea    0xde8(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0xffffffff,%edi
call   10a0 <exit@plt>
lea    -0x130(%rbp),%rdi
lea    0xde5(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x188(%rbp)
cmpq   $0x0,-0x188(%rbp)
jne    1337 <main+0x1a7>
lea    -0x130(%rbp),%rdi
call   1090 <perror@plt>
mov    $0xffffffff,%edi
call   10a0 <exit@plt>
mov    -0x188(%rbp),%rdi
movsd  -0x178(%rbp),%xmm0
ff
lea    0xda1(%rip),%rsi
mov    $0x1,%al
call   1060 <fprintf@plt>
mov    -0x188(%rbp),%rdi
mov    -0x20(%rbp),%edx
lea    0xda1(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x188(%rbp),%rdi
mov    -0x14(%rbp),%edx
lea    0xd96(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x188(%rbp),%rdi
mov    -0x14(%rbp),%edx
imul   -0x20(%rbp),%edx
add    $0x1,%edx
lea    0xd97(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x188(%rbp),%rdi
mov    -0x20(%rbp),%edx
mov    -0x14(%rbp),%ecx
lea    0xd8c(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    1aa9 <main+0x919>
mov    -0x188(%rbp),%rdi
mov    -0x1c(%rbp),%edx
add    $0x1,%edx
lea    0xd82(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x20(%rbp),%eax
sub    -0x1c(%rbp),%eax
cmp    $0x1,%eax
jle    1517 <main+0x387>
mov    -0x14(%rbp),%eax
cltd
idivl  -0x24(%rbp)
mov    %eax,-0x18c(%rbp)
cmpl   $0x3,-0x18c(%rbp)
jl     14ee <main+0x35e>
mov    -0x188(%rbp),%rdi
lea    0xd50(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    14e9 <main+0x359>
mov    $0x0,%al
call   10b0 <rand@plt>
mov    $0xa,%ecx
cltd
idiv   %ecx
cvtsi2sd %edx,%xmm0
movsd  0xbb8(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  0xba4(%rip),%xmm1
addsd  %xmm0,%xmm1
movsd  0xbd0(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x138(%rbp)
ff
mov    -0x188(%rbp),%rdi
mov    -0x28(%rbp),%edx
mov    %edx,%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
mov    -0x1c(%rbp),%ecx
imul   -0x14(%rbp),%ecx
mov    -0x18c(%rbp),%eax
mov    -0x18(%rbp),%esi
add    $0x1,%esi
imul   %esi,%eax
add    %eax,%ecx
mov    -0x1c(%rbp),%r8d
add    $0x1,%r8d
imul   -0x14(%rbp),%r8d
mov    -0x18c(%rbp),%eax
mov    -0x18(%rbp),%esi
add    $0x1,%esi
imul   %esi,%eax
add    %eax,%r8d
movsd  -0x138(%rbp),%xmm0
ff
lea    0xcb8(%rip),%rsi
mov    $0x1,%al
call   1060 <fprintf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1431 <main+0x2a1>
jmp    1502 <main+0x372>
mov    -0x18c(%rbp),%esi
lea    0xc9f(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x188(%rbp),%rdi
lea    0xcc3(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    $0x0,%al
call   10b0 <rand@plt>
mov    $0xa,%ecx
cltd
idiv   %ecx
cvtsi2sd %edx,%xmm0
movsd  0xade(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  0xaca(%rip),%xmm1
addsd  %xmm0,%xmm1
movsd  0xab6(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x138(%rbp)
ff
mov    -0x188(%rbp),%rdi
mov    -0x28(%rbp),%edx
mov    %edx,%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
mov    -0x1c(%rbp),%ecx
imul   -0x14(%rbp),%ecx
add    $0x1,%ecx
mov    -0x14(%rbp),%r8d
imul   -0x20(%rbp),%r8d
add    $0x1,%r8d
movsd  -0x138(%rbp),%xmm0
ff
lea    0xbfe(%rip),%rsi
mov    $0x1,%al
call   1060 <fprintf@plt>
movl   $0x1,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    182b <main+0x69b>
mov    $0x0,%al
call   10b0 <rand@plt>
mov    $0x64,%ecx
cltd
idiv   %ecx
cvtsi2sd %edx,%xmm1
movsd  0xa4d(%rip),%xmm0
divsd  %xmm0,%xmm1
movsd  0xa51(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x150(%rbp)
ff
mov    $0x0,%al
call   10b0 <rand@plt>
mov    $0x64,%ecx
cltd
idiv   %ecx
cvtsi2sd %edx,%xmm0
movsd  0xa1a(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  0xa36(%rip),%xmm1
addsd  %xmm0,%xmm1
movsd  0xa12(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x158(%rbp)
ff
mov    $0x0,%al
call   10b0 <rand@plt>
mov    $0x5a,%ecx
cltd
idiv   %ecx
cvtsi2sd %edx,%xmm0
movsd  0x9db(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  0x9c7(%rip),%xmm1
addsd  %xmm0,%xmm1
movsd  0x9d3(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x160(%rbp)
ff
mov    $0x0,%al
call   10b0 <rand@plt>
mov    $0x50,%ecx
cltd
idiv   %ecx
cvtsi2sd %edx,%xmm0
movsd  0x99c(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  0x9a8(%rip),%xmm1
addsd  %xmm0,%xmm1
movsd  0x994(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x168(%rbp)
ff
mov    $0x0,%al
call   10b0 <rand@plt>
mov    $0xa,%ecx
cltd
idiv   %ecx
cvtsi2sd %edx,%xmm1
movsd  0x95d(%rip),%xmm0
divsd  %xmm0,%xmm1
movsd  0x961(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x170(%rbp)
ff
mov    -0x188(%rbp),%rdi
mov    -0x30(%rbp),%edx
mov    %edx,%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
mov    -0x18(%rbp),%ecx
mov    -0x1c(%rbp),%eax
imul   -0x14(%rbp),%eax
add    %eax,%ecx
movsd  -0x150(%rbp),%xmm0
ff
movsd  -0x158(%rbp),%xmm1
ff
movsd  -0x160(%rbp),%xmm2
movsd  -0x168(%rbp),%xmm3
ff
movsd  -0x170(%rbp),%xmm4
ff
lea    0xadb(%rip),%rsi
xor    %r8d,%r8d
mov    $0x5,%al
call   1060 <fprintf@plt>
mov    $0x0,%al
call   10b0 <rand@plt>
mov    $0x64,%ecx
cltd
idiv   %ecx
cvtsi2sd %edx,%xmm0
movsd  0x8d3(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  0x8bf(%rip),%xmm1
addsd  %xmm0,%xmm1
movsd  0x8c3(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x140(%rbp)
ff
mov    -0x188(%rbp),%rdi
mov    -0x2c(%rbp),%edx
mov    %edx,%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
mov    -0x18(%rbp),%ecx
mov    -0x1c(%rbp),%eax
imul   -0x14(%rbp),%eax
add    %eax,%ecx
movsd  -0x140(%rbp),%xmm0
ff
lea    0xaad(%rip),%rsi
xor    %r8d,%r8d
mov    $0x1,%al
call   1060 <fprintf@plt>
mov    $0x0,%al
call   10b0 <rand@plt>
mov    $0xa,%ecx
cltd
idiv   %ecx
cvtsi2sd %edx,%xmm0
movsd  0x85d(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  0x849(%rip),%xmm1
addsd  %xmm0,%xmm1
movsd  0x865(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x138(%rbp)
ff
mov    -0x188(%rbp),%rdi
mov    -0x28(%rbp),%edx
mov    %edx,%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
mov    -0x18(%rbp),%ecx
mov    -0x1c(%rbp),%eax
imul   -0x14(%rbp),%eax
add    %eax,%ecx
mov    -0x18(%rbp),%r8d
add    $0x1,%r8d
mov    -0x1c(%rbp),%eax
imul   -0x14(%rbp),%eax
add    %eax,%r8d
movsd  -0x138(%rbp),%xmm0
ff
lea    0x976(%rip),%rsi
mov    $0x1,%al
call   1060 <fprintf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    159c <main+0x40c>
mov    $0x0,%al
call   10b0 <rand@plt>
mov    $0x64,%ecx
cltd
idiv   %ecx
cvtsi2sd %edx,%xmm1
movsd  0x7ca(%rip),%xmm0
divsd  %xmm0,%xmm1
movsd  0x7ce(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x150(%rbp)
ff
mov    $0x0,%al
call   10b0 <rand@plt>
mov    $0x64,%ecx
cltd
idiv   %ecx
cvtsi2sd %edx,%xmm0
movsd  0x797(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  0x783(%rip),%xmm1
addsd  %xmm0,%xmm1
movsd  0x78f(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x158(%rbp)
ff
mov    $0x0,%al
call   10b0 <rand@plt>
mov    $0x5a,%ecx
cltd
idiv   %ecx
cvtsi2sd %edx,%xmm0
movsd  0x758(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  0x744(%rip),%xmm1
addsd  %xmm0,%xmm1
movsd  0x750(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x160(%rbp)
ff
mov    $0x0,%al
call   10b0 <rand@plt>
mov    $0x50,%ecx
cltd
idiv   %ecx
cvtsi2sd %edx,%xmm0
movsd  0x719(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  0x725(%rip),%xmm1
addsd  %xmm0,%xmm1
movsd  0x711(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x168(%rbp)
ff
mov    $0x0,%al
call   10b0 <rand@plt>
mov    $0xa,%ecx
cltd
idiv   %ecx
cvtsi2sd %edx,%xmm1
movsd  0x6da(%rip),%xmm0
divsd  %xmm0,%xmm1
movsd  0x6de(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x170(%rbp)
ff
mov    -0x188(%rbp),%rdi
mov    -0x30(%rbp),%edx
mov    %edx,%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
mov    -0x18(%rbp),%ecx
mov    -0x1c(%rbp),%eax
imul   -0x14(%rbp),%eax
add    %eax,%ecx
movsd  -0x150(%rbp),%xmm0
ff
movsd  -0x158(%rbp),%xmm1
ff
movsd  -0x160(%rbp),%xmm2
ff
movsd  -0x168(%rbp),%xmm3
ff
movsd  -0x170(%rbp),%xmm4
ff
lea    0x858(%rip),%rsi
xor    %r8d,%r8d
mov    $0x5,%al
call   1060 <fprintf@plt>
mov    $0x0,%al
call   10b0 <rand@plt>
mov    $0x64,%ecx
cltd
idiv   %ecx
cvtsi2sd %edx,%xmm0
movsd  0x650(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  0x63c(%rip),%xmm1
addsd  %xmm0,%xmm1
movsd  0x640(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x140(%rbp)
ff
mov    -0x188(%rbp),%rdi
mov    -0x2c(%rbp),%edx
mov    %edx,%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
mov    -0x18(%rbp),%ecx
mov    -0x1c(%rbp),%eax
imul   -0x14(%rbp),%eax
add    %eax,%ecx
movsd  -0x140(%rbp),%xmm0
ff
lea    0x82a(%rip),%rsi
xor    %r8d,%r8d
mov    $0x1,%al
call   1060 <fprintf@plt>
mov    $0x0,%al
call   10b0 <rand@plt>
mov    $0xa,%ecx
cltd
idiv   %ecx
cvtsi2sd %edx,%xmm0
movsd  0x5da(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  0x5c6(%rip),%xmm1
addsd  %xmm0,%xmm1
movsd  0x5b2(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x138(%rbp)
ff
mov    -0x188(%rbp),%rdi
mov    -0x28(%rbp),%edx
mov    %edx,%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
mov    -0x18(%rbp),%ecx
mov    -0x1c(%rbp),%eax
imul   -0x14(%rbp),%eax
add    %eax,%ecx
mov    -0x14(%rbp),%r8d
imul   -0x20(%rbp),%r8d
add    $0x1,%r8d
movsd  -0x138(%rbp),%xmm0
ff
lea    0x6f8(%rip),%rsi
mov    $0x1,%al
call   1060 <fprintf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    13c5 <main+0x235>
mov    -0x188(%rbp),%rdi
lea    0x792(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x188(%rbp),%rdi
mov    -0x20(%rbp),%edx
imul   -0x14(%rbp),%edx
add    $0x1,%edx
movsd  -0x178(%rbp),%xmm0
ff
lea    0x77f(%rip),%rsi
xor    %ecx,%ecx
mov    $0x1,%al
call   1060 <fprintf@plt>
mov    -0x188(%rbp),%rdi
lea    0x776(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x188(%rbp),%rdi
lea    0x773(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x188(%rbp),%rdi
call   1030 <fclose@plt>
mov    -0x4(%rbp),%eax
add    $0x190,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x168,%rsp
mov    0x2e28(%rip),%rax
mov    (%rax),%edi
xor    %esi,%esi
call   1040 <setbuf@plt>
lea    0xe80(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xf13(%rip),%rbx
lea    0x4(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <scanf@plt>
lea    0xe62(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rsp,%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <scanf@plt>
lea    0xe66(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <scanf@plt>
lea    0xe5e(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe5a(%rip),%rdi
lea    0x60(%rsp),%rbx
mov    %rbx,%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
lea    0xe47(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe49(%rip),%rdi
lea    0x48(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    (%rsp),%esi
lea    0xe37(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x4(%rsp),%esi
lea    0xe8b(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0xc(%rsp),%esi
lea    0xe1d(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe24(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
movsd  0x48(%rsp),%xmm0
lea    0xe44(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    0xc(%rsp),%esi
cmp    (%rsp),%esi
jge    1bbc <main+0xa1c>
lea    0xe1c(%rip),%rsi
lea    0x60(%rsp),%rdi
call   1080 <fopen@plt>
test   %rax,%rax
je     1bd4 <main+0xa34>
mov    %rax,%r14
movsd  0x48(%rsp),%xmm0
lea    0xdfb(%rip),%rsi
mov    %rax,%rdi
mov    $0x1,%al
call   1060 <fprintf@plt>
mov    0x4(%rsp),%edx
lea    0xdfe(%rip),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    (%rsp),%edx
lea    0xdf7(%rip),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    0x4(%rsp),%edx
imul   (%rsp),%edx
add    $0x1,%edx
lea    0xdfb(%rip),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    0x4(%rsp),%edx
mov    (%rsp),%ecx
lea    0xdf3(%rip),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <fprintf@plt>
cmpl   $0x0,0x4(%rsp)
jle    1b31 <main+0x991>
mov    $0x1,%ecx
lea    0xe1b(%rip),%r13
xor    %ebx,%ebx
mov    $0x1,%r12d
mov    $0x1,%eax
mov    %rax,0x10(%rsp)
mov    $0x1,%ebp
mov    %r14,0x28(%rsp)
jmp    1667 <main+0x4c7>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
lea    0x1(%r13),%eax
mov    %eax,0x8(%rsp)
mov    $0x1,%r15d
mov    %rbp,%rbx
lea    0xe3b(%rip),%rbp
mov    0x10(%rsp),%r12
xor    %eax,%eax
call   10c0 <rand@plt>
cltq
imul   $0x51eb851f,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
shr    $0x20,%rcx
sar    $0x5,%ecx
add    %edx,%ecx
imul   $0x64,%ecx,%ecx
sub    %ecx,%eax
cvtsi2sd %eax,%xmm1
movsd  0xc12(%rip),%xmm0
divsd  %xmm0,%xmm1
movsd  0xc26(%rip),%xmm0
mulsd  %xmm0,%xmm1
movsd  %xmm1,0x18(%rsp)
xor    %eax,%eax
call   10c0 <rand@plt>
cltq
imul   $0x51eb851f,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
shr    $0x20,%rcx
sar    $0x5,%ecx
add    %edx,%ecx
imul   $0x64,%ecx,%ecx
sub    %ecx,%eax
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
divsd  0xbc8(%rip),%xmm1
movsd  0xbc8(%rip),%xmm0
addsd  %xmm0,%xmm1
mulsd  0xbd4(%rip),%xmm1
movsd  %xmm1,0x38(%rsp)
xor    %eax,%eax
call   10c0 <rand@plt>
cltq
imul   $0xffffffffb60b60b7,%rax,%rcx
shr    $0x20,%rcx
add    %eax,%ecx
mov    %ecx,%edx
shr    $0x1f,%edx
sar    $0x6,%ecx
add    %edx,%ecx
imul   $0x5a,%ecx,%ecx
sub    %ecx,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
divsd  0xb7a(%rip),%xmm0
addsd  0xb7a(%rip),%xmm0
mulsd  0xb8a(%rip),%xmm0
movsd  %xmm0,0x30(%rsp)
xor    %eax,%eax
call   10c0 <rand@plt>
cltq
imul   $0x66666667,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x25,%rcx
add    %edx,%ecx
shl    $0x4,%ecx
lea    (%rcx,%rcx,4),%ecx
sub    %ecx,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
divsd  0xb30(%rip),%xmm0
addsd  0xb58(%rip),%xmm0
mulsd  0xb40(%rip),%xmm0
movsd  %xmm0,0x10(%rsp)
xor    %eax,%eax
call   10c0 <rand@plt>
cltq
imul   $0x66666667,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x22,%rcx
add    %edx,%ecx
add    %ecx,%ecx
lea    (%rcx,%rcx,4),%ecx
sub    %ecx,%eax
cvtsi2sd %eax,%xmm4
divsd  0xaea(%rip),%xmm4
mulsd  0xb02(%rip),%xmm4
lea    0x1(%rbx),%eax
mov    %eax,0x40(%rsp)
mov    (%rsp),%ecx
imul   %r14d,%ecx
add    %r15d,%ecx
mov    %rbx,%rdx
mov    %r14,%rbx
mov    0x28(%rsp),%r14
mov    %r14,%rdi
mov    %rbp,%rsi
xor    %r8d,%r8d
movsd  0x18(%rsp),%xmm0
movsd  0x38(%rsp),%xmm1
movsd  0x30(%rsp),%xmm2
movsd  0x10(%rsp),%xmm3
mov    $0x5,%al
call   1060 <fprintf@plt>
xor    %eax,%eax
call   10c0 <rand@plt>
cltq
imul   $0x51eb851f,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x25,%rcx
add    %edx,%ecx
imul   $0x64,%ecx,%ecx
sub    %ecx,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
divsd  0xa6d(%rip),%xmm0
addsd  0xa6d(%rip),%xmm0
mulsd  0xa95(%rip),%xmm0
lea    0x1(%r12),%ebp
mov    (%rsp),%ecx
imul   %ebx,%ecx
add    %r15d,%ecx
mov    %r14,%rdi
lea    0xc80(%rip),%rsi
mov    %r12d,%edx
xor    %r8d,%r8d
mov    $0x1,%al
call   1060 <fprintf@plt>
xor    %eax,%eax
call   10c0 <rand@plt>
cltq
imul   $0x66666667,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x22,%rcx
add    %edx,%ecx
add    %ecx,%ecx
lea    (%rcx,%rcx,4),%ecx
sub    %ecx,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
divsd  0xa05(%rip),%xmm0
addsd  0xa05(%rip),%xmm0
mulsd  0xa0d(%rip),%xmm0
add    $0x2,%r13d
mov    %r13,%r12
mov    (%rsp),%r8d
imul   %r8d,%ebx
add    %r15d,%ebx
imul   0x4(%rsp),%r8d
add    $0x1,%r8d
mov    %r14,%rdi
lea    0xb5b(%rip),%r13
mov    %r13,%rsi
mov    0x8(%rsp),%edx
mov    %ebx,%ecx
mov    $0x1,%al
call   1060 <fprintf@plt>
mov    0x24(%rsp),%edx
add    $0x1,%edx
mov    0x54(%rsp),%eax
mov    %eax,%ebx
mov    %ebp,%ecx
mov    %rcx,0x10(%rsp)
mov    0x40(%rsp),%ecx
mov    %ecx,%ebp
cmp    0x4(%rsp),%eax
mov    %edx,%ecx
jge    1b31 <main+0x991>
mov    %ecx,0x24(%rsp)
lea    0x1(%rbx),%edx
mov    %r14,%r15
mov    %r14,%rdi
lea    0xaec(%rip),%rsi
mov    %edx,0x54(%rsp)
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    0x4(%rsp),%eax
sub    %ebx,%eax
cmp    $0x2,%eax
mov    %rbx,%r14
jl     1780 <main+0x5e0>
mov    (%rsp),%eax
cltd
idivl  0xc(%rsp)
cmp    $0x3,%eax
jl     1790 <main+0x5f0>
mov    %eax,0x8(%rsp)
mov    $0x18,%esi
mov    $0x1,%edx
lea    0xab5(%rip),%rdi
mov    %r15,%rbx
mov    %r15,%rcx
call   10b0 <fwrite@plt>
cmpl   $0x0,0xc(%rsp)
jle    17a3 <main+0x603>
mov    %rbp,0x18(%rsp)
xor    %ebx,%ebx
mov    0x8(%rsp),%ebp
mov    %r12,%r15
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
lea    (%r15,%rbx,1),%r12d
xor    %eax,%eax
call   10c0 <rand@plt>
cltq
imul   $0x66666667,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x22,%rcx
add    %edx,%ecx
add    %ecx,%ecx
lea    (%rcx,%rcx,4),%ecx
sub    %ecx,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
divsd  0x8d9(%rip),%xmm0
addsd  0x8d9(%rip),%xmm0
mulsd  0x8d9(%rip),%xmm0
mov    (%rsp),%r8d
add    $0x1,%ebx
mov    %r14d,%ecx
imul   %r8d,%ecx
add    %ebp,%ecx
imul   0x24(%rsp),%r8d
add    %ebp,%r8d
mov    0x28(%rsp),%rdi
mov    %r13,%rsi
mov    %r12d,%edx
mov    $0x1,%al
call   1060 <fprintf@plt>
add    0x8(%rsp),%ebp
cmp    0xc(%rsp),%ebx
jl     16f0 <main+0x550>
add    %ebx,%r15d
mov    %r15,%r12
mov    0x28(%rsp),%rbx
mov    0x18(%rsp),%rbp
jmp    17a3 <main+0x603>
xchg   %ax,%ax
mov    %r15,%rbx
jmp    17bc <main+0x61c>
cs nopw 0x0(%rax,%rax,1)
nop
lea    0xa03(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rbx
mov    $0x1f,%esi
mov    $0x1,%edx
lea    0xa1f(%rip),%rdi
mov    %rbx,%rcx
call   10b0 <fwrite@plt>
xor    %eax,%eax
call   10c0 <rand@plt>
cltq
imul   $0x66666667,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x22,%rcx
add    %edx,%ecx
add    %ecx,%ecx
lea    (%rcx,%rcx,4),%ecx
sub    %ecx,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
divsd  0x811(%rip),%xmm0
addsd  0x811(%rip),%xmm0
mulsd  0x819(%rip),%xmm0
mov    (%rsp),%r8d
mov    %r8d,%ecx
imul   %r14d,%ecx
add    $0x1,%ecx
imul   0x4(%rsp),%r8d
add    $0x1,%r8d
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %r12,%r13
mov    %r13d,%edx
mov    $0x1,%al
call   1060 <fprintf@plt>
cmpl   $0x2,(%rsp)
jl     13a0 <main+0x200>
mov    $0x2,%eax
mov    %r13,0x58(%rsp)
mov    %r14,%r12
mov    0x28(%rsp),%r14
cs nopw 0x0(%rax,%rax,1)
mov    %eax,%r13d
mov    0x58(%rsp),%rax
add    %r13d,%eax
add    $0xffffffff,%eax
mov    %eax,0x8(%rsp)
mov    0x10(%rsp),%rax
lea    (%rax,%r13,1),%r15d
add    $0xfffffffe,%r15d
lea    -0x2(%rbp,%r13,1),%ebx
xor    %eax,%eax
call   10c0 <rand@plt>
cltq
imul   $0x51eb851f,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
shr    $0x20,%rcx
sar    $0x5,%ecx
add    %edx,%ecx
imul   $0x64,%ecx,%ecx
sub    %ecx,%eax
cvtsi2sd %eax,%xmm1
movsd  0x75b(%rip),%xmm0
divsd  %xmm0,%xmm1
movsd  0x76f(%rip),%xmm0
mulsd  %xmm0,%xmm1
movsd  %xmm1,0x18(%rsp)
xor    %eax,%eax
call   10c0 <rand@plt>
cltq
imul   $0x51eb851f,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
shr    $0x20,%rcx
sar    $0x5,%ecx
add    %edx,%ecx
imul   $0x64,%ecx,%ecx
sub    %ecx,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
divsd  0x711(%rip),%xmm0
addsd  0x731(%rip),%xmm0
mulsd  0x721(%rip),%xmm0
movsd  %xmm0,0x40(%rsp)
xor    %eax,%eax
call   10c0 <rand@plt>
cltq
imul   $0xffffffffb60b60b7,%rax,%rcx
shr    $0x20,%rcx
add    %eax,%ecx
mov    %ecx,%edx
shr    $0x1f,%edx
sar    $0x6,%ecx
add    %edx,%ecx
imul   $0x5a,%ecx,%ecx
sub    %ecx,%eax
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
divsd  0x6c7(%rip),%xmm1
movsd  0x6c7(%rip),%xmm0
addsd  %xmm0,%xmm1
mulsd  0x6d3(%rip),%xmm1
movsd  %xmm1,0x38(%rsp)
xor    %eax,%eax
call   10c0 <rand@plt>
cltq
imul   $0x66666667,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x25,%rcx
add    %edx,%ecx
shl    $0x4,%ecx
lea    (%rcx,%rcx,4),%ecx
sub    %ecx,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
divsd  0x679(%rip),%xmm0
addsd  0x6a1(%rip),%xmm0
mulsd  0x689(%rip),%xmm0
movsd  %xmm0,0x30(%rsp)
xor    %eax,%eax
call   10c0 <rand@plt>
cltq
imul   $0x66666667,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x22,%rcx
add    %edx,%ecx
add    %ecx,%ecx
lea    (%rcx,%rcx,4),%ecx
sub    %ecx,%eax
cvtsi2sd %eax,%xmm4
divsd  0x633(%rip),%xmm4
mulsd  0x64b(%rip),%xmm4
mov    (%rsp),%eax
imul   %r12d,%eax
lea    (%rax,%r13,1),%ecx
add    $0xffffffff,%ecx
mov    %r14,%rdi
lea    0x806(%rip),%rsi
mov    %ebx,%edx
xor    %r8d,%r8d
movsd  0x18(%rsp),%xmm0
movsd  0x40(%rsp),%xmm1
movsd  0x38(%rsp),%xmm2
movsd  0x30(%rsp),%xmm3
mov    $0x5,%al
call   1060 <fprintf@plt>
xor    %eax,%eax
call   10c0 <rand@plt>
cltq
imul   $0x51eb851f,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x25,%rcx
add    %edx,%ecx
imul   $0x64,%ecx,%ecx
sub    %ecx,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
divsd  0x5be(%rip),%xmm0
addsd  0x5be(%rip),%xmm0
mulsd  0x5e6(%rip),%xmm0
mov    (%rsp),%eax
imul   %r12d,%eax
lea    (%rax,%r13,1),%ecx
add    $0xffffffff,%ecx
mov    %r14,%rdi
lea    0x7d1(%rip),%rsi
mov    %r15d,%edx
xor    %r8d,%r8d
mov    $0x1,%al
call   1060 <fprintf@plt>
xor    %eax,%eax
call   10c0 <rand@plt>
cltq
imul   $0x66666667,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x22,%rcx
add    %edx,%ecx
add    %ecx,%ecx
lea    (%rcx,%rcx,4),%ecx
sub    %ecx,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
divsd  0x556(%rip),%xmm0
addsd  0x556(%rip),%xmm0
mulsd  0x586(%rip),%xmm0
mov    (%rsp),%eax
imul   %r12d,%eax
lea    (%rax,%r13,1),%r8d
lea    (%rax,%r13,1),%ecx
add    $0xffffffff,%ecx
mov    %r14,%rdi
lea    0x6b6(%rip),%rsi
mov    0x8(%rsp),%edx
mov    $0x1,%al
call   1060 <fprintf@plt>
lea    0x1(%r13),%eax
cmp    (%rsp),%r13d
jl     1850 <main+0x6b0>
mov    0x58(%rsp),%rdx
lea    (%rdx,%rax,1),%ecx
add    $0xffffffff,%ecx
mov    %ecx,0x8(%rsp)
lea    (%rdx,%rax,1),%ecx
add    $0xfffffffe,%ecx
mov    %eax,%r15d
add    $0xffffffff,%r15d
mov    0x10(%rsp),%rdx
add    %eax,%edx
add    $0xfffffffe,%edx
lea    -0x2(%rbp,%rax,1),%ebp
mov    %ecx,%r13d
mov    %rbp,%rbx
lea    0x6cd(%rip),%rbp
mov    %r12,%r14
mov    %rdx,%r12
jmp    13bd <main+0x21d>
lea    0x711(%rip),%rdi
mov    $0x13,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   10b0 <fwrite@plt>
mov    (%rsp),%edx
imul   0x4(%rsp),%edx
add    $0x1,%edx
movsd  0x48(%rsp),%xmm0
lea    0x6fb(%rip),%rsi
mov    %r14,%rdi
xor    %ecx,%ecx
mov    $0x1,%al
call   1060 <fprintf@plt>
lea    0x6f6(%rip),%rdi
mov    $0x11,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   10b0 <fwrite@plt>
lea    0x6ef(%rip),%rdi
mov    $0x6,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   10b0 <fwrite@plt>
mov    %r14,%rdi
call   1030 <fclose@plt>
xor    %eax,%eax
add    $0x168,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0x50d(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xffffffff,%edi
call   10a0 <exit@plt>
lea    0x60(%rsp),%rdi
call   1090 <perror@plt>
mov    $0xffffffff,%edi
call   10a0 <exit@plt>

LLVM IR (-O0):
@stdout = global i32 0
@.str = [6 x i8] c"#row:\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [31 x i8] c"# RC/RLC s ection in each row:\00"
@.str.3 = [21 x i8] c"# strip in each row:\00"
@.str.4 = [10 x i8] c"filename:\00"
@.str.5 = [3 x i8] c"%s\00"
@.str.6 = [16 x i8] c"voltage source:\00"
@.str.7 = [4 x i8] c"%lf\00"
@.str.8 = [10 x i8] c"#sec: %d\0A\00"
@.str.9 = [10 x i8] c"#row: %d\0A\00"
@.str.10 = [21 x i8] c"#vertical strip: %d\0A\00"
@.str.11 = [14 x i8] c"filename: %s\0A\00"
@.str.12 = [13 x i8] c"voltage: %g\0A\00"
@.str.13 = [28 x i8] c"Invalid p/g strip number %d\00"
@.str.14 = [2 x i8] c"w\00"
@.str.15 = [24 x i8] c"\0A** supply voltage: %g\0A\00"
@.str.16 = [13 x i8] c"** #row: %d\0A\00"
@.str.17 = [32 x i8] c"** #RC/RLC section per row: %d\0A\00"
@.str.18 = [16 x i8] c"** num_node %d\0A\00"
@.str.19 = [36 x i8] c"** This is a %d x %d power network\0A\00"
@.str.20 = [12 x i8] c"** row: %d\0A\00"
@.str.21 = [25 x i8] c"** p/g strip connection\0A\00"
@.str.22 = [14 x i8] c"R%d %d %d %g\0A\00"
@.str.23 = [57 x i8] c"P/G inseration is ignored as sec/strip is too small: %d\0A\00"
@.str.24 = [32 x i8] c"** end of p/g strip connection\0A\00"
@.str.25 = [72 x i8] c"I%d %d %d DC 0 PWL(0 0.0 1ns %gmA 2ns %gmA 3ns %gmA 4ns %gmA 5ns %gmA)\0A\00"
@.str.26 = [14 x i8] c"C%d %d %d %g\0A\00"
@.str.27 = [20 x i8] c"** supply voltage \0A\00"
@.str.28 = [14 x i8] c"V1 %d %d %g \0A\00"
@.str.29 = [18 x i8] c"\0A.tran 0.01ns 6n\0A\00"
@.str.30 = [7 x i8] c"\0A.end\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca [256 x i8]
%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 i32*
%26 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 1, i32* %11
store i32 1, i32* %12
store i32 1, i32* %13
%27 = load i32, i32* @stdout
%28 = call i32 @setbuf(i32 %27, i32 0)
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%30 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %9)
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.2, i64 0, i64 0))
%32 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %6)
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0))
%34 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %10)
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%36 = getelementptr inbounds [256 x i8], [256 x i8]* %14, i64 0, i64 0
%37 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %36)
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.6, i64 0, i64 0))
%39 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), double* %23)
%40 = load i32, i32* %6
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0), i32 %40)
%42 = load i32, i32* %9
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.9, i64 0, i64 0), i32 %42)
%44 = load i32, i32* %10
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.10, i64 0, i64 0), i32 %44)
%46 = getelementptr inbounds [256 x i8], [256 x i8]* %14, i64 0, i64 0
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.11, i64 0, i64 0), i8* %46)
%48 = load double, double* %23
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.12, i64 0, i64 0), double %48)
%50 = load i32, i32* %10
%51 = load i32, i32* %6
%52 = icmp sge i32 %50, %51
br i1 %52, label %53, label %57
53: ; preds = %2
%54 = load i32, i32* %10
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.13, i64 0, i64 0), i32 %54)
%56 = call i32 @exit(i32 -1)
unreachable
57: ; preds = %2
%58 = getelementptr inbounds [256 x i8], [256 x i8]* %14, i64 0, i64 0
%59 = call i32* @fopen(i8* %58, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.14, i64 0, i64 0))
store i32* %59, i32** %25
%60 = load i32*, i32** %25
%61 = icmp ne i32* %60, null
br i1 %61, label %66, label %62
62: ; preds = %57
%63 = getelementptr inbounds [256 x i8], [256 x i8]* %14, i64 0, i64 0
%64 = call i32 @perror(i8* %63)
%65 = call i32 @exit(i32 -1)
unreachable
66: ; preds = %57
%67 = load i32*, i32** %25
%68 = load double, double* %23
%69 = call i32 (i32*, i8*, ...) @fprintf(i32* %67, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.15, i64 0, i64 0), double %68)
%70 = load i32*, i32** %25
%71 = load i32, i32* %9
%72 = call i32 (i32*, i8*, ...) @fprintf(i32* %70, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.16, i64 0, i64 0), i32 %71)
%73 = load i32*, i32** %25
%74 = load i32, i32* %6
%75 = call i32 (i32*, i8*, ...) @fprintf(i32* %73, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.17, i64 0, i64 0), i32 %74)
%76 = load i32*, i32** %25
%77 = load i32, i32* %6
%78 = load i32, i32* %9
%79 = mul nsw i32 %77, %78
%80 = add nsw i32 %79, 1
%81 = call i32 (i32*, i8*, ...) @fprintf(i32* %76, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.18, i64 0, i64 0), i32 %80)
%82 = load i32*, i32** %25
%83 = load i32, i32* %9
%84 = load i32, i32* %6
%85 = call i32 (i32*, i8*, ...) @fprintf(i32* %82, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.19, i64 0, i64 0), i32 %83, i32 %84)
store i32 0, i32* %8
br label %86
86: ; preds = %338, %66
%87 = load i32, i32* %8
%88 = load i32, i32* %9
%89 = icmp slt i32 %87, %88
br i1 %89, label %90, label %341
90: ; preds = %86
%91 = load i32*, i32** %25
%92 = load i32, i32* %8
%93 = add nsw i32 %92, 1
%94 = call i32 (i32*, i8*, ...) @fprintf(i32* %91, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.20, i64 0, i64 0), i32 %93)
%95 = load i32, i32* %9
%96 = load i32, i32* %8
%97 = sub nsw i32 %95, %96
%98 = icmp sgt i32 %97, 1
br i1 %98, label %99, label %151
99: ; preds = %90
%100 = load i32, i32* %6
%101 = load i32, i32* %10
%102 = sdiv i32 %100, %101
store i32 %102, i32* %26
%103 = load i32, i32* %26
%104 = icmp sge i32 %103, 3
br i1 %104, label %105, label %145
105: ; preds = %99
%106 = load i32*, i32** %25
%107 = call i32 (i32*, i8*, ...) @fprintf(i32* %106, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.21, i64 0, i64 0))
store i32 0, i32* %7
br label %108
108: ; preds = %141, %105
%109 = load i32, i32* %7
%110 = load i32, i32* %10
%111 = icmp slt i32 %109, %110
br i1 %111, label %112, label %144
112: ; preds = %108
%113 = call i32 (...) @rand()
%114 = srem i32 %113, 10
%115 = sitofp i32 %114 to double
%116 = fdiv double %115, 1.000000e+02
%117 = fadd double 1.000000e+00, %116
%118 = fmul double 2.816000e-01, %117
store double %118, double* %15
%119 = load i32*, i32** %25
%120 = load i32, i32* %11
%121 = add nsw i32 %120, 1
store i32 %121, i32* %11
%122 = load i32, i32* %8
%123 = load i32, i32* %6
%124 = mul nsw i32 %122, %123
%125 = load i32, i32* %26
%126 = load i32, i32* %7
%127 = add nsw i32 %126, 1
%128 = mul nsw i32 %125, %127
%129 = add nsw i32 %124, %128
%130 = load i32, i32* %8
%131 = add nsw i32 %130, 1
%132 = load i32, i32* %6
%133 = mul nsw i32 %131, %132
%134 = load i32, i32* %26
%135 = load i32, i32* %7
%136 = add nsw i32 %135, 1
%137 = mul nsw i32 %134, %136
%138 = add nsw i32 %133, %137
%139 = load double, double* %15
%140 = call i32 (i32*, i8*, ...) @fprintf(i32* %119, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.22, i64 0, i64 0), i32 %120, i32 %129, i32 %138, double %139)
br label %141
141: ; preds = %112
%142 = load i32, i32* %7
%143 = add nsw i32 %142, 1
store i32 %143, i32* %7
br label %108
144: ; preds = %108
br label %148
145: ; preds = %99
%146 = load i32, i32* %26
%147 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.23, i64 0, i64 0), i32 %146)
br label %148
148: ; preds = %145, %144
%149 = load i32*, i32** %25
%150 = call i32 (i32*, i8*, ...) @fprintf(i32* %149, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.24, i64 0, i64 0))
br label %151
151: ; preds = %148, %90
%152 = call i32 (...) @rand()
%153 = srem i32 %152, 10
%154 = sitofp i32 %153 to double
%155 = fdiv double %154, 1.000000e+02
%156 = fadd double 1.000000e+00, %155
%157 = fmul double 0x3F4711947CFA26A3, %156
store double %157, double* %15
%158 = load i32*, i32** %25
%159 = load i32, i32* %11
%160 = add nsw i32 %159, 1
store i32 %160, i32* %11
%161 = load i32, i32* %8
%162 = load i32, i32* %6
%163 = mul nsw i32 %161, %162
%164 = add nsw i32 %163, 1
%165 = load i32, i32* %6
%166 = load i32, i32* %9
%167 = mul nsw i32 %165, %166
%168 = add nsw i32 %167, 1
%169 = load double, double* %15
%170 = call i32 (i32*, i8*, ...) @fprintf(i32* %158, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.22, i64 0, i64 0), i32 %159, i32 %164, i32 %168, double %169)
store i32 1, i32* %7
br label %171
171: ; preds = %256, %151
%172 = load i32, i32* %7
%173 = load i32, i32* %6
%174 = icmp slt i32 %172, %173
br i1 %174, label %175, label %259
175: ; preds = %171
%176 = call i32 (...) @rand()
%177 = srem i32 %176, 100
%178 = sitofp i32 %177 to double
%179 = fdiv double %178, 1.000000e+02
%180 = fmul double 3.500000e-01, %179
store double %180, double* %18
%181 = call i32 (...) @rand()
%182 = srem i32 %181, 100
%183 = sitofp i32 %182 to double
%184 = fdiv double %183, 1.000000e+02
%185 = fadd double 1.300000e+00, %184
%186 = fmul double 3.500000e-01, %185
store double %186, double* %19
%187 = call i32 (...) @rand()
%188 = srem i32 %187, 90
%189 = sitofp i32 %188 to double
%190 = fdiv double %189, 1.000000e+02
%191 = fadd double 1.000000e+00, %190
%192 = fmul double 3.500000e-01, %191
store double %192, double* %20
%193 = call i32 (...) @rand()
%194 = srem i32 %193, 80
%195 = sitofp i32 %194 to double
%196 = fdiv double %195, 1.000000e+02
%197 = fadd double 5.000000e-01, %196
%198 = fmul double 3.500000e-01, %197
store double %198, double* %21
%199 = call i32 (...) @rand()
%200 = srem i32 %199, 10
%201 = sitofp i32 %200 to double
%202 = fdiv double %201, 1.000000e+02
%203 = fmul double 3.500000e-01, %202
store double %203, double* %22
%204 = load i32*, i32** %25
%205 = load i32, i32* %13
%206 = add nsw i32 %205, 1
store i32 %206, i32* %13
%207 = load i32, i32* %7
%208 = load i32, i32* %8
%209 = load i32, i32* %6
%210 = mul nsw i32 %208, %209
%211 = add nsw i32 %207, %210
%212 = load double, double* %18
%213 = load double, double* %19
%214 = load double, double* %20
%215 = load double, double* %21
%216 = load double, double* %22
%217 = call i32 (i32*, i8*, ...) @fprintf(i32* %204, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.25, i64 0, i64 0), i32 %205, i32 %211, i32 0, double %212, double %213, double %214, double %215, double %216)
%218 = call i32 (...) @rand()
%219 = srem i32 %218, 100
%220 = sitofp i32 %219 to double
%221 = fdiv double %220, 1.000000e+02
%222 = fadd double 1.000000e+00, %221
%223 = fmul double 1.000000e-10, %222
store double %223, double* %16
%224 = load i32*, i32** %25
%225 = load i32, i32* %12
%226 = add nsw i32 %225, 1
store i32 %226, i32* %12
%227 = load i32, i32* %7
%228 = load i32, i32* %8
%229 = load i32, i32* %6
%230 = mul nsw i32 %228, %229
%231 = add nsw i32 %227, %230
%232 = load double, double* %16
%233 = call i32 (i32*, i8*, ...) @fprintf(i32* %224, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.26, i64 0, i64 0), i32 %225, i32 %231, i32 0, double %232)
%234 = call i32 (...) @rand()
%235 = srem i32 %234, 10
%236 = sitofp i32 %235 to double
%237 = fdiv double %236, 1.000000e+02
%238 = fadd double 1.000000e+00, %237
%239 = fmul double 7.040000e-02, %238
store double %239, double* %15
%240 = load i32*, i32** %25
%241 = load i32, i32* %11
%242 = add nsw i32 %241, 1
store i32 %242, i32* %11
%243 = load i32, i32* %7
%244 = load i32, i32* %8
%245 = load i32, i32* %6
%246 = mul nsw i32 %244, %245
%247 = add nsw i32 %243, %246
%248 = load i32, i32* %7
%249 = add nsw i32 %248, 1
%250 = load i32, i32* %8
%251 = load i32, i32* %6
%252 = mul nsw i32 %250, %251
%253 = add nsw i32 %249, %252
%254 = load double, double* %15
%255 = call i32 (i32*, i8*, ...) @fprintf(i32* %240, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.22, i64 0, i64 0), i32 %241, i32 %247, i32 %253, double %254)
br label %256
256: ; preds = %175
%257 = load i32, i32* %7
%258 = add nsw i32 %257, 1
store i32 %258, i32* %7
br label %171
259: ; preds = %171
%260 = call i32 (...) @rand()
%261 = srem i32 %260, 100
%262 = sitofp i32 %261 to double
%263 = fdiv double %262, 1.000000e+02
%264 = fmul double 3.500000e-01, %263
store double %264, double* %18
%265 = call i32 (...) @rand()
%266 = srem i32 %265, 100
%267 = sitofp i32 %266 to double
%268 = fdiv double %267, 1.000000e+02
%269 = fadd double 1.000000e+00, %268
%270 = fmul double 3.500000e-01, %269
store double %270, double* %19
%271 = call i32 (...) @rand()
%272 = srem i32 %271, 90
%273 = sitofp i32 %272 to double
%274 = fdiv double %273, 1.000000e+02
%275 = fadd double 1.000000e+00, %274
%276 = fmul double 3.500000e-01, %275
store double %276, double* %20
%277 = call i32 (...) @rand()
%278 = srem i32 %277, 80
%279 = sitofp i32 %278 to double
%280 = fdiv double %279, 1.000000e+02
%281 = fadd double 5.000000e-01, %280
%282 = fmul double 3.500000e-01, %281
store double %282, double* %21
%283 = call i32 (...) @rand()
%284 = srem i32 %283, 10
%285 = sitofp i32 %284 to double
%286 = fdiv double %285, 1.000000e+02
%287 = fmul double 3.500000e-01, %286
store double %287, double* %22
%288 = load i32*, i32** %25
%289 = load i32, i32* %13
%290 = add nsw i32 %289, 1
store i32 %290, i32* %13
%291 = load i32, i32* %7
%292 = load i32, i32* %8
%293 = load i32, i32* %6
%294 = mul nsw i32 %292, %293
%295 = add nsw i32 %291, %294
%296 = load double, double* %18
%297 = load double, double* %19
%298 = load double, double* %20
%299 = load double, double* %21
%300 = load double, double* %22
%301 = call i32 (i32*, i8*, ...) @fprintf(i32* %288, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.25, i64 0, i64 0), i32 %289, i32 %295, i32 0, double %296, double %297, double %298, double %299, double %300)
%302 = call i32 (...) @rand()
%303 = srem i32 %302, 100
%304 = sitofp i32 %303 to double
%305 = fdiv double %304, 1.000000e+02
%306 = fadd double 1.000000e+00, %305
%307 = fmul double 1.000000e-10, %306
store double %307, double* %16
%308 = load i32*, i32** %25
%309 = load i32, i32* %12
%310 = add nsw i32 %309, 1
store i32 %310, i32* %12
%311 = load i32, i32* %7
%312 = load i32, i32* %8
%313 = load i32, i32* %6
%314 = mul nsw i32 %312, %313
%315 = add nsw i32 %311, %314
%316 = load double, double* %16
%317 = call i32 (i32*, i8*, ...) @fprintf(i32* %308, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.26, i64 0, i64 0), i32 %309, i32 %315, i32 0, double %316)
%318 = call i32 (...) @rand()
%319 = srem i32 %318, 10
%320 = sitofp i32 %319 to double
%321 = fdiv double %320, 1.000000e+02
%322 = fadd double 1.000000e+00, %321
%323 = fmul double 0x3F4711947CFA26A3, %322
store double %323, double* %15
%324 = load i32*, i32** %25
%325 = load i32, i32* %11
%326 = add nsw i32 %325, 1
store i32 %326, i32* %11
%327 = load i32, i32* %7
%328 = load i32, i32* %8
%329 = load i32, i32* %6
%330 = mul nsw i32 %328, %329
%331 = add nsw i32 %327, %330
%332 = load i32, i32* %6
%333 = load i32, i32* %9
%334 = mul nsw i32 %332, %333
%335 = add nsw i32 %334, 1
%336 = load double, double* %15
%337 = call i32 (i32*, i8*, ...) @fprintf(i32* %324, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.22, i64 0, i64 0), i32 %325, i32 %331, i32 %335, double %336)
br label %338
338: ; preds = %259
%339 = load i32, i32* %8
%340 = add nsw i32 %339, 1
store i32 %340, i32* %8
br label %86
341: ; preds = %86
%342 = load i32*, i32** %25
%343 = call i32 (i32*, i8*, ...) @fprintf(i32* %342, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.27, i64 0, i64 0))
%344 = load i32*, i32** %25
%345 = load i32, i32* %9
%346 = load i32, i32* %6
%347 = mul nsw i32 %345, %346
%348 = add nsw i32 %347, 1
%349 = load double, double* %23
%350 = call i32 (i32*, i8*, ...) @fprintf(i32* %344, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.28, i64 0, i64 0), i32 %348, i32 0, double %349)
%351 = load i32*, i32** %25
%352 = call i32 (i32*, i8*, ...) @fprintf(i32* %351, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.29, i64 0, i64 0))
%353 = load i32*, i32** %25
%354 = call i32 (i32*, i8*, ...) @fprintf(i32* %353, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.30, i64 0, i64 0))
%355 = load i32*, i32** %25
%356 = call i32 @fclose(i32* %355)
%357 = load i32, i32* %3
ret i32 %357
}

LLVM IR (-O2):
@stdout = global i32 0
@.str = [6 x i8] c"#row:\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [31 x i8] c"# RC/RLC s ection in each row:\00"
@.str.3 = [21 x i8] c"# strip in each row:\00"
@.str.4 = [10 x i8] c"filename:\00"
@.str.5 = [3 x i8] c"%s\00"
@.str.6 = [16 x i8] c"voltage source:\00"
@.str.7 = [4 x i8] c"%lf\00"
@.str.8 = [10 x i8] c"#sec: %d\0A\00"
@.str.9 = [10 x i8] c"#row: %d\0A\00"
@.str.10 = [21 x i8] c"#vertical strip: %d\0A\00"
@.str.11 = [14 x i8] c"filename: %s\0A\00"
@.str.12 = [13 x i8] c"voltage: %g\0A\00"
@.str.13 = [28 x i8] c"Invalid p/g strip number %d\00"
@.str.14 = [2 x i8] c"w\00"
@.str.15 = [24 x i8] c"\0A** supply voltage: %g\0A\00"
@.str.16 = [13 x i8] c"** #row: %d\0A\00"
@.str.17 = [32 x i8] c"** #RC/RLC section per row: %d\0A\00"
@.str.18 = [16 x i8] c"** num_node %d\0A\00"
@.str.19 = [36 x i8] c"** This is a %d x %d power network\0A\00"
@.str.20 = [12 x i8] c"** row: %d\0A\00"
@.str.21 = [25 x i8] c"** p/g strip connection\0A\00"
@.str.22 = [14 x i8] c"R%d %d %d %g\0A\00"
@.str.23 = [57 x i8] c"P/G inseration is ignored as sec/strip is too small: %d\0A\00"
@.str.24 = [32 x i8] c"** end of p/g strip connection\0A\00"
@.str.25 = [72 x i8] c"I%d %d %d DC 0 PWL(0 0.0 1ns %gmA 2ns %gmA 3ns %gmA 4ns %gmA 5ns %gmA)\0A\00"
@.str.26 = [14 x i8] c"C%d %d %d %g\0A\00"
@.str.27 = [20 x i8] c"** supply voltage \0A\00"
@.str.28 = [14 x i8] c"V1 %d %d %g \0A\00"
@.str.29 = [18 x i8] c"\0A.tran 0.01ns 6n\0A\00"
@.str.30 = [7 x i8] c"\0A.end\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca [256 x i8]
%7 = alloca double
%8 = bitcast i32* %3 to i8*
%9 = bitcast i32* %4 to i8*
%10 = bitcast i32* %5 to i8*
%11 = getelementptr inbounds [256 x i8], [256 x i8]* %6, i64 0, i64 0
%12 = bitcast double* %7 to i8*
%13 = load i32, i32* @stdout
%14 = tail call i32 @setbuf(i32 %13, i32 0)
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%16 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %4)
%17 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.2, i64 0, i64 0))
%18 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %3)
%19 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0))
%20 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %5)
%21 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%22 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %11)
%23 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.6, i64 0, i64 0))
%24 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), double* %7)
%25 = load i32, i32* %3
%26 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0), i32 %25)
%27 = load i32, i32* %4
%28 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.9, i64 0, i64 0), i32 %27)
%29 = load i32, i32* %5
%30 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.10, i64 0, i64 0), i32 %29)
%31 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.11, i64 0, i64 0), i8* %11)
%32 = load double, double* %7
%33 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.12, i64 0, i64 0), double %32)
%34 = load i32, i32* %5
%35 = load i32, i32* %3
%36 = icmp slt i32 %34, %35
br i1 %36, label %40, label %37
37: ; preds = %2
%38 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.13, i64 0, i64 0), i32 %34)
%39 = call i32 @exit(i32 -1)
unreachable
40: ; preds = %2
%41 = call i32* @fopen(i8* %11, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.14, i64 0, i64 0))
%42 = icmp eq i32* %41, null
br i1 %42, label %43, label %46
43: ; preds = %40
%44 = call i32 @perror(i8* %11)
%45 = call i32 @exit(i32 -1)
unreachable
46: ; preds = %40
%47 = load double, double* %7
%48 = call i32 (i32*, i8*, ...) @fprintf(i32* %41, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.15, i64 0, i64 0), double %47)
%49 = load i32, i32* %4
%50 = call i32 (i32*, i8*, ...) @fprintf(i32* %41, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.16, i64 0, i64 0), i32 %49)
%51 = load i32, i32* %3
%52 = call i32 (i32*, i8*, ...) @fprintf(i32* %41, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.17, i64 0, i64 0), i32 %51)
%53 = load i32, i32* %3
%54 = load i32, i32* %4
%55 = mul nsw i32 %54, %53
%56 = add nsw i32 %55, 1
%57 = call i32 (i32*, i8*, ...) @fprintf(i32* %41, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.18, i64 0, i64 0), i32 %56)
%58 = load i32, i32* %4
%59 = load i32, i32* %3
%60 = call i32 (i32*, i8*, ...) @fprintf(i32* %41, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.19, i64 0, i64 0), i32 %58, i32 %59)
%61 = load i32, i32* %4
%62 = icmp sgt i32 %61, 0
br i1 %62, label %63, label %255
63: ; preds = %46, %189
%64 = phi i32 [ %68, %189 ], [ 0, %46 ]
%65 = phi i32 [ %245, %189 ], [ 1, %46 ]
%66 = phi i32 [ %234, %189 ], [ 1, %46 ]
%67 = phi i32 [ %223, %189 ], [ 1, %46 ]
%68 = add nuw nsw i32 %64, 1
%69 = call i32 (i32*, i8*, ...) @fprintf(i32* %41, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.20, i64 0, i64 0), i32 %68)
%70 = load i32, i32* %4
%71 = sub nsw i32 %70, %64
%72 = icmp sgt i32 %71, 1
br i1 %72, label %73, label %107
73: ; preds = %63
%74 = load i32, i32* %3
%75 = load i32, i32* %5
%76 = sdiv i32 %74, %75
%77 = icmp sgt i32 %76, 2
br i1 %77, label %78, label %102
78: ; preds = %73
%79 = call i64 @fwrite(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.21, i64 0, i64 0), i64 24, i64 1, i32* %41)
%80 = load i32, i32* %5
%81 = icmp sgt i32 %80, 0
br i1 %81, label %82, label %104
82: ; preds = %78, %82
%83 = phi i32 [ %94, %82 ], [ 0, %78 ]
%84 = phi i32 [ %91, %82 ], [ %65, %78 ]
%85 = call i32 (...) @rand()
%86 = srem i32 %85, 10
%87 = sitofp i32 %86 to double
%88 = fdiv double %87, 1.000000e+02
%89 = fadd double %88, 1.000000e+00
%90 = fmul double %89, 2.816000e-01
%91 = add nsw i32 %84, 1
%92 = load i32, i32* %3
%93 = mul nsw i32 %92, %64
%94 = add nuw nsw i32 %83, 1
%95 = mul nsw i32 %94, %76
%96 = add nsw i32 %93, %95
%97 = mul nsw i32 %92, %68
%98 = add nsw i32 %97, %95
%99 = call i32 (i32*, i8*, ...) @fprintf(i32* %41, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.22, i64 0, i64 0), i32 %84, i32 %96, i32 %98, double %90)
%100 = load i32, i32* %5
%101 = icmp slt i32 %94, %100
br i1 %101, label %82, label %104
102: ; preds = %73
%103 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @.str.23, i64 0, i64 0), i32 %76)
br label %104
104: ; preds = %82, %78, %102
%105 = phi i32 [ %65, %102 ], [ %65, %78 ], [ %91, %82 ]
%106 = call i64 @fwrite(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.24, i64 0, i64 0), i64 31, i64 1, i32* %41)
br label %107
107: ; preds = %104, %63
%108 = phi i32 [ %105, %104 ], [ %65, %63 ]
%109 = call i32 (...) @rand()
%110 = srem i32 %109, 10
%111 = sitofp i32 %110 to double
%112 = fdiv double %111, 1.000000e+02
%113 = fadd double %112, 1.000000e+00
%114 = fmul double %113, 0x3F4711947CFA26A3
%115 = load i32, i32* %3
%116 = mul nsw i32 %115, %64
%117 = add nsw i32 %116, 1
%118 = load i32, i32* %4
%119 = mul nsw i32 %118, %115
%120 = add nsw i32 %119, 1
%121 = call i32 (i32*, i8*, ...) @fprintf(i32* %41, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.22, i64 0, i64 0), i32 %108, i32 %117, i32 %120, double %114)
%122 = add nsw i32 %108, 1
%123 = load i32, i32* %3
%124 = icmp sgt i32 %123, 1
br i1 %124, label %125, label %189
125: ; preds = %107, %125
%126 = phi i32 [ %186, %125 ], [ %122, %107 ]
%127 = phi i32 [ %183, %125 ], [ 1, %107 ]
%128 = phi i32 [ %169, %125 ], [ %66, %107 ]
%129 = phi i32 [ %158, %125 ], [ %67, %107 ]
%130 = call i32 (...) @rand()
%131 = srem i32 %130, 100
%132 = sitofp i32 %131 to double
%133 = fdiv double %132, 1.000000e+02
%134 = fmul double %133, 3.500000e-01
%135 = call i32 (...) @rand()
%136 = srem i32 %135, 100
%137 = sitofp i32 %136 to double
%138 = fdiv double %137, 1.000000e+02
%139 = fadd double %138, 1.300000e+00
%140 = fmul double %139, 3.500000e-01
%141 = call i32 (...) @rand()
%142 = srem i32 %141, 90
%143 = sitofp i32 %142 to double
%144 = fdiv double %143, 1.000000e+02
%145 = fadd double %144, 1.000000e+00
%146 = fmul double %145, 3.500000e-01
%147 = call i32 (...) @rand()
%148 = srem i32 %147, 80
%149 = sitofp i32 %148 to double
%150 = fdiv double %149, 1.000000e+02
%151 = fadd double %150, 5.000000e-01
%152 = fmul double %151, 3.500000e-01
%153 = call i32 (...) @rand()
%154 = srem i32 %153, 10
%155 = sitofp i32 %154 to double
%156 = fdiv double %155, 1.000000e+02
%157 = fmul double %156, 3.500000e-01
%158 = add nsw i32 %129, 1
%159 = load i32, i32* %3
%160 = mul nsw i32 %159, %64
%161 = add nsw i32 %160, %127
%162 = call i32 (i32*, i8*, ...) @fprintf(i32* %41, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.25, i64 0, i64 0), i32 %129, i32 %161, i32 0, double %134, double %140, double %146, double %152, double %157)
%163 = call i32 (...) @rand()
%164 = srem i32 %163, 100
%165 = sitofp i32 %164 to double
%166 = fdiv double %165, 1.000000e+02
%167 = fadd double %166, 1.000000e+00
%168 = fmul double %167, 1.000000e-10
%169 = add nsw i32 %128, 1
%170 = load i32, i32* %3
%171 = mul nsw i32 %170, %64
%172 = add nsw i32 %171, %127
%173 = call i32 (i32*, i8*, ...) @fprintf(i32* %41, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.26, i64 0, i64 0), i32 %128, i32 %172, i32 0, double %168)
%174 = call i32 (...) @rand()
%175 = srem i32 %174, 10
%176 = sitofp i32 %175 to double
%177 = fdiv double %176, 1.000000e+02
%178 = fadd double %177, 1.000000e+00
%179 = fmul double %178, 7.040000e-02
%180 = load i32, i32* %3
%181 = mul nsw i32 %180, %64
%182 = add nsw i32 %181, %127
%183 = add nuw nsw i32 %127, 1
%184 = add nsw i32 %181, %183
%185 = call i32 (i32*, i8*, ...) @fprintf(i32* %41, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.22, i64 0, i64 0), i32 %126, i32 %182, i32 %184, double %179)
%186 = add nsw i32 %126, 1
%187 = load i32, i32* %3
%188 = icmp slt i32 %183, %187
br i1 %188, label %125, label %189
189: ; preds = %125, %107
%190 = phi i32 [ %67, %107 ], [ %158, %125 ]
%191 = phi i32 [ %66, %107 ], [ %169, %125 ]
%192 = phi i32 [ %108, %107 ], [ %126, %125 ]
%193 = phi i32 [ 1, %107 ], [ %183, %125 ]
%194 = phi i32 [ %122, %107 ], [ %186, %125 ]
%195 = call i32 (...) @rand()
%196 = srem i32 %195, 100
%197 = sitofp i32 %196 to double
%198 = fdiv double %197, 1.000000e+02
%199 = fmul double %198, 3.500000e-01
%200 = call i32 (...) @rand()
%201 = srem i32 %200, 100
%202 = sitofp i32 %201 to double
%203 = fdiv double %202, 1.000000e+02
%204 = fadd double %203, 1.000000e+00
%205 = fmul double %204, 3.500000e-01
%206 = call i32 (...) @rand()
%207 = srem i32 %206, 90
%208 = sitofp i32 %207 to double
%209 = fdiv double %208, 1.000000e+02
%210 = fadd double %209, 1.000000e+00
%211 = fmul double %210, 3.500000e-01
%212 = call i32 (...) @rand()
%213 = srem i32 %212, 80
%214 = sitofp i32 %213 to double
%215 = fdiv double %214, 1.000000e+02
%216 = fadd double %215, 5.000000e-01
%217 = fmul double %216, 3.500000e-01
%218 = call i32 (...) @rand()
%219 = srem i32 %218, 10
%220 = sitofp i32 %219 to double
%221 = fdiv double %220, 1.000000e+02
%222 = fmul double %221, 3.500000e-01
%223 = add nsw i32 %190, 1
%224 = load i32, i32* %3
%225 = mul nsw i32 %224, %64
%226 = add nsw i32 %225, %193
%227 = call i32 (i32*, i8*, ...) @fprintf(i32* %41, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.25, i64 0, i64 0), i32 %190, i32 %226, i32 0, double %199, double %205, double %211, double %217, double %222)
%228 = call i32 (...) @rand()
%229 = srem i32 %228, 100
%230 = sitofp i32 %229 to double
%231 = fdiv double %230, 1.000000e+02
%232 = fadd double %231, 1.000000e+00
%233 = fmul double %232, 1.000000e-10
%234 = add nsw i32 %191, 1
%235 = load i32, i32* %3
%236 = mul nsw i32 %235, %64
%237 = add nsw i32 %236, %193
%238 = call i32 (i32*, i8*, ...) @fprintf(i32* %41, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.26, i64 0, i64 0), i32 %191, i32 %237, i32 0, double %233)
%239 = call i32 (...) @rand()
%240 = srem i32 %239, 10
%241 = sitofp i32 %240 to double
%242 = fdiv double %241, 1.000000e+02
%243 = fadd double %242, 1.000000e+00
%244 = fmul double %243, 0x3F4711947CFA26A3
%245 = add nsw i32 %192, 2
%246 = load i32, i32* %3
%247 = mul nsw i32 %246, %64
%248 = add nsw i32 %247, %193
%249 = load i32, i32* %4
%250 = mul nsw i32 %249, %246
%251 = add nsw i32 %250, 1
%252 = call i32 (i32*, i8*, ...) @fprintf(i32* %41, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.22, i64 0, i64 0), i32 %194, i32 %248, i32 %251, double %244)
%253 = load i32, i32* %4
%254 = icmp slt i32 %68, %253
br i1 %254, label %63, label %255
255: ; preds = %189, %46
%256 = call i64 @fwrite(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.27, i64 0, i64 0), i64 19, i64 1, i32* %41)
%257 = load i32, i32* %4
%258 = load i32, i32* %3
%259 = mul nsw i32 %258, %257
%260 = add nsw i32 %259, 1
%261 = load double, double* %7
%262 = call i32 (i32*, i8*, ...) @fprintf(i32* %41, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.28, i64 0, i64 0), i32 %260, i32 0, double %261)
%263 = call i64 @fwrite(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.29, i64 0, i64 0), i64 17, i64 1, i32* %41)
%264 = call i64 @fwrite(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.30, i64 0, i64 0), i64 6, i64 1, i32* %41)
%265 = call i32 @fclose(i32* %41)
ret i32 0
}