Glibc 0.1
Glibc architecture analysis - math functions
|
Name: Glibc
Description: complexity analysis for math functions.
ASIL: D
Total number of allocated safety requirements: 3
Total number of unique safety requirements: ?
Number | ID | Status | Status OK? | Summary |
---|---|---|---|---|
1 | 1 | Valid | ✅ | allocate memory |
2 | 2 | Valid | ✅ | deallocate memory |
3 | 3 | Valid | ✅ | reallocate memory |
Total number of safety related functions: 41
USR | Function name | Signature | Location | CF0 metric | CF1 metric | CF2 metric | CF3 metric | CF4 metric | CF5 metric | CF6 metric | CF7 metric | R class | ISO PAS 8926 complexity | Criticality | Used external functions | Used public functions |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c:@F@acos | acos | acos(double) | w_acos_compat.c:29:1 | 3 | 3361 | 93 | 55 | 3361 | 3361 | 1 | 55 | R5 | C3 | SafetyRelated | strcasecmp_l, fflush, memchr, memcpy, strcspn, memmove, lseek, munmap, getcwd, mprotect, wcslen, realloc, calloc, getdents64, mmap, clock_gettime, asprintf, readdir64, sysinfo, tolower, sigprocmask, sysconf, strdup, opendir, mremap, strtoul, strtol, closedir, free, strerror_r, strncmp, strstr, exit, getrlimit, strchr, madvise, memcmp, malloc, getpagesize, readdir, sigaction, get_nprocs_conf, qsort, strcmp, strtok_r, dcgettext, abort, strspn, memset, strcpy, fputs, strnlen, getenv, strlen, read | |
c:@F@acosf | acosf | acosf(float) | ../sysdeps/ieee754/flt-32/e_acosf.c:37:1 | 7 | 7 | 0 | 0 | 7 | 7 | 1 | 0 | R1 | C1 | SafetyRelated | ||
c:@F@acosh | acosh | acosh(double) | w_acosh_compat.c:28:1 | 3 | 3225 | 93 | 55 | 3223 | 3206 | 1 | 55 | R5 | C3 | SafetyRelated | strcasecmp_l, fflush, memchr, memcpy, strcspn, memmove, lseek, munmap, getcwd, mprotect, wcslen, realloc, calloc, getdents64, mmap, clock_gettime, asprintf, readdir64, sysinfo, tolower, sigprocmask, sysconf, strdup, opendir, mremap, strtoul, strtol, closedir, free, strerror_r, strncmp, strstr, exit, getrlimit, strchr, madvise, memcmp, malloc, getpagesize, readdir, sigaction, get_nprocs_conf, qsort, strcmp, strtok_r, dcgettext, abort, strspn, memset, strcpy, fputs, strnlen, getenv, strlen, read | |
c:@F@alarm | alarm | alarm(unsigned int) | ../sysdeps/posix/alarm.c:29:1 | 5 | 5 | 0 | 1 | 5 | 5 | 1 | 1 | R1 | C1 | SafetyRelated | setitimer | |
c:@F@asin | asin | asin(double) | w_asin_compat.c:29:1 | 3 | 3367 | 93 | 55 | 3367 | 3367 | 1 | 55 | R5 | C3 | SafetyRelated | strcasecmp_l, fflush, memchr, memcpy, strcspn, memmove, lseek, munmap, getcwd, mprotect, wcslen, realloc, calloc, getdents64, mmap, clock_gettime, asprintf, readdir64, sysinfo, tolower, sigprocmask, sysconf, strdup, opendir, mremap, strtoul, strtol, closedir, free, strerror_r, strncmp, strstr, exit, getrlimit, strchr, madvise, memcmp, malloc, getpagesize, readdir, sigaction, get_nprocs_conf, qsort, strcmp, strtok_r, dcgettext, abort, strspn, memset, strcpy, fputs, strnlen, getenv, strlen, read | |
c:@F@asinf | asinf | asinf(float) | ../sysdeps/ieee754/flt-32/e_asinf.c:65:7 | 8 | 8 | 0 | 0 | 8 | 8 | 1 | 0 | R1 | C1 | SafetyRelated | ||
c:@F@asinh | asinh | asinh(double) | ../sysdeps/ieee754/dbl-64/s_asinh.c:36:1 | 6 | 3223 | 93 | 55 | 23 | 6 | 1 | 0 | R4 | C1 | SafetyRelated | log1p, sqrt | |
c:@F@atan | atan | atan(double) | ../sysdeps/ieee754/dbl-64/s_atan.c:66:1 | 22 | 142 | 0 | 0 | 142 | 142 | 1 | 0 | R5 | C3 | SafetyRelated | ||
c:@F@atan2 | atan2 | atan2(double, double) | w_atan2_compat.c:32:1 | 7 | 3401 | 93 | 55 | 3401 | 3401 | 2 | 55 | R5 | C3 | SafetyRelated | strcasecmp_l, fflush, memchr, memcpy, strcspn, memmove, lseek, munmap, getcwd, mprotect, wcslen, realloc, calloc, getdents64, mmap, clock_gettime, asprintf, readdir64, sysinfo, tolower, sigprocmask, sysconf, strdup, opendir, mremap, strtoul, strtol, closedir, free, strerror_r, strncmp, strstr, exit, getrlimit, strchr, madvise, memcmp, malloc, getpagesize, readdir, sigaction, get_nprocs_conf, qsort, strcmp, strtok_r, dcgettext, abort, strspn, memset, strcpy, fputs, strnlen, getenv, strlen, read | |
c:@F@atan2f | atan2f | atan2f(float, float) | ../sysdeps/ieee754/flt-32/e_atan2f.c:29:1 | 29 | 40 | 0 | 0 | 29 | 29 | 2 | 0 | R5 | C3 | SafetyRelated | __atanf | |
c:@F@atanf | atanf | atanf(float) | ../sysdeps/ieee754/flt-32/s_atanf.c:58:7 | 12 | 12 | 0 | 0 | 12 | 12 | 1 | 0 | R1 | C1 | SafetyRelated | ||
c:@F@atanh | atanh | atanh(double) | w_atanh_compat.c:28:1 | 4 | 3223 | 93 | 55 | 3223 | 3206 | 1 | 55 | R5 | C3 | SafetyRelated | strcasecmp_l, fflush, memchr, memcpy, strcspn, memmove, lseek, munmap, getcwd, mprotect, wcslen, realloc, calloc, getdents64, mmap, clock_gettime, asprintf, readdir64, sysinfo, tolower, sigprocmask, sysconf, strdup, opendir, mremap, strtoul, strtol, closedir, free, strerror_r, strncmp, strstr, exit, getrlimit, strchr, madvise, memcmp, malloc, getpagesize, readdir, sigaction, get_nprocs_conf, qsort, strcmp, strtok_r, dcgettext, abort, strspn, memset, strcpy, fputs, strnlen, getenv, strlen, read | |
c:@F@atoi | atoi | atoi(const char *) | ../stdlib/stdlib.h:361:1 | 1 | 111 | 2 | 2 | 111 | 111 | 1 | 2 | R5 | C3 | SafetyRelated | strtol, strlen | |
c:@F@cos | cos | cos(double) | ../sysdeps/ieee754/dbl-64/s_sin.c:265:1 | 8 | 25 | 0 | 0 | 25 | 25 | 1 | 0 | R2 | C1 | SafetyRelated | ||
c:@F@cosf | cosf | cosf(float) | ../sysdeps/ieee754/flt-32/s_cosf.c:38:1 | 7 | 9 | 1 | 0 | 9 | 9 | 1 | 0 | R1 | C1 | SafetyRelated | ||
c:@F@cosh | cosh | cosh(double) | w_cosh_compat.c:24:1 | 4 | 3228 | 93 | 55 | 3208 | 3208 | 1 | 55 | R5 | C3 | SafetyRelated | strcasecmp_l, fflush, memchr, memcpy, strcspn, memmove, lseek, munmap, getcwd, mprotect, wcslen, realloc, calloc, getdents64, mmap, clock_gettime, asprintf, readdir64, sysinfo, tolower, sigprocmask, sysconf, strdup, opendir, mremap, strtoul, strtol, closedir, free, strerror_r, strncmp, strstr, exit, getrlimit, strchr, madvise, memcmp, malloc, getpagesize, readdir, sigaction, get_nprocs_conf, qsort, strcmp, strtok_r, dcgettext, abort, strspn, memset, strcpy, fputs, strnlen, getenv, strlen, read | |
c:@F@exp | exp | exp(double) | ../sysdeps/ieee754/dbl-64/e_exp.c:97:1 | 10 | 16 | 1 | 0 | 16 | 16 | 1 | 0 | R1 | C1 | SafetyRelated | ||
c:@F@expf | expf | expf(float) | ../sysdeps/ieee754/flt-32/e_expf.c:53:1 | 9 | 9 | 1 | 0 | 9 | 9 | 1 | 0 | R1 | C1 | SafetyRelated | ||
c:@F@expm1 | expm1 | expm1(double) | ../sysdeps/ieee754/dbl-64/s_expm1.c:134:1 | 21 | 21 | 0 | 0 | 21 | 21 | 1 | 0 | R2 | C1 | SafetyRelated | ||
c:@F@sin | sin | sin(double) | ../sysdeps/ieee754/dbl-64/s_sin.c:201:1 | 8 | 25 | 0 | 0 | 25 | 25 | 1 | 0 | R2 | C1 | SafetyRelated | ||
c:@F@sincos | sincos | sincos(double, double *, double *) | ../sysdeps/ieee754/dbl-64/s_sincos.c:32:1 | 12 | 27 | 0 | 0 | 27 | 27 | 3 | 0 | R2 | C1 | SafetyRelated | ||
c:@F@sincosf | sincosf | sincosf(float, float *, float *) | ../sysdeps/ieee754/flt-32/s_sincosf.c:38:1 | 9 | 12 | 1 | 0 | 12 | 12 | 3 | 0 | R1 | C1 | SafetyRelated | ||
c:@F@sinf | sinf | sinf(float) | ../sysdeps/ieee754/flt-32/s_sinf.c:38:1 | 8 | 10 | 1 | 0 | 10 | 10 | 1 | 0 | R1 | C1 | SafetyRelated | ||
c:@F@sinh | sinh | sinh(double) | w_sinh_compat.c:24:1 | 4 | 3232 | 93 | 55 | 3212 | 3212 | 1 | 55 | R5 | C3 | SafetyRelated | strcasecmp_l, fflush, memchr, memcpy, strcspn, memmove, lseek, munmap, getcwd, mprotect, wcslen, realloc, calloc, getdents64, mmap, clock_gettime, asprintf, readdir64, sysinfo, tolower, sigprocmask, sysconf, strdup, opendir, mremap, strtoul, strtol, closedir, free, strerror_r, strncmp, strstr, exit, getrlimit, strchr, madvise, memcmp, malloc, getpagesize, readdir, sigaction, get_nprocs_conf, qsort, strcmp, strtok_r, dcgettext, abort, strspn, memset, strcpy, fputs, strnlen, getenv, strlen, read | |
c:@F@sqrt | sqrt | sqrt(double) | w_sqrt_compat.c:29:1 | 3 | 3201 | 93 | 55 | 3201 | 3201 | 1 | 55 | R5 | C3 | SafetyRelated | strcasecmp_l, fflush, memchr, memcpy, strcspn, memmove, lseek, munmap, getcwd, mprotect, wcslen, realloc, calloc, getdents64, mmap, clock_gettime, asprintf, readdir64, sysinfo, tolower, sigprocmask, sysconf, strdup, opendir, mremap, strtoul, strtol, closedir, free, strerror_r, strncmp, strstr, exit, getrlimit, strchr, madvise, memcmp, malloc, getpagesize, readdir, sigaction, get_nprocs_conf, qsort, strcmp, strtok_r, dcgettext, abort, strspn, memset, strcpy, fputs, strnlen, getenv, strlen, read | |
c:@F@cbrt | cbrt | cbrt(double) | ../sysdeps/ieee754/dbl-64/s_cbrt.c:39:1 | 4 | 15 | 1 | 0 | 4 | 4 | 1 | 0 | R1 | C1 | SafetyRelated | __ldexp, __frexp | |
c:@F@fmod | fmod | fmod(double, double) | w_fmod_compat.c:27:1 | 6 | 3222 | 93 | 55 | 3222 | 3222 | 2 | 55 | R5 | C3 | SafetyRelated | strcasecmp_l, fflush, memchr, memcpy, strcspn, memmove, lseek, munmap, getcwd, mprotect, wcslen, realloc, calloc, getdents64, mmap, clock_gettime, asprintf, readdir64, sysinfo, tolower, sigprocmask, sysconf, strdup, opendir, mremap, strtoul, strtol, closedir, free, strerror_r, strncmp, strstr, exit, getrlimit, strchr, madvise, memcmp, malloc, getpagesize, readdir, sigaction, get_nprocs_conf, qsort, strcmp, strtok_r, dcgettext, abort, strspn, memset, strcpy, fputs, strnlen, getenv, strlen, read | |
c:@F@frexp | frexp | frexp(double, int *) | ../sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c:36:1 | 4 | 4 | 0 | 0 | 4 | 4 | 2 | 0 | R1 | C1 | SafetyRelated | ||
c:@F@hypot | hypot | hypot(double, double) | w_hypot_compat.c:25:1 | 5 | 3222 | 93 | 55 | 3220 | 3220 | 2 | 55 | R5 | C3 | SafetyRelated | strcasecmp_l, fflush, memchr, memcpy, strcspn, memmove, lseek, munmap, getcwd, mprotect, wcslen, realloc, calloc, getdents64, mmap, clock_gettime, asprintf, readdir64, sysinfo, tolower, sigprocmask, sysconf, strdup, opendir, mremap, strtoul, strtol, closedir, free, strerror_r, strncmp, strstr, exit, getrlimit, strchr, madvise, memcmp, malloc, getpagesize, readdir, sigaction, get_nprocs_conf, qsort, strcmp, strtok_r, dcgettext, abort, strspn, memset, strcpy, fputs, strnlen, getenv, strlen, read | |
c:@F@hypotf | hypotf | hypotf(float, float) | ../sysdeps/ieee754/flt-32/e_hypotf.c:21:1 | 9 | 3212 | 93 | 55 | 12 | 12 | 2 | 0 | R3 | C1 | SafetyRelated | sqrt | |
c:@F@ldexp | ldexp | ldexp(double, int) | s_ldexp_template.c:21:1 | 1 | 9 | 0 | 0 | 9 | 9 | 2 | 0 | R1 | C1 | SafetyRelated | ||
c:@F@llround | llround | llround(double) | ../sysdeps/aarch64/fpu/s_llround.c:23:1 | 1 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | R1 | C1 | SafetyRelated | ||
c:@F@log | log | log(double) | ../sysdeps/ieee754/flt-32/e_logf.c:40:1 | 8 | 8 | 1 | 0 | 8 | 8 | 1 | 0 | R1 | C1 | SafetyRelated | ||
c:@F@log1p | log1p | log1p(double) | w_log1p_template.c:23:1 | 1 | 18 | 0 | 0 | 18 | 18 | 1 | 0 | R1 | C1 | SafetyRelated | ||
c:@F@logf | logf | logf(float) | ../sysdeps/ieee754/flt-32/e_logf.c:40:1 | 8 | 8 | 1 | 0 | 8 | 8 | 1 | 0 | R1 | C1 | SafetyRelated | ||
c:@F@modf | modf | modf(double, double *) | ../sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c:31:1 | 6 | 6 | 0 | 0 | 6 | 6 | 2 | 0 | R1 | C1 | SafetyRelated | ||
c:@F@pow | pow | pow(double, double) | ../sysdeps/ieee754/dbl-64/e_pow.c:282:1 | 29 | 48 | 1 | 0 | 48 | 48 | 2 | 0 | R5 | C3 | SafetyRelated | ||
c:@F@remainder | remainder | remainder(double, double) | w_remainder_compat.c:28:1 | 6 | 3240 | 93 | 55 | 3240 | 3240 | 2 | 55 | R5 | C3 | SafetyRelated | strcasecmp_l, fflush, memchr, memcpy, strcspn, memmove, lseek, munmap, getcwd, mprotect, wcslen, realloc, calloc, getdents64, mmap, clock_gettime, asprintf, readdir64, sysinfo, tolower, sigprocmask, sysconf, strdup, opendir, mremap, strtoul, strtol, closedir, free, strerror_r, strncmp, strstr, exit, getrlimit, strchr, madvise, memcmp, malloc, getpagesize, readdir, sigaction, get_nprocs_conf, qsort, strcmp, strtok_r, dcgettext, abort, strspn, memset, strcpy, fputs, strnlen, getenv, strlen, read | |
c:@F@tan | tan | tan(double) | ../sysdeps/ieee754/dbl-64/s_tan.c:59:1 | 73 | 207 | 0 | 0 | 207 | 207 | 1 | 0 | R5 | C3 | SafetyRelated | ||
c:@F@tanf | tanf | tanf(float) | ../sysdeps/ieee754/flt-32/s_tanf.c:52:7 | 4 | 16 | 0 | 0 | 16 | 16 | 1 | 0 | R1 | C1 | SafetyRelated | ||
c:@F@tanh | tanh | tanh(double) | ../sysdeps/ieee754/dbl-64/s_tanh.c:50:1 | 8 | 28 | 1 | 0 | 8 | 8 | 1 | 0 | R3 | C1 | SafetyRelated | __expm1 |
Total number of safety related functions: 41
Class | Functions number |
---|---|
R1 | 18 |
R2 | 4 |
R3 | 2 |
R4 | 1 |
R5 | 16 |
Class | Number of functions |
---|---|
C1 | 25 |
C2 | 0 |
C3 | 16 |