fix NNum sharing not updating env
when will i learn to confirm results before pushing...
This commit is contained in:
@@ -144,6 +144,7 @@ step st = case head (st ^. gmCode) of
|
|||||||
& gmCode %~ drop 1
|
& gmCode %~ drop 1
|
||||||
& gmStack .~ s'
|
& gmStack .~ s'
|
||||||
& gmHeap .~ h'
|
& gmHeap .~ h'
|
||||||
|
& gmEnv .~ m'
|
||||||
-- record the newly allocated int
|
-- record the newly allocated int
|
||||||
& gmStats . stsAllocations %~ succ --
|
& gmStats . stsAllocations %~ succ --
|
||||||
where
|
where
|
||||||
@@ -167,8 +168,8 @@ step st = case head (st ^. gmCode) of
|
|||||||
-- s = st ^. gmStack
|
-- s = st ^. gmStack
|
||||||
-- h = st ^. gmHeap
|
-- h = st ^. gmHeap
|
||||||
|
|
||||||
-- s' = a : s
|
s' = a : s
|
||||||
-- (h',a) = alloc h (NNum n)
|
(h',a) = alloc h (NNum n)
|
||||||
|
|
||||||
mkAp :: GmState -> GmState
|
mkAp :: GmState -> GmState
|
||||||
mkAp st = st
|
mkAp st = st
|
||||||
|
|||||||
Reference in New Issue
Block a user