Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
plcopen
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
Per Lindgren
plcopen
Commits
16491601
Commit
16491601
authored
6 years ago
by
Nils Fitinghoff
Browse files
Options
Downloads
Patches
Plain Diff
rustfmt
parent
799276ea
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
examples/eq_dfs.rs
+1
-2
1 addition, 2 deletions
examples/eq_dfs.rs
examples/eq_paper.rs
+11
-14
11 additions, 14 deletions
examples/eq_paper.rs
with
12 additions
and
16 deletions
examples/eq_dfs.rs
+
1
−
2
View file @
16491601
...
@@ -142,7 +142,6 @@ fn main() {
...
@@ -142,7 +142,6 @@ fn main() {
// }
// }
// }
// }
let
mut
is_visited
=
false
;
let
mut
is_visited
=
false
;
match
STATE
{
match
STATE
{
S8004
|
S8005
|
S8014
=>
{
S8004
|
S8005
|
S8014
=>
{
...
...
This diff is collapsed.
Click to expand it.
examples/eq_paper.rs
+
11
−
14
View file @
16491601
...
@@ -2,9 +2,8 @@
...
@@ -2,9 +2,8 @@
#![no_main]
#![no_main]
#![no_std]
#![no_std]
extern
crate
panic_abort
;
extern
crate
klee
;
extern
crate
klee
;
extern
crate
panic_abort
;
use
klee
::{
kassert
,
kassume
,
ksymbol
};
use
klee
::{
kassert
,
kassume
,
ksymbol
};
#[derive(Debug,
Copy,
Clone)]
#[derive(Debug,
Copy,
Clone)]
...
@@ -40,6 +39,7 @@ fn main() {
...
@@ -40,6 +39,7 @@ fn main() {
let
mut
STATE
=
S8001
;
let
mut
STATE
=
S8001
;
let
mut
STATE_H
:
[
State
;
HORIZON
]
=
unsafe
{
core
::
mem
::
uninitialized
()
};
// STATE_HISTORY
let
mut
STATE_H
:
[
State
;
HORIZON
]
=
unsafe
{
core
::
mem
::
uninitialized
()
};
// STATE_HISTORY
let
mut
CNTR
:
u32
=
unsafe
{
core
::
mem
::
uninitialized
()
};
// TIMEOUT_CNTR
let
mut
CNTR
:
u32
=
unsafe
{
core
::
mem
::
uninitialized
()
};
// TIMEOUT_CNTR
// TIMEOUT_CNTR_HISTORY
// TIMEOUT_CNTR_HISTORY
let
mut
CNTR_H
:
[
u32
;
HORIZON
]
=
unsafe
{
core
::
mem
::
uninitialized
()
};
let
mut
CNTR_H
:
[
u32
;
HORIZON
]
=
unsafe
{
core
::
mem
::
uninitialized
()
};
...
@@ -63,18 +63,11 @@ fn main() {
...
@@ -63,18 +63,11 @@ fn main() {
match
STATE_H
[
i
-
1
]
{
match
STATE_H
[
i
-
1
]
{
// (3)
// (3)
C001
|
C002
|
C003
=>
{
C001
|
C002
|
C003
=>
{
kassert!
(
kassert!
((
STATE
==
S8001
)
|
(
STATE
==
STATE_H
[
i
-
1
]));
(
STATE
==
S8001
)
|
(
STATE
==
STATE_H
[
i
-
1
])
);
}
}
// (4)
// (4)
S8005
=>
{
S8005
=>
{
kassert!
(
kassert!
((
STATE
==
S8001
)
|
(
STATE
==
C003
)
|
(
STATE
==
STATE_H
[
i
-
1
]));
(
STATE
==
S8001
)
|
(
STATE
==
C003
)
|
(
STATE
==
STATE_H
[
i
-
1
])
);
}
}
_
=>
(),
_
=>
(),
}
}
...
@@ -97,7 +90,11 @@ fn main() {
...
@@ -97,7 +90,11 @@ fn main() {
}
}
}
}
fn
eq
(
STATE
:
&
mut
State
,
TIMEOUT_CNTR
:
&
mut
u32
,
data
:
&
Data
)
{
fn
eq
(
STATE
:
&
mut
State
,
TIMEOUT_CNTR
:
&
mut
u32
,
data
:
&
Data
,
)
{
*
STATE
=
match
STATE
{
*
STATE
=
match
STATE
{
S8000
=>
match
(
data
.a
,
data
.b
)
{
S8000
=>
match
(
data
.a
,
data
.b
)
{
(
F
,
F
)
=>
S8001
,
(
F
,
F
)
=>
S8001
,
...
...
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