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
dea55f7c
Commit
dea55f7c
authored
6 years ago
by
David Bühler
Browse files
Options
Downloads
Patches
Plain Diff
[obfuscator] Removes an unnecessary try… with.
parent
1b9e24de
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/plugins/obfuscator/obfuscate.ml
+7
-8
7 additions, 8 deletions
src/plugins/obfuscator/obfuscate.ml
with
7 additions
and
8 deletions
src/plugins/obfuscator/obfuscate.ml
+
7
−
8
View file @
dea55f7c
...
...
@@ -84,14 +84,13 @@ class visitor = object
if
Varinfo
.
Hashtbl
.
mem
varinfos_visited
vi
then
Cil
.
SkipChildren
else
begin
if
Cil
.
isFunctionType
vi
.
vtype
then
try
if
vi
.
vname
<>
"main"
&&
not
(
Cil
.
is_builtin
vi
)
&&
not
(
Cil
.
is_special_builtin
vi
.
vname
)
&&
not
(
Cil
.
hasAttribute
"fc_stdlib"
vi
.
vattr
)
then
vi
.
vname
<-
Dictionary
.
fresh
Obfuscator_kind
.
Function
vi
.
vname
with
Not_found
->
assert
false
if
Cil
.
isFunctionType
vi
.
vtype
then
begin
if
vi
.
vname
<>
"main"
&&
not
(
Cil
.
is_builtin
vi
)
&&
not
(
Cil
.
is_special_builtin
vi
.
vname
)
&&
not
(
Cil
.
hasAttribute
"fc_stdlib"
vi
.
vattr
)
then
vi
.
vname
<-
Dictionary
.
fresh
Obfuscator_kind
.
Function
vi
.
vname
end
else
begin
let
add
=
if
vi
.
vglob
then
Dictionary
.
fresh
Obfuscator_kind
.
Global_var
...
...
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