894 Commits (42947ea9d97b6c5782c2084fe929e88b914c9093)

Author SHA1 Message Date
Josh Berdine 97639ba236 ppx_compare Paths
8 years ago
Josh Berdine b94b5f1c58 ppx_compare Procdesc
8 years ago
Josh Berdine 344e724a85 ppx_compare Prop
8 years ago
Josh Berdine aa5998a9d1 ppx_compare Sil
8 years ago
Josh Berdine 6298d043e6 ppx_compare PredSymb
8 years ago
Josh Berdine 952855288d ppx_compare StructTyp
8 years ago
Josh Berdine cbec3453a3 ppx_compare Typ
8 years ago
Josh Berdine 0cf71c74ef Sort nodes when printing cfg to dot file
8 years ago
Josh Berdine 27da735427 ppx_compare InferPrint
8 years ago
Josh Berdine a1e223d36d ppx_compare Ident
8 years ago
Josh Berdine 1ca67fbfa6 ppx_compare DB
8 years ago
Jeremy Dubreil e269f2a3fd [infer][java] basic support to run Infer using Buck genrules
8 years ago
Andrzej Kotulski d4c634e50f [DB] Cleanup code related to --changed-files-index
8 years ago
Andrzej Kotulski 6192cb98b4 [DB] Use realpath when calling source_file_from_abs_path
8 years ago
Dulma Churchill 8415b6c38b [backend] do not log analysis_stops in debug_exceptions mode
8 years ago
Andrzej Kotulski a8b0871660 [reactive capture] Pass compilation db files to InferAnalyze, use absolute fnames
8 years ago
Jeremy Dubreil afd29e71de [infer][backend] Simplify the code doing the case analysis for execturing the cast instruction
8 years ago
Andrzej Kotulski 7a0a89e567 [DB.source_file] Explicitly specify what path is relative to, keep cpp model paths relative
8 years ago
Cristiano Calcagno 31e6f19ab2 [debug] Don't keep a copy of source files in the results directory
8 years ago
Andrzej Kotulski cd6e9e8b21 [InferPrint] Kill --source-file-copy option
8 years ago
Andrzej Kotulski b2cef3e0b2 [DB] Alawys use DB.source_file_to_abs_path to do actual filesystem operations
8 years ago
Sam Blackshear a6121a9fb0 [guarded-by] support `Classname.fieldname` syntax
8 years ago
Jules Villard 86cb2f4938 [toplevel] fix various things
8 years ago
Josh Berdine 1bbbf658de [report] Fix report script and inherit std file descriptors when invoking
8 years ago
Sam Blackshear 708c0bf1f8 [backend] eliminate phantom spaces in printing of types
8 years ago
Josh Berdine d808baba1a [driver] Make analysis of non-java and buck cdb build modes python-clean
8 years ago
Josh Berdine cb412826c3 [driver] Make `infer -- analyze` almost python-clean
8 years ago
Peter O'Hearn 733646ba09 [GuardedBy] Fix Subclassing False positive
8 years ago
Jules Villard 15d80e04df [tests] record summary of bug traces
8 years ago
Andrzej Kotulski 4512fcd8ef [tests] Create integration tests for clang translation logic
8 years ago
Peter O'Hearn 7a04ed32f5 [threadsafety] interprocedural
8 years ago
Jules Villard 281d5b49fe [tests] sort bugs in InferPrint
8 years ago
Peter O'Hearn 171d1d6d43 [threadsafety] run thread safety checker on its own
8 years ago
Dulma Churchill b792d04fbd [clang] Integration with xcpretty and compilation database
8 years ago
Jeremy Dubreil 21a568aba8 [infer][java] Fix spurious class cast excpetion reports when casting arrays of primitive types
8 years ago
Jules Villard caf9537305 [refactoring] add make_trace_element to Errlog
9 years ago
Cristiano Calcagno c5159bae1c [IR] Move Procdesc module to a separate file.
9 years ago
Sam Blackshear 8784b9b946 [backend] fix cursor leak FPs
9 years ago
Jules Villard 54c3ac41f2 [inferprint] do not print all specs when passed individual specs files
9 years ago
Josh Berdine 16010adab4 [refactor] InferAnalyze init code to InferAnalyzeExe
9 years ago
Josh Berdine b2680d72d0 [config] Make Config.analyzer non-optional, with None = Some Infer
9 years ago
Josh Berdine f22d03903a [logging] Delay creation of log files until they are used
9 years ago
Josh Berdine 426f29fb3c [make] Silence expected warnings and other spew from tests
9 years ago
Cristiano Calcagno 7e4710004e [perf] Use load average limit only during buck analysis
9 years ago
Andrzej Kotulski 459ec32081 kill Location.nLOC
9 years ago
Sam Blackshear f35a969def [context leaks] don't report context leak if reachable context type is null
9 years ago
Cristiano Calcagno 1b07f78e32 [backend] Fix back-end issue where summaries are modified before saving to disk, but not in the table in memory.
9 years ago
Jules Villard d5e7ee0d82 [tests] run tests using report.json and record all bugs + exceptions
9 years ago
Dulma Churchill bf14034289 [clang] Do compilation database capture in OCaml directly
9 years ago
Jules Villard e757d92e72 [print] print tests results from result.json, not the specs
9 years ago
Jules Villard 2cd0151e30 [python] restore project_root option and use it to find source files
9 years ago
Jules Villard 2f5d132734 [config] normalize all paths options
9 years ago
Jeremy Dubreil 15ddf8b921 [infer][backend] More functions from the Specs module taking a summary as parameter
9 years ago
Cristiano Calcagno af54b5da4b [backend] Change path iteration to get shorter error traces.
9 years ago
Josh Berdine 3ae2b41241 [refactor] Call StatsAggregator from Infer instead of from python
9 years ago
Jeremy Dubreil 9baea70548 [infer][backend] More consistent API to check if a procedure is currently being analyzed
9 years ago
Andrzej Kotulski 80f25d17fd [tests] Create simple compilation database integration test
9 years ago
Cristiano Calcagno e933ee958a [IR] Rearrange the cfg module to make nodes, procd descs, and cfgs independent types.
9 years ago
Josh Berdine 7c4c40b6b0 [refactor] Move StatsAggregator from scripts to backend
9 years ago
Josh Berdine 9f42c047fe [refactor] InferAnalyze initialization code into separate Exe module
9 years ago
Josh Berdine e9654ca51d [refactor] Separate InferPrint initialization code into separate Exe module
9 years ago
Josh Berdine bf40ff99e7 [reporting] Create report files from InferPrint not Config
9 years ago
Josh Berdine 216812a615 [driver] Add skeleton capture and analysis driver to infer.ml
9 years ago
Josh Berdine 7fc5b4d55d [siof] Make siof reporting closer to other checkers
9 years ago
Josh Berdine ae7979b416 [multicore] Use Config.bin_dir to find InferAnalyze
9 years ago
Josh Berdine 6b0abe3b57 [config] Do not pass options to clusters via INFER_OPTIONS
9 years ago
Josh Berdine b7675dd2a2 [config] Remove unused --absolute-paths option
9 years ago
Josh Berdine 2ce94632d2 [config] Default project_root to initial working dir
9 years ago
Cristiano Calcagno a71902355f [debug][dotty] Fix issue in dotty output where overloaded functions were conflated
9 years ago
Cristiano Calcagno d1f8894a9a [debug][html] Distinguish debug html files for same node in different procedures
9 years ago
Peter O'Hearn 2d424b7779 skipping ReadWrite Locks
9 years ago
Cristiano Calcagno 73c5dfdfa4 [IR] Remove use of Cfg.Node.get_proc_desc
9 years ago
Peter O'Hearn e91742afea Support @SuppressLint("InvalidAccessToGuardedField")
9 years ago
Josh Berdine 4422893bbd [RFC] Remove CSV and JSON munging python code
9 years ago
Andrzej Kotulski 08d4465e1d [refactor] Refactor SymExec Sil.Call pattern match
9 years ago
Andrzej Kotulski 46592ffdd9 [backend] Split construction of builtin pnames and builtin registration
9 years ago
Sam Blackshear 7ae58d78c3 [infer] fix .class synchronization false-positive in guarded-by check
9 years ago
Jules Villard a9f3a70b93 [checkers] print checkers summary in InferPrint
9 years ago
Andrzej Kotulski ed29bfef52 [logging] Provide binary type to logging module
9 years ago
Cristiano Calcagno 3fb8801b6c [IR] Change cfg representation so the node number is per-procedure and not per-cfg
9 years ago
Ryan Rhee 5580be8dcc [componentkit] Initializer With Side-Effect Analyzer
9 years ago
Josh Berdine af2e9ae5c1 [config] Dynamic dispatch methods are mutually exclusive
9 years ago
Jeremy Dubreil 6ae0ebe489 [infer][java] Store the procedure descriptions in the summary to run the analyis with lazy dynamic dispatch across modules
9 years ago
Jules Villard 84af7c56f8 [SIOF] detect which variables need initialization
9 years ago
Cristiano Calcagno ecda199e9d [IR] Clean up unused parts of Cfg
9 years ago
Sam Blackshear 355ab92130 [backend] move expression pretty-printing into exp module
9 years ago
Cristiano Calcagno 47c623ff51 [Merge] Use multilink files to speed up merge with buck projects.
9 years ago
Josh Berdine a9192cffd6 [config] Eliminate ad hoc environment variables
9 years ago
Ryan Rhee c2a8dae26f [componentkit] Multiple factory methods
9 years ago
Josh Berdine a7c1105147 [config] Combine analyze_models into models_mode
9 years ago
Ryan Rhee e73350598a [componentkit] Unconventional superclass rule
9 years ago
Andrzej Kotulski 4aaec9b220 [python] Remove args that were not used in python code
9 years ago
Cristiano Calcagno 0572410ac0 [backend] Clean up the forward tabulation algorithm for the intraprocedural analysis.
9 years ago
Jules Villard c45afc9859 [clang] cleanup obsolete python code
9 years ago
Jules Villard 5fe40bae12 [siof] check origin of globals and complain if potential siof
9 years ago
Jules Villard 343556e0b2 [base] resolve links when guessing which executable we are running, move infer into bin/
9 years ago
Jeremy Dubreil 587d829a1a [infer][java] Add the possibility to choose a compiler jar that is different from the system Java compiler to generate the bytecode
9 years ago
Sam Blackshear 6918c117d2 [preanalysis] add option for sound dynamic dipatch handling
9 years ago
Andrzej Kotulski 0f9f44f16e [backend] Report ignored return value on skip functions
9 years ago
Josh Berdine dd8b8e6d2e [reason] reformat with new version of reason
9 years ago
Peter O'Hearn 07da8f36d1 don't warn on GuardedBy self reference
9 years ago
Sam Blackshear 727af5d660 [checkers] clean up abstract interpreter
9 years ago
Cristiano Calcagno 91d711c833 [backend] Perf fix: only load tenv and cfg files once per each file, instead of once per procedure.
9 years ago
Jules Villard c53bfe3159 [clang] rewrite plugin attachment logic in OCaml
9 years ago
Dulma Churchill caa7534a71 [cpp] Report issues in the cpp models as relative paths
9 years ago
Josh Berdine de56a302f3 [refactor] Remove unused prop reporting, and refactor
9 years ago
Sam Blackshear 95a82a6a04 [backend] don't run preanalysis twice
9 years ago
Josh Berdine d8336ea906 [backend] Keep common constraints in pure join
9 years ago
Jules Villard eb391d7875 [llvm] delete llvm frontend
9 years ago
Dulma Churchill a9f1d21dd2 [logging] Add visibility to the report json, so that we can filter the developer bugs in the tv links page
9 years ago
Jules Villard d9f83094b5 [clang] do not depend on Config.clang_lang and Config.source_file
9 years ago
Jules Villard 7d49e16d63 [clang] rewrite hijack_and_normalize_clang_command in OCaml
9 years ago
Dulma Churchill bd22999950 [clang] Disable the condition always true or false check for clang as it is too noisy.
9 years ago
Andrzej Kotulski 18f6190432 move code that depends on backend/ out from IR/Cfg.re
9 years ago
Andrzej Kotulski b93d6b5012 [ocaml] Create base/ directory for code shared across analyzer and frontends
9 years ago
Jeremy Dubreil ea72dadab3 [infer] Add the possibility to skip the analysis of some files based on their path
9 years ago
Dino Distefano 777378e7cc Do not crash unless in debug mode
9 years ago
Jules Villard f59c18cc44 [utils] return process exit status in with_process_{in,full} helpers
9 years ago
Josh Berdine 3ddc23d7e5 [IR] Do not use JBasics.java_lang_object in IR/backend
9 years ago
Ryan Rhee b635269fa8 [clang][frontend] Allow custom blacklist for checking objc descendant
9 years ago
Ryan Rhee 272c21ff70 [componentkit] Factory functions analyzer
9 years ago
Dulma Churchill befab1007b [clang] Migrating clang logging to the Logging module
9 years ago
Josh Berdine 67a883e1a2 [models] Use return type for ObjC models
9 years ago
Josh Berdine c094a38d56 [IR] Simplify to single return id, with type
9 years ago
Josh Berdine ae632e281a [IR] Refactor Typ.struct_typ into separate module
9 years ago
Josh Berdine 44e2c32524 [IR] Refactor annotation types into separate module
9 years ago
Josh Berdine 74c8198826 [IR] Remove redundant struct_typ.name field
9 years ago
Josh Berdine af51599e0f [backend] Remove AttributesTable.get_tenv
9 years ago
Jeremy Dubreil 168c613ac9 [infer][java] Separate the builtins from the other models for a better modularity
9 years ago
Dulma Churchill a2ee69975a [clang] Remove support for logging lint issues in procdescs
9 years ago
Dulma Churchill 8554c1e342 [Parallelization][Linters] Wait for processes based on the map of processes, to make sure that we waited for all the children.
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.
9 years ago
Dulma Churchill 526cf6da6a [Config] Adding a default for the option load
9 years ago
Cristiano Calcagno bd0215a826 [IR] Add notion of file captured to procedure attributes.
9 years ago
Josh Berdine f30b6e39db More robust logging to files
9 years ago
Sam Blackshear 95f6639d6d [backend] refactoring debug html printing to make it easier to call from anywhere
9 years ago
Cristiano Calcagno fe21442d47 [tests] Convert the linter tests to the new direct format
9 years ago
Cristiano Calcagno b0980bc35e [tests] Convert c/c++ frontend tests to new format.
9 years ago
Cristiano Calcagno afebcdad60 [tests] Prepare objective-c tests for conversion to the new direct testing format
9 years ago
Josh Berdine 8589dc4868 Remove Tstruct in favor of Tvar
9 years ago
Sam Blackshear 41c121bebf [quandary] adding quandary summaries to specs
9 years ago
Sam Blackshear 4f8370e524 [utils] add find_mapi_opt utility
9 years ago
Sam Blackshear ef8b215ee1 [utils] add fold_left_i utility
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
9 years ago
Josh Berdine 548338bb4e Move mk_struct to Tenv
9 years ago
Josh Berdine 30b3881e52 Make Typ.struct_typ private and add Typ.mk_struct
9 years ago
Josh Berdine ad31aeb2a2 Expand Tvar to Tstruct as needed
9 years ago
Sam Blackshear 30ff9eda22 fix type of array store
9 years ago
Lázaro Clapp Jiménez Labora 2f90dde351 Add top of file documentation for crashcontext.mli
9 years ago
Sam Blackshear 3368548e3e replace stackop instruction with skip instruction
9 years ago
Sam Blackshear 87248009b7 fixing issue where crashcontext breaks without -o
9 years ago
Sam Blackshear e918624076 abducted -> abduced
9 years ago
Cristiano Calcagno 0b7ea202db Convert infer c++ tests to new format
9 years ago
Dulma Churchill f6636c6d41 Store the issue file only if there are issues
9 years ago
Dulma Churchill 6c4762b9de Remove compilation warning
9 years ago
Dulma Churchill 13de8a0835 Fix cpp models that got broken by an incorrect refactoring
9 years ago
Josh Berdine 8a85919001 Pass tenv to everywhere that matches on Tstruct
9 years ago
Josh Berdine 2bebd94553 Remove redundant Typ.struct_typ.csu field
9 years ago
Josh Berdine f0940f25d7 Replace optional mangled struct_name with typename
9 years ago
Josh Berdine 90314a4d94 Catch Unix exceptions in DB.create_dir
9 years ago
Dulma Churchill d11b2754a9 New buck integration based on the compilation database emitted by buck
9 years ago
Sam Blackshear 50ac3cde41 command-line setup
9 years ago
Cristiano Calcagno 20c33f15c9 Fix flakiness in the analysis when a procedure is defined in more than one file.
9 years ago
Dulma Churchill 977f73ff5b Add column to json file of issues
9 years ago
Andrzej Kotulski 7461d40024 Clean up special handling of smart pointers in backend
9 years ago
Jules Villard 4fe1615434 give correct type to root exps of array dereferences
9 years ago
Cristiano Calcagno 674f30de2c Convert java infer tests to the new direct format
9 years ago
Josh Berdine 377d284cf2 Simplify originator detection
9 years ago
Sam Blackshear 15b6a8cdd7 killing a bunch of options by using optional argument types correctly
9 years ago
Jules Villard a6bf43a570 replace boolean by named argument in Inteproc.propagate
9 years ago
Lázaro Clapp Jiménez Labora f2e958ef3a Add support for multiple stacktraces in '-a crashcontext'
9 years ago
Cristiano Calcagno a6254f6b73 Extend Inferprint with a command --issues-tests to print issues in a format suitable for tests
9 years ago
Andrzej Kotulski a31c5416b1 Add basic support for starting ocaml repl with infer code
9 years ago
Jules Villard c2ca6a23d5 pass -l to infer.py
9 years ago
Cristiano Calcagno ed8d112e87 Convert Inferprint and Inferanalyze to Reason
9 years ago
Jules Villard 26a6594b90 detect unsigned values inside structured expressions
9 years ago
Jules Villard e1f19192c0 move --fail-on-issue functionality to OCaml
9 years ago
Cristiano Calcagno 91d9cd83b5 Cleanup instruction names: use Load/Store instead of Letderef/Set.
9 years ago
Andrzej Kotulski 761579469e Revert "[C++] Move models of smart pointers to custom namespace"
9 years ago
Jules Villard 3f60f54fbf align --help and support -h
9 years ago
Cristiano Calcagno 6221956149 Apply type resolution to qualify fields and variants in Prop.
9 years ago
Sam Blackshear 3b12208e1b intraprocedural taint analysis that records sources
9 years ago
Jules Villard dda4921786 exit with correct error code when infer.py fails
9 years ago
Jules Villard 0add05de87 do not print infer.py usage message on wrong arguments
9 years ago
Jules Villard 145cb744f6 do not havoc actuals of skip functions with const parameters
9 years ago
Dulma Churchill b7ec110ea3 Adding new mode linters
9 years ago
Dulma Churchill 3d39fba622 Refactor InferPrint and store the lint issues in a serialized data structure that InferPrint picks up and prints.
9 years ago
Andrzej Kotulski 121c968e77 Move models of smart pointers to custom namespace
9 years ago
Lázaro Clapp Jiménez Labora 175efddc2b Make stacktrace and stacktree line number an int option.
9 years ago
Jules Villard cdce8f9794 better help
9 years ago
Cristiano Calcagno 66385dd5f4 Refactor module Prop by moving normalization functions into module Normalize.
9 years ago
Cristiano Calcagno b48ec1ac93 Clean up API to access components of propositions.
9 years ago
Cristiano Calcagno 89270c558c Add module Core in Prop to make transitions between exposed and normalized explicit.
9 years ago
Josh Berdine a9a38f20ec Simplify normalization in Attribute.remove
9 years ago
Josh Berdine 3896b10265 Move Prop.Attribute to toplevel
9 years ago
Josh Berdine 60496f2ae4 Minor cleanup of Prop.Attributes interface
9 years ago
Josh Berdine 4053d24bed Refactor Prop ops on attributes into sub-module
9 years ago
Josh Berdine c147ab4197 Refactor Sil.attribute and associates to PredSymb
9 years ago
Josh Berdine 25a52c7bbc Refactor operations on Exp.t in Sil to Exp
9 years ago
Josh Berdine f9ca08a9a8 Refactor Exp.t-keyed collections from Sil to Exp
9 years ago