Skip to content

Commit

Permalink
ES abs.prog.opt.: fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Anabra committed Oct 30, 2019
1 parent 6c51019 commit cce7c80
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@ module AbstractInterpretation.ExtendedSyntax.OptimiseAbstractProgramSpec where

import Test.Hspec

import qualified Grin.TH as Old

import Grin.ExtendedSyntax.Grin
import Grin.ExtendedSyntax.TH
import Grin.ExtendedSyntax.PrimOpsPrelude
import AbstractInterpretation.ExtendedSyntax.IR
import AbstractInterpretation.ExtendedSyntax.Reduce
import AbstractInterpretation.ExtendedSyntax.HeapPointsTo.CodeGen
import AbstractInterpretation.ExtendedSyntax.OptimiseAbstractProgram
import Transformations.ExtendedSyntax.Conversion (convertToNew)


runTests :: IO ()
Expand Down Expand Up @@ -39,7 +41,7 @@ spec = do
(_absInstructions absProgram1) `shouldBe` (_absInstructions absProgram2)

testProgram :: Exp
testProgram = withPrimPrelude [prog|
testProgram = withPrimPrelude . convertToNew $ [Old.prog|
grinMain = t1 <- store (CInt 1)
t2 <- store (CInt 10000)
t3 <- store (Fupto t1 t2)
Expand Down

0 comments on commit cce7c80

Please sign in to comment.