Fixes a bug in the VM model
This commit is contained in:
parent
02238a7c6d
commit
318ec585bc
|
@ -496,6 +496,14 @@
|
||||||
(negate bytecode-ok?)
|
(negate bytecode-ok?)
|
||||||
'(let-void-box 1 (application (case-lam (lam (ref) () (loc-box-noclr 0))) (loc-noclr 1))))
|
'(let-void-box 1 (application (case-lam (lam (ref) () (loc-box-noclr 0))) (loc-noclr 1))))
|
||||||
|
|
||||||
|
(test-predicate
|
||||||
|
(negate bytecode-ok?)
|
||||||
|
'(let-one 42
|
||||||
|
(boxenv 0
|
||||||
|
(application
|
||||||
|
(case-lam (lam (ref) () (loc-box 0)))
|
||||||
|
(loc-box 1)))))
|
||||||
|
|
||||||
; literals
|
; literals
|
||||||
(test-predicate bytecode-ok? #t)
|
(test-predicate bytecode-ok? #t)
|
||||||
|
|
||||||
|
|
|
@ -108,7 +108,7 @@
|
||||||
(verify (lam (τ ...) () e) s n_l b γ η f)]
|
(verify (lam (τ ...) () e) s n_l b γ η f)]
|
||||||
|
|
||||||
; case-lam
|
; case-lam
|
||||||
[(verify (case-lam l ...) s n_l b γ η f)
|
[(verify (case-lam (name l (lam (val ...) (n ...) e)) ...) s n_l b γ η f)
|
||||||
(s γ η)
|
(s γ η)
|
||||||
(side-condition (term (AND (verify-lam l s ?) ...)))]
|
(side-condition (term (AND (verify-lam l s ?) ...)))]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user