diff options
author | kyessenov <unknown> | 2010-08-23 20:25:11 +0000 |
---|---|---|
committer | kyessenov <unknown> | 2010-08-23 20:25:11 +0000 |
commit | 3a281bac64e4a4ae27a277c78e505f4704ab20b0 (patch) | |
tree | 6afe699fe63b1819bc0cf8c5e5be891627b6994b /Source/Provers | |
parent | 913dce83219e9a9e6de2d148e5edea8adca77ed6 (diff) |
Report a bug in Z3 instead of evil input "?"
Diffstat (limited to 'Source/Provers')
-rw-r--r-- | Source/Provers/Z3/Prover.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Provers/Z3/Prover.cs b/Source/Provers/Z3/Prover.cs index 7a882888..c93b364d 100644 --- a/Source/Provers/Z3/Prover.cs +++ b/Source/Provers/Z3/Prover.cs @@ -271,6 +271,9 @@ namespace Microsoft.Boogie.Z3 return ProverOutcome.TimeOut;
}
+ if (ch == -1)
+ throw new UnexpectedProverOutputException("z3 crashed and produced no output");
+
string line = new string((char)ch, 1) + FromReadLine();
if (line.StartsWith("STATS ")) {
|