Sam Blackshear
4b9899d6b2
[quandary] handling globals in function summaries
...
Reviewed By: jeremydubreil
Differential Revision: D3866616
fbshipit-source-id: 1b77bca
9 years ago
Sam Blackshear
b1039f51f8
[quandary] add summaries for footprint traces associated with locals
...
Differential Revision: D3883275
fbshipit-source-id: 651116e
9 years ago
Cristiano Calcagno
4cee6907ec
[backend] Remove the global reference DB.current_source and clean up the flow of information about the current source file.
...
Summary:
The global reference `DB.current_source` is used internally in the module DB, by all the front-ends, and directly and indirectly by the back-end, including saving and restoring the state in case of on-demand procedure calls. In particular, it is heavily used in printing functions.
This diff cleans up the flow of information about what the current file is, making it explicit, and removes the reference.
Reviewed By: jberdine
Differential Revision: D3901247
fbshipit-source-id: ef596bd
9 years ago
Dulma Churchill
526cf6da6a
[Config] Adding a default for the option load
...
Reviewed By: jberdine
Differential Revision: D3900257
fbshipit-source-id: c664968
9 years ago
Sam Blackshear
ae759ee21f
[quandary] fixing crashes when running on recursive code
...
Reviewed By: cristianoc
Differential Revision: D3888004
fbshipit-source-id: d432496
9 years ago
Sam Blackshear
de146f4f2d
[quandary] switch to using base -> formal num map in extras
...
Reviewed By: dkgi
Differential Revision: D3883256
fbshipit-source-id: 857e1f9
9 years ago
Sam Blackshear
31e6849ec0
[quandary] using summaries part 2: the relational cases
...
Differential Revision: D3861751
fbshipit-source-id: d7858e6
9 years ago
Cristiano Calcagno
bd0215a826
[IR] Add notion of file captured to procedure attributes.
...
Reviewed By: jberdine
Differential Revision: D3899826
fbshipit-source-id: 91f063f
9 years ago
Josh Berdine
f30b6e39db
More robust logging to files
...
Summary:
Create the log directory even if the parent results directory does not
exist. In particular, the python buck module will delete the results
directory after it is created the first time, so it needs to be
re-created or else there is nowhere for the log files.
Reviewed By: sblackshear
Differential Revision: D3896546
fbshipit-source-id: 834cf79
9 years ago
Sam Blackshear
70670f5355
[checkers] kill noisy logging in abstract interpreter
...
Reviewed By: jberdine
Differential Revision: D3896673
fbshipit-source-id: 35c20d5
9 years ago
Sam Blackshear
e4beca3779
[quandary] using summaries part 1: return
...
Reviewed By: jeremydubreil
Differential Revision: D3857310
fbshipit-source-id: 29c5994
9 years ago
Sam Blackshear
cf8c957483
[quandary] use preanalysis for abstract GC
...
Reviewed By: jeremydubreil
Differential Revision: D3866919
fbshipit-source-id: 87fb380
9 years ago
Sam Blackshear
95f6639d6d
[backend] refactoring debug html printing to make it easier to call from anywhere
...
Reviewed By: jberdine
Differential Revision: D3876981
fbshipit-source-id: dcca010
9 years ago
Sam Blackshear
9f1c4e4bca
[quandary] adding append operation
...
Reviewed By: jeremydubreil
Differential Revision: D3857100
fbshipit-source-id: 030b1cb
9 years ago
Cristiano Calcagno
fe21442d47
[tests] Convert the linter tests to the new direct format
...
Reviewed By: jberdine
Differential Revision: D3877153
fbshipit-source-id: a0efb3c
9 years ago
Sam Blackshear
b34a23c1b4
[java frontend] fix read of unused id in exception translation.
...
Reviewed By: jeremydubreil
Differential Revision: D3870333
fbshipit-source-id: 2bddd67
9 years ago
Sam Blackshear
4172650313
[java] treat CatchVar's emitted by Sawja as temporary variables
...
Reviewed By: cristianoc
Differential Revision: D3871548
fbshipit-source-id: 32274ef
9 years ago
Sam Blackshear
2f34e998c2
[quandary] consider builtins to be neither sources nor sinks
...
Reviewed By: jeremydubreil
Differential Revision: D3861787
fbshipit-source-id: 3eb8516
9 years ago
Cristiano Calcagno
b0980bc35e
[tests] Convert c/c++ frontend tests to new format.
...
Reviewed By: sblackshear
Differential Revision: D3876214
fbshipit-source-id: a9032dc
9 years ago
Cristiano Calcagno
afebcdad60
[tests] Prepare objective-c tests for conversion to the new direct testing format
...
Summary:
Rename symbols in test files so they are not duplicated and files can be analyzed together without affecting analysis results.
Fix some compilation errors, where files could be analyzed but would fail direct compilation.
Add Makefile mimicking the same analysis parameters used for the existing tests.
Reviewed By: dulmarod
Differential Revision: D3869993
fbshipit-source-id: 6db1baf
9 years ago
Cristiano Calcagno
ec67521c6f
[backend] Fix issue where the attribute of a procedure definition could be overwritten with the attribute of a declaration
...
Reviewed By: sblackshear
Differential Revision: D3856374
fbshipit-source-id: a8a0a52
9 years ago
Josh Berdine
8589dc4868
Remove Tstruct in favor of Tvar
...
Summary:
This diff removes the redundancy in the representation of types where
struct types could be represented either directly using Tstruct or
indirectly using Tvar to refer to the type environment. A consequence
is that it is much harder to construct large type values.
Reviewed By: sblackshear, cristianoc
Differential Revision: D3839753
fbshipit-source-id: cf04ea5
9 years ago
Sam Blackshear
41c121bebf
[quandary] adding quandary summaries to specs
...
Reviewed By: jeremydubreil
Differential Revision: D3851178
fbshipit-source-id: 8a17357
9 years ago
Sam Blackshear
d6d7293633
[quandary] moving logging of errors into analysis
...
Reviewed By: jeremydubreil
Differential Revision: D3850807
fbshipit-source-id: d34f1ab
9 years ago
Sam Blackshear
31435fa936
[quandary] summaries for interprocedural analysis
...
Reviewed By: mbouaziz
Differential Revision: D3838659
fbshipit-source-id: 2382a81
9 years ago
Sam Blackshear
4f8370e524
[utils] add find_mapi_opt utility
...
Reviewed By: jeremydubreil
Differential Revision: D3851678
fbshipit-source-id: dcf1c6d
9 years ago
Sam Blackshear
ef8b215ee1
[utils] add fold_left_i utility
...
Reviewed By: jeremydubreil
Differential Revision: D3851332
fbshipit-source-id: a5649e7
9 years ago
Sam Blackshear
55a46d1211
[quandary] format for summaries
...
Reviewed By: mbouaziz
Differential Revision: D3838520
fbshipit-source-id: 7cd8bcb
9 years ago
Josh Berdine
f1c10738c5
Exclude autosave files from repl build
...
Reviewed By: akotulski
Differential Revision: D3837333
fbshipit-source-id: a046d49
9 years ago
Dulma Churchill
f99d3a7c8e
Add an option clang-frontend-action to drive the frontend into capture or linters when the -a capture option is used
...
Reviewed By: jberdine
Differential Revision: D3828294
fbshipit-source-id: 6b471e5
9 years ago
Sam Blackshear
27cfb141da
richer sink specifications
...
Reviewed By: jeremydubreil
Differential Revision: D3831688
fbshipit-source-id: 199f1a5
9 years ago
Josh Berdine
4706f25bf7
Normalize struct field types to be shallow
...
Reviewed By: cristianoc
Differential Revision: D3791867
fbshipit-source-id: 3f115b1
9 years ago
Josh Berdine
548338bb4e
Move mk_struct to Tenv
...
Summary:
Rename Typ.mk_struct to internal_mk_struct, and add Tenv.mk_struct that
ensures types are added to the environment under the right name.
Reviewed By: cristianoc
Differential Revision: D3791865
fbshipit-source-id: fd4b667
9 years ago
Josh Berdine
30b3881e52
Make Typ.struct_typ private and add Typ.mk_struct
...
Reviewed By: cristianoc
Differential Revision: D3791863
fbshipit-source-id: d792aea
9 years ago
Josh Berdine
ad31aeb2a2
Expand Tvar to Tstruct as needed
...
Reviewed By: cristianoc
Differential Revision: D3809096
fbshipit-source-id: 7a8d2ac
9 years ago
Sam Blackshear
30ff9eda22
fix type of array store
...
Reviewed By: jeremydubreil
Differential Revision: D3826437
fbshipit-source-id: b36e093
9 years ago
Lázaro Clapp Jiménez Labora
2f90dde351
Add top of file documentation for crashcontext.mli
...
Reviewed By: jeremydubreil
Differential Revision: D3826480
fbshipit-source-id: fa17ae5
9 years ago
Sam Blackshear
3368548e3e
replace stackop instruction with skip instruction
...
Reviewed By: cristianoc
Differential Revision: D3828544
fbshipit-source-id: 5a1d05f
9 years ago
Sam Blackshear
87248009b7
fixing issue where crashcontext breaks without -o
...
Reviewed By: lazaroclapp
Differential Revision: D3823554
fbshipit-source-id: 8c0b329
9 years ago
Sam Blackshear
e918624076
abducted -> abduced
...
Reviewed By: jeremydubreil
Differential Revision: D3828585
fbshipit-source-id: b76b256
9 years ago
Sam Blackshear
1e4b4df427
fixing handling of aliasing for frontend tmp vars
...
Reviewed By: cristianoc
Differential Revision: D3824558
fbshipit-source-id: 624df00
9 years ago
Dulma Churchill
e18381ab67
Fix compilation problem with buck compilation database and travis
...
Reviewed By: akotulski
Differential Revision: D3827599
fbshipit-source-id: 8fc70db
9 years ago
Cristiano Calcagno
0b7ea202db
Convert infer c++ tests to new format
...
Reviewed By: jberdine
Differential Revision: D3803636
fbshipit-source-id: 5cc201d
9 years ago
Sam Blackshear
8ab9a6c714
remove some commented logging code
...
Reviewed By: jeremydubreil
Differential Revision: D3822731
fbshipit-source-id: b6f5849
9 years ago
Dulma Churchill
f6636c6d41
Store the issue file only if there are issues
...
Reviewed By: jberdine
Differential Revision: D3819698
fbshipit-source-id: 63b9e3d
9 years ago
Dulma Churchill
6c4762b9de
Remove compilation warning
...
Reviewed By: jberdine
Differential Revision: D3821408
fbshipit-source-id: ec41f6c
9 years ago
Dulma Churchill
13de8a0835
Fix cpp models that got broken by an incorrect refactoring
...
Reviewed By: jberdine
Differential Revision: D3819759
fbshipit-source-id: aa577dc
9 years ago
Josh Berdine
8a85919001
Pass tenv to everywhere that matches on Tstruct
...
Reviewed By: cristianoc
Differential Revision: D3809094
fbshipit-source-id: b3a8449
9 years ago
Josh Berdine
2bebd94553
Remove redundant Typ.struct_typ.csu field
...
Summary:
The Typ.struct_typ.csu field is now redundant with the Csu.t in the
name: Typename.t field.
Reviewed By: cristianoc
Differential Revision: D3791861
fbshipit-source-id: 5370885
9 years ago
Josh Berdine
f0940f25d7
Replace optional mangled struct_name with typename
...
Summary: Replace the struct_name: Mangled.t option field of Typ.struct_typ with name: Typename.t
Reviewed By: sblackshear
Differential Revision: D3791860
fbshipit-source-id: 3ee1d00
9 years ago