about summary refs log tree commit diff homepage
path: root/test/Solver/LargeIntegers.kquery
blob: e0921393fb8807f9e8234455936a4923df0d7d4b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# RUN: %kleaver %s > %t

array a[64] : w32 -> w8 = symbolic

# RUN: grep -A 1 "Query 0" %t > %t2
# RUN: grep "Expr 0:	18446744073709551618" %t2
(query [] false [(Concat w128 (w64 1) (w64 2))])

# RUN: grep -A 1 "Query 1" %t > %t2
# RUN: grep "Expr 0:	16" %t2
(query [] false [(Extract w5 60 (Concat w128 (w64 1) (w64 2)))])

# RUN: grep -A 1 "Query 2" %t > %t2
# RUN: grep "Array 0:	a.16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1" %t2
(query [(Eq 0x0102030405060708090A0B0C0D0E0F10 (ReadLSB w128 0 a))] 
       false 
       [] [a])