home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
check.tcl
< prev
next >
Wrap
Text File
|
1997-05-16
|
2KB
|
59 lines
#---------------------------------------------------------------------------
#
# Copyright (c) 1997 by Cayenne Software Inc.
#
# This software is furnished under a license and may be used only in
# accordance with the terms of such license and with the inclusion of
# the above copyright notice. This software or any other copies thereof
# may not be provided or otherwise made available to any other person.
# No title to and ownership of the software is hereby transferred.
#
# The information in this software is subject to change without notice
# and should not be construed as a commitment by Cayenne Software Inc.
#
#---------------------------------------------------------------------------
#
# File : @(#)check.tcl /main/titanic/3
# Author : heli
# Original date : May 14, 1997
# Description : Model Check front end
#
#---------------------------------------------------------------------------
# SccsId = @(#)check.tcl /main/titanic/3 16 May 1997 Copyright 1997 Cayenne Software Inc.
source [m4_path_name tcl cginit.tcl]
#
# Development stuff.
#
proc my_debug {arg} {global debug;if {$debug} {puts stderr " ** $arg **"} }
#
# Load the ModelChecker.
#
require modelcheck.tcl
#
# Let the ModelChecker check the model.
#
set modelChecker [ModelChecker new]
if {[catch {$modelChecker check} msg]} {
if 0 {
if {"[string range $msg 0 5]" == "ERROR:"} {
puts stderr $msg
} else {
puts stderr $errorInfo
}
} else { # !0
puts stderr $msg
puts stderr "= = = = = = = ="
puts stderr $errorInfo
} # !0
}
#
# Done.
#