Skip to content

Commit a65b91b

Browse files
authored
Merge pull request #83 from Copilot-Language/T82-release-4.3
Require building with Copilot 4.3. Refs #82.
2 parents 62f2d9d + 94923b2 commit a65b91b

File tree

4 files changed

+13
-12
lines changed

4 files changed

+13
-12
lines changed

copilot-verifier/CHANGELOG

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
2025-02-03
1+
2025-03-10
2+
* Version bump (4.3). (#82)
23
* Add `smtSolver` option to `VerifierOptions`. (#78)
34
* Add `smtFloatMode` option to `VerifierOptions`. (#79)
45

copilot-verifier/copilot-verifier.cabal

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Cabal-version: 2.2
22
Name: copilot-verifier
3-
Version: 4.2
3+
Version: 4.3
44
Author: Galois Inc.
55
Maintainer: rscott@galois.com
66
Copyright: (c) Galois, Inc 2021-2024
@@ -45,9 +45,9 @@ common bldflags
4545
bv-sized >= 1.0.0 && < 1.1,
4646
bytestring,
4747
containers >= 0.5.9.0,
48-
copilot-c99 >= 4.2 && < 4.3,
49-
copilot-core >= 4.2 && < 4.3,
50-
copilot-theorem >= 4.2 && < 4.3,
48+
copilot-c99 >= 4.3 && < 4.4,
49+
copilot-core >= 4.3 && < 4.4,
50+
copilot-theorem >= 4.3 && < 4.4,
5151
crucible >= 0.7.1 && < 0.8,
5252
crucible-llvm >= 0.7 && < 0.8,
5353
crux >= 0.7.1 && < 0.8,
@@ -80,10 +80,10 @@ library copilot-verifier-examples
8080
hs-source-dirs: examples
8181
build-depends:
8282
case-insensitive,
83-
copilot >= 4.2 && < 4.3,
84-
copilot-language >= 4.2 && < 4.3,
85-
copilot-libraries >= 4.2 && < 4.3,
86-
copilot-prettyprinter >= 4.2 && < 4.3,
83+
copilot >= 4.3 && < 4.4,
84+
copilot-language >= 4.3 && < 4.4,
85+
copilot-libraries >= 4.3 && < 4.4,
86+
copilot-prettyprinter >= 4.3 && < 4.4,
8787
copilot-verifier
8888
exposed-modules:
8989
Copilot.Verifier.Examples

copilot-verifier/src/Copilot/Verifier.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1014,7 +1014,7 @@ copilotExprToRegValue sym = loop
10141014
loop (CW4.XFloat x) (FloatRepr SingleFloatRepr) = return x
10151015
loop (CW4.XDouble x) (FloatRepr DoubleFloatRepr) = return x
10161016

1017-
loop CW4.XEmptyArray (VectorRepr _tpr) =
1017+
loop (CW4.XEmptyArray _ctp) (VectorRepr _tpr) =
10181018
pure V.empty
10191019
loop (CW4.XArray xs) (VectorRepr tpr) =
10201020
V.generateM (PVec.lengthInt xs) (\i -> loop (PVec.elemAtUnsafe i xs) tpr)
@@ -1075,7 +1075,7 @@ computeEqualVals bak clRefs mem = loop
10751075
loop Float (CW4.XFloat x) (FloatRepr SingleFloatRepr) v = iFloatEq @_ @SingleFloat sym x v
10761076
loop Double (CW4.XDouble x) (FloatRepr DoubleFloatRepr) v = iFloatEq @_ @DoubleFloat sym x v
10771077

1078-
loop (Array _ctp) CW4.XEmptyArray (VectorRepr _tpr) vs =
1078+
loop (Array _ctp) (CW4.XEmptyArray _ctp2) (VectorRepr _tpr) vs =
10791079
pure $ backendPred sym $ V.null vs
10801080
loop (Array ctp) (CW4.XArray xs) (VectorRepr tpr) vs
10811081
| PVec.lengthInt xs == V.length vs

copilot-verifier/src/Copilot/Verifier/Log.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ ppCopilotValue val =
799799
CW4.XWord64 w -> WI.printSymExpr w
800800
CW4.XFloat f -> WI.printSymExpr f
801801
CW4.XDouble d -> WI.printSymExpr d
802-
CW4.XEmptyArray -> "[]"
802+
CW4.XEmptyArray {} -> "[]"
803803
CW4.XArray a -> ppBracesWith ppCopilotValue (PV.toList a)
804804
CW4.XStruct s -> ppBracketsWith ppCopilotValue s
805805

0 commit comments

Comments
 (0)