We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 271cc17 commit 808b5d2Copy full SHA for 808b5d2
src/analyses/ptranalAnalysis.ml
@@ -2,6 +2,8 @@
2
3
Useful for sound analysis of function pointers without base. *)
4
5
+(* TODO: fix unsoundness on some bench repo examples: https://github.com/goblint/analyzer/pull/1063 *)
6
+
7
open GoblintCil
8
open Analyses
9
@@ -15,6 +17,7 @@ struct
15
17
match q with
16
18
| Queries.EvalFunvar (Lval (Mem e, _)) ->
19
let funs = Ptranal.resolve_exp e in
20
+ (* TODO: filter compatible function pointers by type? *)
21
List.fold_left (fun xs f -> Queries.AD.add (Queries.AD.Addr.of_var f) xs) (Queries.AD.empty ()) funs
22
| _ -> Queries.Result.top q
23
0 commit comments