Skip to content
Snippets Groups Projects
Commit 798ef635 authored by Bruno Marre's avatar Bruno Marre
Browse files

ajout issue54 corrigee

parent 41a72518
No related branches found
No related tags found
Loading
Checking pipeline status
(set-logic ALL)
(set-info :smt-lib-version 2.6)
(set-info :status sat)
(define-fun uint_in_range ((i Int)) Bool
(and (<= 0 i) (<= i 18446744073709551615)))
(declare-sort t 0)
(declare-fun first (t) (_ BitVec 64))
(declare-fun last (t) (_ BitVec 64))
(define-fun t2_length ((a1 t)) Int
(ite (bvule (first a1) (last a1))
(+ (- (bv2nat (last a1)) (bv2nat (first a1))) 1)
0))
(declare-const c t)
(assert (and (= (first c) #x0000000000000000) (= (last c) #xFFFFFFFFFFFFFFFF)))
(assert (not (uint_in_range (t2_length c))))
(check-sat)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment