Commit Graph

4154 Commits

Author SHA1 Message Date
mccleeary-galois
079de611bd
Merge pull request #1660 from GaloisInc/rem/fix-1653/fix-1645
Update cryptol-remote-api to Python 3.12
2024-05-15 11:50:29 -06:00
mccleeary-galois
5d3335b2c6 Update cryptol-remote-api/python/README.md
Additional clarity around python version official support and docker images.

Co-authored-by: Ryan Scott <rscott@galois.com>
2024-05-15 10:45:44 -06:00
Ryan
f4b2cf254a Add caveat to cryptol-remote-api README regarding shipped containers default python version. 2024-05-15 10:45:44 -06:00
Ryan
6a69caeb0c Bump argo submodule to python3.12 2024-05-15 10:45:42 -06:00
Ryan
c833411227 Add supported python version 3.12 to cryptol-remote-api README. 2024-05-15 08:36:41 -06:00
Ryan
e49cd81aa7 bump cryptol-remote-api test docker file to python 3.12 2024-05-15 08:29:56 -06:00
Ryan
d29ac4f672 Update mypy to most recent version
Also updating mypy to 3.12 and re running poetry lock
2024-05-15 08:09:04 -06:00
Ryan
03ceddf07d Update python version to 3.12 in CI 2024-05-14 21:20:07 -06:00
Ryan
6b3a888010 Update python dependencies in cryptol-remote-api
Unlocking requests, urllib3, types-requests in the toml file to create a new lock file with the intent of being 3.12 compatible.
2024-05-14 21:18:14 -06:00
Valentin Robert
2c3191363e fix #1653: distutils.find_executable -> shutil.which 2024-05-14 15:50:17 -07:00
dependabot[bot]
be32aaae7c
Bump idna from 3.4 to 3.7 in /cryptol-remote-api/python (#1655)
Bumps [idna](https://github.com/kjd/idna) from 3.4 to 3.7.
- [Release notes](https://github.com/kjd/idna/releases)
- [Changelog](https://github.com/kjd/idna/blob/master/HISTORY.rst)
- [Commits](https://github.com/kjd/idna/compare/v3.4...v3.7)

---
updated-dependencies:
- dependency-name: idna
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-12 15:31:16 -04:00
mccleeary-galois
a849b974ca
Merge pull request #1650 from GaloisInc/iss-1649
#1649
2024-04-01 09:57:19 -06:00
Ryan
fe5e9bdb1e Revert "Only grab public IfaceDecls from other modules."
This reverts commit 19ebc256f8.
2024-04-01 08:58:30 -06:00
Ryan
ed7776de2e Add failing test for issue-#1649 2024-04-01 08:58:22 -06:00
Ryan
d28f08881b Fix typo in lookupVar vairable -> variable 2024-03-28 10:15:54 -06:00
Ryan Scott
2b0812f785
Merge pull request #1648 from GaloisInc/saw-script-2043
Fix typechecking of constraint guards with type signature constraints
2024-03-26 07:05:39 -04:00
Ryan Scott
1e1c14c28a Implement coreLint for numeric constraint guards
This ensures that the constraints and right-hand side expressions in each guard
are well formed. This check suffices to catch the bug in
https://github.com/GaloisInc/saw-script/issues/2043, which was fixed separately
in a previous commit.

I have also updated the `tests/constraint-guards/type-sig-constraint.icry` test
to use `coreLint=on` rather than checking `debug` output, as the former is more
resilient to internal changes in Cryptol's pretty-printer.

Fixes #1647.
2024-03-25 13:13:00 -04:00
Ryan Scott
092a7f088b Fix typechecking of constraint guards with type signature constraints
Previously, `checkPropGuardCase` would not consider type signature constraints
when determining how many proof applications to generate, which ultimately led
to the issues observed in https://github.com/GaloisInc/saw-script/issues/2043.
This is relatively easy to fix by ensuring that we pass these constraints as an
additional argument to `checkPropGuardCase`.

It is difficult to fully validate that this fix works without SAW, but I have
checked in a smoke test that checks if the guards in a numeric constraint guard
definition have the expected number of proof applications.
2024-03-25 12:26:34 -04:00
mccleeary-galois
1e06a4b03d
Merge pull request #1642 from GaloisInc/rem/iss-1621
Make it so only public IfaceDecls are loaded from other modules
2024-03-19 15:59:58 -06:00
Ryan
19ebc256f8 Only grab public IfaceDecls from other modules. 2024-03-19 14:35:37 -06:00
mccleeary-galois
c62c65316d
Merge pull request #1644 from GaloisInc/rem/iss-1643
Add types-requests to toml file.
2024-03-19 14:34:34 -06:00
Ryan
33212f44af Add type-requests to toml file. 2024-03-19 14:01:10 -06:00
Kevin Quick
5bbc3dc24a
Merge pull request #1633 from GaloisInc/no_fork_deploy_docs
Disable CI-based github page deployment for forks.
2024-02-23 10:40:20 -08:00
Kevin Quick
9e7f6f142d
Adjust CI pages deployment check for forks. 2024-02-23 10:09:03 -08:00
Kevin Quick
6d47ccc888
Disable CI-based github page deployment for forks. 2024-02-23 09:54:10 -08:00
David Holland
facc682fe8
Fix some typos I noticed in the Programming Cryptol book. (#1631)
- p-1 bits in an IEEE float refers to the significand, not the
  mantissa, at least according to the latest preferred terminology,
  which aims to keep the word "mantissa" for the full mantissa
  including the units bit;
- reciprocal rather than reciprocol;
- the example in 1.23 had the wrong module declarations; also insert a
  separator word between the verbatim blocks so they can be told
  apart.
2024-02-23 08:16:07 -05:00
Ryan Scott
707257e79f
Merge pull request #1627 from GaloisInc/T1061
CI: Build and test both x86-64 and AArch64 macOS
2024-02-14 13:56:55 -05:00
Ryan Scott
8ee771a1da Use matrix.os, not runner.os, to disambiguate binary artifacts 2024-02-14 12:39:28 -05:00
Ryan Scott
4067c3afec CI: Build and test both x86-64 and AArch64 macOS
Fixes #1061.
2024-02-14 12:39:28 -05:00
Ryan Scott
1615d48799 CI: Upgrade to what4-solvers snapshot-20240212 2024-02-12 14:56:05 -05:00
Valentin Robert
6c5bca3b82
Merge pull request #1614 from GaloisInc/vr/file-embed
use file-embed to make TH file embedding more robust
2024-02-08 11:02:56 -08:00
Ryan Scott
be953a6218 CI: Regenerate cabal.GHC-*.config files 2024-02-07 18:29:05 -05:00
Valentin Robert
e9c41586ea use file-embed to make TH file embedding more robust
Haskell Language Server still struggles a bit with opening projects that
are subprojects of larger projects (in the git submodule sense).

When opening such projects from within their parent project, the overall
project path remains the outermost one, which breaks relative paths of
subprojects.

The file-embed has a utility to help with such path adjustments.
Theoretically, HLS will eventually support "multi-home units", where
different files will be compiled under different home folders if they
belong to subprojects, but in the meantime, this un-breaks HLS for users
that open Cryptol as a subproject of, say, SAW.
2024-02-07 14:09:53 -08:00
Ryan Scott
7ab8ca5820
Finalize 3.1.0 dates (#1625)
(cherry picked from commit 3cf3210578)
2024-02-06 14:37:55 -05:00
Ryan Scott
697d6a7f97
Merge pull request #1620 from GaloisInc/release-3.1.0-prep
Prepare for 3.1.0 release
2024-02-05 12:41:03 -05:00
Ryan Scott
1270755dee Bump development versions to 3.1.0.99 2024-02-03 08:45:44 -05:00
Ryan Scott
9ca5fe47ca Bump release versions to 3.1.0 2024-02-03 08:45:44 -05:00
Ryan Scott
c2493d00d1 Release dates for changelogs 2024-02-03 08:45:44 -05:00
Ryan Scott
4d6334771d CHANGELOG: Mention all closed issues and PRs 2024-02-03 08:45:44 -05:00
Ryan Scott
e3a3eb71ff Bump changelog versions for 3.1.0 2024-02-03 07:36:29 -05:00
Ryan Scott
61aea0bbfe
Merge pull request #1602 from GaloisInc/sum-types
Sum types
2024-02-02 18:47:38 -05:00
Ryan Scott
9be52cc23b Fix typo (parameterss) in error message 2024-02-02 16:04:34 -05:00
Ryan Scott
ca0eb7e064 Fix handling of abstract types
We must treat built-in abstract types slightly differently from user-defined
abstract types.

Also fix a bug in the way that the return kind of primitive types are computed:
we previously said that they all return `*`, but this is not necessarily the
case.
2024-02-02 16:02:31 -05:00
Ryan Scott
a9e35fe004 Update .stdout.mingw32 and .stdout.darwin files 2024-02-01 20:39:51 -05:00
Ryan Scott
f825abd2e1 Update expected stdout for test cases 2024-02-01 19:35:16 -05:00
Ryan Scott
01d8c1d32f Repair ProgrammingCryptol test 2024-02-01 18:55:56 -05:00
Ryan Scott
56cf1a373d Repair ProgrammingCryptol test 2024-02-01 18:22:34 -05:00
Ryan Scott
4e6e5d8010 Mention enums in CHANGES.md 2024-02-01 17:02:06 -05:00
Ryan Scott
76f9c3eac3 RefMan: Regenerate HTML 2024-02-01 16:55:00 -05:00
Ryan Scott
75958c1ef2 RefMan: Fix formatting error 2024-02-01 16:54:09 -05:00