CBMC
cpp_static_assert.h
Go to the documentation of this file.
1
/*******************************************************************\
2
3
Module: C++ Language Type Checking
4
5
Author: Daniel Kroening, kroening@cs.cmu.edu
6
7
\*******************************************************************/
8
11
12
#ifndef CPROVER_CPP_CPP_STATIC_ASSERT_H
13
#define CPROVER_CPP_CPP_STATIC_ASSERT_H
14
15
#include <
util/std_expr.h
>
16
17
class
cpp_static_assertt
:
public
binary_exprt
18
{
19
public
:
20
cpp_static_assertt
(
exprt
_cond,
exprt
_description)
21
:
binary_exprt
(
22
std::move(_cond),
23
ID_cpp_static_assert,
24
std::move(_description),
25
typet
())
26
{
27
}
28
29
exprt
&
cond
()
30
{
31
return
op0
();
32
}
33
34
const
exprt
&
cond
()
const
35
{
36
return
op0
();
37
}
38
39
const
exprt
&
description
()
const
40
{
41
return
op1
();
42
}
43
44
exprt
&
description
()
45
{
46
return
op1
();
47
}
48
};
49
50
#endif // CPROVER_CPP_CPP_STATIC_ASSERT_H
cpp_static_assertt::cpp_static_assertt
cpp_static_assertt(exprt _cond, exprt _description)
Definition:
cpp_static_assert.h:20
typet
The type of an expression, extends irept.
Definition:
type.h:28
exprt
Base class for all expressions.
Definition:
expr.h:55
binary_exprt
A base class for binary expressions.
Definition:
std_expr.h:582
exprt::op0
exprt & op0()
Definition:
expr.h:125
exprt::op1
exprt & op1()
Definition:
expr.h:128
cpp_static_assertt::cond
const exprt & cond() const
Definition:
cpp_static_assert.h:34
cpp_static_assertt::description
const exprt & description() const
Definition:
cpp_static_assert.h:39
cpp_static_assertt
Definition:
cpp_static_assert.h:17
cpp_static_assertt::description
exprt & description()
Definition:
cpp_static_assert.h:44
std_expr.h
cpp_static_assertt::cond
exprt & cond()
Definition:
cpp_static_assert.h:29
src
cpp
cpp_static_assert.h
Generated by
1.8.17