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
41154b48
Commit
41154b48
authored
4 years ago
by
Loïc Correnson
Browse files
Options
Downloads
Patches
Plain Diff
[ivette] render filter separately
parent
92dd99ca
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ivette/src/renderer/Properties.tsx
+74
-63
74 additions, 63 deletions
ivette/src/renderer/Properties.tsx
with
74 additions
and
63 deletions
ivette/src/renderer/Properties.tsx
+
74
−
63
View file @
41154b48
...
...
@@ -253,6 +253,79 @@ class PropertyModel extends Arrays.ArrayModel<Property> {
}
}
// --------------------------------------------------------------------------
// --- Property Filter Form
// -------------------------------------------------------------------------
const
PropertyFilter
=
(
props
:
{
value
:
typeof
defaultFilter
,
onChange
:
()
=>
void
})
=>
(
<
Vfill
>
<
Form
value
=
{
props
.
value
}
onChange
=
{
props
.
onChange
}
>
<
FieldCheckbox
label
=
"Current function"
path
=
"currentFunction"
/>
<
Section
label
=
"Status"
unfold
path
=
"status"
>
<
FieldCheckbox
label
=
"Valid"
path
=
"valid"
/>
<
FieldCheckbox
label
=
"Valid under hyp."
path
=
"valid_hyp"
/>
<
FieldCheckbox
label
=
"Unknown"
path
=
"unknown"
/>
<
FieldCheckbox
label
=
"Invalid"
path
=
"invalid"
/>
<
FieldCheckbox
label
=
"Invalid under hyp."
path
=
"invalid_hyp"
/>
<
FieldCheckbox
label
=
"Considered valid"
path
=
"considered_valid"
/>
<
FieldCheckbox
label
=
"Untried"
path
=
"untried"
/>
<
FieldCheckbox
label
=
"Dead"
path
=
"dead"
/>
<
FieldCheckbox
label
=
"Inconsistent"
path
=
"inconsistent"
/>
</
Section
>
<
Section
label
=
"Property kind"
path
=
"kind"
>
<
FieldCheckbox
label
=
"Assertions"
path
=
"assert"
/>
<
FieldCheckbox
label
=
"Invariants"
path
=
"invariant"
/>
<
FieldCheckbox
label
=
"Variants"
path
=
"variant"
/>
<
FieldCheckbox
label
=
"Preconditions"
path
=
"requires"
/>
<
FieldCheckbox
label
=
"Postconditions"
path
=
"ensures"
/>
<
FieldCheckbox
label
=
"Instance"
path
=
"instance"
/>
<
FieldCheckbox
label
=
"Assigns clauses"
path
=
"assigns"
/>
<
FieldCheckbox
label
=
"From clauses"
path
=
"from"
/>
<
FieldCheckbox
label
=
"Allocates"
path
=
"allocates"
/>
<
FieldCheckbox
label
=
"Behaviors"
path
=
"behavior"
/>
<
FieldCheckbox
label
=
"Reachables"
path
=
"reachable"
/>
<
FieldCheckbox
label
=
"Axiomatics"
path
=
"axiomatic"
/>
<
FieldCheckbox
label
=
"Pragma"
path
=
"pragma"
/>
<
FieldCheckbox
label
=
"Others"
path
=
"others"
/>
</
Section
>
<
Section
label
=
"Alarms"
path
=
"alarms"
>
<
FieldCheckbox
label
=
"Alarms"
path
=
"alarms"
/>
<
FieldCheckbox
label
=
"Others"
path
=
"others"
/>
</
Section
>
<
Section
label
=
"Alarms kind"
path
=
"alarms"
>
<
FieldCheckbox
label
=
"Overflows"
path
=
"overflow"
/>
<
FieldCheckbox
label
=
"Divisions by zero"
path
=
"division_by_zero"
/>
<
FieldCheckbox
label
=
"Shifts"
path
=
"shift"
/>
<
FieldCheckbox
label
=
"Special floats"
path
=
"special_float"
/>
<
FieldCheckbox
label
=
"Float to int"
path
=
"float_to_int"
/>
<
FieldCheckbox
label
=
"_Bool values"
path
=
"bool_value"
/>
<
FieldCheckbox
label
=
"Memory accesses"
path
=
"mem_access"
/>
<
FieldCheckbox
label
=
"Index bounds"
path
=
"index_bound"
/>
<
FieldCheckbox
label
=
"Initializations"
path
=
"initialization"
/>
<
FieldCheckbox
label
=
"Dangling pointers"
path
=
"dangling_pointer"
/>
<
FieldCheckbox
label
=
"Pointer values"
path
=
"pointer_value"
/>
<
FieldCheckbox
label
=
"Function pointers"
path
=
"function_pointer"
/>
<
FieldCheckbox
label
=
"Pointer comparisons"
path
=
"ptr_comparison"
/>
<
FieldCheckbox
label
=
"Differing blocks"
path
=
"differing_blocks"
/>
<
FieldCheckbox
label
=
"Separations"
path
=
"separation"
/>
<
FieldCheckbox
label
=
"Overlaps"
path
=
"overlap"
/>
<
FieldCheckbox
label
=
"Initialization of unions"
path
=
"union_initialization"
/>
</
Section
>
</
Form
>
</
Vfill
>
);
// -------------------------------------------------------------------------
// --- Properties Table
// -------------------------------------------------------------------------
const
RenderTable
=
()
=>
{
// Hooks
const
model
=
React
.
useMemo
(()
=>
new
PropertyModel
(),
[]);
...
...
@@ -298,72 +371,10 @@ const RenderTable = () => {
model
.
setFilter
(
filtering
);
},
[
model
,
filter
,
selectedFunction
]);
const
filtersList
=
(
<
Form
value
=
{
filter
.
current
}
onChange
=
{
()
=>
model
.
reload
()
}
>
<
FieldCheckbox
label
=
"Current function"
path
=
"currentFunction"
/>
<
Section
label
=
"Status"
unfold
path
=
"status"
>
<
FieldCheckbox
label
=
"Valid"
path
=
"valid"
/>
<
FieldCheckbox
label
=
"Valid under hyp."
path
=
"valid_hyp"
/>
<
FieldCheckbox
label
=
"Unknown"
path
=
"unknown"
/>
<
FieldCheckbox
label
=
"Invalid"
path
=
"invalid"
/>
<
FieldCheckbox
label
=
"Invalid under hyp."
path
=
"invalid_hyp"
/>
<
FieldCheckbox
label
=
"Considered valid"
path
=
"considered_valid"
/>
<
FieldCheckbox
label
=
"Untried"
path
=
"untried"
/>
<
FieldCheckbox
label
=
"Dead"
path
=
"dead"
/>
<
FieldCheckbox
label
=
"Inconsistent"
path
=
"inconsistent"
/>
</
Section
>
<
Section
label
=
"Property kind"
path
=
"kind"
>
<
FieldCheckbox
label
=
"Assertions"
path
=
"assert"
/>
<
FieldCheckbox
label
=
"Invariants"
path
=
"invariant"
/>
<
FieldCheckbox
label
=
"Variants"
path
=
"variant"
/>
<
FieldCheckbox
label
=
"Preconditions"
path
=
"requires"
/>
<
FieldCheckbox
label
=
"Postconditions"
path
=
"ensures"
/>
<
FieldCheckbox
label
=
"Instance"
path
=
"instance"
/>
<
FieldCheckbox
label
=
"Assigns clauses"
path
=
"assigns"
/>
<
FieldCheckbox
label
=
"From clauses"
path
=
"from"
/>
<
FieldCheckbox
label
=
"Allocates"
path
=
"allocates"
/>
<
FieldCheckbox
label
=
"Behaviors"
path
=
"behavior"
/>
<
FieldCheckbox
label
=
"Reachables"
path
=
"reachable"
/>
<
FieldCheckbox
label
=
"Axiomatics"
path
=
"axiomatic"
/>
<
FieldCheckbox
label
=
"Pragma"
path
=
"pragma"
/>
<
FieldCheckbox
label
=
"Others"
path
=
"others"
/>
</
Section
>
<
Section
label
=
"Alarms"
path
=
"alarms"
>
<
FieldCheckbox
label
=
"Alarms"
path
=
"alarms"
/>
<
FieldCheckbox
label
=
"Others"
path
=
"others"
/>
</
Section
>
<
Section
label
=
"Alarms kind"
path
=
"alarms"
>
<
FieldCheckbox
label
=
"Overflows"
path
=
"overflow"
/>
<
FieldCheckbox
label
=
"Divisions by zero"
path
=
"division_by_zero"
/>
<
FieldCheckbox
label
=
"Shifts"
path
=
"shift"
/>
<
FieldCheckbox
label
=
"Special floats"
path
=
"special_float"
/>
<
FieldCheckbox
label
=
"Float to int"
path
=
"float_to_int"
/>
<
FieldCheckbox
label
=
"_Bool values"
path
=
"bool_value"
/>
<
FieldCheckbox
label
=
"Memory accesses"
path
=
"mem_access"
/>
<
FieldCheckbox
label
=
"Index bounds"
path
=
"index_bound"
/>
<
FieldCheckbox
label
=
"Initializations"
path
=
"initialization"
/>
<
FieldCheckbox
label
=
"Dangling pointers"
path
=
"dangling_pointer"
/>
<
FieldCheckbox
label
=
"Pointer values"
path
=
"pointer_value"
/>
<
FieldCheckbox
label
=
"Function pointers"
path
=
"function_pointer"
/>
<
FieldCheckbox
label
=
"Pointer comparisons"
path
=
"ptr_comparison"
/>
<
FieldCheckbox
label
=
"Differing blocks"
path
=
"differing_blocks"
/>
<
FieldCheckbox
label
=
"Separations"
path
=
"separation"
/>
<
FieldCheckbox
label
=
"Overlaps"
path
=
"overlap"
/>
<
FieldCheckbox
label
=
"Initialization of unions"
path
=
"union_initialization"
/>
</
Section
>
</
Form
>
);
// Rendering
return
(
<
Splitter
dir
=
"LEFT"
>
<
Vfill
>
{
filtersList
}
</
Vfill
>
<
PropertyFilter
value
=
{
filter
.
current
}
onChange
=
{
model
.
reload
}
/
>
<
Table
<
string
,
Property
>
model
=
{
model
}
sorting
=
{
model
}
...
...
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