Skip to content

Commit

Permalink
Make sem.unknown_function.call option
Browse files Browse the repository at this point in the history
  • Loading branch information
karoliineh committed Aug 14, 2023
1 parent 1ef0f6d commit e11c982
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/analyses/libraryFunctions.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1165,7 +1165,8 @@ let unknown_desc ~f name = (* TODO: remove name argument, unknown function shoul
| Read when GobConfig.get_bool "sem.unknown_function.read.args" -> args
| Read -> []
| Free -> []
| Call -> [] (* TODO: option *)
| Call when get_bool "sem.unknown_function.call.args" -> args
| Call -> []
| Spawn when get_bool "sem.unknown_function.spawn" -> args
| Spawn -> []
in
Expand Down
7 changes: 7 additions & 0 deletions src/util/options.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1317,6 +1317,13 @@
"type": "boolean",
"default": true
},
"call": {
"title": "sem.unknown_function.call",
"description":
"Unknown function call calls reachable functions",
"type": "boolean",
"default": true
},
"invalidate": {
"title": "sem.unknown_function.invalidate",
"type": "object",
Expand Down

0 comments on commit e11c982

Please sign in to comment.