src/HOL/Tools/SMT2/smt2_failure.ML
changeset 57229 489083abce44
parent 57158 f028d93798e6
equal deleted inserted replaced
57228:d52012eabf0d 57229:489083abce44
    12     Out_Of_Memory |
    12     Out_Of_Memory |
    13     Abnormal_Termination of int |
    13     Abnormal_Termination of int |
    14     Other_Failure of string
    14     Other_Failure of string
    15   val string_of_failure: failure -> string
    15   val string_of_failure: failure -> string
    16   exception SMT of failure
    16   exception SMT of failure
    17 end
    17 end;
    18 
    18 
    19 structure SMT2_Failure: SMT2_FAILURE =
    19 structure SMT2_Failure: SMT2_FAILURE =
    20 struct
    20 struct
    21 
    21 
    22 datatype failure =
    22 datatype failure =
    35       "Solver terminated abnormally with error code " ^ string_of_int err
    35       "Solver terminated abnormally with error code " ^ string_of_int err
    36   | string_of_failure (Other_Failure msg) = msg
    36   | string_of_failure (Other_Failure msg) = msg
    37 
    37 
    38 exception SMT of failure
    38 exception SMT of failure
    39 
    39 
    40 end
    40 end;