GtkDisprove.hs revision 255f0ed47809d8fea6e177112139735ed8778359
3f32406640d89face5e79244b4d8dab34adb6c7cPavel BřezinaModule : $Header$
3f32406640d89face5e79244b4d8dab34adb6c7cPavel BřezinaDescription : Gtk Module to enable disproving Theorems
3f32406640d89face5e79244b4d8dab34adb6c7cPavel BřezinaCopyright : (c) Simon Ulbricht, Uni Bremen 2010
3f32406640d89face5e79244b4d8dab34adb6c7cPavel BřezinaLicense : GPLv2 or higher, see LICENSE.txt
3f32406640d89face5e79244b4d8dab34adb6c7cPavel BřezinaMaintainer : tekknix@informatik.uni-bremen.de
3f32406640d89face5e79244b4d8dab34adb6c7cPavel BřezinaStability : provisional
3f32406640d89face5e79244b4d8dab34adb6c7cPavel BřezinaPortability : portable
3f32406640d89face5e79244b4d8dab34adb6c7cPavel BřezinaThis module provides a disproving module that checks consistency of inverted
3f32406640d89face5e79244b4d8dab34adb6c7cPavel Březinamodule GUI.GtkDisprove (disproveAtNode) where
3f32406640d89face5e79244b4d8dab34adb6c7cPavel Březinaimport qualified GUI.Glade.NodeChecker as ConsistencyChecker
3f32406640d89face5e79244b4d8dab34adb6c7cPavel Březinaimport GUI.GraphLogic hiding (openProofStatus)
3f32406640d89face5e79244b4d8dab34adb6c7cPavel Březinaimport Interfaces.GenericATPState (guiDefaultTimeLimit)
3f32406640d89face5e79244b4d8dab34adb6c7cPavel Březinaimport Interfaces.Utils (updateNodeProof)
3f32406640d89face5e79244b4d8dab34adb6c7cPavel Březinaimport qualified Common.OrderedMap as OMap
3f32406640d89face5e79244b4d8dab34adb6c7cPavel Březinaimport Common.LibName (LibName)
import Control.Concurrent (forkIO, killThread)
import Control.Concurrent.MVar
import Control.Monad (unless)
import Data.Graph.Inductive.Graph (LNode)
import Data.IORef
import qualified Data.Map as Map
import Data.List
import Data.Maybe
FNode datatype from GUI.GtkConsistencyChecker. The goals are being negated
Nothing -> error "GtkDisprove.showDisproveGUI(no global theory found)"
stat = case OMap.lookup g sens of
case OMap.lookup goal sens of
xml <- getGladeXML ConsistencyChecker.get
{- call the check function from GUI.GtkConsistencyChecker.
es = Map.findWithDefault (error
"GtkDisprove.showDisproveWindow") n' t
s = OMap.ele es