Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
frama-c
Commits
2727be6c
Commit
2727be6c
authored
7 years ago
by
Kostyantyn Vorobyov
Browse files
Options
Downloads
Patches
Plain Diff
Track main function
parent
3ca721e9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/plugins/e-acsl/share/e-acsl/segment_model/e_acsl_segment_mmodel.c
+5
-0
5 additions, 0 deletions
...e-acsl/share/e-acsl/segment_model/e_acsl_segment_mmodel.c
with
5 additions
and
0 deletions
src/plugins/e-acsl/share/e-acsl/segment_model/e_acsl_segment_mmodel.c
+
5
−
0
View file @
2727be6c
...
...
@@ -160,6 +160,8 @@ static void argv_alloca(int *argc_ref, char *** argv_ref) {
/* }}} */
/* Program initialization {{{ */
extern
int
main
(
void
);
static
void
memory_init
(
int
*
argc_ref
,
char
***
argv_ref
,
size_t
ptr_size
)
{
describe_run
();
/** Verify that the given size of a pointer matches the one in the present
...
...
@@ -178,6 +180,9 @@ static void memory_init(int *argc_ref, char *** argv_ref, size_t ptr_size) {
/* Track program arguments. */
if
(
argc_ref
&&
argv_ref
)
argv_alloca
(
argc_ref
,
argv_ref
);
/* Track main function */
shadow_alloca
(
&
main
,
sizeof
(
&
main
));
initialize_static_region
((
uintptr_t
)
&
main
,
sizeof
(
&
main
));
/* Tracking safe locations */
collect_safe_locations
();
int
i
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment