]> andersk Git - splint.git/blame - test/alias.expect
noexpand always false.
[splint.git] / test / alias.expect
CommitLineData
885824d3 1
11db3170 2Finished checking --- no warnings
885824d3 3
4alias.c: (in function f)
5alias.c:11:3: Possible undocumented modification of *a through alias *x: *x = 3
6alias.c:14:3: Possible undocumented modification of *a through alias *y: *y = 4
7alias.c:16:3: Undocumented modification of globp: globp = a
8alias.c:17:25: Function returns with global variable globp aliasing parameter a
9alias.c:21:7: Undocumented modification of globp: globp = z
10alias.c:21:15: Variable z used before definition
11alias.c:25:3: Undocumented modification of *globp: *globp = 4
12alias.c:25:3: Possible undocumented modification of *a through alias *globp:
13 *globp = 4
14alias.c:28:3: Possible undocumented modification of *globp through alias *x:
15 *x = 7
16alias.c:28:3: Possible undocumented modification of *a through alias *x: *x = 7
17alias.c:31:3: Possible undocumented modification of glob through alias *x:
18 *x = 4
19alias.c:38:3: Possible undocumented modification of **c through alias *x:
20 *x = 4
21alias.c:40:3: Possible undocumented modification of **c through alias *a:
22 *a = 4
23alias.c:41:3: Undocumented modification of *globp: *globp = 3
24alias.c:41:3: Possible undocumented modification of *a through alias *globp:
25 *globp = 3
26alias.c:42:12: Function returns with global variable globp aliasing parameter a
27alias.c: (in function h)
28alias.c:49:3: Undocumented modification of a possible from call to mut_mod:
29 mut_mod(a)
30alias.c:51:3: Undocumented modification of b possible from call to mut_mod
31 (through alias a): mut_mod(a)
32alias.c:55:12: Owned storage b not released before return
33 alias.c:52:3: Storage b becomes owned
34
11db3170 35Finished checking --- 19 code warnings, as expected
885824d3 36
37alias2.c: (in function f)
38alias2.c:17:3: Variable lx used before definition
39alias2.c:20:7: Possible undocumented modification of *a through alias *lx:
40 *lx = 4
41alias2.c:29:7: Possible undocumented modification of *a through alias *x:
42 *x = 3
43alias2.c:34:7: Possible undocumented modification of **c through alias *x:
44 *x = 3
45alias2.c:38:3: Possible undocumented modification of *a through alias *x:
46 *x = 4
47alias2.c:38:3: Possible undocumented modification of **c through alias *x:
48 *x = 4
49alias2.c:41:8: Undocumented modification of **c: **c = b
50alias2.c:43:7: Possible undocumented modification of glob through alias *y:
51 *y = 3
52alias2.c:43:7: Possible undocumented modification of *globp through alias *y:
53 *y = 3
54alias2.c:44:7: Undocumented modification of globp: globp = a
55alias2.c:53:3: Possible undocumented modification of glob through alias *a:
56 *a = 3
57alias2.c:53:3: Undocumented modification of *a: *a = 3
58alias2.c:54:3: Possible undocumented modification of *globp through alias *z:
59 *z = 6
60alias2.c:54:3: Possible undocumented modification of *a through alias *z:
61 *z = 6
62alias2.c:55:3: Undocumented modification of *globp: *globp = 5
63alias2.c:55:3: Possible undocumented modification of *a through alias *globp:
64 *globp = 5
65alias2.c:56:12: Function returns with global variable globp aliasing parameter
66 a
67
11db3170 68Finished checking --- 17 code warnings, as expected
885824d3 69
70alias3.c: (in function model)
71alias3.c:16:3: Undocumented modification of gst.a: gst.a = 3
72alias3.c:17:3: Undocumented modification of gu->a: gu->a = 5
73alias3.c: (in function f)
74alias3.c:38:3: Possible undocumented modification of ia[3] through alias *ip:
75 *ip = 7
76alias3.c:42:3: Possible undocumented modification of ia[] through alias *ip:
77 *ip = 8
78alias3.c:44:3: Undocumented modification of ia[6] possible from call to model:
79 model(ia)
80alias3.c:46:3: Undocumented modification of ia[6] possible from call to model
81 (through alias ip[6]): model(ip)
82alias3.c:49:3: Undocumented modification of *(s1.b): *(s1.b) = 7
83alias3.c:52:3: Undocumented modification of *(s1.b) possible from call to modst
84 (through alias *(sl.b)): modst(sl)
85alias3.c:56:3: Undocumented modification of *(s1.b): *(s1.b) = 3
86alias3.c:57:3: Possible undocumented modification of *(s1.b) through alias *ip:
87 *ip = 6
88alias3.c:58:3: Possible undocumented modification of *(s1.b) through alias
89 *(sl.b): *(sl.b) = 3
90alias3.c:61:3: Undocumented modification of *u1 possible from call to modu
91 (through alias *ul): modu(ul)
92alias3.c:62:3: Possible undocumented modification of u1->a through alias ul->a:
93 ul->a = 3
94alias3.c:65:3: Possible undocumented modification of *(u1->s.b) through alias
95 *(sl.b): *(sl.b) = 6
96
11db3170 97Finished checking --- 14 code warnings, as expected
885824d3 98
11db3170 99Finished checking --- no warnings
885824d3 100
101alias4.c: (in function f)
102alias4.c:15:10: Function may return reference to parameter a through alias c: c
103alias4.c:15:10: Function may return reference to parameter b through alias c: c
104alias4.c: (in function h)
105alias4.c:26:12: Function returns reference to global glob: &glob
106alias4.c:28:12: Function returns reference to global globp: globp
107alias4.c:30:12: Function returns reference to global globs: (globs.field)
108alias4.c:32:12: Function returns reference to global globs: (&(globs.val))
109
11db3170 110Finished checking --- 6 code warnings, as expected
885824d3 111
112alias5.c: (in function incx1)
113alias5.c:13:3: Possible undocumented modification of p->x through alias p2->x:
114 p2->x++
115alias5.c: (in function incx2)
116alias5.c:22:2: Fresh storage p2 not released before return
16c024b5 117 alias5.c:20:3: Fresh storage p2 created
885824d3 118alias5.c: (in function incx3)
80ee600a 119alias5.c:27:3: Only storage p2->x (type int *) not released before assignment:
120 p2->x = p->x
885824d3 121alias5.c:28:3: Possible undocumented modification of *(p->x) through alias
122 *(p2->x): *(p2->x) = 3
123alias5.c:30:2: Storage p->x reachable from parameter is kept (should be only)
124 alias5.c:27:3: Storage p->x becomes kept
125
11db3170 126Finished checking --- 5 code warnings, as expected
This page took 0.533134 seconds and 5 git commands to generate.