#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*/ sprintf(char *, char *, double);
int /*<<< orphan*/ unit_test_str(char *, char *, char *);
test_sprintf() {
  char buf[80];
  sprintf(buf, "%f", 42.5);
  unit_test_str("Nombre > 0:", "42.500000", buf);
  sprintf(buf, "%f", .5);
  unit_test_str("Nombre > 0 et < 1:", "0.500000", buf);
  sprintf(buf, "%f", 12.34567891);
  unit_test_str("Nombre > 0 arrondi:", "12.345679", buf);
  sprintf(buf, "%f", -12.34567891);
  unit_test_str("Nombre < 0 arrondi:", "-12.345679", buf);
  sprintf(buf, "%lf", 42.5);
  unit_test_str("Nombre > 0 avec ajout de 0's:", "42.500000", buf);
  sprintf(buf, "%f", 42.001);
  unit_test_str("Nombre > 0 avec risque arrondi:", "42.001000", buf);
  sprintf(buf, "%lf", 12.34567891);
  unit_test_str("Affichage nombre avec %lf:", "12.345679", buf);
  sprintf(buf, "%.2f", 12.34567891);
  unit_test_str("Affichage avec %.2f:", "12.35", buf);
  sprintf(buf, "%.1f", .99);
  unit_test_str("Nombre > 0 et < 1 avec %.1f:", "1.0", buf);
  sprintf(buf, "%.5f", 12.34567891);
  unit_test_str("Affichage avec %.5f:", "12.34568", buf);
  sprintf(buf, "%.15f", 12.3456789123456789);
  unit_test_str("Affichage avec %.15f et arrondi:", "12.345678912345679", buf);
  sprintf(buf, "%.15f", 12.34567891);
  unit_test_str("Affichage avec %.15f et padding 0:", "12.345678910000000",
                buf);
}


x86 assembly (clang, -O0):
<test_sprintf>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
lea    -0x60(%rbp),%rdi
lea    0xf05(%rip),%rsi
movsd  0xee5(%rip),%xmm0
call   1040 <sprintf@plt>
lea    -0x60(%rbp),%rdx
lea    0xef0(%rip),%rdi
lea    0xef5(%rip),%rsi
call   1030 <unit_test_str@plt>
lea    -0x60(%rbp),%rdi
lea    0xed6(%rip),%rsi
movsd  0xec6(%rip),%xmm0
call   1040 <sprintf@plt>
lea    -0x60(%rbp),%rdx
lea    0xed7(%rip),%rdi
lea    0xee3(%rip),%rsi
call   1030 <unit_test_str@plt>
lea    -0x60(%rbp),%rdi
lea    0xea7(%rip),%rsi
movsd  0xe67(%rip),%xmm0
call   1040 <sprintf@plt>
lea    -0x60(%rbp),%rdx
lea    0xec4(%rip),%rdi
lea    0xee6(%rip),%rsi
call   1030 <unit_test_str@plt>
lea    -0x60(%rbp),%rdi
lea    0xe78(%rip),%rsi
movsd  0xe60(%rip),%xmm0
call   1040 <sprintf@plt>
lea    -0x60(%rbp),%rdx
lea    0xea9(%rip),%rdi
lea    0xeb6(%rip),%rsi
call   1030 <unit_test_str@plt>
lea    -0x60(%rbp),%rdi
lea    0xeb1(%rip),%rsi
movsd  0xe29(%rip),%xmm0
call   1040 <sprintf@plt>
lea    -0x60(%rbp),%rdx
lea    0xe9d(%rip),%rdi
lea    0xe39(%rip),%rsi
call   1030 <unit_test_str@plt>
lea    -0x60(%rbp),%rdi
lea    0xe1a(%rip),%rsi
movsd  0xdf2(%rip),%xmm0
call   1040 <sprintf@plt>
lea    -0x60(%rbp),%rdx
lea    0xe8c(%rip),%rdi
lea    0xea5(%rip),%rsi
call   1030 <unit_test_str@plt>
lea    -0x60(%rbp),%rdi
lea    0xe53(%rip),%rsi
movsd  0xdab(%rip),%xmm0
call   1040 <sprintf@plt>
lea    -0x60(%rbp),%rdx
lea    0xe87(%rip),%rdi
lea    0xe2a(%rip),%rsi
call   1030 <unit_test_str@plt>
lea    -0x60(%rbp),%rdi
lea    0xe8b(%rip),%rsi
movsd  0xd7c(%rip),%xmm0
call   1040 <sprintf@plt>
lea    -0x60(%rbp),%rdx
lea    0xe78(%rip),%rdi
lea    0xe86(%rip),%rsi
call   1030 <unit_test_str@plt>
lea    -0x60(%rbp),%rdi
lea    0xe7c(%rip),%rsi
movsd  0xd5d(%rip),%xmm0
call   1040 <sprintf@plt>
lea    -0x60(%rbp),%rdx
lea    0xe69(%rip),%rdi
lea    0xe7f(%rip),%rsi
call   1030 <unit_test_str@plt>
lea    -0x60(%rbp),%rdi
lea    0xe73(%rip),%rsi
movsd  0xd1e(%rip),%xmm0
call   1040 <sprintf@plt>
lea    -0x60(%rbp),%rdx
lea    0xe60(%rip),%rdi
lea    0xe6e(%rip),%rsi
call   1030 <unit_test_str@plt>
lea    -0x60(%rbp),%rdi
lea    0xe67(%rip),%rsi
movsd  0xcf7(%rip),%xmm0
call   1040 <sprintf@plt>
lea    -0x60(%rbp),%rdx
lea    0xe55(%rip),%rdi
lea    0xe6f(%rip),%rsi
call   1030 <unit_test_str@plt>
lea    -0x60(%rbp),%rdi
lea    0xe38(%rip),%rsi
movsd  0xcc0(%rip),%xmm0
call   1040 <sprintf@plt>
lea    -0x60(%rbp),%rdx
lea    0xe5a(%rip),%rdi
lea    0xe76(%rip),%rsi
call   1030 <unit_test_str@plt>
mov    -0x4(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_sprintf>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x50,%rsp
lea    0xf04(%rip),%r14
mov    %rsp,%rbx
movsd  0xec1(%rip),%xmm0
mov    %rbx,%rdi
mov    %r14,%rsi
call   1040 <sprintf@plt>
lea    0xeea(%rip),%rdi
lea    0xeef(%rip),%r15
mov    %r15,%rsi
mov    %rbx,%rdx
call   1030 <unit_test_str@plt>
movsd  0xe9d(%rip),%xmm0
mov    %rbx,%rdi
mov    %r14,%rsi
call   1040 <sprintf@plt>
lea    0xed4(%rip),%rdi
lea    0xee0(%rip),%rsi
mov    %rbx,%rdx
call   1030 <unit_test_str@plt>
movsd  0xe7c(%rip),%xmm0
mov    %rbx,%rdi
mov    %r14,%rsi
call   1040 <sprintf@plt>
lea    0xec7(%rip),%rdi
lea    0xee9(%rip),%r12
mov    %r12,%rsi
mov    %rbx,%rdx
call   1030 <unit_test_str@plt>
movsd  0xe58(%rip),%xmm0
mov    %rbx,%rdi
mov    %r14,%rsi
call   1040 <sprintf@plt>
lea    0xeaf(%rip),%rdi
lea    0xebc(%rip),%rsi
mov    %rbx,%rdx
call   1030 <unit_test_str@plt>
lea    0xeb8(%rip),%r13
mov    %rbx,%rdi
mov    %r13,%rsi
movsd  0xe0a(%rip),%xmm0
call   1040 <sprintf@plt>
lea    0xea2(%rip),%rdi
mov    %r15,%rsi
mov    %rbx,%rdx
call   1030 <unit_test_str@plt>
movsd  0xe0b(%rip),%xmm0
mov    %rbx,%rdi
mov    %r14,%rsi
call   1040 <sprintf@plt>
lea    0xe9b(%rip),%rdi
lea    0xeb4(%rip),%rsi
mov    %rbx,%rdx
call   1030 <unit_test_str@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
movsd  0xdcc(%rip),%xmm0
call   1040 <sprintf@plt>
lea    0xe9c(%rip),%rdi
mov    %r12,%rsi
mov    %rbx,%rdx
call   1030 <unit_test_str@plt>
lea    0xea5(%rip),%rsi
mov    %rbx,%rdi
movsd  0xda3(%rip),%xmm0
call   1040 <sprintf@plt>
lea    0xe93(%rip),%rdi
lea    0xea1(%rip),%rsi
mov    %rbx,%rdx
call   1030 <unit_test_str@plt>
lea    0xe98(%rip),%rsi
movsd  0xd91(%rip),%xmm0
mov    %rbx,%rdi
call   1040 <sprintf@plt>
lea    0xe86(%rip),%rdi
lea    0xe9c(%rip),%rsi
mov    %rbx,%rdx
call   1030 <unit_test_str@plt>
lea    0xe91(%rip),%rsi
mov    %rbx,%rdi
movsd  0xd49(%rip),%xmm0
call   1040 <sprintf@plt>
lea    0xe7f(%rip),%rdi
lea    0xe8d(%rip),%rsi
mov    %rbx,%rdx
call   1030 <unit_test_str@plt>
lea    0xe87(%rip),%r14
movsd  0xd3f(%rip),%xmm0
mov    %rbx,%rdi
mov    %r14,%rsi
call   1040 <sprintf@plt>
lea    0xe73(%rip),%rdi
lea    0xe8d(%rip),%rsi
mov    %rbx,%rdx
call   1030 <unit_test_str@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
movsd  0xcf0(%rip),%xmm0
call   1040 <sprintf@plt>
lea    0xe7e(%rip),%rdi
lea    0xe9a(%rip),%rsi
mov    %rbx,%rdx
call   1030 <unit_test_str@plt>
add    $0x50,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%f\00"
@.str.1 = [12 x i8] c"Nombre > 0:\00"
@.str.2 = [10 x i8] c"42.500000\00"
@.str.3 = [19 x i8] c"Nombre > 0 et < 1:\00"
@.str.4 = [9 x i8] c"0.500000\00"
@.str.5 = [20 x i8] c"Nombre > 0 arrondi:\00"
@.str.6 = [10 x i8] c"12.345679\00"
@.str.7 = [20 x i8] c"Nombre < 0 arrondi:\00"
@.str.8 = [11 x i8] c"-12.345679\00"
@.str.9 = [4 x i8] c"%lf\00"
@.str.10 = [30 x i8] c"Nombre > 0 avec ajout de 0's:\00"
@.str.11 = [32 x i8] c"Nombre > 0 avec risque arrondi:\00"
@.str.12 = [10 x i8] c"42.001000\00"
@.str.13 = [27 x i8] c"Affichage nombre avec %lf:\00"
@.str.14 = [5 x i8] c"%.2f\00"
@.str.15 = [21 x i8] c"Affichage avec %.2f:\00"
@.str.16 = [6 x i8] c"12.35\00"
@.str.17 = [5 x i8] c"%.1f\00"
@.str.18 = [29 x i8] c"Nombre > 0 et < 1 avec %.1f:\00"
@.str.19 = [4 x i8] c"1.0\00"
@.str.20 = [5 x i8] c"%.5f\00"
@.str.21 = [21 x i8] c"Affichage avec %.5f:\00"
@.str.22 = [9 x i8] c"12.34568\00"
@.str.23 = [6 x i8] c"%.15f\00"
@.str.24 = [33 x i8] c"Affichage avec %.15f et arrondi:\00"
@.str.25 = [19 x i8] c"12.345678912345679\00"
@.str.26 = [35 x i8] c"Affichage avec %.15f et padding 0:\00"
@.str.27 = [19 x i8] c"12.345678910000000\00"
define i32 @test_sprintf() {
%1 = alloca i32
%2 = alloca [80 x i8]
%3 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%4 = call i32 @sprintf(i8* %3, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), double 4.250000e+01)
%5 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%6 = call i32 @unit_test_str(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* %5)
%7 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%8 = call i32 @sprintf(i8* %7, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), double 5.000000e-01)
%9 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%10 = call i32 @unit_test_str(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i8* %9)
%11 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%12 = call i32 @sprintf(i8* %11, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), double 0x4028B0FCD37ABBDE)
%13 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%14 = call i32 @unit_test_str(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), i8* %13)
%15 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%16 = call i32 @sprintf(i8* %15, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), double 0xC028B0FCD37ABBDE)
%17 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%18 = call i32 @unit_test_str(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0), i8* %17)
%19 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%20 = call i32 @sprintf(i8* %19, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), double 4.250000e+01)
%21 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%22 = call i32 @unit_test_str(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* %21)
%23 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%24 = call i32 @sprintf(i8* %23, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), double 4.200100e+01)
%25 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%26 = call i32 @unit_test_str(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0), i8* %25)
%27 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%28 = call i32 @sprintf(i8* %27, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), double 0x4028B0FCD37ABBDE)
%29 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%30 = call i32 @unit_test_str(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), i8* %29)
%31 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%32 = call i32 @sprintf(i8* %31, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0), double 0x4028B0FCD37ABBDE)
%33 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%34 = call i32 @unit_test_str(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.16, i64 0, i64 0), i8* %33)
%35 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%36 = call i32 @sprintf(i8* %35, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.17, i64 0, i64 0), double 0x3FEFAE147AE147AE)
%37 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%38 = call i32 @unit_test_str(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.19, i64 0, i64 0), i8* %37)
%39 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%40 = call i32 @sprintf(i8* %39, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.20, i64 0, i64 0), double 0x4028B0FCD37ABBDE)
%41 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%42 = call i32 @unit_test_str(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.21, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.22, i64 0, i64 0), i8* %41)
%43 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%44 = call i32 @sprintf(i8* %43, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.23, i64 0, i64 0), double 0x4028B0FCD38EE212)
%45 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%46 = call i32 @unit_test_str(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.24, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.25, i64 0, i64 0), i8* %45)
%47 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%48 = call i32 @sprintf(i8* %47, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.23, i64 0, i64 0), double 0x4028B0FCD37ABBDE)
%49 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%50 = call i32 @unit_test_str(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.26, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.27, i64 0, i64 0), i8* %49)
%51 = load i32, i32* %1
ret i32 %51
}

LLVM IR (-O2):
@.str = [3 x i8] c"%f\00"
@.str.1 = [12 x i8] c"Nombre > 0:\00"
@.str.2 = [10 x i8] c"42.500000\00"
@.str.3 = [19 x i8] c"Nombre > 0 et < 1:\00"
@.str.4 = [9 x i8] c"0.500000\00"
@.str.5 = [20 x i8] c"Nombre > 0 arrondi:\00"
@.str.6 = [10 x i8] c"12.345679\00"
@.str.7 = [20 x i8] c"Nombre < 0 arrondi:\00"
@.str.8 = [11 x i8] c"-12.345679\00"
@.str.9 = [4 x i8] c"%lf\00"
@.str.10 = [30 x i8] c"Nombre > 0 avec ajout de 0's:\00"
@.str.11 = [32 x i8] c"Nombre > 0 avec risque arrondi:\00"
@.str.12 = [10 x i8] c"42.001000\00"
@.str.13 = [27 x i8] c"Affichage nombre avec %lf:\00"
@.str.14 = [5 x i8] c"%.2f\00"
@.str.15 = [21 x i8] c"Affichage avec %.2f:\00"
@.str.16 = [6 x i8] c"12.35\00"
@.str.17 = [5 x i8] c"%.1f\00"
@.str.18 = [29 x i8] c"Nombre > 0 et < 1 avec %.1f:\00"
@.str.19 = [4 x i8] c"1.0\00"
@.str.20 = [5 x i8] c"%.5f\00"
@.str.21 = [21 x i8] c"Affichage avec %.5f:\00"
@.str.22 = [9 x i8] c"12.34568\00"
@.str.23 = [6 x i8] c"%.15f\00"
@.str.24 = [33 x i8] c"Affichage avec %.15f et arrondi:\00"
@.str.25 = [19 x i8] c"12.345678912345679\00"
@.str.26 = [35 x i8] c"Affichage avec %.15f et padding 0:\00"
@.str.27 = [19 x i8] c"12.345678910000000\00"
define i32 @test_sprintf() {
%1 = alloca [80 x i8]
%2 = getelementptr inbounds [80 x i8], [80 x i8]* %1, i64 0, i64 0
%3 = call i32 @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), double 4.250000e+01)
%4 = call i32 @unit_test_str(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* %2)
%5 = call i32 @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), double 5.000000e-01)
%6 = call i32 @unit_test_str(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i8* %2)
%7 = call i32 @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), double 0x4028B0FCD37ABBDE)
%8 = call i32 @unit_test_str(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), i8* %2)
%9 = call i32 @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), double 0xC028B0FCD37ABBDE)
%10 = call i32 @unit_test_str(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0), i8* %2)
%11 = call i32 @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), double 4.250000e+01)
%12 = call i32 @unit_test_str(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* %2)
%13 = call i32 @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), double 4.200100e+01)
%14 = call i32 @unit_test_str(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0), i8* %2)
%15 = call i32 @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), double 0x4028B0FCD37ABBDE)
%16 = call i32 @unit_test_str(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), i8* %2)
%17 = call i32 @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0), double 0x4028B0FCD37ABBDE)
%18 = call i32 @unit_test_str(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.16, i64 0, i64 0), i8* %2)
%19 = call i32 @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.17, i64 0, i64 0), double 0x3FEFAE147AE147AE)
%20 = call i32 @unit_test_str(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.19, i64 0, i64 0), i8* %2)
%21 = call i32 @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.20, i64 0, i64 0), double 0x4028B0FCD37ABBDE)
%22 = call i32 @unit_test_str(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.21, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.22, i64 0, i64 0), i8* %2)
%23 = call i32 @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.23, i64 0, i64 0), double 0x4028B0FCD38EE212)
%24 = call i32 @unit_test_str(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.24, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.25, i64 0, i64 0), i8* %2)
%25 = call i32 @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.23, i64 0, i64 0), double 0x4028B0FCD37ABBDE)
%26 = call i32 @unit_test_str(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.26, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.27, i64 0, i64 0), i8* %2)
ret i32 undef
}