blob: 671be3c3057510e7935897110657e2e39ab6f02c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
struct Data1
{
int val;
};
int k;
int func1(struct Data1 *ptr1, struct Data1 *ptr2)
{
struct Data1 *ptr3 = ptr1;
}
int func2(struct Data1 *ptr1, struct Data1 *ptr2)
{
struct Data1 *ptr3 = ptr1;
ptr3->val = 100;
}
int func3(struct Data1 *ptr1, struct Data1 *ptr2)
{
struct Data1 *ptr3 = ptr1;
if (ptr3)
ptr3->val = 100;
}
int func4(struct Data1 *ptr1, struct Data1 *ptr2)
{
struct Data1 *ptr3 = ptr1;
if (ptr3)
ptr3->val = 100;
else if (!ptr1 && ptr2)
ptr2->val = 200;
}
int func5(struct Data1 *ptr1, struct Data1 *ptr2)
{
if (!ptr1 || k == 10)
return 0;
struct Data1 *ptr3 = ptr1;
ptr3->val = 100;
}
int func6(struct Data1 *ptr1, struct Data1 *ptr2)
{
if (ptr1 || k == 10)
return 0;
struct Data1 *ptr3 = ptr1;
ptr3->val = 100;
}
int func7(struct Data1 *ptr1, struct Data1 *ptr2)
{
int c;
if (k != c)
{
if (!ptr1)
return 0;
}
struct Data1 *ptr3 = ptr1;
ptr1->val = 100;
ptr3->val = 200;
}
int func8(struct Data1 *ptr1, struct Data1 *ptr2)
{
int c;
if (k != c)
{
if (ptr1)
return 0;
}
struct Data1 *ptr3 = ptr1;
ptr1->val = 100;
ptr3->val = 200;
}
|