Skip to content

Commit

Permalink
Fixing handling of LH assumption arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
BillHallahan committed Oct 2, 2024
1 parent 1beadde commit eca8a69
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/G2/Liquid/Conversion.hs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ import qualified Data.Map as M
import Data.Maybe
import qualified Data.Text as T

import Debug.Trace

-- | A mapping of TyVar Name's, to Id's for the LH dict's
type LHDictMap = HM.HashMap Name Id

Expand Down
3 changes: 2 additions & 1 deletion src/G2/Liquid/ConvertCurrExpr.hs
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,11 @@ addCurrExprAssumption ifi (Bindings {fixed_inputs = fi}) = do
-- fi <- fixedInputs
eenv <- exprEnv
inames <- inputNames
let inames' = take (length $ argumentTypes ifi) inames

lh <- mapM (lhTCDict' HM.empty) $ mapMaybe typeType fi'

let is = catMaybes (map (E.getIdFromName eenv) inames)
let is = catMaybes (map (E.getIdFromName eenv) inames')
let (typs, ars) = span isType $ fi' ++ map Var is

case assumpt of
Expand Down

0 comments on commit eca8a69

Please sign in to comment.