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
77482e92
You need to sign in or sign up before continuing.
Commit
77482e92
authored
6 years ago
by
David Bühler
Committed by
Julien Signoles
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[obfuscator] Do not obfuscate builtin logic types and constructors.
parent
2a2e67b1
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
+6
-2
6 additions, 2 deletions
src/plugins/obfuscator/obfuscate.ml
with
6 additions
and
2 deletions
src/plugins/obfuscator/obfuscate.ml
+
6
−
2
View file @
77482e92
...
@@ -161,11 +161,15 @@ class visitor = object
...
@@ -161,11 +161,15 @@ class visitor = object
Cil
.
DoChildren
Cil
.
DoChildren
method
!
vlogic_type_info_decl
lti
=
method
!
vlogic_type_info_decl
lti
=
lti
.
lt_name
<-
Dictionary
.
fresh
Obfuscator_kind
.
Logic_type
lti
.
lt_name
;
if
not
(
Logic_env
.
is_builtin_logic_type
lti
.
lt_name
)
then
lti
.
lt_name
<-
Dictionary
.
fresh
Obfuscator_kind
.
Logic_type
lti
.
lt_name
;
Cil
.
DoChildren
Cil
.
DoChildren
method
!
vlogic_ctor_info_decl
lci
=
method
!
vlogic_ctor_info_decl
lci
=
lci
.
ctor_name
<-
Dictionary
.
fresh
Obfuscator_kind
.
Logic_constructor
lci
.
ctor_name
;
if
not
(
Logic_env
.
is_builtin_logic_ctor
lci
.
ctor_name
)
then
lci
.
ctor_name
<-
Dictionary
.
fresh
Obfuscator_kind
.
Logic_constructor
lci
.
ctor_name
;
Cil
.
DoChildren
Cil
.
DoChildren
method
!
vattr
=
function
method
!
vattr
=
function
...
...
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