cprover
Toggle main menu visibility
Loading...
Searching...
No Matches
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
binary_exprt::binary_exprt
binary_exprt(const exprt &_lhs, const irep_idt &_id, exprt _rhs)
Definition
std_expr.h:641
binary_exprt::op0
exprt & op0()
Definition
expr.h:134
binary_exprt::op1
exprt & op1()
Definition
expr.h:137
cpp_static_assertt::cpp_static_assertt
cpp_static_assertt(exprt _cond, exprt _description)
Definition
cpp_static_assert.h:20
cpp_static_assertt::description
exprt & description()
Definition
cpp_static_assert.h:44
cpp_static_assertt::cond
const exprt & cond() const
Definition
cpp_static_assert.h:34
cpp_static_assertt::cond
exprt & cond()
Definition
cpp_static_assert.h:29
cpp_static_assertt::description
const exprt & description() const
Definition
cpp_static_assert.h:39
exprt::exprt
exprt()
Definition
expr.h:62
typet
The type of an expression, extends irept.
Definition
type.h:29
std
STL namespace.
std_expr.h
API to expression classes.
cpp
cpp_static_assert.h
Generated by
1.17.0