cprover
safety_checker.h
Go to the documentation of this file.
1
/*******************************************************************\
2
3
Module: Safety Checker Interface
4
5
Author: Daniel Kroening, kroening@kroening.com
6
7
\*******************************************************************/
8
11
12
#ifndef CPROVER_GOTO_PROGRAMS_SAFETY_CHECKER_H
13
#define CPROVER_GOTO_PROGRAMS_SAFETY_CHECKER_H
14
15
// this is just an interface -- it won't actually do any checking!
16
17
#include <
util/message.h
>
18
19
#include "
goto_trace.h
"
20
#include "
goto_functions.h
"
21
22
class
safety_checkert
:
public
messaget
23
{
24
public
:
25
explicit
safety_checkert
(
26
const
namespacet
&_ns);
27
28
explicit
safety_checkert
(
29
const
namespacet
&_ns,
30
message_handlert
&_message_handler);
31
32
enum class
resultt
{
SAFE
,
UNSAFE
,
ERROR
};
33
34
// check whether all assertions in goto_functions are safe
35
// if UNSAFE, then a trace is returned
36
37
virtual
resultt
operator()
(
38
const
goto_functionst
&goto_functions)=0;
39
40
// this is the counterexample
41
goto_tracet
error_trace
;
42
43
protected
:
44
// the namespace
45
const
namespacet
&
ns
;
46
};
47
48
#endif // CPROVER_GOTO_PROGRAMS_SAFETY_CHECKER_H
safety_checkert
Definition:
safety_checker.h:22
goto_functions.h
Goto Programs with Functions.
goto_trace.h
Traces of GOTO Programs.
safety_checkert::safety_checkert
safety_checkert(const namespacet &_ns)
Definition:
safety_checker.cpp:14
message.h
safety_checkert::error_trace
goto_tracet error_trace
Definition:
safety_checker.h:41
safety_checkert::ns
const namespacet & ns
Definition:
safety_checker.h:45
safety_checkert::resultt::UNSAFE
safety_checkert::resultt::ERROR
safety_checkert::operator()
virtual resultt operator()(const goto_functionst &goto_functions)=0
namespacet
TO_BE_DOCUMENTED.
Definition:
namespace.h:62
message_handlert
Definition:
message.h:20
goto_functionst
Definition:
goto_functions.h:20
messaget
Definition:
message.h:102
safety_checkert::resultt::SAFE
safety_checkert::resultt
resultt
Definition:
safety_checker.h:32
goto_tracet
TO_BE_DOCUMENTED.
Definition:
goto_trace.h:146
goto-programs
safety_checker.h
Generated by
1.8.12