@@ -8,8 +8,6 @@ use serde::{Deserialize, Serialize};
88use std:: fmt;
99use std:: sync:: { LockResult , RwLockReadGuard , RwLockWriteGuard } ;
1010use uuid:: Uuid ;
11- #[ cfg( feature = "z3" ) ]
12- use z3_sys:: ErrorCode as Z3ErrorCode ;
1311
1412pub use chrono:: Utc ;
1513
@@ -42,25 +40,6 @@ impl InstanceTelemetryKey {
4240 }
4341}
4442
45- #[ cfg( feature = "z3" ) ]
46- pub fn z3_error_as_str ( code : & Z3ErrorCode ) -> & ' static str {
47- match code {
48- Z3ErrorCode :: OK => "OK" ,
49- Z3ErrorCode :: SortError => "SortError" ,
50- Z3ErrorCode :: IOB => "IOB" ,
51- Z3ErrorCode :: InvalidArg => "InvalidArg" ,
52- Z3ErrorCode :: ParserError => "ParserError" ,
53- Z3ErrorCode :: NoParser => "NoParser" ,
54- Z3ErrorCode :: InvalidPattern => "InvalidPattern" ,
55- Z3ErrorCode :: MemoutFail => "MemoutFail" ,
56- Z3ErrorCode :: FileAccessError => "FileAccessError" ,
57- Z3ErrorCode :: InternalFatal => "InternalFatal" ,
58- Z3ErrorCode :: InvalidUsage => "InvalidUsage" ,
59- Z3ErrorCode :: DecRefError => "DecRefError" ,
60- Z3ErrorCode :: Exception => "Exception" ,
61- }
62- }
63-
6443impl fmt:: Display for InstanceTelemetryKey {
6544 fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
6645 write ! ( f, "{}" , self . 0 )
@@ -182,10 +161,6 @@ pub enum EventData {
182161 MissedInstructionCode ( IntelInstructionCode ) ,
183162 #[ cfg( feature = "intel_instructions" ) ]
184163 MissedInstructionMnemonic ( IntelInstructionMnemonic ) ,
185- #[ cfg( feature = "z3" ) ]
186- Z3ErrorCode ( Z3ErrorCode ) ,
187- #[ cfg( feature = "z3" ) ]
188- Z3ErrorString ( String ) ,
189164 SymexTimeout ( u64 ) ,
190165}
191166
@@ -260,10 +235,6 @@ impl EventData {
260235 ( "divergence_path_expected_index" , x. to_string ( ) )
261236 }
262237 Self :: DivergencePathActualIndex ( x) => ( "divergence_path_actual_index" , x. to_string ( ) ) ,
263- #[ cfg( feature = "z3" ) ]
264- Self :: Z3ErrorCode ( x) => ( "z3_error_code" , z3_error_as_str ( x) . to_owned ( ) ) ,
265- #[ cfg( feature = "z3" ) ]
266- Self :: Z3ErrorString ( x) => ( "z3_error_string" , x. to_owned ( ) ) ,
267238 Self :: SymexTimeout ( x) => ( "symex_timeout" , x. to_string ( ) ) ,
268239 }
269240 }
@@ -328,10 +299,6 @@ impl EventData {
328299 Self :: MissedInstructionCode ( _) => true ,
329300 #[ cfg( feature = "intel_instructions" ) ]
330301 Self :: MissedInstructionMnemonic ( _) => true ,
331- #[ cfg( feature = "z3" ) ]
332- Self :: Z3ErrorCode ( _) => true ,
333- #[ cfg( feature = "z3" ) ]
334- Self :: Z3ErrorString ( _) => false ,
335302 Self :: SymexTimeout ( _) => true ,
336303 }
337304 }
0 commit comments