Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
frama-c
Commits
fcb64146
Commit
fcb64146
authored
4 years ago
by
Andre Maroneze
Browse files
Options
Downloads
Patches
Plain Diff
[Tests] lower precision to avoid math oracle differences in macOS
parent
cc18134c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/libc/math_h.c
+1
-1
1 addition, 1 deletion
tests/libc/math_h.c
tests/libc/oracle/math_h.res.oracle
+8
-8
8 additions, 8 deletions
tests/libc/oracle/math_h.res.oracle
with
9 additions
and
9 deletions
tests/libc/math_h.c
+
1
−
1
View file @
fcb64146
/* run.config
/* run.config
FILTER: sed -E -e '/atanf_/ s/([0-9][.][0-9]{6})[0-9]+/\1/g'
STDOPT: #"-warn-special-float none" #"-cpp-extra-args=\"-DNONFINITE\""
STDOPT: #"-warn-special-float none" #"-cpp-extra-args=\"-DNONFINITE\""
*/
*/
#include
<math.h>
#include
<math.h>
...
@@ -29,7 +30,6 @@ const double fp_ilogb0 = FP_ILOGB0;
...
@@ -29,7 +30,6 @@ const double fp_ilogb0 = FP_ILOGB0;
const
double
fp_ilogbnan
=
FP_ILOGBNAN
;
const
double
fp_ilogbnan
=
FP_ILOGBNAN
;
#define TEST_VAL(type,f,c) type f##_##c = f(c)
#define TEST_VAL(type,f,c) type f##_##c = f(c)
#define TEST_FUN(type,f,prefix) \
#define TEST_FUN(type,f,prefix) \
TEST_VAL(type,f,prefix##pi); \
TEST_VAL(type,f,prefix##pi); \
TEST_VAL(type,f,prefix##half_pi); \
TEST_VAL(type,f,prefix##half_pi); \
...
...
This diff is collapsed.
Click to expand it.
tests/libc/oracle/math_h.res.oracle
+
8
−
8
View file @
fcb64146
[kernel] Parsing tests/libc/math_h.c (with preprocessing)
[kernel] Parsing tests/libc/math_h.c (with preprocessing)
[kernel:parser:decimal-float] tests/libc/math_h.c:
5
: Warning:
[kernel:parser:decimal-float] tests/libc/math_h.c:
6
: Warning:
Floating-point constant 3.14159265358979323846264338327950288 is not represented exactly. Will use 0x1.921fb54442d18p1.
Floating-point constant 3.14159265358979323846264338327950288 is not represented exactly. Will use 0x1.921fb54442d18p1.
(warn-once: no further messages from category 'parser:decimal-float' will be emitted)
(warn-once: no further messages from category 'parser:decimal-float' will be emitted)
[eva] Analyzing a complete application starting at main
[eva] Analyzing a complete application starting at main
...
@@ -280,15 +280,15 @@
...
@@ -280,15 +280,15 @@
atan_minus_one ∈ {-0.785398163397}
atan_minus_one ∈ {-0.785398163397}
atan_large ∈ {1.57079632679}
atan_large ∈ {1.57079632679}
atan_top ∈ [-1.57079632679 .. 1.57079632679] ∪ {NaN}
atan_top ∈ [-1.57079632679 .. 1.57079632679] ∪ {NaN}
atanf_f_pi ∈ {1.262627
244
}
atanf_f_pi ∈ {1.262627}
atanf_f_half_pi ∈ {1.003884
79233
}
atanf_f_half_pi ∈ {1.003884}
atanf_f_e ∈ {1.218282
938
}
atanf_f_e ∈ {1.218282}
atanf_zero ∈ {0}
atanf_zero ∈ {0}
atanf_minus_zero ∈ {-0.}
atanf_minus_zero ∈ {-0.}
atanf_one ∈ {0.785398
185253
}
atanf_one ∈ {0.785398}
atanf_minus_one ∈ {-0.785398
185253
}
atanf_minus_one ∈ {-0.785398}
atanf_large ∈ {1.570796
37051
}
atanf_large ∈ {1.570796}
atanf_f_top ∈ [-1.570796
37051
.. 1.570796
37051
] ∪ {NaN}
atanf_f_top ∈ [-1.570796 .. 1.570796] ∪ {NaN}
atanl_ld_pi ∈ [-inf .. inf]
atanl_ld_pi ∈ [-inf .. inf]
atanl_ld_half_pi ∈ [-inf .. inf]
atanl_ld_half_pi ∈ [-inf .. inf]
atanl_ld_e ∈ [-inf .. inf]
atanl_ld_e ∈ [-inf .. inf]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment