-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into issue-1374-2
- Loading branch information
Showing
122 changed files
with
3,190 additions
and
1,115 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,146 @@ | ||
{ | ||
"ana": { | ||
"sv-comp": { | ||
"enabled": true, | ||
"functions": true | ||
}, | ||
"int": { | ||
"def_exc": true, | ||
"enums": false, | ||
"interval": true | ||
}, | ||
"float": { | ||
"interval": true | ||
}, | ||
"activated": [ | ||
"base", | ||
"threadid", | ||
"threadflag", | ||
"threadreturn", | ||
"mallocWrapper", | ||
"mutexEvents", | ||
"mutex", | ||
"access", | ||
"race", | ||
"escape", | ||
"expRelation", | ||
"mhp", | ||
"assert", | ||
"var_eq", | ||
"symb_locks", | ||
"region", | ||
"thread", | ||
"threadJoins" , | ||
"lin2vareq" | ||
], | ||
"path_sens": [ | ||
"mutex", | ||
"malloc_null", | ||
"uninit", | ||
"expsplit", | ||
"activeSetjmp", | ||
"memLeak", | ||
"threadflag" | ||
], | ||
"context": { | ||
"widen": false | ||
}, | ||
"malloc": { | ||
"wrappers": [ | ||
"kmalloc", | ||
"__kmalloc", | ||
"usb_alloc_urb", | ||
"__builtin_alloca", | ||
"kzalloc", | ||
|
||
"ldv_malloc", | ||
|
||
"kzalloc_node", | ||
"ldv_zalloc", | ||
"kmalloc_array", | ||
"kcalloc", | ||
|
||
"ldv_xmalloc", | ||
"ldv_xzalloc", | ||
"ldv_calloc", | ||
"ldv_kzalloc" | ||
] | ||
}, | ||
"base": { | ||
"arrays": { | ||
"domain": "partitioned" | ||
} | ||
}, | ||
"race": { | ||
"free": false, | ||
"call": false | ||
}, | ||
"autotune": { | ||
"enabled": true, | ||
"activated": [ | ||
"singleThreaded", | ||
"mallocWrappers", | ||
"noRecursiveIntervals", | ||
"enums", | ||
"congruence", | ||
"wideningThresholds", | ||
"loopUnrollHeuristic", | ||
"memsafetySpecification", | ||
"termination", | ||
"tmpSpecialAnalysis" | ||
] | ||
} | ||
}, | ||
"exp": { | ||
"region-offsets": true | ||
}, | ||
"solver": "td3", | ||
"sem": { | ||
"unknown_function": { | ||
"spawn": false | ||
}, | ||
"int": { | ||
"signed_overflow": "assume_none" | ||
}, | ||
"null-pointer": { | ||
"dereference": "assume_none" | ||
} | ||
}, | ||
"witness": { | ||
"graphml": { | ||
"enabled": true, | ||
"id": "enumerate", | ||
"unknown": false | ||
}, | ||
"yaml": { | ||
"enabled": true, | ||
"format-version": "2.0", | ||
"entry-types": [ | ||
"invariant_set" | ||
], | ||
"invariant-types": [ | ||
"loop_invariant" | ||
] | ||
}, | ||
"invariant": { | ||
"loop-head": true, | ||
"after-lock": false, | ||
"other": false, | ||
"accessed": false, | ||
"exact": true, | ||
"exclude-vars": [ | ||
"tmp\\(___[0-9]+\\)?", | ||
"cond", | ||
"RETURN", | ||
"__\\(cil_\\)?tmp_?[0-9]*\\(_[0-9]+\\)?", | ||
".*____CPAchecker_TMP_[0-9]+", | ||
"__VERIFIER_assert__cond", | ||
"__ksymtab_.*", | ||
"\\(ldv_state_variable\\|ldv_timer_state\\|ldv_timer_list\\|ldv_irq_\\(line_\\|data_\\)?[0-9]+\\|ldv_retval\\)_[0-9]+" | ||
] | ||
} | ||
}, | ||
"pre": { | ||
"enabled": false | ||
} | ||
} |
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 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 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 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,31 @@ | ||
(** {{!RelationAnalysis} Relational integer value analysis} using an OCaml implementation of the linear two-variable equalities domain ([lin2vareq]). | ||
@see <http://doi.acm.org/10.1145/2049706.2049710> A. Flexeder, M. Petter, and H. Seidl Fast Interprocedural Linear Two-Variable Equalities. *) | ||
|
||
open Analyses | ||
include RelationAnalysis | ||
|
||
let spec_module: (module MCPSpec) Lazy.t = | ||
lazy ( | ||
let module AD = LinearTwoVarEqualityDomain.D2 | ||
in | ||
let module Priv = (val RelationPriv.get_priv ()) in | ||
let module Spec = | ||
struct | ||
include SpecFunctor (Priv) (AD) (RelationPrecCompareUtil.DummyUtil) | ||
let name () = "lin2vareq" | ||
end | ||
in | ||
(module Spec) | ||
) | ||
|
||
let get_spec (): (module MCPSpec) = | ||
Lazy.force spec_module | ||
|
||
let after_config () = | ||
let module Spec = (val get_spec ()) in | ||
MCP.register_analysis (module Spec : MCPSpec); | ||
GobConfig.set_string "ana.path_sens[+]" (Spec.name ()) | ||
|
||
let _ = | ||
AfterConfig.register after_config |
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,3 @@ | ||
(* This analysis is empty on purpose. It serves only as an alternative dependency | ||
in cases where the actual domain can't be used because of a missing library. | ||
It was added because we don't want to fully depend on Apron. *) |
Oops, something went wrong.