-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1266 from GaloisInc/T1024-crucible-syntax-exotic-…
…fresh-var-names `crucible-syntax`: Allow exotic characters in fresh atom names
- Loading branch information
Showing
3 changed files
with
45 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
; A regression test for #1024. | ||
|
||
(defun @exotic-fresh-names () Bool | ||
(start start: | ||
; Although the list of allowable characters in What4 solver names is very | ||
; small, we can nevertheless define atom names with unallowable characters | ||
; by Z-encoding them under the hood. | ||
(let ω (fresh Bool)) ; Fancy Unicode characters | ||
(let hyphens-are-fine (fresh Bool)) ; Hyphens | ||
(return (and ω hyphens-are-fine)))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
(defun @exotic-fresh-names () Bool | ||
(start start: | ||
(let ω (fresh Bool)) | ||
(let hyphens-are-fine (fresh Bool)) | ||
(return (and ω hyphens-are-fine)))) | ||
|
||
exotic-fresh-names | ||
%0 | ||
% 8:12 | ||
$0 = fresh BaseBoolRepr zenc!z3c9U | ||
% 9:27 | ||
$1 = fresh BaseBoolRepr zenc!hyphenszmarezmfine | ||
% 10:13 | ||
$2 = and($0, $1) | ||
% 10:5 | ||
return $2 | ||
% no postdom |