Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
COLIBRI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
COLIBRI
Commits
a7a7463f
Commit
a7a7463f
authored
7 months ago
by
Bruno Marre
Committed by
Christophe Junke
3 weeks ago
Browse files
Options
Downloads
Patches
Plain Diff
nouveaux benchs qf_fp
parent
3f1a8e87
No related branches found
No related tags found
1 merge request
!55
Update and fix tests
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
UnitTests/sat/QF_FP/square_id_fp_sat.smt2
+50
-0
50 additions, 0 deletions
UnitTests/sat/QF_FP/square_id_fp_sat.smt2
UnitTests/sat/QF_FP/square_neg_id_fp_sat.smt2
+50
-0
50 additions, 0 deletions
UnitTests/sat/QF_FP/square_neg_id_fp_sat.smt2
with
100 additions
and
0 deletions
UnitTests/sat/QF_FP/square_id_fp_sat.smt2
0 → 100644
+
50
−
0
View file @
a7a7463f
(set-info :smt-lib-version 2.6)
(set-logic QF_FP)
(set-info :category |Crafted from GATeL POs|)
(set-info :status sat)
(declare-fun dx () Float64)
(declare-fun dy () Float64)
(define-fun isFinite ((F Float64)) Bool
(and (not (fp.isInfinite F))
(not (fp.isNaN F))))
(define-fun one () Float64
((_ to_fp 11 53) (_ bv4607182418800017408 64)))
(define-fun two () Float64
((_ to_fp 11 53) (_ bv4611686018427387904 64)))
(define-fun xpy2 () Float64
(fp.mul RNE (fp.add RNE dx dy) (fp.add RNE dx dy)))
(define-fun id_xpy2 () Float64
(fp.add RNE (fp.add RNE (fp.mul RNE dx dx) (fp.mul RNE dy dy))
(fp.mul RNE two (fp.mul RNE dx dy))))
(define-fun isInsideAbsMax ((xx Float64) (max Float64)) Bool
(and
(isFinite xx)
(fp.leq (fp.neg max) xx max)))
(define-fun diff () Float64
(fp.sub RNE xpy2 id_xpy2))
(define-fun max_diff () Float64
;; 2^-53
((_ to_fp 11 53) (_ bv4368491638549381120 64)))
(assert
(not
(=>
(and (isInsideAbsMax dx one)
(not (fp.isZero dx))
(isInsideAbsMax dy one)
(not (fp.isZero dy))
(isFinite diff))
(isInsideAbsMax diff max_diff))))
(check-sat)
This diff is collapsed.
Click to expand it.
UnitTests/sat/QF_FP/square_neg_id_fp_sat.smt2
0 → 100644
+
50
−
0
View file @
a7a7463f
(set-info :smt-lib-version 2.6)
(set-logic ALL)
(set-info :category |Crafted from GATeL POs|)
;(set-info :status sat)
(declare-fun dx () Float64)
(declare-fun dy () Float64)
(define-fun isFinite ((F Float64)) Bool
(and (not (fp.isInfinite F))
(not (fp.isNaN F))))
(define-fun one () Float64
((_ to_fp 11 53) (_ bv4607182418800017408 64)))
(define-fun two () Float64
(fp #b0 #b10000000000 #b0000000000000000000000000000000000000000000000000000))
(define-fun xmy2 () Float64
(fp.mul RNE (fp.sub RNE dx dy) (fp.sub RNE dx dy)))
(define-fun id_xmy2 () Float64
(fp.sub RNE (fp.add RNE (fp.mul RNE dx dx) (fp.mul RNE dy dy))
(fp.mul RNE two (fp.mul RNE dx dy))))
(define-fun isInsideAbsMax ((x Float64) (max Float64)) Bool
(and
(isFinite x)
(fp.leq (fp.neg max) x max)))
(define-fun diff () Float64
(fp.sub RNE xmy2 id_xmy2))
(define-fun max_diff () Float64
;; 2^-53
((_ to_fp 11 53) (_ bv4368491638549381120 64)))
(assert
(not
(=>
(and (isInsideAbsMax dx one)
(not (fp.isZero dx))
(isInsideAbsMax dy one)
(not (fp.isZero dy))
(isFinite diff))
(isInsideAbsMax diff max_diff))))
(check-sat)
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