CBMC
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
c
d
e
f
g
j
l
m
r
t
w
Functions
a
c
d
f
g
r
t
w
Typedefs
Enumerations
Classes
Class List
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
a
b
c
d
e
f
g
i
k
l
m
o
p
r
s
t
u
v
w
Enumerator
a
b
c
d
e
f
h
i
k
l
m
n
o
p
q
r
s
t
u
v
Related Symbols
b
c
d
e
g
i
j
m
n
o
s
t
u
v
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
w
y
Typedefs
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
Enumerations
_
a
b
c
d
f
g
i
l
m
p
r
s
t
u
v
w
Enumerator
_
a
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
Macros
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
y
▼
CBMC
►
Documentation
►
Code Contracts in CBMC
►
The CPROVER C++ API
►
Libcprover-rust
►
Symex and GOTO program instructions
Deprecated List
►
Namespaces
►
Classes
▼
Files
►
File List
►
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
cpp_token.h
Go to the documentation of this file.
1
/*******************************************************************\
2
3
Module: C++ Parser: Token
4
5
Author: Daniel Kroening, kroening@cs.cmu.edu
6
7
\*******************************************************************/
8
11
12
#ifndef CPROVER_CPP_CPP_TOKEN_H
13
#define CPROVER_CPP_CPP_TOKEN_H
14
15
#include <algorithm>
16
17
#include <
util/expr.h
>
18
19
class
cpp_tokent
20
{
21
public
:
22
int
kind
;
23
exprt
data
;
24
std::string
text
;
25
unsigned
line_no
;
26
irep_idt
filename
;
27
28
void
clear
()
29
{
30
kind
=0;
31
data
.
clear
();
32
text
.
clear
();
33
line_no
=0;
34
filename
.
clear
();
35
}
28
void
clear
() {
…
}
36
37
void
swap
(
cpp_tokent
&token)
38
{
39
std::swap(
kind
, token.
kind
);
40
data
.
swap
(token.
data
);
41
text
.swap(token.
text
);
42
std::swap(
line_no
, token.
line_no
);
43
filename
.
swap
(token.
filename
);
44
}
37
void
swap
(
cpp_tokent
&token) {
…
}
45
};
19
class
cpp_tokent
{
…
};
46
47
#endif
// CPROVER_CPP_CPP_TOKEN_H
ai_baset::clear
virtual void clear()
Reset the abstract state.
Definition
ai.h:265
cpp_tokent
Definition
cpp_token.h:20
cpp_tokent::data
exprt data
Definition
cpp_token.h:23
cpp_tokent::kind
int kind
Definition
cpp_token.h:22
cpp_tokent::swap
void swap(cpp_tokent &token)
Definition
cpp_token.h:37
cpp_tokent::filename
irep_idt filename
Definition
cpp_token.h:26
cpp_tokent::clear
void clear()
Definition
cpp_token.h:28
cpp_tokent::line_no
unsigned line_no
Definition
cpp_token.h:25
cpp_tokent::text
std::string text
Definition
cpp_token.h:24
dstringt
dstringt has one field, an unsigned integer no which is an index into a static table of strings.
Definition
dstring.h:38
dstringt::swap
void swap(dstringt &b)
Definition
dstring.h:162
dstringt::clear
void clear()
Definition
dstring.h:159
exprt
Base class for all expressions.
Definition
expr.h:56
irept::clear
void clear()
Definition
irep.h:444
irept::swap
void swap(irept &irep)
Definition
irep.h:434
expr.h
src
cpp
cpp_token.h
Generated by
1.9.8