Skip to content

Commit

Permalink
Panic if we depend on a theorem that hasn't been registered in the da…
Browse files Browse the repository at this point in the history
…tabase.
  • Loading branch information
robdockins committed May 21, 2021
1 parent 8c45b97 commit d078994
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SAWScript/Proof.hs
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,8 @@ reachableTheorems db roots =
(Map.insert curr thm visited)
(thmDepends thm)

| otherwise = visited -- TODO? maybe panic here?

| otherwise =
panic "reachableTheorems" ["Could not find theorem with identifier", show (indexValue curr)]

-- | Check that the purported theorem is valid.
--
Expand Down

0 comments on commit d078994

Please sign in to comment.