Skip to content

Commit

Permalink
Remove pthread_mutexattr_t from is_mutex_type
Browse files Browse the repository at this point in the history
  • Loading branch information
sim642 committed Aug 2, 2023
1 parent 95aafbc commit 2ed68e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cdomains/valueDomain.ml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ struct
| _ -> false

let is_mutex_type (t: typ): bool = match t with
| TNamed (info, attr) -> info.tname = "pthread_mutex_t" || info.tname = "spinlock_t" || info.tname = "pthread_spinlock_t" || info.tname = "pthread_cond_t" || info.tname = "pthread_mutexattr_t"
| TNamed (info, attr) -> info.tname = "pthread_mutex_t" || info.tname = "spinlock_t" || info.tname = "pthread_spinlock_t" || info.tname = "pthread_cond_t"
| TInt (IInt, attr) -> hasAttribute "mutex" attr
| _ -> false

Expand Down

0 comments on commit 2ed68e0

Please sign in to comment.