#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*/ assertEql(char *, int /*<<< orphan*/, int);
int /*<<< orphan*/ describe(char *);
int /*<<< orphan*/ endDescribe();
int /*<<< orphan*/ nbDigits(int);
void util_nb_digits_asserts() {
  describe("Nombre de chiffres d'un entier");
  assertEql("0 a 1 chiffre", nbDigits(0), 1);
  assertEql("9746512 a 7 chiffres", nbDigits(9746512), 7);
  assertEql("-746512 a 6 chiffres", nbDigits(-746512), 6);
  endDescribe();
}


x86 assembly (clang, -O0):
<util_nb_digits_asserts>:
push   %rbp
mov    %rsp,%rbp
lea    0xeb5(%rip),%rdi
call   1060 <describe@plt>
xor    %edi,%edi
call   1040 <nbDigits@plt>
mov    %eax,%esi
lea    0xebf(%rip),%rdi
mov    $0x1,%edx
call   1050 <assertEql@plt>
mov    $0x94b850,%edi
call   1040 <nbDigits@plt>
mov    %eax,%esi
lea    0xeb0(%rip),%rdi
mov    $0x7,%edx
call   1050 <assertEql@plt>
mov    $0xfff49bf0,%edi
call   1040 <nbDigits@plt>
mov    %eax,%esi
lea    0xea8(%rip),%rdi
mov    $0x6,%edx
call   1050 <assertEql@plt>
mov    $0x0,%al
call   1030 <endDescribe@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<util_nb_digits_asserts>:
push   %rax
lea    0xeb8(%rip),%rdi
call   1060 <describe@plt>
xor    %edi,%edi
call   1040 <nbDigits@plt>
lea    0xec4(%rip),%rdi
mov    %eax,%esi
mov    $0x1,%edx
call   1050 <assertEql@plt>
mov    $0x94b850,%edi
call   1040 <nbDigits@plt>
lea    0xeb5(%rip),%rdi
mov    %eax,%esi
mov    $0x7,%edx
call   1050 <assertEql@plt>
mov    $0xfff49bf0,%edi
call   1040 <nbDigits@plt>
lea    0xead(%rip),%rdi
mov    %eax,%esi
mov    $0x6,%edx
call   1050 <assertEql@plt>
xor    %eax,%eax
pop    %rcx
jmp    1030 <endDescribe@plt>

LLVM IR (-O0):
@.str = [31 x i8] c"Nombre de chiffres d'un entier\00"
@.str.1 = [14 x i8] c"0 a 1 chiffre\00"
@.str.2 = [21 x i8] c"9746512 a 7 chiffres\00"
@.str.3 = [21 x i8] c"-746512 a 6 chiffres\00"
define void @util_nb_digits_asserts() {
%1 = call i32 @describe(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @nbDigits(i32 0)
%3 = call i32 @assertEql(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i32 %2, i32 1)
%4 = call i32 @nbDigits(i32 9746512)
%5 = call i32 @assertEql(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0), i32 %4, i32 7)
%6 = call i32 @nbDigits(i32 -746512)
%7 = call i32 @assertEql(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0), i32 %6, i32 6)
%8 = call i32 (...) @endDescribe()
ret void
}

LLVM IR (-O2):
@.str = [31 x i8] c"Nombre de chiffres d'un entier\00"
@.str.1 = [14 x i8] c"0 a 1 chiffre\00"
@.str.2 = [21 x i8] c"9746512 a 7 chiffres\00"
@.str.3 = [21 x i8] c"-746512 a 6 chiffres\00"
define void @util_nb_digits_asserts() {
%1 = tail call i32 @describe(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @nbDigits(i32 0)
%3 = tail call i32 @assertEql(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i32 %2, i32 1)
%4 = tail call i32 @nbDigits(i32 9746512)
%5 = tail call i32 @assertEql(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0), i32 %4, i32 7)
%6 = tail call i32 @nbDigits(i32 -746512)
%7 = tail call i32 @assertEql(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0), i32 %6, i32 6)
%8 = tail call i32 (...) @endDescribe()
ret void
}