Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
rtfm-klee-gdb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KLEE
rtfm-klee-gdb
Commits
9fc20c8c
Commit
9fc20c8c
authored
8 years ago
by
Henrik Tjäder
Browse files
Options
Downloads
Patches
Plain Diff
Force KLEE to play within bounds and cleanup
parent
6a5530d7
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
include/SRP_wcet.h
+0
-2
0 additions, 2 deletions
include/SRP_wcet.h
klee_stm_gdb.py
+1
-1
1 addition, 1 deletion
klee_stm_gdb.py
src/main.c
+7
-4
7 additions, 4 deletions
src/main.c
with
8 additions
and
7 deletions
include/SRP_wcet.h
+
0
−
2
View file @
9fc20c8c
...
...
@@ -66,5 +66,3 @@ locks eventlist[MAX_NUM_LOCKS];
#define BREAKPOINT
void
finish_execution
(
void
)
{}
//void terminate_execution(void) {}
This diff is collapsed.
Click to expand it.
klee_stm_gdb.py
+
1
−
1
View file @
9fc20c8c
...
...
@@ -33,7 +33,7 @@ cur.execute('''CREATE TABLE IF NOT EXISTS events
FILE TEXT NOT NULL,
TIME INT NOT NULL,
RESOURCE TEXT NOT NULL,
ACTION TEXT
ACTION TEXT
,
JOB TEXT);
'''
)
...
...
This diff is collapsed.
Click to expand it.
src/main.c
+
7
−
4
View file @
9fc20c8c
...
...
@@ -44,9 +44,7 @@
// Analysis variables
static
volatile
int
state
;
#ifdef KLEE
static
int
job
;
#endif
void
work
(
int
i
)
{
volatile
int
k
=
0
;
...
...
@@ -100,9 +98,13 @@ TASK(j3) {
int
main
()
{
klee_make_symbolic
(
&
job
,
sizeof
(
job
),
"job"
);
klee_assume
(
job
>
0
&&
job
<
4
);
switch
(
job
)
{
case
1
:
default:
klee_make_symbolic
(
&
state
,
sizeof
(
state
),
"state"
);
// check task 1
case
1
:
klee_make_symbolic
(
&
state
,
sizeof
(
state
),
"state"
);
EXTI1_IRQHandler
();
break
;
...
...
@@ -116,12 +118,13 @@ int main() {
klee_make_symbolic
(
&
state
,
sizeof
(
state
),
"state"
);
EXTI3_IRQHandler
();
break
;
/*klee_make_symbolic(&state, sizeof(state), "state");*/
/*break;*/
}
}
#elif defined KLEE_WCET
/* The case when gdb runs WCET benchmarking */
static
int
state
;
static
int
job
;
int
main
()
{
...
...
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