Beispiel #1
0
 public static void ZingerTimeOut(object obj)
 {
     PTesterUtil.PrintMessage("");
     PTesterUtil.PrintMessage(String.Format("--Zinger Timed Out --"));
     PTesterUtil.PrintMessage(String.Format("--Final Stats --"));
     //ZingerStats.PrintPeriodicStats();
     //Environment.Exit((int)ZingerResult.ZingerTimeOut);
 }
Beispiel #2
0
        public static void PrintHelp(string arg, string errorMessage)
        {
            if (errorMessage != null)
            {
                if (arg != null)
                {
                    PTesterUtil.PrintErrorMessage(String.Format("Error: \"{0}\" - {1}", arg, errorMessage));
                }
                else
                {
                    PTesterUtil.PrintErrorMessage(String.Format("Error: {0}", errorMessage));
                }
            }

            Console.Write("HELP ME");
        }
        public static void PrintHelp(string arg, string errorMessage)
        {
            if (errorMessage != null)
            {
                if (arg != null)
                {
                    PTesterUtil.PrintErrorMessage(String.Format("Error: \"{0}\" - {1}", arg, errorMessage));
                }
                else
                {
                    PTesterUtil.PrintErrorMessage(String.Format("Error: {0}", errorMessage));
                }
            }

            Console.WriteLine("---------------------------------------------");
            Console.WriteLine("Options ::");
            Console.WriteLine("---------------------------------------------");
            Console.WriteLine("/h                       Print the help message");
            Console.WriteLine("/v or /verbose           Print the execution trace during exploration");
            Console.WriteLine("/ns:<int>                Number of schedulers <int> to explore");
            Console.WriteLine("/lhs:<LHS Model Dll>     Load the pre-computed traces of RHS Model and perform trace containment");
            Console.WriteLine("/rhs:<RHS Model Dll>     Compute all possible trace of the RHS Model using sampling and dump it in a file on disk");
            Console.WriteLine("/psharp                  Run the PSharp Tester");
            Console.WriteLine();
            Console.WriteLine("Flags related to exhaustive state space exploration:");
            Console.WriteLine("/dfs                     Perform DFS exploration of the state space");
            Console.WriteLine("/os-list                 Perform OS exploration (based on DFS) of the state space, with queue list abstraction");
            // Console.WriteLine("/os-set                  Perform OS exploration (based on DFS) of the state space, with queue set  abstraction");
            Console.WriteLine("/queue-bound:k           Bound queue size to k (i.e. a machine's send is disabled when its current buffer is size k) (default: 0=unbounded for DFS, 1 for OS).");
            Console.WriteLine("                         In case of /os search, this bound applies to the first-round queue and is incremented subsequently.");
            Console.WriteLine("/queue-prefix:p          Keep prefix of queue of length p(>=0) /exact/ (abstraction applies to suffix starting at position p) (default: 0)");
            Console.WriteLine("/interactive             Interactive mode: need users to press button to increase queue bound and continue exploration");
            Console.WriteLine("/file-dump               Pretty-print accumulated states into files. For debugging only; this may create LARGE files!");
            Console.WriteLine();
            Console.WriteLine("Flags related to QuTL model checker:");
            Console.WriteLine("/qutl:formula            Use QuTL formula to specify the properties what states should satisfy");
            Console.WriteLine("/queue:events            Model checking queue; using '|' to specify abstract queue, e.g. BB|ABC");
            Console.WriteLine("/processing:event        Specify the processing event");
            Console.WriteLine("/concrete                Invoke concrete model checker to test the correctness of QuTL formula!");
            Console.WriteLine();
            Console.WriteLine("Flags related to efficiency:");
            Console.WriteLine("/symmetry                Apply symmetry reduction to exclude redundant reachable states!");
            // Console.WriteLine("/hash                    Use State Hashing. (DFS without State Hashing is currently not implemented (and probably not meaningful), hence /dfs and /os-... all imply /hash.)");
            Console.WriteLine();
            Console.WriteLine("If none of /psharp, /dfs, /os-... are specified: perform random testing");
        }
Beispiel #4
0
        public static void PrintHelp(string arg, string errorMessage)
        {
            if (errorMessage != null)
            {
                if (arg != null)
                {
                    PTesterUtil.PrintErrorMessage(String.Format("Error: \"{0}\" - {1}", arg, errorMessage));
                }
                else
                {
                    PTesterUtil.PrintErrorMessage(String.Format("Error: {0}", errorMessage));
                }
            }

            Console.WriteLine("---------------------------------------------");
            Console.WriteLine("Options ::");
            Console.WriteLine("---------------------------------------------");
            Console.WriteLine("-h                       Print the help message");
            Console.WriteLine("-v or -verbose           Print the execution trace during exploration");
            Console.WriteLine("-ns:<int>                Number of schedulers <int> to explore");
            Console.WriteLine("-lhs:<LHS Model Dll>     Load the pre-computed traces of RHS Model and perform trace containment");
            Console.WriteLine("-rhs:<RHS Model Dll>     Compute all possible trace of the RHS Model using sampling and dump it in a file on disk");
        }