#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 */

/* Variables and functions */
int /*<<< orphan*/ EXIT_FAILURE;
int double_decimals(double);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, char *, int, int, ...);
int main(int argc, char *argv[]) {
  printf("%s:%d Expecting %.14f to have %d decimals ... \n",
         "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
         "2022-01-22/02-19-57/repos/WizardMac/ReadStat/refs/heads/master/src/"
         "test/test_double_decimals.c",
         17, -123.123, 3);
  if (double_decimals(-123.123) != 3) {
    printf("%s:%d error got %d decimals, expected %d\n",
           "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
           "2022-01-22/02-19-57/repos/WizardMac/ReadStat/refs/heads/master/src/"
           "test/test_double_decimals.c",
           17, double_decimals(-123.123), 3);
    exit(EXIT_FAILURE);
  } else {
    printf("%s:%d OK got %d decimals\n",
           "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
           "2022-01-22/02-19-57/repos/WizardMac/ReadStat/refs/heads/master/src/"
           "test/test_double_decimals.c",
           17, 3);
  };
  printf("%s:%d Expecting %.14f to have %d decimals ... \n",
         "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
         "2022-01-22/02-19-57/repos/WizardMac/ReadStat/refs/heads/master/src/"
         "test/test_double_decimals.c",
         18, -100.0, 0);
  if (double_decimals(-100.0) != 0) {
    printf("%s:%d error got %d decimals, expected %d\n",
           "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
           "2022-01-22/02-19-57/repos/WizardMac/ReadStat/refs/heads/master/src/"
           "test/test_double_decimals.c",
           18, double_decimals(-100.0), 0);
    exit(EXIT_FAILURE);
  } else {
    printf("%s:%d OK got %d decimals\n",
           "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
           "2022-01-22/02-19-57/repos/WizardMac/ReadStat/refs/heads/master/src/"
           "test/test_double_decimals.c",
           18, 0);
  };
  printf("%s:%d Expecting %.14f to have %d decimals ... \n",
         "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
         "2022-01-22/02-19-57/repos/WizardMac/ReadStat/refs/heads/master/src/"
         "test/test_double_decimals.c",
         19, 0.0, 0);
  if (double_decimals(0.0) != 0) {
    printf("%s:%d error got %d decimals, expected %d\n",
           "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
           "2022-01-22/02-19-57/repos/WizardMac/ReadStat/refs/heads/master/src/"
           "test/test_double_decimals.c",
           19, double_decimals(0.0), 0);
    exit(EXIT_FAILURE);
  } else {
    printf("%s:%d OK got %d decimals\n",
           "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
           "2022-01-22/02-19-57/repos/WizardMac/ReadStat/refs/heads/master/src/"
           "test/test_double_decimals.c",
           19, 0);
  };
  printf("%s:%d Expecting %.14f to have %d decimals ... \n",
         "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
         "2022-01-22/02-19-57/repos/WizardMac/ReadStat/refs/heads/master/src/"
         "test/test_double_decimals.c",
         20, 123.0, 0);
  if (double_decimals(123.0) != 0) {
    printf("%s:%d error got %d decimals, expected %d\n",
           "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
           "2022-01-22/02-19-57/repos/WizardMac/ReadStat/refs/heads/master/src/"
           "test/test_double_decimals.c",
           20, double_decimals(123.0), 0);
    exit(EXIT_FAILURE);
  } else {
    printf("%s:%d OK got %d decimals\n",
           "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
           "2022-01-22/02-19-57/repos/WizardMac/ReadStat/refs/heads/master/src/"
           "test/test_double_decimals.c",
           20, 0);
  };
  printf("%s:%d Expecting %.14f to have %d decimals ... \n",
         "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
         "2022-01-22/02-19-57/repos/WizardMac/ReadStat/refs/heads/master/src/"
         "test/test_double_decimals.c",
         21, 123.56, 2);
  if (double_decimals(123.56) != 2) {
    printf("%s:%d error got %d decimals, expected %d\n",
           "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
           "2022-01-22/02-19-57/repos/WizardMac/ReadStat/refs/heads/master/src/"
           "test/test_double_decimals.c",
           21, double_decimals(123.56), 2);
    exit(EXIT_FAILURE);
  } else {
    printf("%s:%d OK got %d decimals\n",
           "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
           "2022-01-22/02-19-57/repos/WizardMac/ReadStat/refs/heads/master/src/"
           "test/test_double_decimals.c",
           21, 2);
  };
  printf("%s:%d Expecting %.14f to have %d decimals ... \n",
         "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
         "2022-01-22/02-19-57/repos/WizardMac/ReadStat/refs/heads/master/src/"
         "test/test_double_decimals.c",
         22, 123.123, 3);
  if (double_decimals(123.123) != 3) {
    printf("%s:%d error got %d decimals, expected %d\n",
           "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
           "2022-01-22/02-19-57/repos/WizardMac/ReadStat/refs/heads/master/src/"
           "test/test_double_decimals.c",
           22, double_decimals(123.123), 3);
    exit(EXIT_FAILURE);
  } else {
    printf("%s:%d OK got %d decimals\n",
           "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
           "2022-01-22/02-19-57/repos/WizardMac/ReadStat/refs/heads/master/src/"
           "test/test_double_decimals.c",
           22, 3);
  };
  printf("%s:%d Expecting %.14f to have %d decimals ... \n",
         "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
         "2022-01-22/02-19-57/repos/WizardMac/ReadStat/refs/heads/master/src/"
         "test/test_double_decimals.c",
         23, 123.123456789, 9);
  if (double_decimals(123.123456789) != 9) {
    printf("%s:%d error got %d decimals, expected %d\n",
           "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
           "2022-01-22/02-19-57/repos/WizardMac/ReadStat/refs/heads/master/src/"
           "test/test_double_decimals.c",
           23, double_decimals(123.123456789), 9);
    exit(EXIT_FAILURE);
  } else {
    printf("%s:%d OK got %d decimals\n",
           "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
           "2022-01-22/02-19-57/repos/WizardMac/ReadStat/refs/heads/master/src/"
           "test/test_double_decimals.c",
           23, 9);
  };
  printf("%s:%d Expecting %.14f to have %d decimals ... \n",
         "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
         "2022-01-22/02-19-57/repos/WizardMac/ReadStat/refs/heads/master/src/"
         "test/test_double_decimals.c",
         24, 123.1234567891, 10);
  if (double_decimals(123.1234567891) != 10) {
    printf("%s:%d error got %d decimals, expected %d\n",
           "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
           "2022-01-22/02-19-57/repos/WizardMac/ReadStat/refs/heads/master/src/"
           "test/test_double_decimals.c",
           24, double_decimals(123.1234567891), 10);
    exit(EXIT_FAILURE);
  } else {
    printf("%s:%d OK got %d decimals\n",
           "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
           "2022-01-22/02-19-57/repos/WizardMac/ReadStat/refs/heads/master/src/"
           "test/test_double_decimals.c",
           24, 10);
  };
  printf("%s:%d Expecting %.14f to have %d decimals ... \n",
         "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
         "2022-01-22/02-19-57/repos/WizardMac/ReadStat/refs/heads/master/src/"
         "test/test_double_decimals.c",
         25, 123.123456789012, 12);
  if (double_decimals(123.123456789012) != 12) {
    printf("%s:%d error got %d decimals, expected %d\n",
           "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
           "2022-01-22/02-19-57/repos/WizardMac/ReadStat/refs/heads/master/src/"
           "test/test_double_decimals.c",
           25, double_decimals(123.123456789012), 12);
    exit(EXIT_FAILURE);
  } else {
    printf("%s:%d OK got %d decimals\n",
           "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
           "2022-01-22/02-19-57/repos/WizardMac/ReadStat/refs/heads/master/src/"
           "test/test_double_decimals.c",
           25, 12);
  };
  printf("%s:%d Expecting %.14f to have %d decimals ... \n",
         "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
         "2022-01-22/02-19-57/repos/WizardMac/ReadStat/refs/heads/master/src/"
         "test/test_double_decimals.c",
         26, 123.100000000012, 12);
  if (double_decimals(123.100000000012) != 12) {
    printf("%s:%d error got %d decimals, expected %d\n",
           "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
           "2022-01-22/02-19-57/repos/WizardMac/ReadStat/refs/heads/master/src/"
           "test/test_double_decimals.c",
           26, double_decimals(123.100000000012), 12);
    exit(EXIT_FAILURE);
  } else {
    printf("%s:%d OK got %d decimals\n",
           "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
           "2022-01-22/02-19-57/repos/WizardMac/ReadStat/refs/heads/master/src/"
           "test/test_double_decimals.c",
           26, 12);
  };
  printf("%s:%d Expecting %.14f to have %d decimals ... \n",
         "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
         "2022-01-22/02-19-57/repos/WizardMac/ReadStat/refs/heads/master/src/"
         "test/test_double_decimals.c",
         27, 123.12345678901234, 14);
  if (double_decimals(123.12345678901234) != 14) {
    printf("%s:%d error got %d decimals, expected %d\n",
           "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
           "2022-01-22/02-19-57/repos/WizardMac/ReadStat/refs/heads/master/src/"
           "test/test_double_decimals.c",
           27, double_decimals(123.12345678901234), 14);
    exit(EXIT_FAILURE);
  } else {
    printf("%s:%d OK got %d decimals\n",
           "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
           "2022-01-22/02-19-57/repos/WizardMac/ReadStat/refs/heads/master/src/"
           "test/test_double_decimals.c",
           27, 14);
  };
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xf03(%rip),%rdi
lea    0xf2c(%rip),%rsi
mov    $0x11,%edx
mov    $0xffffff85,%ecx
mov    $0x3,%r8d
mov    $0x0,%al
call   1040 <printf@plt>
movsd  0xe8d(%rip),%xmm0
call   1030 <double_decimals@plt>
cmp    $0x3,%eax
je     11be <main+0x8e>
movsd  0xe77(%rip),%xmm0
call   1030 <double_decimals@plt>
mov    %eax,%ecx
lea    0xf88(%rip),%rdi
lea    0xee2(%rip),%rsi
mov    $0x11,%edx
mov    $0x3,%r8d
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x2e29(%rip),%rax
mov    (%rax),%edi
call   1050 <exit@plt>
lea    0xf84(%rip),%rdi
lea    0xeb4(%rip),%rsi
mov    $0x11,%edx
mov    $0x3,%ecx
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe6c(%rip),%rdi
lea    0xe95(%rip),%rsi
mov    $0x12,%edx
mov    $0xffffff9c,%ecx
xor    %r8d,%r8d
mov    $0x0,%al
call   1040 <printf@plt>
movsd  0xe01(%rip),%xmm0
call   1030 <double_decimals@plt>
cmp    $0x0,%eax
je     124f <main+0x11f>
movsd  0xdeb(%rip),%xmm0
call   1030 <double_decimals@plt>
mov    %eax,%ecx
lea    0xef4(%rip),%rdi
lea    0xe4e(%rip),%rsi
mov    $0x12,%edx
xor    %r8d,%r8d
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x2d98(%rip),%rax
mov    (%rax),%edi
call   1050 <exit@plt>
lea    0xef3(%rip),%rdi
lea    0xe23(%rip),%rsi
mov    $0x12,%edx
xor    %ecx,%ecx
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xdde(%rip),%rdi
lea    0xe07(%rip),%rsi
mov    $0x13,%edx
xor    %r8d,%r8d
mov    %r8d,%ecx
mov    $0x0,%al
call   1040 <printf@plt>
xorps  %xmm0,%xmm0
call   1030 <double_decimals@plt>
cmp    $0x0,%eax
je     12d1 <main+0x1a1>
xorps  %xmm0,%xmm0
call   1030 <double_decimals@plt>
mov    %eax,%ecx
lea    0xe72(%rip),%rdi
lea    0xdcc(%rip),%rsi
mov    $0x13,%edx
xor    %r8d,%r8d
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x2d16(%rip),%rax
mov    (%rax),%edi
call   1050 <exit@plt>
lea    0xe71(%rip),%rdi
lea    0xda1(%rip),%rsi
mov    $0x13,%edx
xor    %ecx,%ecx
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xd5c(%rip),%rdi
lea    0xd85(%rip),%rsi
mov    $0x14,%edx
mov    $0x7b,%ecx
xor    %r8d,%r8d
mov    $0x0,%al
call   1040 <printf@plt>
movsd  0xcf9(%rip),%xmm0
call   1030 <double_decimals@plt>
cmp    $0x0,%eax
je     135f <main+0x22f>
movsd  0xce3(%rip),%xmm0
call   1030 <double_decimals@plt>
mov    %eax,%ecx
lea    0xde4(%rip),%rdi
lea    0xd3e(%rip),%rsi
mov    $0x14,%edx
xor    %r8d,%r8d
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x2c88(%rip),%rax
mov    (%rax),%edi
call   1050 <exit@plt>
lea    0xde3(%rip),%rdi
lea    0xd13(%rip),%rsi
mov    $0x14,%edx
xor    %ecx,%ecx
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xcce(%rip),%rdi
lea    0xcf7(%rip),%rsi
mov    $0x15,%edx
mov    $0x7b,%ecx
mov    $0x2,%r8d
mov    $0x0,%al
call   1040 <printf@plt>
movsd  0xc70(%rip),%xmm0
call   1030 <double_decimals@plt>
cmp    $0x2,%eax
je     13f3 <main+0x2c3>
movsd  0xc5a(%rip),%xmm0
call   1030 <double_decimals@plt>
mov    %eax,%ecx
lea    0xd53(%rip),%rdi
lea    0xcad(%rip),%rsi
mov    $0x15,%edx
mov    $0x2,%r8d
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x2bf4(%rip),%rax
mov    (%rax),%edi
call   1050 <exit@plt>
lea    0xd4f(%rip),%rdi
lea    0xc7f(%rip),%rsi
mov    $0x15,%edx
mov    $0x2,%ecx
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xc37(%rip),%rdi
lea    0xc60(%rip),%rsi
mov    $0x16,%edx
mov    $0x7b,%ecx
mov    $0x3,%r8d
mov    $0x0,%al
call   1040 <printf@plt>
movsd  0xbe1(%rip),%xmm0
call   1030 <double_decimals@plt>
cmp    $0x3,%eax
je     148a <main+0x35a>
movsd  0xbcb(%rip),%xmm0
call   1030 <double_decimals@plt>
mov    %eax,%ecx
lea    0xcbc(%rip),%rdi
lea    0xc16(%rip),%rsi
mov    $0x16,%edx
mov    $0x3,%r8d
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x2b5d(%rip),%rax
mov    (%rax),%edi
call   1050 <exit@plt>
lea    0xcb8(%rip),%rdi
lea    0xbe8(%rip),%rsi
mov    $0x16,%edx
mov    $0x3,%ecx
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xba0(%rip),%rdi
lea    0xbc9(%rip),%rsi
mov    $0x17,%edx
mov    $0x7b,%ecx
mov    $0x9,%r8d
mov    $0x0,%al
call   1040 <printf@plt>
movsd  0xb52(%rip),%xmm0
call   1030 <double_decimals@plt>
cmp    $0x9,%eax
je     1521 <main+0x3f1>
movsd  0xb3c(%rip),%xmm0
call   1030 <double_decimals@plt>
mov    %eax,%ecx
lea    0xc25(%rip),%rdi
lea    0xb7f(%rip),%rsi
mov    $0x17,%edx
mov    $0x9,%r8d
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x2ac6(%rip),%rax
mov    (%rax),%edi
call   1050 <exit@plt>
lea    0xc21(%rip),%rdi
lea    0xb51(%rip),%rsi
mov    $0x17,%edx
mov    $0x9,%ecx
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xb09(%rip),%rdi
lea    0xb32(%rip),%rsi
mov    $0x18,%edx
mov    $0x7b,%ecx
mov    $0xa,%r8d
mov    $0x0,%al
call   1040 <printf@plt>
movsd  0xac3(%rip),%xmm0
call   1030 <double_decimals@plt>
cmp    $0xa,%eax
je     15b8 <main+0x488>
movsd  0xaad(%rip),%xmm0
call   1030 <double_decimals@plt>
mov    %eax,%ecx
lea    0xb8e(%rip),%rdi
lea    0xae8(%rip),%rsi
mov    $0x18,%edx
mov    $0xa,%r8d
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x2a2f(%rip),%rax
mov    (%rax),%edi
call   1050 <exit@plt>
lea    0xb8a(%rip),%rdi
lea    0xaba(%rip),%rsi
mov    $0x18,%edx
mov    $0xa,%ecx
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xa72(%rip),%rdi
lea    0xa9b(%rip),%rsi
mov    $0x19,%edx
mov    $0x7b,%ecx
mov    $0xc,%r8d
mov    $0x0,%al
call   1040 <printf@plt>
movsd  0xa34(%rip),%xmm0
call   1030 <double_decimals@plt>
cmp    $0xc,%eax
je     164f <main+0x51f>
movsd  0xa1e(%rip),%xmm0
call   1030 <double_decimals@plt>
mov    %eax,%ecx
lea    0xaf7(%rip),%rdi
lea    0xa51(%rip),%rsi
mov    $0x19,%edx
mov    $0xc,%r8d
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x2998(%rip),%rax
mov    (%rax),%edi
call   1050 <exit@plt>
lea    0xaf3(%rip),%rdi
lea    0xa23(%rip),%rsi
mov    $0x19,%edx
mov    $0xc,%ecx
mov    $0x0,%al
call   1040 <printf@plt>
lea    0x9db(%rip),%rdi
lea    0xa04(%rip),%rsi
mov    $0x1a,%edx
mov    $0x7b,%ecx
mov    $0xc,%r8d
mov    $0x0,%al
call   1040 <printf@plt>
movsd  0x9a5(%rip),%xmm0
call   1030 <double_decimals@plt>
cmp    $0xc,%eax
je     16e6 <main+0x5b6>
movsd  0x98f(%rip),%xmm0
call   1030 <double_decimals@plt>
mov    %eax,%ecx
lea    0xa60(%rip),%rdi
lea    0x9ba(%rip),%rsi
mov    $0x1a,%edx
mov    $0xc,%r8d
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x2901(%rip),%rax
mov    (%rax),%edi
call   1050 <exit@plt>
lea    0xa5c(%rip),%rdi
lea    0x98c(%rip),%rsi
mov    $0x1a,%edx
mov    $0xc,%ecx
mov    $0x0,%al
call   1040 <printf@plt>
lea    0x944(%rip),%rdi
lea    0x96d(%rip),%rsi
mov    $0x1b,%edx
mov    $0x7b,%ecx
mov    $0xe,%r8d
mov    $0x0,%al
call   1040 <printf@plt>
movsd  0x916(%rip),%xmm0
call   1030 <double_decimals@plt>
cmp    $0xe,%eax
je     177d <main+0x64d>
movsd  0x900(%rip),%xmm0
call   1030 <double_decimals@plt>
mov    %eax,%ecx
lea    0x9c9(%rip),%rdi
lea    0x923(%rip),%rsi
mov    $0x1b,%edx
mov    $0xe,%r8d
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x286a(%rip),%rax
mov    (%rax),%edi
call   1050 <exit@plt>
lea    0x9c5(%rip),%rdi
lea    0x8f5(%rip),%rsi
mov    $0x1b,%edx
mov    $0xe,%ecx
mov    $0x0,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xf18(%rip),%rdi
lea    0xf41(%rip),%rsi
mov    $0x11,%edx
mov    $0xffffff85,%ecx
mov    $0x3,%r8d
xor    %eax,%eax
call   1040 <printf@plt>
movsd  0xea2(%rip),%xmm0
call   1030 <double_decimals@plt>
cmp    $0x3,%eax
jne    14ec <main+0x3bc>
lea    0xfd6(%rip),%rdi
lea    0xf06(%rip),%rbx
mov    %rbx,%rsi
mov    $0x11,%edx
mov    $0x3,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xebb(%rip),%rdi
mov    %rbx,%rsi
mov    $0x12,%edx
mov    $0xffffff9c,%ecx
xor    %r8d,%r8d
xor    %eax,%eax
call   1040 <printf@plt>
movsd  0xe54(%rip),%xmm0
call   1030 <double_decimals@plt>
test   %eax,%eax
jne    1511 <main+0x3e1>
lea    0xf81(%rip),%rdi
lea    0xeb1(%rip),%rbx
mov    %rbx,%rsi
mov    $0x12,%edx
xor    %ecx,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe69(%rip),%rdi
mov    %rbx,%rsi
mov    $0x13,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
xor    %eax,%eax
call   1040 <printf@plt>
xorps  %xmm0,%xmm0
call   1030 <double_decimals@plt>
test   %eax,%eax
jne    1533 <main+0x403>
lea    0xf37(%rip),%rdi
lea    0xe67(%rip),%rbx
mov    %rbx,%rsi
mov    $0x13,%edx
xor    %ecx,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe1f(%rip),%rdi
mov    %rbx,%rsi
mov    $0x14,%edx
mov    $0x7b,%ecx
xor    %r8d,%r8d
xor    %eax,%eax
call   1040 <printf@plt>
movsd  0xdc0(%rip),%xmm0
call   1030 <double_decimals@plt>
test   %eax,%eax
jne    1550 <main+0x420>
lea    0xee5(%rip),%rdi
lea    0xe15(%rip),%rbx
mov    %rbx,%rsi
mov    $0x14,%edx
xor    %ecx,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xdcd(%rip),%rdi
mov    %rbx,%rsi
mov    $0x15,%edx
mov    $0x7b,%ecx
mov    $0x2,%r8d
xor    %eax,%eax
call   1040 <printf@plt>
movsd  0xd73(%rip),%xmm0
call   1030 <double_decimals@plt>
cmp    $0x2,%eax
jne    157a <main+0x44a>
lea    0xe8f(%rip),%rdi
lea    0xdbf(%rip),%rbx
mov    %rbx,%rsi
mov    $0x15,%edx
mov    $0x2,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xd74(%rip),%rdi
mov    %rbx,%rsi
mov    $0x16,%edx
mov    $0x7b,%ecx
mov    $0x3,%r8d
xor    %eax,%eax
call   1040 <printf@plt>
movsd  0xd22(%rip),%xmm0
call   1030 <double_decimals@plt>
cmp    $0x3,%eax
jne    15a7 <main+0x477>
lea    0xe36(%rip),%rdi
lea    0xd66(%rip),%rbx
mov    %rbx,%rsi
mov    $0x16,%edx
mov    $0x3,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xd1b(%rip),%rdi
mov    %rbx,%rsi
mov    $0x17,%edx
mov    $0x7b,%ecx
mov    $0x9,%r8d
xor    %eax,%eax
call   1040 <printf@plt>
movsd  0xcd1(%rip),%xmm0
call   1030 <double_decimals@plt>
cmp    $0x9,%eax
jne    15d4 <main+0x4a4>
lea    0xddd(%rip),%rdi
lea    0xd0d(%rip),%rbx
mov    %rbx,%rsi
mov    $0x17,%edx
mov    $0x9,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xcc2(%rip),%rdi
mov    %rbx,%rsi
mov    $0x18,%edx
mov    $0x7b,%ecx
mov    $0xa,%r8d
xor    %eax,%eax
call   1040 <printf@plt>
movsd  0xc80(%rip),%xmm0
call   1030 <double_decimals@plt>
cmp    $0xa,%eax
jne    1601 <main+0x4d1>
lea    0xd84(%rip),%rdi
lea    0xcb4(%rip),%rbx
mov    %rbx,%rsi
mov    $0x18,%edx
mov    $0xa,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xc69(%rip),%rdi
mov    %rbx,%rsi
mov    $0x19,%edx
mov    $0x7b,%ecx
mov    $0xc,%r8d
xor    %eax,%eax
call   1040 <printf@plt>
movsd  0xc2f(%rip),%xmm0
call   1030 <double_decimals@plt>
cmp    $0xc,%eax
jne    162b <main+0x4fb>
lea    0xd2b(%rip),%rdi
lea    0xc5b(%rip),%rbx
mov    %rbx,%rsi
mov    $0x19,%edx
mov    $0xc,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xc10(%rip),%rdi
mov    %rbx,%rsi
mov    $0x1a,%edx
mov    $0x7b,%ecx
mov    $0xc,%r8d
xor    %eax,%eax
call   1040 <printf@plt>
movsd  0xbde(%rip),%xmm0
call   1030 <double_decimals@plt>
cmp    $0xc,%eax
jne    164d <main+0x51d>
lea    0xcd2(%rip),%rdi
lea    0xc02(%rip),%rbx
mov    %rbx,%rsi
mov    $0x1a,%edx
mov    $0xc,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xbb7(%rip),%rdi
mov    %rbx,%rsi
mov    $0x1b,%edx
mov    $0x7b,%ecx
mov    $0xe,%r8d
xor    %eax,%eax
call   1040 <printf@plt>
movsd  0xb8d(%rip),%xmm0
call   1030 <double_decimals@plt>
cmp    $0xe,%eax
jne    1677 <main+0x547>
lea    0xc79(%rip),%rdi
lea    0xba9(%rip),%rsi
mov    $0x1b,%edx
mov    $0xe,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret
movsd  0xb0c(%rip),%xmm0
call   1030 <double_decimals@plt>
lea    0xc1f(%rip),%rdi
lea    0xb79(%rip),%rsi
mov    $0x11,%edx
jmp    15c7 <main+0x497>
movsd  0xaef(%rip),%xmm0
call   1030 <double_decimals@plt>
lea    0xbfa(%rip),%rdi
lea    0xb54(%rip),%rsi
mov    $0x12,%edx
jmp    1570 <main+0x440>
xorps  %xmm0,%xmm0
call   1030 <double_decimals@plt>
lea    0xbdd(%rip),%rdi
lea    0xb37(%rip),%rsi
mov    $0x13,%edx
jmp    1570 <main+0x440>
movsd  0xab8(%rip),%xmm0
call   1030 <double_decimals@plt>
lea    0xbbb(%rip),%rdi
lea    0xb15(%rip),%rsi
mov    $0x14,%edx
mov    %eax,%ecx
xor    %r8d,%r8d
jmp    169f <main+0x56f>
movsd  0xa96(%rip),%xmm0
call   1030 <double_decimals@plt>
lea    0xb91(%rip),%rdi
lea    0xaeb(%rip),%rsi
mov    $0x15,%edx
mov    %eax,%ecx
mov    $0x2,%r8d
jmp    169f <main+0x56f>
movsd  0xa71(%rip),%xmm0
call   1030 <double_decimals@plt>
lea    0xb64(%rip),%rdi
lea    0xabe(%rip),%rsi
mov    $0x16,%edx
mov    %eax,%ecx
mov    $0x3,%r8d
jmp    169f <main+0x56f>
movsd  0xa4c(%rip),%xmm0
call   1030 <double_decimals@plt>
lea    0xb37(%rip),%rdi
lea    0xa91(%rip),%rsi
mov    $0x17,%edx
mov    %eax,%ecx
mov    $0x9,%r8d
jmp    169f <main+0x56f>
movsd  0xa27(%rip),%xmm0
call   1030 <double_decimals@plt>
lea    0xb0a(%rip),%rdi
lea    0xa64(%rip),%rsi
mov    $0x18,%edx
mov    %eax,%ecx
mov    $0xa,%r8d
jmp    169f <main+0x56f>
movsd  0xa05(%rip),%xmm0
call   1030 <double_decimals@plt>
lea    0xae0(%rip),%rdi
lea    0xa3a(%rip),%rsi
mov    $0x19,%edx
jmp    166d <main+0x53d>
movsd  0x9eb(%rip),%xmm0
call   1030 <double_decimals@plt>
lea    0xabe(%rip),%rdi
lea    0xa18(%rip),%rsi
mov    $0x1a,%edx
mov    %eax,%ecx
mov    $0xc,%r8d
jmp    169f <main+0x56f>
movsd  0x9c9(%rip),%xmm0
call   1030 <double_decimals@plt>
lea    0xa94(%rip),%rdi
lea    0x9ee(%rip),%rsi
mov    $0x1b,%edx
mov    %eax,%ecx
mov    $0xe,%r8d
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2933(%rip),%rax
mov    (%rax),%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [48 x i8] c"%s:%d Expecting %.14f to have %d decimals ... \0A\00"
@.str.1 = [159 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/WizardMac/ReadStat/refs/heads/master/src/test/test_double_decimals.c\00"
@.str.2 = [42 x i8] c"%s:%d error got %d decimals, expected %d\0A\00"
@EXIT_FAILURE = global i32 0
@.str.3 = [26 x i8] c"%s:%d OK got %d decimals\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 17, i32 -123, i32 3)
%7 = call i32 @double_decimals(double -1.231230e+02)
%8 = icmp ne i32 %7, 3
br i1 %8, label %9, label %14
9: ; preds = %2
%10 = call i32 @double_decimals(double -1.231230e+02)
%11 = call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 17, i32 %10, i32 3)
%12 = load i32, i32* @EXIT_FAILURE
%13 = call i32 @exit(i32 %12)
unreachable
14: ; preds = %2
%15 = call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 17, i32 3)
br label %16
16: ; preds = %14
%17 = call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 18, i32 -100, i32 0)
%18 = call i32 @double_decimals(double -1.000000e+02)
%19 = icmp ne i32 %18, 0
br i1 %19, label %20, label %25
20: ; preds = %16
%21 = call i32 @double_decimals(double -1.000000e+02)
%22 = call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 18, i32 %21, i32 0)
%23 = load i32, i32* @EXIT_FAILURE
%24 = call i32 @exit(i32 %23)
unreachable
25: ; preds = %16
%26 = call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 18, i32 0)
br label %27
27: ; preds = %25
%28 = call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 19, i32 0, i32 0)
%29 = call i32 @double_decimals(double 0.000000e+00)
%30 = icmp ne i32 %29, 0
br i1 %30, label %31, label %36
31: ; preds = %27
%32 = call i32 @double_decimals(double 0.000000e+00)
%33 = call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 19, i32 %32, i32 0)
%34 = load i32, i32* @EXIT_FAILURE
%35 = call i32 @exit(i32 %34)
unreachable
36: ; preds = %27
%37 = call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 19, i32 0)
br label %38
38: ; preds = %36
%39 = call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 20, i32 123, i32 0)
%40 = call i32 @double_decimals(double 1.230000e+02)
%41 = icmp ne i32 %40, 0
br i1 %41, label %42, label %47
42: ; preds = %38
%43 = call i32 @double_decimals(double 1.230000e+02)
%44 = call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 20, i32 %43, i32 0)
%45 = load i32, i32* @EXIT_FAILURE
%46 = call i32 @exit(i32 %45)
unreachable
47: ; preds = %38
%48 = call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 20, i32 0)
br label %49
49: ; preds = %47
%50 = call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 21, i32 123, i32 2)
%51 = call i32 @double_decimals(double 1.235600e+02)
%52 = icmp ne i32 %51, 2
br i1 %52, label %53, label %58
53: ; preds = %49
%54 = call i32 @double_decimals(double 1.235600e+02)
%55 = call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 21, i32 %54, i32 2)
%56 = load i32, i32* @EXIT_FAILURE
%57 = call i32 @exit(i32 %56)
unreachable
58: ; preds = %49
%59 = call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 21, i32 2)
br label %60
60: ; preds = %58
%61 = call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 22, i32 123, i32 3)
%62 = call i32 @double_decimals(double 1.231230e+02)
%63 = icmp ne i32 %62, 3
br i1 %63, label %64, label %69
64: ; preds = %60
%65 = call i32 @double_decimals(double 1.231230e+02)
%66 = call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 22, i32 %65, i32 3)
%67 = load i32, i32* @EXIT_FAILURE
%68 = call i32 @exit(i32 %67)
unreachable
69: ; preds = %60
%70 = call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 22, i32 3)
br label %71
71: ; preds = %69
%72 = call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 23, i32 123, i32 9)
%73 = call i32 @double_decimals(double 0x405EC7E6B74DCE59)
%74 = icmp ne i32 %73, 9
br i1 %74, label %75, label %80
75: ; preds = %71
%76 = call i32 @double_decimals(double 0x405EC7E6B74DCE59)
%77 = call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 23, i32 %76, i32 9)
%78 = load i32, i32* @EXIT_FAILURE
%79 = call i32 @exit(i32 %78)
unreachable
80: ; preds = %71
%81 = call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 23, i32 9)
br label %82
82: ; preds = %80
%83 = call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 24, i32 123, i32 10)
%84 = call i32 @double_decimals(double 0x405EC7E6B74DE9D6)
%85 = icmp ne i32 %84, 10
br i1 %85, label %86, label %91
86: ; preds = %82
%87 = call i32 @double_decimals(double 0x405EC7E6B74DE9D6)
%88 = call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 24, i32 %87, i32 10)
%89 = load i32, i32* @EXIT_FAILURE
%90 = call i32 @exit(i32 %89)
unreachable
91: ; preds = %82
%92 = call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 24, i32 10)
br label %93
93: ; preds = %91
%94 = call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 25, i32 123, i32 12)
%95 = call i32 @double_decimals(double 0x405EC7E6B74DD1A5)
%96 = icmp ne i32 %95, 12
br i1 %96, label %97, label %102
97: ; preds = %93
%98 = call i32 @double_decimals(double 0x405EC7E6B74DD1A5)
%99 = call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 25, i32 %98, i32 12)
%100 = load i32, i32* @EXIT_FAILURE
%101 = call i32 @exit(i32 %100)
unreachable
102: ; preds = %93
%103 = call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 25, i32 12)
br label %104
104: ; preds = %102
%105 = call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 26, i32 123, i32 12)
%106 = call i32 @double_decimals(double 0x405EC666666669B3)
%107 = icmp ne i32 %106, 12
br i1 %107, label %108, label %113
108: ; preds = %104
%109 = call i32 @double_decimals(double 0x405EC666666669B3)
%110 = call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 26, i32 %109, i32 12)
%111 = load i32, i32* @EXIT_FAILURE
%112 = call i32 @exit(i32 %111)
unreachable
113: ; preds = %104
%114 = call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 26, i32 12)
br label %115
115: ; preds = %113
%116 = call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 27, i32 123, i32 14)
%117 = call i32 @double_decimals(double 0x405EC7E6B74DD1BD)
%118 = icmp ne i32 %117, 14
br i1 %118, label %119, label %124
119: ; preds = %115
%120 = call i32 @double_decimals(double 0x405EC7E6B74DD1BD)
%121 = call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 27, i32 %120, i32 14)
%122 = load i32, i32* @EXIT_FAILURE
%123 = call i32 @exit(i32 %122)
unreachable
124: ; preds = %115
%125 = call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 27, i32 14)
br label %126
126: ; preds = %124
ret i32 0
}

LLVM IR (-O2):
@.str = [48 x i8] c"%s:%d Expecting %.14f to have %d decimals ... \0A\00"
@.str.1 = [159 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/WizardMac/ReadStat/refs/heads/master/src/test/test_double_decimals.c\00"
@.str.2 = [42 x i8] c"%s:%d error got %d decimals, expected %d\0A\00"
@EXIT_FAILURE = global i32 0
@.str.3 = [26 x i8] c"%s:%d OK got %d decimals\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 17, i32 -123, i32 3)
%4 = tail call i32 @double_decimals(double -1.231230e+02)
%5 = icmp eq i32 %4, 3
br i1 %5, label %11, label %6
6: ; preds = %2
%7 = tail call i32 @double_decimals(double -1.231230e+02)
%8 = tail call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 17, i32 %7, i32 3)
%9 = load i32, i32* @EXIT_FAILURE
%10 = tail call i32 @exit(i32 %9)
unreachable
11: ; preds = %2
%12 = tail call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 17, i32 3)
%13 = tail call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 18, i32 -100, i32 0)
%14 = tail call i32 @double_decimals(double -1.000000e+02)
%15 = icmp eq i32 %14, 0
br i1 %15, label %21, label %16
16: ; preds = %11
%17 = tail call i32 @double_decimals(double -1.000000e+02)
%18 = tail call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 18, i32 %17, i32 0)
%19 = load i32, i32* @EXIT_FAILURE
%20 = tail call i32 @exit(i32 %19)
unreachable
21: ; preds = %11
%22 = tail call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 18, i32 0)
%23 = tail call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 19, i32 0, i32 0)
%24 = tail call i32 @double_decimals(double 0.000000e+00)
%25 = icmp eq i32 %24, 0
br i1 %25, label %31, label %26
26: ; preds = %21
%27 = tail call i32 @double_decimals(double 0.000000e+00)
%28 = tail call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 19, i32 %27, i32 0)
%29 = load i32, i32* @EXIT_FAILURE
%30 = tail call i32 @exit(i32 %29)
unreachable
31: ; preds = %21
%32 = tail call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 19, i32 0)
%33 = tail call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 20, i32 123, i32 0)
%34 = tail call i32 @double_decimals(double 1.230000e+02)
%35 = icmp eq i32 %34, 0
br i1 %35, label %41, label %36
36: ; preds = %31
%37 = tail call i32 @double_decimals(double 1.230000e+02)
%38 = tail call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 20, i32 %37, i32 0)
%39 = load i32, i32* @EXIT_FAILURE
%40 = tail call i32 @exit(i32 %39)
unreachable
41: ; preds = %31
%42 = tail call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 20, i32 0)
%43 = tail call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 21, i32 123, i32 2)
%44 = tail call i32 @double_decimals(double 1.235600e+02)
%45 = icmp eq i32 %44, 2
br i1 %45, label %51, label %46
46: ; preds = %41
%47 = tail call i32 @double_decimals(double 1.235600e+02)
%48 = tail call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 21, i32 %47, i32 2)
%49 = load i32, i32* @EXIT_FAILURE
%50 = tail call i32 @exit(i32 %49)
unreachable
51: ; preds = %41
%52 = tail call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 21, i32 2)
%53 = tail call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 22, i32 123, i32 3)
%54 = tail call i32 @double_decimals(double 1.231230e+02)
%55 = icmp eq i32 %54, 3
br i1 %55, label %61, label %56
56: ; preds = %51
%57 = tail call i32 @double_decimals(double 1.231230e+02)
%58 = tail call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 22, i32 %57, i32 3)
%59 = load i32, i32* @EXIT_FAILURE
%60 = tail call i32 @exit(i32 %59)
unreachable
61: ; preds = %51
%62 = tail call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 22, i32 3)
%63 = tail call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 23, i32 123, i32 9)
%64 = tail call i32 @double_decimals(double 0x405EC7E6B74DCE59)
%65 = icmp eq i32 %64, 9
br i1 %65, label %71, label %66
66: ; preds = %61
%67 = tail call i32 @double_decimals(double 0x405EC7E6B74DCE59)
%68 = tail call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 23, i32 %67, i32 9)
%69 = load i32, i32* @EXIT_FAILURE
%70 = tail call i32 @exit(i32 %69)
unreachable
71: ; preds = %61
%72 = tail call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 23, i32 9)
%73 = tail call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 24, i32 123, i32 10)
%74 = tail call i32 @double_decimals(double 0x405EC7E6B74DE9D6)
%75 = icmp eq i32 %74, 10
br i1 %75, label %81, label %76
76: ; preds = %71
%77 = tail call i32 @double_decimals(double 0x405EC7E6B74DE9D6)
%78 = tail call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 24, i32 %77, i32 10)
%79 = load i32, i32* @EXIT_FAILURE
%80 = tail call i32 @exit(i32 %79)
unreachable
81: ; preds = %71
%82 = tail call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 24, i32 10)
%83 = tail call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 25, i32 123, i32 12)
%84 = tail call i32 @double_decimals(double 0x405EC7E6B74DD1A5)
%85 = icmp eq i32 %84, 12
br i1 %85, label %91, label %86
86: ; preds = %81
%87 = tail call i32 @double_decimals(double 0x405EC7E6B74DD1A5)
%88 = tail call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 25, i32 %87, i32 12)
%89 = load i32, i32* @EXIT_FAILURE
%90 = tail call i32 @exit(i32 %89)
unreachable
91: ; preds = %81
%92 = tail call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 25, i32 12)
%93 = tail call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 26, i32 123, i32 12)
%94 = tail call i32 @double_decimals(double 0x405EC666666669B3)
%95 = icmp eq i32 %94, 12
br i1 %95, label %101, label %96
96: ; preds = %91
%97 = tail call i32 @double_decimals(double 0x405EC666666669B3)
%98 = tail call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 26, i32 %97, i32 12)
%99 = load i32, i32* @EXIT_FAILURE
%100 = tail call i32 @exit(i32 %99)
unreachable
101: ; preds = %91
%102 = tail call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 26, i32 12)
%103 = tail call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 27, i32 123, i32 14)
%104 = tail call i32 @double_decimals(double 0x405EC7E6B74DD1BD)
%105 = icmp eq i32 %104, 14
br i1 %105, label %111, label %106
106: ; preds = %101
%107 = tail call i32 @double_decimals(double 0x405EC7E6B74DD1BD)
%108 = tail call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 27, i32 %107, i32 14)
%109 = load i32, i32* @EXIT_FAILURE
%110 = tail call i32 @exit(i32 %109)
unreachable
111: ; preds = %101
%112 = tail call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i32 27, i32 14)
ret i32 0
}