math: remove the get_implied_value_low_overhead() function
[smatch.git] / validation / sm_user_data2.c
blob65fca8ab7678d177d82e9cc81085a5274d9b08bd
1 #include "check_debug.h"
3 int copy_from_user(void *dest, void *src, int size){}
5 struct my_struct {
6 int x, y;
7 };
9 void *pointer;
10 struct my_struct *dest;
12 struct my_struct *returns_copy(void)
14 copy_from_user(dest, pointer, sizeof(*dest));
15 return dest;
18 struct my_struct *a;
19 void test(void)
21 a = returns_copy();
22 __smatch_user_rl(a->x);
26 * check-name: smatch user data #2
27 * check-command: smatch -p=kernel -I.. sm_user_data2.c
29 * check-output-start
30 sm_user_data2.c:22 test() user rl: 'a->x' = 's32min-s32max'
31 * check-output-end