Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Verifpal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Verifpal
Verifpal
Commits
7e440964
Verified
Commit
7e440964
authored
Jul 13, 2020
by
Nadim Kobeissi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't reconstruct core primitives into attackerState
parent
caef3444
Pipeline
#552
passed with stages
in 1 minute and 5 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
cmd/vplogic/primitive.go
cmd/vplogic/primitive.go
+1
-1
cmd/vplogic/verifyanalysis.go
cmd/vplogic/verifyanalysis.go
+3
-1
No files found.
cmd/vplogic/primitive.go
View file @
7e440964
...
...
@@ -17,7 +17,7 @@ var primitiveCoreSpecs = []PrimitiveCoreSpec{
CoreRule
:
func
(
p
Primitive
)
(
bool
,
[]
Value
)
{
v
:=
[]
Value
{{
Kind
:
"primitive"
,
Primitive
:
p
}}
if
valueEquivalentValues
(
p
.
Arguments
[
0
],
p
.
Arguments
[
1
],
true
)
{
return
true
,
[]
Value
{
p
.
Arguments
[
0
]}
return
true
,
v
}
return
false
,
v
},
...
...
cmd/vplogic/verifyanalysis.go
View file @
7e440964
...
...
@@ -96,8 +96,10 @@ func verifyAnalysisReconstruct(
)
int
{
r
:=
false
ar
:=
[]
Value
{}
isCorePrim
:=
false
switch
a
.
Kind
{
case
"primitive"
:
isCorePrim
=
primitiveIsCorePrim
(
a
.
Primitive
.
Name
)
r
,
ar
=
possibleToReconstructPrimitive
(
a
.
Primitive
,
valAttackerState
)
for
_
,
aa
:=
range
a
.
Primitive
.
Arguments
{
verifyAnalysisReconstruct
(
aa
,
valPrincipalState
,
valAttackerState
,
o
)
...
...
@@ -105,7 +107,7 @@ func verifyAnalysisReconstruct(
case
"equation"
:
r
,
ar
=
possibleToReconstructEquation
(
a
.
Equation
,
valAttackerState
)
}
if
r
&&
attackerStatePutWrite
(
a
)
{
if
r
&&
!
isCorePrim
&&
attackerStatePutWrite
(
a
)
{
InfoMessage
(
fmt
.
Sprintf
(
"%s obtained by reconstructing with %s."
,
infoOutputText
(
a
),
prettyValues
(
ar
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment