@@ -370,7 +370,16 @@ checkDeclTotality (fc, n)
370 = do logLvl 2 $ "Checking " ++ show n ++ " for totality"
370 = do logLvl 2 $ "Checking " ++ show n ++ " for totality"
371-- buildSCG (fc, n)
371-- buildSCG (fc, n)
372-- logLvl 2 $ "Built SCG"
372-- logLvl 2 $ "Built SCG"
374+ let opts = case lookupCtxt n (idris_flags i) of
377+ case lookupDef n (tt_ctxt i) of
378+ [CaseOp _ _ _ pats _] ->
379+ if AssertTotal `elem` opts
380+ then return $ Total []
381+ else checkTotality [] fc n
373− checkTotality [] fc n
382+ _ -> checkTotality [] fc n
375-- Calculate the size change graph for this definition
384-- Calculate the size change graph for this definition