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
8a853bdf
Verified
Commit
8a853bdf
authored
Jul 13, 2020
by
Nadim Kobeissi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Smarter skeletons
parent
2c069928
Pipeline
#557
passed with stages
in 57 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
3 deletions
+17
-3
cmd/vplogic/inject.go
cmd/vplogic/inject.go
+10
-3
cmd/vplogic/value.go
cmd/vplogic/value.go
+7
-0
No files found.
cmd/vplogic/inject.go
View file @
8a853bdf
...
...
@@ -140,7 +140,14 @@ func injectPrimitiveSkeleton(p Primitive) Primitive {
}
skeleton
.
Arguments
[
i
]
=
aa
case
"equation"
:
skeleton
.
Arguments
[
i
]
=
valueN
switch
len
(
a
.
Equation
.
Values
)
{
case
1
:
skeleton
.
Arguments
[
i
]
=
valueG
case
2
:
skeleton
.
Arguments
[
i
]
=
valueGN
case
3
:
skeleton
.
Arguments
[
i
]
=
valueGNN
}
}
}
return
skeleton
...
...
@@ -175,8 +182,8 @@ SkeletonSearch:
}
if
attackerStatePutWrite
(
known
)
{
InfoMessage
(
fmt
.
Sprintf
(
"Constructed skeleton %s."
,
prettyPrimitive
(
skeleton
),
"Constructed skeleton %s
based on %s
."
,
prettyPrimitive
(
skeleton
),
prettyPrimitive
(
p
),
),
"analysis"
,
true
)
}
}
...
...
cmd/vplogic/value.go
View file @
8a853bdf
...
...
@@ -39,6 +39,13 @@ var valueGN = Value{
},
}
var
valueGNN
=
Value
{
Kind
:
"equation"
,
Equation
:
Equation
{
Values
:
[]
Value
{
valueG
,
valueN
,
valueN
},
},
}
func
valueIsGOrNil
(
c
Constant
)
bool
{
switch
strings
.
ToLower
(
c
.
Name
)
{
case
"g"
,
"nil"
:
...
...
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