Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
C
cpdt
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
research
cpdt
Commits
c3e0b03f
Commit
c3e0b03f
authored
Sep 03, 2008
by
Adam Chlipala
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Target language source examples
parent
e0801cbe
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
StackMachine.v
src/StackMachine.v
+8
-0
No files found.
src/StackMachine.v
View file @
c3e0b03f
...
...
@@ -581,6 +581,14 @@ Fixpoint texpDenote t (e : texp t) {struct e} : typeDenote t :=
|
TBinop
_
_
_
b
e1
e2
=>
(
tbinopDenote
b
)
(
texpDenote
e1
)
(
texpDenote
e2
)
end
.
(
**
We
can
evaluate
a
few
example
programs
to
convince
ourselves
that
this
semantics
is
correct
.
*
)
Eval
simpl
in
texpDenote
(
TNConst
42
)
.
Eval
simpl
in
texpDenote
(
TBConst
true
)
.
Eval
simpl
in
texpDenote
(
TBinop
TTimes
(
TBinop
TPlus
(
TNConst
2
)
(
TNConst
2
))
(
TNConst
7
))
.
Eval
simpl
in
texpDenote
(
TBinop
(
TEq
Nat
)
(
TBinop
TPlus
(
TNConst
2
)
(
TNConst
2
))
(
TNConst
7
))
.
Eval
simpl
in
texpDenote
(
TBinop
TLt
(
TBinop
TPlus
(
TNConst
2
)
(
TNConst
2
))
(
TNConst
7
))
.
(
**
**
Target
language
*
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment