Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
why3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nils Fitinghoff
why3
Commits
83b8674f
Commit
83b8674f
authored
6 years ago
by
nilfit
Browse files
Options
Downloads
Patches
Plain Diff
add driver mapping int32 to i32
parent
d6a512ea
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
drivers/rust.drv
+32
-0
32 additions, 0 deletions
drivers/rust.drv
with
32 additions
and
0 deletions
drivers/rust.drv
+
32
−
0
View file @
83b8674f
...
@@ -44,3 +44,35 @@ module ref.Ref
...
@@ -44,3 +44,35 @@ module ref.Ref
syntax val (!_) "%1"
syntax val (!_) "%1"
syntax val (:=) "%1 = %2"
syntax val (:=) "%1 = %2"
end
end
module mach.int.Int32
syntax type int32 "i32"
syntax literal int32 "%1"
syntax converter of_int "%1"
(*
(* TODO bigint *)
syntax val of_int "Z.to_int %1"
syntax val to_int "Z.of_int %1"
syntax constant min_int32 "Z.of_int min_int"
syntax constant max_int32 "Z.of_int max_int"
*)
(* "std::i32::MIN" *)
(* "std::i32::MAX" *)
(* i32::min_value() *)
(* i32::max_value() *)
syntax val ( + ) "%1 + %2"
syntax val ( - ) "%1 - %2"
syntax val (-_) "- %1"
syntax val ( * ) "%1 * %2"
syntax val ( / ) "%1 / %2"
syntax val ( % ) "%1 % %2"
syntax val (=) "%1 == %2"
syntax val (<=) "%1 <= %2"
syntax val (<) "%1 < %2"
syntax val (>=) "%1 >= %2"
syntax val (>) "%1 > %2"
end
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment