Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 83c10bc

Browse files
committedMay 6, 2019
Document collect_allocations and invalidate
1 parent bac2bde commit 83c10bc

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
 

‎src/analyses/goto_check.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@ class goto_checkt
7979
const irep_idt &function_identifier,
8080
goto_functiont &goto_function);
8181

82+
/// Fill the list of allocations \ref allocationst with <address, size> for
83+
/// every allocation instruction. Also check that each allocation is
84+
/// well-formed.
85+
/// \param goto_functions: goto functions from which the allocations are to be
86+
/// collected
8287
void collect_allocations(const goto_functionst &goto_functions);
8388

8489
protected:
@@ -194,6 +199,10 @@ class goto_checkt
194199
typedef std::set<exprt> assertionst;
195200
assertionst assertions;
196201

202+
/// Remove all assertions containing they symbol in \p lhs as well as all
203+
/// assertions containing dereference.
204+
/// \param lhs: the left-hand-side expression whose symbol should be
205+
/// invalidated
197206
void invalidate(const exprt &lhs);
198207

199208
bool enable_bounds_check;

0 commit comments

Comments
 (0)
Please sign in to comment.