forked from facebook/infer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[annotreach] kill custom path sensitivity
Summary: The domain supported path sensitivity wrt to a specific boolean guard `Branch.unlikely`. This isn't used in actual code, so remove it. Also - add an .mli to the domain; - unabbreviate domain name to match analyser name; - use Payload.read instead of calling Ondemand directly; - adjust tests. Reviewed By: mbouaziz Differential Revision: D16203953 fbshipit-source-id: 743aa4400
- Loading branch information
1 parent
3e7f500
commit 4f46567
Showing
10 changed files
with
54 additions
and
208 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
(* | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*) | ||
|
||
open! IStd | ||
module CallSites = AbstractDomain.FiniteSetOfPPSet (CallSite.Set) | ||
module SinkMap = AbstractDomain.MapOfPPMap (Typ.Procname.Map) (CallSites) | ||
include AbstractDomain.Map (Annot) (SinkMap) | ||
|
||
let add_call_site annot sink call_site annot_map = | ||
let sink_map = find_opt annot annot_map |> Option.value ~default:SinkMap.empty in | ||
if SinkMap.mem sink sink_map then annot_map | ||
else | ||
let sink_map' = SinkMap.singleton sink (CallSites.singleton call_site) in | ||
add annot sink_map' annot_map |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
(* | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*) | ||
|
||
open! IStd | ||
|
||
module CallSites : AbstractDomain.FiniteSetS with type elt = CallSite.t | ||
|
||
module SinkMap : AbstractDomain.MapS with type key = Typ.Procname.t and type value = CallSites.t | ||
|
||
include AbstractDomain.MapS with type key = Annot.t and type value = SinkMap.t | ||
|
||
val add_call_site : Annot.t -> Typ.Procname.t -> CallSite.t -> t -> t |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.