int main(int argc, char *argv[]) {
  int i, j, k;
  long s1, s2;
  int nodes, cells, cell_size;
  if (argc != 2) {
    printf("usage: %s filename \n", argv[0]);
    printf("The filename must be of the form: "
           "/Path/To/Meshes/Folder/meshname_without_extension\n");
    exit(0);
  }
  utils_init(2);
  char *node_path = str_cat(argv[1], ".node");
  char *cell_path = str_cat(argv[1], ".ele");
  double *coords_2D = read_coords_2D(node_path, &nodes);
  int *map_2D = read_cell_node_map_2D(cell_path, &cells, &cell_size);
  free(node_path);
  free(cell_path);
  double *coords_3D = extrude_coords(coords_2D, nodes, 101, 0.1);
  free(coords_2D);
  int *map_3D = extrude_map(map_2D, cells, cell_size, 101);
  int off_3D[6] = {1, 1, 1, 1, 1, 1};
  free(map_2D);
  wrap_init(2);
  double *expr1 = (double *)malloc(sizeof(double) * nodes * 101);
  printf(" Evaluating expression... ");
  s1 = stamp();
  wrap_expression_1(0, cells, expr1, map_3D, coords_3D, map_3D, off_3D, off_3D,
                    101);
  s2 = stamp();
  printf("%g s\n", (s2 - s1) / 1e9);
  double *expr2 = (double *)malloc(sizeof(double) * nodes * 101);
  printf(" Set array to zero... ");
  s1 = stamp();
  wrap_zero_1(0, nodes * 101, expr2, 101);
  s2 = stamp();
  printf("%g s\n", (s2 - s1) / 1e9);
  printf(" Interpolate expression... ");
  s1 = stamp();
  wrap_rhs_1(0, cells, expr2, map_3D, coords_3D, map_3D, expr1, map_3D, off_3D,
             off_3D, off_3D, 101);
  s2 = stamp();
  printf("%g s\n", (s2 - s1) / 1e9);
  double *expr3 = (double *)malloc(sizeof(double) * nodes * 101);
  printf(" Evaluating expression... ");
  s1 = stamp();
  wrap_expression_2(0, nodes * 101, expr2, expr3, 101);
  s2 = stamp();
  printf("%g s\n", (s2 - s1) / 1e9);
  double *expr4 = (double *)malloc(sizeof(double) * nodes * 101);
  printf(" Assembling right-hand side... ");
  s1 = stamp();
  wrap_rhs(0, cells, expr4, map_3D, coords_3D, map_3D, expr2, map_3D, expr3,
           map_3D, off_3D, off_3D, off_3D, off_3D, 101);
  s2 = stamp();
  printf("%g s\n", (s2 - s1) / 1e9);
  double *expr5 = (double *)malloc(sizeof(double) * nodes * 101);
  printf(" Assembling left-hand side... ");
  s1 = stamp();
  wrap_lhs(0, cells, expr5, map_3D, map_3D, coords_3D, map_3D, off_3D, off_3D,
           off_3D, 101);
  s2 = stamp();
  printf("%g s\n", (s2 - s1) / 1e9);
write:
  s1 = stamp();
  printf(" Numerical results written to output files... ");
  output("rhs_out", expr4, nodes * 101, 1);
  output("lhs_out", expr5, nodes * 101, 1);
  s2 = stamp();
  printf("%g s\n", (s2 - s1) / 1e9);
  free(coords_3D);
  free(map_3D);
  free(expr1);
  free(expr2);
  free(expr3);
  free(expr4);
  free(expr5);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xf8,%rsp
movl   $0x0,-0x2c(%rbp)
mov    %edi,-0x30(%rbp)
mov    %rsi,-0x38(%rbp)
cmpl   $0x2,-0x30(%rbp)
je     1286 <main+0x56>
mov    -0x38(%rbp),%rax
mov    (%rax),%rsi
lea    0xda6(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
lea    0xdad(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
xor    %edi,%edi
call   1120 <exit@plt>
mov    $0x2,%edi
mov    $0x0,%al
call   1050 <utils_init@plt>
mov    -0x38(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xdd9(%rip),%rsi
mov    $0x0,%al
call   1110 <str_cat@plt>
cltq
mov    %rax,-0x70(%rbp)
mov    -0x38(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xdc3(%rip),%rsi
mov    $0x0,%al
call   1110 <str_cat@plt>
cltq
mov    %rax,-0x78(%rbp)
mov    -0x70(%rbp),%rdi
lea    -0x5c(%rbp),%rsi
mov    $0x0,%al
call   1040 <read_coords_2D@plt>
cltq
mov    %rax,-0x80(%rbp)
mov    -0x78(%rbp),%rdi
lea    -0x60(%rbp),%rsi
lea    -0x64(%rbp),%rdx
mov    $0x0,%al
call   10f0 <read_cell_node_map_2D@plt>
cltq
mov    %rax,-0x88(%rbp)
mov    -0x70(%rbp),%rdi
call   1030 <free@plt>
mov    -0x78(%rbp),%rdi
call   1030 <free@plt>
mov    -0x80(%rbp),%rdi
mov    -0x5c(%rbp),%esi
mov    $0x65,%edx
movsd  0xce7(%rip),%xmm0
mov    $0x1,%al
call   1070 <extrude_coords@plt>
cltq
mov    %rax,-0x90(%rbp)
mov    -0x80(%rbp),%rdi
call   1030 <free@plt>
mov    -0x88(%rbp),%rdi
mov    -0x60(%rbp),%esi
mov    -0x64(%rbp),%edx
mov    $0x65,%ecx
mov    $0x0,%al
call   10b0 <extrude_map@plt>
cltq
mov    %rax,-0x98(%rbp)
mov    0xdfd(%rip),%rax
mov    %rax,-0xb0(%rbp)
mov    0xdf7(%rip),%rax
mov    %rax,-0xa8(%rbp)
mov    0xdf1(%rip),%rax
mov    %rax,-0xa0(%rbp)
mov    -0x88(%rbp),%rdi
call   1030 <free@plt>
mov    $0x2,%edi
mov    $0x0,%al
call   1130 <wrap_init@plt>
movslq -0x5c(%rbp),%rax
shl    $0x3,%rax
imul   $0x65,%rax,%rdi
call   10e0 <malloc@plt>
mov    %rax,-0xb8(%rbp)
lea    0xcc8(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
mov    $0x0,%al
call   10d0 <stamp@plt>
cltq
mov    %rax,-0x50(%rbp)
mov    -0x60(%rbp),%esi
mov    -0xb8(%rbp),%rdx
mov    -0x98(%rbp),%rcx
mov    -0x90(%rbp),%r8
mov    -0x98(%rbp),%r9
lea    -0xb0(%rbp),%r10
lea    -0xb0(%rbp),%rax
xor    %edi,%edi
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
movl   $0x65,0x10(%rsp)
mov    $0x0,%al
call   1090 <wrap_expression_1@plt>
mov    $0x0,%al
call   10d0 <stamp@plt>
cltq
mov    %rax,-0x58(%rbp)
mov    -0x58(%rbp),%rax
sub    -0x50(%rbp),%rax
cvtsi2sd %rax,%xmm0
movsd  0xbc6(%rip),%xmm1
divsd  %xmm1,%xmm0
lea    0xc5b(%rip),%rdi
mov    $0x1,%al
call   1080 <printf@plt>
movslq -0x5c(%rbp),%rax
shl    $0x3,%rax
imul   $0x65,%rax,%rdi
call   10e0 <malloc@plt>
mov    %rax,-0xc0(%rbp)
lea    0xc3b(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
mov    $0x0,%al
call   10d0 <stamp@plt>
cltq
mov    %rax,-0x50(%rbp)
imul   $0x65,-0x5c(%rbp),%esi
mov    -0xc0(%rbp),%rdx
xor    %edi,%edi
mov    $0x65,%ecx
mov    $0x0,%al
call   1140 <wrap_zero_1@plt>
mov    $0x0,%al
call   10d0 <stamp@plt>
cltq
mov    %rax,-0x58(%rbp)
mov    -0x58(%rbp),%rax
sub    -0x50(%rbp),%rax
cvtsi2sd %rax,%xmm0
movsd  0xb46(%rip),%xmm1
divsd  %xmm1,%xmm0
lea    0xbdb(%rip),%rdi
mov    $0x1,%al
call   1080 <printf@plt>
lea    0xbea(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
mov    $0x0,%al
call   10d0 <stamp@plt>
cltq
mov    %rax,-0x50(%rbp)
mov    -0x60(%rbp),%esi
mov    -0xc0(%rbp),%rdx
mov    -0x98(%rbp),%rcx
mov    -0x90(%rbp),%r8
mov    -0x98(%rbp),%r9
mov    -0xb8(%rbp),%r14
mov    -0x98(%rbp),%rbx
lea    -0xb0(%rbp),%r11
lea    -0xb0(%rbp),%r10
lea    -0xb0(%rbp),%rax
xor    %edi,%edi
mov    %r14,(%rsp)
mov    %rbx,0x8(%rsp)
mov    %r11,0x10(%rsp)
mov    %r10,0x18(%rsp)
mov    %rax,0x20(%rsp)
movl   $0x65,0x28(%rsp)
mov    $0x0,%al
call   1150 <wrap_rhs_1@plt>
mov    $0x0,%al
call   10d0 <stamp@plt>
cltq
mov    %rax,-0x58(%rbp)
mov    -0x58(%rbp),%rax
sub    -0x50(%rbp),%rax
cvtsi2sd %rax,%xmm0
movsd  0xa8c(%rip),%xmm1
divsd  %xmm1,%xmm0
lea    0xb21(%rip),%rdi
mov    $0x1,%al
call   1080 <printf@plt>
movslq -0x5c(%rbp),%rax
shl    $0x3,%rax
imul   $0x65,%rax,%rdi
call   10e0 <malloc@plt>
mov    %rax,-0xc8(%rbp)
lea    0xae0(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
mov    $0x0,%al
call   10d0 <stamp@plt>
cltq
mov    %rax,-0x50(%rbp)
imul   $0x65,-0x5c(%rbp),%esi
mov    -0xc0(%rbp),%rdx
mov    -0xc8(%rbp),%rcx
xor    %edi,%edi
mov    $0x65,%r8d
mov    $0x0,%al
call   1100 <wrap_expression_2@plt>
mov    $0x0,%al
call   10d0 <stamp@plt>
cltq
mov    %rax,-0x58(%rbp)
mov    -0x58(%rbp),%rax
sub    -0x50(%rbp),%rax
cvtsi2sd %rax,%xmm0
movsd  0xa04(%rip),%xmm1
divsd  %xmm1,%xmm0
lea    0xa99(%rip),%rdi
mov    $0x1,%al
call   1080 <printf@plt>
movslq -0x5c(%rbp),%rax
shl    $0x3,%rax
imul   $0x65,%rax,%rdi
call   10e0 <malloc@plt>
mov    %rax,-0xd0(%rbp)
lea    0xaac(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
mov    $0x0,%al
call   10d0 <stamp@plt>
cltq
mov    %rax,-0x50(%rbp)
mov    -0x60(%rbp),%esi
mov    -0xd0(%rbp),%rdx
mov    -0x98(%rbp),%rcx
mov    -0x90(%rbp),%r8
mov    -0x98(%rbp),%r9
mov    -0xc0(%rbp),%r13
mov    -0x98(%rbp),%r12
mov    -0xc8(%rbp),%r15
mov    -0x98(%rbp),%r14
lea    -0xb0(%rbp),%rbx
lea    -0xb0(%rbp),%r11
lea    -0xb0(%rbp),%r10
lea    -0xb0(%rbp),%rax
xor    %edi,%edi
mov    %r13,(%rsp)
mov    %r12,0x8(%rsp)
mov    %r15,0x10(%rsp)
mov    %r14,0x18(%rsp)
mov    %rbx,0x20(%rsp)
mov    %r11,0x28(%rsp)
mov    %r10,0x30(%rsp)
mov    %rax,0x38(%rsp)
movl   $0x65,0x40(%rsp)
mov    $0x0,%al
call   10a0 <wrap_rhs@plt>
mov    $0x0,%al
call   10d0 <stamp@plt>
cltq
mov    %rax,-0x58(%rbp)
mov    -0x58(%rbp),%rax
sub    -0x50(%rbp),%rax
cvtsi2sd %rax,%xmm0
movsd  0x90e(%rip),%xmm1
divsd  %xmm1,%xmm0
lea    0x9a3(%rip),%rdi
mov    $0x1,%al
call   1080 <printf@plt>
movslq -0x5c(%rbp),%rax
shl    $0x3,%rax
imul   $0x65,%rax,%rdi
call   10e0 <malloc@plt>
mov    %rax,-0xd8(%rbp)
lea    0x9d6(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
mov    $0x0,%al
call   10d0 <stamp@plt>
cltq
mov    %rax,-0x50(%rbp)
mov    -0x60(%rbp),%esi
mov    -0xd8(%rbp),%rdx
mov    -0x98(%rbp),%rcx
mov    -0x98(%rbp),%r8
mov    -0x90(%rbp),%r9
mov    -0x98(%rbp),%rbx
lea    -0xb0(%rbp),%r11
lea    -0xb0(%rbp),%r10
lea    -0xb0(%rbp),%rax
xor    %edi,%edi
mov    %rbx,(%rsp)
mov    %r11,0x8(%rsp)
mov    %r10,0x10(%rsp)
mov    %rax,0x18(%rsp)
movl   $0x65,0x20(%rsp)
mov    $0x0,%al
call   10c0 <wrap_lhs@plt>
mov    $0x0,%al
call   10d0 <stamp@plt>
cltq
mov    %rax,-0x58(%rbp)
mov    -0x58(%rbp),%rax
sub    -0x50(%rbp),%rax
cvtsi2sd %rax,%xmm0
movsd  0x848(%rip),%xmm1
divsd  %xmm1,%xmm0
lea    0x8dd(%rip),%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    $0x0,%al
call   10d0 <stamp@plt>
cltq
mov    %rax,-0x50(%rbp)
lea    0x93a(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
mov    -0xd0(%rbp),%rsi
imul   $0x65,-0x5c(%rbp),%edx
lea    0x950(%rip),%rdi
mov    $0x1,%ecx
mov    $0x0,%al
call   1060 <output@plt>
mov    -0xd8(%rbp),%rsi
imul   $0x65,-0x5c(%rbp),%edx
lea    0x93a(%rip),%rdi
mov    $0x1,%ecx
mov    $0x0,%al
call   1060 <output@plt>
mov    $0x0,%al
call   10d0 <stamp@plt>
cltq
mov    %rax,-0x58(%rbp)
mov    -0x58(%rbp),%rax
sub    -0x50(%rbp),%rax
cvtsi2sd %rax,%xmm0
movsd  0x7bd(%rip),%xmm1
divsd  %xmm1,%xmm0
lea    0x852(%rip),%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    -0x90(%rbp),%rdi
call   1030 <free@plt>
mov    -0x98(%rbp),%rdi
call   1030 <free@plt>
mov    -0xb8(%rbp),%rdi
call   1030 <free@plt>
mov    -0xc0(%rbp),%rdi
call   1030 <free@plt>
mov    -0xc8(%rbp),%rdi
call   1030 <free@plt>
mov    -0xd0(%rbp),%rdi
call   1030 <free@plt>
mov    -0xd8(%rbp),%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0xf8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %rsi,%rbx
cmp    $0x2,%edi
jne    16e0 <main+0x4a0>
mov    $0x2,%edi
xor    %eax,%eax
call   1060 <utils_init@plt>
mov    0x8(%rbx),%rdi
lea    0xdb4(%rip),%rsi
xor    %eax,%eax
call   1120 <str_cat@plt>
movslq %eax,%rbp
mov    0x8(%rbx),%rdi
lea    0xda5(%rip),%rsi
xor    %eax,%eax
call   1120 <str_cat@plt>
movslq %eax,%rbx
lea    0x4(%rsp),%rsi
mov    %rbp,%rdi
xor    %eax,%eax
call   1040 <read_coords_2D@plt>
movslq %eax,%r12
lea    0x8(%rsp),%rsi
lea    0xc(%rsp),%rdx
mov    %rbx,%rdi
xor    %eax,%eax
call   1100 <read_cell_node_map_2D@plt>
movslq %eax,%r15
mov    %rbp,%rdi
call   1030 <free@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
mov    0x4(%rsp),%esi
movsd  0xd2b(%rip),%xmm0
mov    %r12,%rdi
mov    $0x65,%edx
mov    $0x1,%al
call   1080 <extrude_coords@plt>
movslq %eax,%r13
mov    %r12,%rdi
call   1030 <free@plt>
mov    0x8(%rsp),%esi
mov    0xc(%rsp),%edx
mov    %r15,%rdi
mov    $0x65,%ecx
xor    %eax,%eax
call   10c0 <extrude_map@plt>
movslq %eax,%r12
mov    0xe60(%rip),%rax
mov    %rax,0x40(%rsp)
movaps 0xe44(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
mov    %r15,%rdi
call   1030 <free@plt>
mov    $0x2,%edi
xor    %eax,%eax
call   1140 <wrap_init@plt>
movslq 0x4(%rsp),%rax
imul   $0x328,%rax,%rdi
call   10f0 <malloc@plt>
mov    %rax,%rbx
mov    %rax,0x18(%rsp)
lea    0xcdb(%rip),%rdi
xor    %eax,%eax
call   1090 <printf@plt>
xor    %eax,%eax
call   10e0 <stamp@plt>
movslq %eax,%r14
mov    0x8(%rsp),%esi
sub    $0x8,%rsp
lea    0x38(%rsp),%rbp
xor    %edi,%edi
mov    %rbx,%rdx
mov    %r12,%rcx
mov    %r13,%r8
mov    %r12,%r9
xor    %eax,%eax
push   $0x65
push   %rbp
push   %rbp
mov    %rbp,%rbx
call   10a0 <wrap_expression_1@plt>
add    $0x20,%rsp
xor    %eax,%eax
call   10e0 <stamp@plt>
cltq
sub    %r14,%rax
xorps  %xmm0,%xmm0
cvtsi2sd %rax,%xmm0
divsd  0xc59(%rip),%xmm0
lea    0xc95(%rip),%r14
mov    %r14,%rdi
mov    $0x1,%al
call   1090 <printf@plt>
movslq 0x4(%rsp),%rax
imul   $0x328,%rax,%rdi
call   10f0 <malloc@plt>
mov    %rax,%r15
lea    0xc76(%rip),%rdi
xor    %eax,%eax
call   1090 <printf@plt>
xor    %eax,%eax
call   10e0 <stamp@plt>
movslq %eax,%rbp
imul   $0x65,0x4(%rsp),%esi
xor    %edi,%edi
mov    %r15,%rdx
mov    $0x65,%ecx
xor    %eax,%eax
call   1150 <wrap_zero_1@plt>
xor    %eax,%eax
call   10e0 <stamp@plt>
cltq
sub    %rbp,%rax
xorps  %xmm0,%xmm0
cvtsi2sd %rax,%xmm0
divsd  0xbea(%rip),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1090 <printf@plt>
lea    0xc39(%rip),%rdi
xor    %eax,%eax
call   1090 <printf@plt>
xor    %eax,%eax
call   10e0 <stamp@plt>
movslq %eax,%rbp
mov    0x8(%rsp),%esi
xor    %edi,%edi
mov    %r15,%rdx
mov    %r15,0x10(%rsp)
mov    %r12,%rcx
mov    %r13,%r8
mov    %r12,%r9
xor    %eax,%eax
push   $0x65
push   %rbx
push   %rbx
push   %rbx
push   %r12
push   0x40(%rsp)
call   1160 <wrap_rhs_1@plt>
add    $0x30,%rsp
xor    %eax,%eax
call   10e0 <stamp@plt>
cltq
sub    %rbp,%rax
xorps  %xmm0,%xmm0
cvtsi2sd %rax,%xmm0
divsd  0xb7f(%rip),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1090 <printf@plt>
movslq 0x4(%rsp),%rax
imul   $0x328,%rax,%rdi
call   10f0 <malloc@plt>
mov    %rax,%rbx
lea    0xb82(%rip),%rdi
xor    %eax,%eax
call   1090 <printf@plt>
xor    %eax,%eax
call   10e0 <stamp@plt>
movslq %eax,%rbp
imul   $0x65,0x4(%rsp),%esi
xor    %edi,%edi
mov    %r15,%rdx
mov    %rbx,%rcx
mov    %rbx,%r15
mov    %rbx,0x28(%rsp)
mov    $0x65,%r8d
xor    %eax,%eax
call   1110 <wrap_expression_2@plt>
xor    %eax,%eax
call   10e0 <stamp@plt>
cltq
sub    %rbp,%rax
xorps  %xmm0,%xmm0
cvtsi2sd %rax,%xmm0
divsd  0xb0b(%rip),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1090 <printf@plt>
movslq 0x4(%rsp),%rax
imul   $0x328,%rax,%rdi
call   10f0 <malloc@plt>
mov    %rax,%rbx
mov    %rax,0x20(%rsp)
lea    0xb5d(%rip),%rdi
xor    %eax,%eax
call   1090 <printf@plt>
xor    %eax,%eax
call   10e0 <stamp@plt>
movslq %eax,%rbp
mov    0x8(%rsp),%esi
sub    $0x8,%rsp
xor    %edi,%edi
mov    %rbx,%rdx
mov    %r12,%rcx
mov    %r13,%r14
mov    %r13,%r8
mov    %r12,%r9
xor    %eax,%eax
push   $0x65
lea    0x40(%rsp),%rbx
push   %rbx
push   %rbx
push   %rbx
push   %rbx
push   %r12
push   %r15
push   %r12
push   0x58(%rsp)
call   10b0 <wrap_rhs@plt>
add    $0x50,%rsp
xor    %eax,%eax
call   10e0 <stamp@plt>
cltq
sub    %rbp,%rax
xorps  %xmm0,%xmm0
cvtsi2sd %rax,%xmm0
divsd  0xa7b(%rip),%xmm0
lea    0xab7(%rip),%r15
mov    %r15,%rdi
mov    $0x1,%al
call   1090 <printf@plt>
movslq 0x4(%rsp),%rax
imul   $0x328,%rax,%rdi
call   10f0 <malloc@plt>
mov    %rax,%r13
lea    0xaeb(%rip),%rdi
xor    %eax,%eax
call   1090 <printf@plt>
xor    %eax,%eax
call   10e0 <stamp@plt>
movslq %eax,%rbp
mov    0x8(%rsp),%esi
sub    $0x8,%rsp
xor    %edi,%edi
mov    %r13,%rdx
mov    %r12,%rcx
mov    %r12,%r8
mov    %r14,%r9
xor    %eax,%eax
push   $0x65
push   %rbx
push   %rbx
push   %rbx
push   %r12
call   10d0 <wrap_lhs@plt>
add    $0x30,%rsp
xor    %eax,%eax
call   10e0 <stamp@plt>
cltq
sub    %rbp,%rax
xorps  %xmm0,%xmm0
cvtsi2sd %rax,%xmm0
divsd  0x9fa(%rip),%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1090 <printf@plt>
xor    %eax,%eax
call   10e0 <stamp@plt>
movslq %eax,%rbp
lea    0xa9a(%rip),%rdi
xor    %eax,%eax
call   1090 <printf@plt>
imul   $0x65,0x4(%rsp),%edx
lea    0xab6(%rip),%rdi
mov    0x20(%rsp),%rbx
mov    %rbx,%rsi
mov    $0x1,%ecx
xor    %eax,%eax
call   1070 <output@plt>
imul   $0x65,0x4(%rsp),%edx
lea    0xa9e(%rip),%rdi
mov    %r13,%rsi
mov    $0x1,%ecx
xor    %eax,%eax
call   1070 <output@plt>
xor    %eax,%eax
call   10e0 <stamp@plt>
cltq
sub    %rbp,%rax
xorps  %xmm0,%xmm0
cvtsi2sd %rax,%xmm0
divsd  0x981(%rip),%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1090 <printf@plt>
mov    %r14,%rdi
call   1030 <free@plt>
mov    %r12,%rdi
call   1030 <free@plt>
mov    0x18(%rsp),%rdi
call   1030 <free@plt>
mov    0x10(%rsp),%rdi
call   1030 <free@plt>
mov    0x28(%rsp),%rdi
call   1030 <free@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
mov    %r13,%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    (%rbx),%rsi
lea    0x926(%rip),%rdi
xor    %eax,%eax
call   1090 <printf@plt>
lea    0xa0a(%rip),%rdi
call   1050 <puts@plt>
xor    %edi,%edi
call   1130 <exit@plt>

LLVM IR (-O0):
@.str = [21 x i8] c"usage: %s filename \0A\00"
@.str.1 = [85 x i8] c"The filename must be of the form: /Path/To/Meshes/Folder/meshname_without_extension\0A\00"
@.str.2 = [6 x i8] c".node\00"
@.str.3 = [5 x i8] c".ele\00"
@__const.main.off_3D = [6 x i32] [i32 1, i32 1, i32 1, i32 1, i32 1, i32 1]
@.str.4 = [27 x i8] c" Evaluating expression... \00"
@.str.5 = [6 x i8] c"%g s\0A\00"
@.str.6 = [23 x i8] c" Set array to zero... \00"
@.str.7 = [28 x i8] c" Interpolate expression... \00"
@.str.8 = [32 x i8] c" Assembling right-hand side... \00"
@.str.9 = [31 x i8] c" Assembling left-hand side... \00"
@.str.10 = [47 x i8] c" Numerical results written to output files... \00"
@.str.11 = [8 x i8] c"rhs_out\00"
@.str.12 = [8 x i8] c"lhs_out\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 i64
%10 = alloca i64
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i8*
%15 = alloca i8*
%16 = alloca double*
%17 = alloca i32*
%18 = alloca double*
%19 = alloca i32*
%20 = alloca [6 x i32]
%21 = alloca double*
%22 = alloca double*
%23 = alloca double*
%24 = alloca double*
%25 = alloca double*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%26 = load i32, i32* %4
%27 = icmp ne i32 %26, 2
br i1 %27, label %28, label %34
28: ; preds = %2
%29 = load i8**, i8*** %5
%30 = getelementptr inbounds i8*, i8** %29, i64 0
%31 = load i8*, i8** %30
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i8* %31)
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([85 x i8], [85 x i8]* @.str.1, i64 0, i64 0))
unreachable
34: ; preds = %2
%35 = call i32 (i32, ...) bitcast (i32 (...)* @utils_init to i32 (i32, ...)*)(i32 2)
%36 = load i8**, i8*** %5
%37 = getelementptr inbounds i8*, i8** %36, i64 1
%38 = load i8*, i8** %37
%39 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @str_cat to i32 (i8*, i8*, ...)*)(i8* %38, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%40 = sext i32 %39 to i64
%41 = inttoptr i64 %40 to i8*
store i8* %41, i8** %14
%42 = load i8**, i8*** %5
%43 = getelementptr inbounds i8*, i8** %42, i64 1
%44 = load i8*, i8** %43
%45 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @str_cat to i32 (i8*, i8*, ...)*)(i8* %44, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%46 = sext i32 %45 to i64
%47 = inttoptr i64 %46 to i8*
store i8* %47, i8** %15
%48 = load i8*, i8** %14
%49 = call i32 (i8*, i32*, ...) bitcast (i32 (...)* @read_coords_2D to i32 (i8*, i32*, ...)*)(i8* %48, i32* %11)
%50 = sext i32 %49 to i64
%51 = inttoptr i64 %50 to double*
store double* %51, double** %16
%52 = load i8*, i8** %15
%53 = call i32 (i8*, i32*, i32*, ...) bitcast (i32 (...)* @read_cell_node_map_2D to i32 (i8*, i32*, i32*, ...)*)(i8* %52, i32* %12, i32* %13)
%54 = sext i32 %53 to i64
%55 = inttoptr i64 %54 to i32*
store i32* %55, i32** %17
%56 = load i8*, i8** %14
%57 = load i8*, i8** %15
%58 = load double*, double** %16
%59 = load i32, i32* %11
%60 = call i32 (double*, i32, i32, double, ...) bitcast (i32 (...)* @extrude_coords to i32 (double*, i32, i32, double, ...)*)(double* %58, i32 %59, i32 101, double 1.000000e-01)
%61 = sext i32 %60 to i64
%62 = inttoptr i64 %61 to double*
store double* %62, double** %18
%63 = load double*, double** %16
%64 = bitcast double* %63 to i8*
%65 = load i32*, i32** %17
%66 = load i32, i32* %12
%67 = load i32, i32* %13
%68 = call i32 (i32*, i32, i32, i32, ...) bitcast (i32 (...)* @extrude_map to i32 (i32*, i32, i32, i32, ...)*)(i32* %65, i32 %66, i32 %67, i32 101)
%69 = sext i32 %68 to i64
%70 = inttoptr i64 %69 to i32*
store i32* %70, i32** %19
%71 = bitcast [6 x i32]* %20 to i8*
%72 = load i32*, i32** %17
%73 = bitcast i32* %72 to i8*
%74 = call i32 (i32, ...) bitcast (i32 (...)* @wrap_init to i32 (i32, ...)*)(i32 2)
%75 = load i32, i32* %11
%76 = sext i32 %75 to i64
%77 = mul i64 8, %76
%78 = mul i64 %77, 101
%79 = call i8* @malloc(i64 %78)
%80 = bitcast i8* %79 to double*
store double* %80, double** %21
%81 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0))
%82 = call i32 (...) @stamp()
%83 = sext i32 %82 to i64
store i64 %83, i64* %9
%84 = load i32, i32* %12
%85 = load double*, double** %21
%86 = load i32*, i32** %19
%87 = load double*, double** %18
%88 = load i32*, i32** %19
%89 = getelementptr inbounds [6 x i32], [6 x i32]* %20, i64 0, i64 0
%90 = getelementptr inbounds [6 x i32], [6 x i32]* %20, i64 0, i64 0
%91 = call i32 (i32, i32, double*, i32*, double*, i32*, i32*, i32*, i32, ...) bitcast (i32 (...)* @wrap_expression_1 to i32 (i32, i32, double*, i32*, double*, i32*, i32*, i32*, i32, ...)*)(i32 0, i32 %84, double* %85, i32* %86, double* %87, i32* %88, i32* %89, i32* %90, i32 101)
%92 = call i32 (...) @stamp()
%93 = sext i32 %92 to i64
store i64 %93, i64* %10
%94 = load i64, i64* %10
%95 = load i64, i64* %9
%96 = sub nsw i64 %94, %95
%97 = sitofp i64 %96 to double
%98 = fdiv double %97, 1.000000e+09
%99 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), double %98)
%100 = load i32, i32* %11
%101 = sext i32 %100 to i64
%102 = mul i64 8, %101
%103 = mul i64 %102, 101
%104 = call i8* @malloc(i64 %103)
%105 = bitcast i8* %104 to double*
store double* %105, double** %22
%106 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0))
%107 = call i32 (...) @stamp()
%108 = sext i32 %107 to i64
store i64 %108, i64* %9
%109 = load i32, i32* %11
%110 = mul nsw i32 %109, 101
%111 = load double*, double** %22
%112 = call i32 (i32, i32, double*, i32, ...) bitcast (i32 (...)* @wrap_zero_1 to i32 (i32, i32, double*, i32, ...)*)(i32 0, i32 %110, double* %111, i32 101)
%113 = call i32 (...) @stamp()
%114 = sext i32 %113 to i64
store i64 %114, i64* %10
%115 = load i64, i64* %10
%116 = load i64, i64* %9
%117 = sub nsw i64 %115, %116
%118 = sitofp i64 %117 to double
%119 = fdiv double %118, 1.000000e+09
%120 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), double %119)
%121 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.7, i64 0, i64 0))
%122 = call i32 (...) @stamp()
%123 = sext i32 %122 to i64
store i64 %123, i64* %9
%124 = load i32, i32* %12
%125 = load double*, double** %22
%126 = load i32*, i32** %19
%127 = load double*, double** %18
%128 = load i32*, i32** %19
%129 = load double*, double** %21
%130 = load i32*, i32** %19
%131 = getelementptr inbounds [6 x i32], [6 x i32]* %20, i64 0, i64 0
%132 = getelementptr inbounds [6 x i32], [6 x i32]* %20, i64 0, i64 0
%133 = getelementptr inbounds [6 x i32], [6 x i32]* %20, i64 0, i64 0
%134 = call i32 (i32, i32, double*, i32*, double*, i32*, double*, i32*, i32*, i32*, i32*, i32, ...) bitcast (i32 (...)* @wrap_rhs_1 to i32 (i32, i32, double*, i32*, double*, i32*, double*, i32*, i32*, i32*, i32*, i32, ...)*)(i32 0, i32 %124, double* %125, i32* %126, double* %127, i32* %128, double* %129, i32* %130, i32* %131, i32* %132, i32* %133, i32 101)
%135 = call i32 (...) @stamp()
%136 = sext i32 %135 to i64
store i64 %136, i64* %10
%137 = load i64, i64* %10
%138 = load i64, i64* %9
%139 = sub nsw i64 %137, %138
%140 = sitofp i64 %139 to double
%141 = fdiv double %140, 1.000000e+09
%142 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), double %141)
%143 = load i32, i32* %11
%144 = sext i32 %143 to i64
%145 = mul i64 8, %144
%146 = mul i64 %145, 101
%147 = call i8* @malloc(i64 %146)
%148 = bitcast i8* %147 to double*
store double* %148, double** %23
%149 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0))
%150 = call i32 (...) @stamp()
%151 = sext i32 %150 to i64
store i64 %151, i64* %9
%152 = load i32, i32* %11
%153 = mul nsw i32 %152, 101
%154 = load double*, double** %22
%155 = load double*, double** %23
%156 = call i32 (i32, i32, double*, double*, i32, ...) bitcast (i32 (...)* @wrap_expression_2 to i32 (i32, i32, double*, double*, i32, ...)*)(i32 0, i32 %153, double* %154, double* %155, i32 101)
%157 = call i32 (...) @stamp()
%158 = sext i32 %157 to i64
store i64 %158, i64* %10
%159 = load i64, i64* %10
%160 = load i64, i64* %9
%161 = sub nsw i64 %159, %160
%162 = sitofp i64 %161 to double
%163 = fdiv double %162, 1.000000e+09
%164 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), double %163)
%165 = load i32, i32* %11
%166 = sext i32 %165 to i64
%167 = mul i64 8, %166
%168 = mul i64 %167, 101
%169 = call i8* @malloc(i64 %168)
%170 = bitcast i8* %169 to double*
store double* %170, double** %24
%171 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.8, i64 0, i64 0))
%172 = call i32 (...) @stamp()
%173 = sext i32 %172 to i64
store i64 %173, i64* %9
%174 = load i32, i32* %12
%175 = load double*, double** %24
%176 = load i32*, i32** %19
%177 = load double*, double** %18
%178 = load i32*, i32** %19
%179 = load double*, double** %22
%180 = load i32*, i32** %19
%181 = load double*, double** %23
%182 = load i32*, i32** %19
%183 = getelementptr inbounds [6 x i32], [6 x i32]* %20, i64 0, i64 0
%184 = getelementptr inbounds [6 x i32], [6 x i32]* %20, i64 0, i64 0
%185 = getelementptr inbounds [6 x i32], [6 x i32]* %20, i64 0, i64 0
%186 = getelementptr inbounds [6 x i32], [6 x i32]* %20, i64 0, i64 0
%187 = call i32 (i32, i32, double*, i32*, double*, i32*, double*, i32*, double*, i32*, i32*, i32*, i32*, i32*, i32, ...) bitcast (i32 (...)* @wrap_rhs to i32 (i32, i32, double*, i32*, double*, i32*, double*, i32*, double*, i32*, i32*, i32*, i32*, i32*, i32, ...)*)(i32 0, i32 %174, double* %175, i32* %176, double* %177, i32* %178, double* %179, i32* %180, double* %181, i32* %182, i32* %183, i32* %184, i32* %185, i32* %186, i32 101)
%188 = call i32 (...) @stamp()
%189 = sext i32 %188 to i64
store i64 %189, i64* %10
%190 = load i64, i64* %10
%191 = load i64, i64* %9
%192 = sub nsw i64 %190, %191
%193 = sitofp i64 %192 to double
%194 = fdiv double %193, 1.000000e+09
%195 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), double %194)
%196 = load i32, i32* %11
%197 = sext i32 %196 to i64
%198 = mul i64 8, %197
%199 = mul i64 %198, 101
%200 = call i8* @malloc(i64 %199)
%201 = bitcast i8* %200 to double*
store double* %201, double** %25
%202 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.9, i64 0, i64 0))
%203 = call i32 (...) @stamp()
%204 = sext i32 %203 to i64
store i64 %204, i64* %9
%205 = load i32, i32* %12
%206 = load double*, double** %25
%207 = load i32*, i32** %19
%208 = load i32*, i32** %19
%209 = load double*, double** %18
%210 = load i32*, i32** %19
%211 = getelementptr inbounds [6 x i32], [6 x i32]* %20, i64 0, i64 0
%212 = getelementptr inbounds [6 x i32], [6 x i32]* %20, i64 0, i64 0
%213 = getelementptr inbounds [6 x i32], [6 x i32]* %20, i64 0, i64 0
%214 = call i32 (i32, i32, double*, i32*, i32*, double*, i32*, i32*, i32*, i32*, i32, ...) bitcast (i32 (...)* @wrap_lhs to i32 (i32, i32, double*, i32*, i32*, double*, i32*, i32*, i32*, i32*, i32, ...)*)(i32 0, i32 %205, double* %206, i32* %207, i32* %208, double* %209, i32* %210, i32* %211, i32* %212, i32* %213, i32 101)
%215 = call i32 (...) @stamp()
%216 = sext i32 %215 to i64
store i64 %216, i64* %10
%217 = load i64, i64* %10
%218 = load i64, i64* %9
%219 = sub nsw i64 %217, %218
%220 = sitofp i64 %219 to double
%221 = fdiv double %220, 1.000000e+09
%222 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), double %221)
br label %223
223: ; preds = %34
%224 = call i32 (...) @stamp()
%225 = sext i32 %224 to i64
store i64 %225, i64* %9
%226 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.10, i64 0, i64 0))
%227 = load double*, double** %24
%228 = load i32, i32* %11
%229 = mul nsw i32 %228, 101
%230 = call i32 (i8*, double*, i32, i32, ...) bitcast (i32 (...)* @output to i32 (i8*, double*, i32, i32, ...)*)(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0), double* %227, i32 %229, i32 1)
%231 = load double*, double** %25
%232 = load i32, i32* %11
%233 = mul nsw i32 %232, 101
%234 = call i32 (i8*, double*, i32, i32, ...) bitcast (i32 (...)* @output to i32 (i8*, double*, i32, i32, ...)*)(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0), double* %231, i32 %233, i32 1)
%235 = call i32 (...) @stamp()
%236 = sext i32 %235 to i64
store i64 %236, i64* %10
%237 = load i64, i64* %10
%238 = load i64, i64* %9
%239 = sub nsw i64 %237, %238
%240 = sitofp i64 %239 to double
%241 = fdiv double %240, 1.000000e+09
%242 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), double %241)
%243 = load double*, double** %18
%244 = bitcast double* %243 to i8*
%245 = load i32*, i32** %19
%246 = bitcast i32* %245 to i8*
%247 = load double*, double** %21
%248 = bitcast double* %247 to i8*
%249 = load double*, double** %22
%250 = bitcast double* %249 to i8*
%251 = load double*, double** %23
%252 = bitcast double* %251 to i8*
%253 = load double*, double** %24
%254 = bitcast double* %253 to i8*
%255 = load double*, double** %25
%256 = bitcast double* %255 to i8*
ret i32 0
}

LLVM IR (-O2):
@.str = [21 x i8] c"usage: %s filename \0A\00"
@.str.2 = [6 x i8] c".node\00"
@.str.3 = [5 x i8] c".ele\00"
@__const.main.off_3D = [6 x i32] [i32 1, i32 1, i32 1, i32 1, i32 1, i32 1]
@.str.4 = [27 x i8] c" Evaluating expression... \00"
@.str.5 = [6 x i8] c"%g s\0A\00"
@.str.6 = [23 x i8] c" Set array to zero... \00"
@.str.7 = [28 x i8] c" Interpolate expression... \00"
@.str.8 = [32 x i8] c" Assembling right-hand side... \00"
@.str.9 = [31 x i8] c" Assembling left-hand side... \00"
@.str.10 = [47 x i8] c" Numerical results written to output files... \00"
@.str.11 = [8 x i8] c"rhs_out\00"
@.str.12 = [8 x i8] c"lhs_out\00"
@str = [84 x i8] c"The filename must be of the form: /Path/To/Meshes/Folder/meshname_without_extension\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca [6 x i32]
%7 = bitcast i32* %3 to i8*
%8 = bitcast i32* %4 to i8*
%9 = bitcast i32* %5 to i8*
%10 = icmp eq i32 %0, 2
br i1 %10, label %15, label %11
11: ; preds = %2
%12 = load i8*, i8** %1
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i8* %12)
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([84 x i8], [84 x i8]* @str, i64 0, i64 0))
tail call void @exit(i32 0)
unreachable
15: ; preds = %2
%16 = tail call i32 (i32, ...) bitcast (i32 (...)* @utils_init to i32 (i32, ...)*)(i32 2)
%17 = getelementptr inbounds i8*, i8** %1, i64 1
%18 = load i8*, i8** %17
%19 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @str_cat to i32 (i8*, i8*, ...)*)(i8* %18, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%20 = sext i32 %19 to i64
%21 = inttoptr i64 %20 to i8*
%22 = load i8*, i8** %17
%23 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @str_cat to i32 (i8*, i8*, ...)*)(i8* %22, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%24 = sext i32 %23 to i64
%25 = inttoptr i64 %24 to i8*
%26 = call i32 (i8*, i32*, ...) bitcast (i32 (...)* @read_coords_2D to i32 (i8*, i32*, ...)*)(i8* %21, i32* %3)
%27 = sext i32 %26 to i64
%28 = inttoptr i64 %27 to double*
%29 = call i32 (i8*, i32*, i32*, ...) bitcast (i32 (...)* @read_cell_node_map_2D to i32 (i8*, i32*, i32*, ...)*)(i8* %25, i32* %4, i32* %5)
%30 = sext i32 %29 to i64
%31 = inttoptr i64 %30 to i32*
%32 = load i32, i32* %3
%33 = call i32 (double*, i32, i32, double, ...) bitcast (i32 (...)* @extrude_coords to i32 (double*, i32, i32, double, ...)*)(double* %28, i32 %32, i32 101, double 1.000000e-01)
%34 = sext i32 %33 to i64
%35 = inttoptr i64 %34 to double*
%36 = inttoptr i64 %27 to i8*
%37 = load i32, i32* %4
%38 = load i32, i32* %5
%39 = call i32 (i32*, i32, i32, i32, ...) bitcast (i32 (...)* @extrude_map to i32 (i32*, i32, i32, i32, ...)*)(i32* %31, i32 %37, i32 %38, i32 101)
%40 = sext i32 %39 to i64
%41 = inttoptr i64 %40 to i32*
%42 = bitcast [6 x i32]* %6 to i8*
%43 = inttoptr i64 %30 to i8*
%44 = call i32 (i32, ...) bitcast (i32 (...)* @wrap_init to i32 (i32, ...)*)(i32 2)
%45 = load i32, i32* %3
%46 = sext i32 %45 to i64
%47 = mul nsw i64 %46, 808
%48 = call i8* @malloc(i64 %47)
%49 = bitcast i8* %48 to double*
%50 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0))
%51 = call i32 (...) @stamp()
%52 = sext i32 %51 to i64
%53 = load i32, i32* %4
%54 = getelementptr inbounds [6 x i32], [6 x i32]* %6, i64 0, i64 0
%55 = call i32 (i32, i32, double*, i32*, double*, i32*, i32*, i32*, i32, ...) bitcast (i32 (...)* @wrap_expression_1 to i32 (i32, i32, double*, i32*, double*, i32*, i32*, i32*, i32, ...)*)(i32 0, i32 %53, double* %49, i32* %41, double* %35, i32* %41, i32* %54, i32* %54, i32 101)
%56 = call i32 (...) @stamp()
%57 = sext i32 %56 to i64
%58 = sub nsw i64 %57, %52
%59 = sitofp i64 %58 to double
%60 = fdiv double %59, 1.000000e+09
%61 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), double %60)
%62 = load i32, i32* %3
%63 = sext i32 %62 to i64
%64 = mul nsw i64 %63, 808
%65 = call i8* @malloc(i64 %64)
%66 = bitcast i8* %65 to double*
%67 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0))
%68 = call i32 (...) @stamp()
%69 = sext i32 %68 to i64
%70 = load i32, i32* %3
%71 = mul nsw i32 %70, 101
%72 = call i32 (i32, i32, double*, i32, ...) bitcast (i32 (...)* @wrap_zero_1 to i32 (i32, i32, double*, i32, ...)*)(i32 0, i32 %71, double* %66, i32 101)
%73 = call i32 (...) @stamp()
%74 = sext i32 %73 to i64
%75 = sub nsw i64 %74, %69
%76 = sitofp i64 %75 to double
%77 = fdiv double %76, 1.000000e+09
%78 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), double %77)
%79 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.7, i64 0, i64 0))
%80 = call i32 (...) @stamp()
%81 = sext i32 %80 to i64
%82 = load i32, i32* %4
%83 = call i32 (i32, i32, double*, i32*, double*, i32*, double*, i32*, i32*, i32*, i32*, i32, ...) bitcast (i32 (...)* @wrap_rhs_1 to i32 (i32, i32, double*, i32*, double*, i32*, double*, i32*, i32*, i32*, i32*, i32, ...)*)(i32 0, i32 %82, double* %66, i32* %41, double* %35, i32* %41, double* %49, i32* %41, i32* %54, i32* %54, i32* %54, i32 101)
%84 = call i32 (...) @stamp()
%85 = sext i32 %84 to i64
%86 = sub nsw i64 %85, %81
%87 = sitofp i64 %86 to double
%88 = fdiv double %87, 1.000000e+09
%89 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), double %88)
%90 = load i32, i32* %3
%91 = sext i32 %90 to i64
%92 = mul nsw i64 %91, 808
%93 = call i8* @malloc(i64 %92)
%94 = bitcast i8* %93 to double*
%95 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0))
%96 = call i32 (...) @stamp()
%97 = sext i32 %96 to i64
%98 = load i32, i32* %3
%99 = mul nsw i32 %98, 101
%100 = call i32 (i32, i32, double*, double*, i32, ...) bitcast (i32 (...)* @wrap_expression_2 to i32 (i32, i32, double*, double*, i32, ...)*)(i32 0, i32 %99, double* %66, double* %94, i32 101)
%101 = call i32 (...) @stamp()
%102 = sext i32 %101 to i64
%103 = sub nsw i64 %102, %97
%104 = sitofp i64 %103 to double
%105 = fdiv double %104, 1.000000e+09
%106 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), double %105)
%107 = load i32, i32* %3
%108 = sext i32 %107 to i64
%109 = mul nsw i64 %108, 808
%110 = call i8* @malloc(i64 %109)
%111 = bitcast i8* %110 to double*
%112 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.8, i64 0, i64 0))
%113 = call i32 (...) @stamp()
%114 = sext i32 %113 to i64
%115 = load i32, i32* %4
%116 = call i32 (i32, i32, double*, i32*, double*, i32*, double*, i32*, double*, i32*, i32*, i32*, i32*, i32*, i32, ...) bitcast (i32 (...)* @wrap_rhs to i32 (i32, i32, double*, i32*, double*, i32*, double*, i32*, double*, i32*, i32*, i32*, i32*, i32*, i32, ...)*)(i32 0, i32 %115, double* %111, i32* %41, double* %35, i32* %41, double* %66, i32* %41, double* %94, i32* %41, i32* %54, i32* %54, i32* %54, i32* %54, i32 101)
%117 = call i32 (...) @stamp()
%118 = sext i32 %117 to i64
%119 = sub nsw i64 %118, %114
%120 = sitofp i64 %119 to double
%121 = fdiv double %120, 1.000000e+09
%122 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), double %121)
%123 = load i32, i32* %3
%124 = sext i32 %123 to i64
%125 = mul nsw i64 %124, 808
%126 = call i8* @malloc(i64 %125)
%127 = bitcast i8* %126 to double*
%128 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.9, i64 0, i64 0))
%129 = call i32 (...) @stamp()
%130 = sext i32 %129 to i64
%131 = load i32, i32* %4
%132 = call i32 (i32, i32, double*, i32*, i32*, double*, i32*, i32*, i32*, i32*, i32, ...) bitcast (i32 (...)* @wrap_lhs to i32 (i32, i32, double*, i32*, i32*, double*, i32*, i32*, i32*, i32*, i32, ...)*)(i32 0, i32 %131, double* %127, i32* %41, i32* %41, double* %35, i32* %41, i32* %54, i32* %54, i32* %54, i32 101)
%133 = call i32 (...) @stamp()
%134 = sext i32 %133 to i64
%135 = sub nsw i64 %134, %130
%136 = sitofp i64 %135 to double
%137 = fdiv double %136, 1.000000e+09
%138 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), double %137)
%139 = call i32 (...) @stamp()
%140 = sext i32 %139 to i64
%141 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str.10, i64 0, i64 0))
%142 = load i32, i32* %3
%143 = mul nsw i32 %142, 101
%144 = call i32 (i8*, double*, i32, i32, ...) bitcast (i32 (...)* @output to i32 (i8*, double*, i32, i32, ...)*)(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0), double* %111, i32 %143, i32 1)
%145 = load i32, i32* %3
%146 = mul nsw i32 %145, 101
%147 = call i32 (i8*, double*, i32, i32, ...) bitcast (i32 (...)* @output to i32 (i8*, double*, i32, i32, ...)*)(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0), double* %127, i32 %146, i32 1)
%148 = call i32 (...) @stamp()
%149 = sext i32 %148 to i64
%150 = sub nsw i64 %149, %140
%151 = sitofp i64 %150 to double
%152 = fdiv double %151, 1.000000e+09
%153 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), double %152)
%154 = inttoptr i64 %34 to i8*
%155 = inttoptr i64 %40 to i8*
ret i32 0
}