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
65e6c739
Commit
65e6c739
authored
1 year ago
by
Allan Blanchard
Browse files
Options
Downloads
Patches
Plain Diff
[ivette/wp] display results
parent
43eeab58
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ivette/src/frama-c/plugins/wp/api/index.ts
+6
-10
6 additions, 10 deletions
ivette/src/frama-c/plugins/wp/api/index.ts
ivette/src/frama-c/plugins/wp/goals.tsx
+13
-7
13 additions, 7 deletions
ivette/src/frama-c/plugins/wp/goals.tsx
src/plugins/wp/wpApi.ml
+5
-6
5 additions, 6 deletions
src/plugins/wp/wpApi.ml
with
24 additions
and
23 deletions
ivette/src/frama-c/plugins/wp/api/index.ts
+
6
−
10
View file @
65e6c739
...
...
@@ -163,10 +163,8 @@ export interface goalsData {
bhv
?:
string
;
/** Associated axiomatic, if any */
thy
?:
string
;
/** Smoke Test Goal */
smoke
:
boolean
;
/** Successfull Goal */
passed
:
boolean
;
/** Smoking (or not) goal and result */
result
:
[
boolean
,
boolean
];
/** Verdict Details */
stats
:
stats
;
/** Script File */
...
...
@@ -184,8 +182,7 @@ export const jGoalsData: Json.Decoder<goalsData> =
fct
:
Json
.
jOption
(
jFct
),
bhv
:
Json
.
jOption
(
Json
.
jString
),
thy
:
Json
.
jOption
(
Json
.
jString
),
smoke
:
Json
.
jBoolean
,
passed
:
Json
.
jBoolean
,
result
:
Json
.
jPair
(
Json
.
jBoolean
,
Json
.
jBoolean
,),
stats
:
jStats
,
script
:
Json
.
jOption
(
Json
.
jString
),
saved
:
Json
.
jBoolean
,
...
...
@@ -195,7 +192,7 @@ export const jGoalsData: Json.Decoder<goalsData> =
export
const
byGoalsData
:
Compare
.
Order
<
goalsData
>
=
Compare
.
byFields
<
{
wpo
:
goal
,
property
:
marker
,
name
:
string
,
fct
?:
fct
,
bhv
?:
string
,
thy
?:
string
,
smoke
:
boolean
,
passed
:
boolean
,
stats
:
stats
,
thy
?:
string
,
result
:
[
boolean
,
boolean
]
,
stats
:
stats
,
script
?:
string
,
saved
:
boolean
}
>
({
wpo
:
byGoal
,
property
:
byMarker
,
...
...
@@ -203,8 +200,7 @@ export const byGoalsData: Compare.Order<goalsData> =
fct
:
Compare
.
defined
(
byFct
),
bhv
:
Compare
.
defined
(
Compare
.
string
),
thy
:
Compare
.
defined
(
Compare
.
string
),
smoke
:
Compare
.
boolean
,
passed
:
Compare
.
boolean
,
result
:
Compare
.
pair
(
Compare
.
boolean
,
Compare
.
boolean
,),
stats
:
byStats
,
script
:
Compare
.
defined
(
Compare
.
string
),
saved
:
Compare
.
boolean
,
...
...
@@ -260,7 +256,7 @@ export const goals: State.Array<goal,goalsData> = goals_internal;
/** Default value for `goalsData` */
export
const
goalsDataDefault
:
goalsData
=
{
wpo
:
goalDefault
,
property
:
markerDefault
,
name
:
''
,
fct
:
undefined
,
bhv
:
undefined
,
thy
:
undefined
,
smoke
:
false
,
passed
:
false
,
bhv
:
undefined
,
thy
:
undefined
,
result
:
[
false
,
false
]
,
stats
:
statsDefault
,
script
:
undefined
,
saved
:
false
};
/** Proof Server Activity */
...
...
This diff is collapsed.
Click to expand it.
ivette/src/frama-c/plugins/wp/goals.tsx
+
13
−
7
View file @
65e6c739
...
...
@@ -27,11 +27,17 @@ import * as Ivette from 'ivette';
import
*
as
States
from
'
frama-c/states
'
;
import
*
as
WP
from
'
frama-c/plugins/wp/api
'
;
const
render
Passed
:
Renderer
<
boolean
>
=
(
passed
:
boolean
):
JSX
.
Element
=>
const
render
Result
:
Renderer
<
[
boolean
,
boolean
]
>
=
(
[
smoking
,
passed
]
):
JSX
.
Element
=>
(<
Icon
id
=
{
passed
?
'
CIRC.CHECK
'
:
'
CIRC.QUESTION
'
}
fill
=
{
passed
?
`var(--positive-button-color)`
:
`var(--negative-button-color)`
}
id
=
{
passed
?
'
CIRC.CHECK
'
:
(
smoking
?
'
CIRC.CLOSE
'
:
'
CIRC.QUESTION
'
)
}
fill
=
{
passed
?
`var(--positive-button-color)`
:
(
smoking
?
`var(--negative-button-color)`
:
`var(--warning-button-color)`
)
}
/>);
function
WPGoals
():
JSX
.
Element
{
...
...
@@ -59,9 +65,9 @@ function WPGoals(): JSX.Element {
<
Column
id
=
'fct'
label
=
'Function'
/>
<
Column
id
=
'name'
label
=
'Names'
/>
<
Column
id
=
'
passed
'
label
=
'
Success
'
render
=
{
render
Passed
}
id
=
'
result
'
label
=
'
Result
'
render
=
{
render
Result
}
/>
</
Table
>
);
...
...
This diff is collapsed.
Click to expand it.
src/plugins/wp/wpApi.ml
+
5
−
6
View file @
65e6c739
...
...
@@ -185,13 +185,12 @@ let () = S.option gmodel ~name:"thy"
~
descr
:
(
Md
.
plain
"Associated axiomatic, if any"
)
~
data
:
(
module
D
.
Jstring
)
~
get
:
get_thy
let
()
=
S
.
column
gmodel
~
name
:
"smoke"
~
descr
:
(
Md
.
plain
"Smoke Test Goal"
)
~
data
:
(
module
D
.
Jbool
)
~
get
:
Wpo
.
is_smoke_test
let
get_result
g
=
Wpo
.
is_smoke_test
g
,
Wpo
.
is_passed
g
let
()
=
S
.
column
gmodel
~
name
:
"
passed
"
~
descr
:
(
Md
.
plain
"S
uccessfull Goal
"
)
~
data
:
(
module
D
.
J
bool
)
~
get
:
Wpo
.
is_passed
let
()
=
S
.
column
gmodel
~
name
:
"
result
"
~
descr
:
(
Md
.
plain
"S
moking (or not) goal and result
"
)
~
data
:
(
module
D
.
J
pair
(
D
.
Jbool
)(
D
.
Jbool
))
~
get
:
get_result
let
()
=
S
.
column
gmodel
~
name
:
"stats"
~
descr
:
(
Md
.
plain
"Verdict Details"
)
...
...
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