Skip to content

Commit

Permalink
{set,get}priority
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-schwarz committed Oct 1, 2023
1 parent 23491d8 commit 3a4daa6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/analyses/libraryFunctions.ml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ let c_descs_list: (string * LibraryDesc.t) list = LibraryDsl.[
("atoi", unknown [drop "nptr" [r]]);
("atol", unknown [drop "nptr" [r]]);
("atoll", unknown [drop "nptr" [r]]);
("setlocale", unknown [drop "category" []; drop "locale" [r]]);
]

(** C POSIX library functions.
Expand Down Expand Up @@ -332,7 +333,9 @@ let posix_descs_list: (string * LibraryDesc.t) list = LibraryDsl.[
("ntohs", unknown [drop "netshort" []]);
("sleep", unknown [drop "seconds" []]);
("usleep", unknown [drop "usec" []]);
("nanosleep", unknown [drop "req" [r]; drop "rem" [w]])
("nanosleep", unknown [drop "req" [r]; drop "rem" [w]]);
("setpriority", unknown [drop "which" []; drop "who" []; drop "prio" []]);
("getpriority", unknown [drop "which" []; drop "who" []]);
]

(** Pthread functions. *)
Expand Down Expand Up @@ -1089,7 +1092,6 @@ let invalidate_actions = [
"sched_yield", readsAll;(*safe*)
"sigdelset", readsAll;(*safe*)
"sigwait", writesAllButFirst 1 readsAll;(*drop 1*)
"setlocale", readsAll;(*safe*)
"bindtextdomain", readsAll;(*safe*)
"textdomain", readsAll;(*safe*)
"dcgettext", readsAll;(*safe*)
Expand Down Expand Up @@ -1171,8 +1173,6 @@ let invalidate_actions = [
"__VERIFIER_nondet_int", readsAll; (* no args, declare invalidate actions to prevent invalidating globals when extern in regression tests *)
(* no args, declare invalidate actions to prevent invalidating globals *)
"isatty", readsAll;
"setpriority", readsAll;
"getpriority", readsAll;
(* ddverify *)
"sema_init", readsAll;
"__goblint_assume_join", readsAll;
Expand Down

0 comments on commit 3a4daa6

Please sign in to comment.