forked from smart-tool/smart
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathclang-tidy.log
1565 lines (1565 loc) · 72.8 KB
/
clang-tidy.log
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
source/algocfg.c:351:5: warning: Call to function 'fprintf' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'fprintf_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
351 | fprintf(stderr, "Usage: ./algocfg [algo] [cfg [value]]\n");
| ^~~~~~~
source/algocfg.c:351:5: note: Call to function 'fprintf' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'fprintf_s' in case of C11
351 | fprintf(stderr, "Usage: ./algocfg [algo] [cfg [value]]\n");
| ^~~~~~~
source/algocfg.c:428:7: warning: Call to function 'fprintf' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'fprintf_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
428 | fprintf(stderr, "Usage: ./algocfg algo cfg [value]\n");
| ^~~~~~~
source/algocfg.c:428:7: note: Call to function 'fprintf' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'fprintf_s' in case of C11
428 | fprintf(stderr, "Usage: ./algocfg algo cfg [value]\n");
| ^~~~~~~
source/textgen.c:91:7: warning: Null pointer passed to 2nd parameter expecting 'nonnull' [clang-analyzer-core.NonNullParamChecker]
91 | fputc(c, stream);
| ^ ~~~~~~
source/textgen.c:48:15: note: '?' condition is false
48 | int istty = getenv("CI") ? 0 : 1;
| ^
source/textgen.c:50:3: note: Loop condition is true. Entering loop body
50 | for (int sigma = 2; sigma <= 256; sigma *= 2) {
| ^
source/textgen.c:51:5: note: Control jumps to 'case 2:' at line 52
51 | switch (sigma) {
| ^
source/textgen.c:53:16: note: Assuming pointer value is null
53 | stream = fopen("data/rand2/rand2.txt", "w");
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
source/textgen.c:53:16: note: Assuming that 'fopen' fails
53 | stream = fopen("data/rand2/rand2.txt", "w");
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
source/textgen.c:53:7: note: Value assigned to 'stream'
53 | stream = fopen("data/rand2/rand2.txt", "w");
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
source/textgen.c:54:7: note: Execution continues on line 81
54 | break;
| ^
source/textgen.c:83:5: note: Loop condition is true. Entering loop body
83 | for (int i = 0; i < 5000000; i++) {
| ^
source/textgen.c:85:11: note: 'sigma' is <= 64
85 | if (sigma <= 64)
| ^~~~~
source/textgen.c:85:7: note: Taking true branch
85 | if (sigma <= 64)
| ^
source/textgen.c:91:7: note: Null pointer passed to 2nd parameter expecting 'nonnull'
91 | fputc(c, stream);
| ^ ~~~~~~
source/algos/dbww.c:54:10: warning: Right operand is negative in left shift [clang-analyzer-core.BitwiseShift]
54 | H = 1U << (m - 1);
| ~~~^~~~~~~~~~
source/algos/dbww.c:36:7: note: Assuming 'm' is <= 16
36 | if (m > 16)
| ^~~~~~
source/algos/dbww.c:36:3: note: Taking false branch
36 | if (m > 16)
| ^
source/algos/dbww.c:40:7: note: Assuming the condition is false
40 | if ((n / m) < 2)
| ^~~~~~~~~~~
source/algos/dbww.c:40:3: note: Taking false branch
40 | if ((n / m) < 2)
| ^
source/algos/dbww.c:47:15: note: Assuming 'i' is >= 'm'
47 | for (i = 0; i < m; ++i) {
| ^~~~~
source/algos/dbww.c:47:3: note: Loop condition is false. Execution continues on line 54
47 | for (i = 0; i < m; ++i) {
| ^
source/algos/dbww.c:54:10: note: The result of left shift is undefined because the right operand is negative
54 | H = 1U << (m - 1);
| ~~~^~~~~~~~~~
source/algos/dbww2.c:58:10: warning: Right operand is negative in left shift [clang-analyzer-core.BitwiseShift]
58 | H = 1U << (m - 1);
| ~~~^~~~~~~~~~
source/algos/dbww2.c:41:7: note: Assuming 'm' is <= 16
41 | if (m > 16)
| ^~~~~~
source/algos/dbww2.c:41:3: note: Taking false branch
41 | if (m > 16)
| ^
source/algos/dbww2.c:45:7: note: Assuming the condition is false
45 | if (n / m < 2)
| ^~~~~~~~~
source/algos/dbww2.c:45:3: note: Taking false branch
45 | if (n / m < 2)
| ^
source/algos/dbww2.c:51:15: note: Assuming 'i' is >= 'm'
51 | for (i = 0; i < m; ++i) {
| ^~~~~
source/algos/dbww2.c:51:3: note: Loop condition is false. Execution continues on line 58
51 | for (i = 0; i < m; ++i) {
| ^
source/algos/dbww2.c:58:10: note: The result of left shift is undefined because the right operand is negative
58 | H = 1U << (m - 1);
| ~~~^~~~~~~~~~
source/algos/epsm.c:55:13: warning: unknown pragma ignored [clang-diagnostic-unknown-pragmas]
55 | #pragma GCC optimize("O3")
| ^
source/algos/fs-w2.c:109:8: warning: Although the value stored to 'j' is used in the enclosing expression, the value is never actually read from 'j' [clang-analyzer-deadcode.DeadStores]
109 | s1 = j = mm1;
| ^ ~~~
source/algos/fs-w2.c:109:8: note: Although the value stored to 'j' is used in the enclosing expression, the value is never actually read from 'j'
109 | s1 = j = mm1;
| ^ ~~~
source/algos/graspm.c:103:9: warning: Value stored to 'pos' is never read [clang-analyzer-deadcode.DeadStores]
103 | pos = pos->next;
| ^ ~~~~~~~~~
source/algos/graspm.c:103:9: note: Value stored to 'pos' is never read
103 | pos = pos->next;
| ^ ~~~~~~~~~
source/algos/sebom.c:59:17: warning: Array access results in an undefined pointer dereference [clang-analyzer-core.NullDereference]
59 | trans[i][c] = iMinus1;
| ~~~~~~~~~~~~^~~~~~~~~
source/algos/sebom.c:35:7: note: Assuming 'm' is >= 2
35 | if (m < 2)
| ^~~~~
source/algos/sebom.c:35:3: note: Taking false branch
35 | if (m < 2)
| ^
source/algos/sebom.c:42:7: note: Assuming the condition is false
42 | if (m + 2 > M_CUTOFF) {
| ^~~~~~~~~~~~~~~~
source/algos/sebom.c:42:3: note: Taking false branch
42 | if (m + 2 > M_CUTOFF) {
| ^
source/algos/sebom.c:47:17: note: Assuming the condition is false
47 | for (i = 0; i <= m + 1; i++)
| ^~~~~~~~~~
source/algos/sebom.c:47:5: note: Loop condition is false. Execution continues on line 52
47 | for (i = 0; i <= m + 1; i++)
| ^
source/algos/sebom.c:52:3: note: Loop condition is false. Execution continues on line 55
52 | for (i = 0; i <= m + 1; i++)
| ^
source/algos/sebom.c:56:8: note: The value 2147483647 is assigned to 'i'
56 | for (i = m; i > 0; --i) {
| ^~~~~
source/algos/sebom.c:56:3: note: Loop condition is true. Entering loop body
56 | for (i = m; i > 0; --i) {
| ^
source/algos/sebom.c:59:17: note: Array access results in an undefined pointer dereference
59 | trans[i][c] = iMinus1;
| ~~~~~~~~~~~~^~~~~~~~~
source/algos/sfbom.c:54:17: warning: Array access results in an undefined pointer dereference [clang-analyzer-core.NullDereference]
54 | trans[i][c] = iMinus1;
| ~~~~~~~~~~~~^~~~~~~~~
source/algos/sfbom.c:38:7: note: Assuming the condition is false
38 | if (m + 2 > M_CUTOFF) {
| ^~~~~~~~~~~~~~~~
source/algos/sfbom.c:38:3: note: Taking false branch
38 | if (m + 2 > M_CUTOFF) {
| ^
source/algos/sfbom.c:43:17: note: Assuming the condition is false
43 | for (i = 0; i <= m + 1; i++)
| ^~~~~~~~~~
source/algos/sfbom.c:43:5: note: Loop condition is false. Execution continues on line 47
43 | for (i = 0; i <= m + 1; i++)
| ^
source/algos/sfbom.c:47:3: note: Loop condition is false. Execution continues on line 50
47 | for (i = 0; i <= m + 1; i++)
| ^
source/algos/sfbom.c:51:8: note: Value assigned to 'i'
51 | for (i = m; i > 0; --i) {
| ^~~~~
source/algos/sfbom.c:51:15: note: Assuming 'i' is > 0
51 | for (i = m; i > 0; --i) {
| ^~~~~
source/algos/sfbom.c:51:3: note: Loop condition is true. Entering loop body
51 | for (i = m; i > 0; --i) {
| ^
source/algos/sfbom.c:54:17: note: Array access results in an undefined pointer dereference
54 | trans[i][c] = iMinus1;
| ~~~~~~~~~~~~^~~~~~~~~
source/algos/tndm.c:80:19: warning: Right operand is negative in left shift [clang-analyzer-core.BitwiseShift]
80 | if (d & (1U << (m - 1))) {
| ~~~^~~~~~~~~~
source/algos/tndm.c:34:7: note: Assuming 'm' is <= 32
34 | if (m > 32)
| ^~~~~~
source/algos/tndm.c:34:3: note: Taking false branch
34 | if (m > 32)
| ^
source/algos/tndm.c:43:19: note: Assuming 'i' is < 0
43 | for (i = m - 1; i >= 0; i--) {
| ^~~~~~
source/algos/tndm.c:43:3: note: Loop condition is false. Execution continues on line 47
43 | for (i = m - 1; i >= 0; i--) {
| ^
source/algos/tndm.c:48:7: note: Assuming right operand of bit shift is non-negative but less than 32
48 | s = ~0U >> (WORD - m);
| ^~~~~~~~~~~~~~~~~
source/algos/tndm.c:49:19: note: 'i' is < 0
49 | for (i = m - 1; i >= 0; i--) {
| ^
source/algos/tndm.c:49:3: note: Loop condition is false. Execution continues on line 58
49 | for (i = m - 1; i >= 0; i--) {
| ^
source/algos/tndm.c:63:10: note: Assuming 'j' is < 'n'
63 | while (j < n) {
| ^~~~~
source/algos/tndm.c:63:3: note: Loop condition is true. Entering loop body
63 | while (j < n) {
| ^
source/algos/tndm.c:67:9: note: Assuming the condition is false
67 | if ((d & 1) == 0) {
| ^~~~~~~~~~~~
source/algos/tndm.c:67:5: note: Taking false branch
67 | if ((d & 1) == 0) {
| ^
source/algos/tndm.c:80:19: note: The result of left shift is undefined because the right operand is negative
80 | if (d & (1U << (m - 1))) {
| ~~~^~~~~~~~~~
source/compilesm.c:202:9: warning: Null pointer passed to 1st parameter expecting 'nonnull' [clang-analyzer-core.NonNullParamChecker]
202 | fclose(stream);
| ^ ~~~~~~
source/compilesm.c:43:15: note: '?' condition is true
43 | int istty = getenv("CI") ? 0 : 1;
| ^
source/compilesm.c:63:7: note: Assuming 'argc' is <= 1
63 | if (argc > 1) {
| ^~~~~~~~
source/compilesm.c:63:3: note: Taking false branch
63 | if (argc > 1) {
| ^
source/compilesm.c:76:7: note: 'd' is null
76 | if (d) {
| ^
source/compilesm.c:76:3: note: Taking false branch
76 | if (d) {
| ^
source/compilesm.c:91:7: note: 'd' is null
91 | if (d) {
| ^
source/compilesm.c:91:3: note: Taking false branch
91 | if (d) {
| ^
source/compilesm.c:106:7: note: Assuming that 'opendir' is successful
106 | d = opendir("./source/algos");
| ^~~~~~~~~~~~~~~~~~~~~~~~~
source/compilesm.c:107:7: note: 'd' is non-null
107 | if (d) {
| ^
source/compilesm.c:107:3: note: Taking true branch
107 | if (d) {
| ^
source/compilesm.c:109:12: note: Assuming the condition is true
109 | while ((dir = readdir(d)) != NULL) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
source/compilesm.c:109:5: note: Loop condition is true. Entering loop body
109 | while ((dir = readdir(d)) != NULL) {
| ^
source/compilesm.c:113:11: note: Assuming 'len' is > 2
113 | if (len > 2 && filename[len - 1] == 'c' && filename[len - 2] == '.' &&
| ^~~~~~~
source/compilesm.c:113:11: note: Left side of '&&' is true
source/compilesm.c:113:22: note: Assuming the condition is true
113 | if (len > 2 && filename[len - 1] == 'c' && filename[len - 2] == '.' &&
| ^~~~~~~~~~~~~~~~~~~~~~~~
source/compilesm.c:113:11: note: Left side of '&&' is true
113 | if (len > 2 && filename[len - 1] == 'c' && filename[len - 2] == '.' &&
| ^
source/compilesm.c:113:50: note: Assuming the condition is true
113 | if (len > 2 && filename[len - 1] == 'c' && filename[len - 2] == '.' &&
| ^~~~~~~~~~~~~~~~~~~~~~~~
source/compilesm.c:113:11: note: Left side of '&&' is true
113 | if (len > 2 && filename[len - 1] == 'c' && filename[len - 2] == '.' &&
| ^
source/compilesm.c:114:11: note: Assuming the condition is true
114 | filename[0] != '.' && filename[1] != '#') {
| ^~~~~~~~~~~~~~~~~~
source/compilesm.c:113:11: note: Left side of '&&' is true
113 | if (len > 2 && filename[len - 1] == 'c' && filename[len - 2] == '.' &&
| ^
source/compilesm.c:114:33: note: Assuming the condition is true
114 | filename[0] != '.' && filename[1] != '#') {
| ^~~~~~~~~~~~~~~~~~
source/compilesm.c:113:7: note: Taking true branch
113 | if (len > 2 && filename[len - 1] == 'c' && filename[len - 2] == '.' &&
| ^
source/compilesm.c:140:13: note: 'doTest' is 0
140 | if (doTest)
| ^~~~~~
source/compilesm.c:140:9: note: Taking false branch
140 | if (doTest)
| ^
source/compilesm.c:144:21: note: Assuming the condition is false
144 | for (i = 0; i < 15 - (int)strlen(filename); i++)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
source/compilesm.c:144:9: note: Loop condition is false. Execution continues on line 146
144 | for (i = 0; i < 15 - (int)strlen(filename); i++)
| ^
source/compilesm.c:146:13: note: 'istty' is 0
146 | if (istty)
| ^~~~~
source/compilesm.c:146:9: note: Taking false branch
146 | if (istty)
| ^
source/compilesm.c:152:13: note: 'istty' is 0
152 | if (istty)
| ^~~~~
source/compilesm.c:152:9: note: Taking false branch
152 | if (istty)
| ^
source/compilesm.c:156:18: note: Assuming that 'freopen' fails
156 | stream = freopen("warning", "a", stderr); // redirect of stderr
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
source/compilesm.c:156:9: note: Value assigned to 'stream'
156 | stream = freopen("warning", "a", stderr); // redirect of stderr
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
source/compilesm.c:157:13: note: Assuming the condition is true
157 | if (system(command) == 1)
| ^~~~~~~~~~~~~~~~~~~~
source/compilesm.c:157:9: note: Taking true branch
157 | if (system(command) == 1)
| ^
source/compilesm.c:202:9: note: Null pointer passed to 1st parameter expecting 'nonnull'
202 | fclose(stream);
| ^ ~~~~~~
source/function.h:273:30: warning: File position of the stream might be 'indeterminate' after a failed operation. Can cause undefined behavior [clang-analyzer-unix.Stream]
273 | while (i < TSIZE && (c = getc(index)) != EOF) {
| ^
source/smart.c:429:7: note: Assuming 'argc' is not equal to 1
429 | if (argc == 1) {
| ^~~~~~~~~
source/smart.c:429:3: note: Taking false branch
429 | if (argc == 1) {
| ^
source/smart.c:433:7: note: Assuming the condition is false
433 | if (!strcmp("-h", argv[1])) {
| ^~~~~~~~~~~~~~~~~~~~~~
source/smart.c:433:3: note: Taking false branch
433 | if (!strcmp("-h", argv[1])) {
| ^
source/smart.c:438:10: note: 'par' is < 'argc'
438 | while (par < argc) {
| ^~~
source/smart.c:438:3: note: Loop condition is true. Entering loop body
438 | while (par < argc) {
| ^
source/smart.c:439:9: note: 'par' is < 'argc'
439 | if (par < argc && !strcmp("-pset", argv[par])) {
| ^~~
source/smart.c:439:9: note: Left side of '&&' is true
source/smart.c:439:23: note: Assuming the condition is false
439 | if (par < argc && !strcmp("-pset", argv[par])) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
source/smart.c:439:5: note: Taking false branch
439 | if (par < argc && !strcmp("-pset", argv[par])) {
| ^
source/smart.c:452:9: note: 'par' is < 'argc'
452 | if (par < argc && !strcmp("-alpha", argv[par])) {
| ^~~
source/smart.c:452:9: note: Left side of '&&' is true
source/smart.c:452:23: note: Assuming the condition is false
452 | if (par < argc && !strcmp("-alpha", argv[par])) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
source/smart.c:452:5: note: Taking false branch
452 | if (par < argc && !strcmp("-alpha", argv[par])) {
| ^
source/smart.c:469:9: note: 'par' is < 'argc'
469 | if (par < argc && !strcmp("-tsize", argv[par])) {
| ^~~
source/smart.c:469:9: note: Left side of '&&' is true
source/smart.c:469:23: note: Assuming the condition is false
469 | if (par < argc && !strcmp("-tsize", argv[par])) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
source/smart.c:469:5: note: Taking false branch
469 | if (par < argc && !strcmp("-tsize", argv[par])) {
| ^
source/smart.c:483:9: note: 'par' is < 'argc'
483 | if (par < argc && !strcmp("-tb", argv[par])) {
| ^~~
source/smart.c:483:9: note: Left side of '&&' is true
source/smart.c:483:23: note: Assuming the condition is false
483 | if (par < argc && !strcmp("-tb", argv[par])) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
source/smart.c:483:5: note: Taking false branch
483 | if (par < argc && !strcmp("-tb", argv[par])) {
| ^
source/smart.c:496:9: note: 'par' is < 'argc'
496 | if (par < argc && !strcmp("-text", argv[par])) {
| ^~~
source/smart.c:496:9: note: Left side of '&&' is true
source/smart.c:496:23: note: Assuming the condition is false
496 | if (par < argc && !strcmp("-text", argv[par])) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
source/smart.c:496:5: note: Taking false branch
496 | if (par < argc && !strcmp("-text", argv[par])) {
| ^
source/smart.c:504:9: note: 'par' is < 'argc'
504 | if (par < argc && !strcmp("-plen", argv[par])) {
| ^~~
source/smart.c:504:9: note: Left side of '&&' is true
source/smart.c:504:23: note: Assuming the condition is false
504 | if (par < argc && !strcmp("-plen", argv[par])) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
source/smart.c:504:5: note: Taking false branch
504 | if (par < argc && !strcmp("-plen", argv[par])) {
| ^
source/smart.c:562:9: note: 'par' is < 'argc'
562 | if (par < argc && !strcmp("-simple", argv[par])) {
| ^~~
source/smart.c:562:9: note: Left side of '&&' is true
source/smart.c:562:23: note: Assuming the condition is false
562 | if (par < argc && !strcmp("-simple", argv[par])) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
source/smart.c:562:5: note: Taking false branch
562 | if (par < argc && !strcmp("-simple", argv[par])) {
| ^
source/smart.c:585:9: note: 'par' is < 'argc'
585 | if (par < argc && !strcmp("-occ", argv[par])) {
| ^~~
source/smart.c:585:9: note: Left side of '&&' is true
source/smart.c:585:23: note: Assuming the condition is false
585 | if (par < argc && !strcmp("-occ", argv[par])) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
source/smart.c:585:5: note: Taking false branch
585 | if (par < argc && !strcmp("-occ", argv[par])) {
| ^
source/smart.c:589:9: note: 'par' is < 'argc'
589 | if (par < argc && !strcmp("-pre", argv[par])) {
| ^~~
source/smart.c:589:9: note: Left side of '&&' is true
source/smart.c:589:23: note: Assuming the condition is false
589 | if (par < argc && !strcmp("-pre", argv[par])) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
source/smart.c:589:5: note: Taking false branch
589 | if (par < argc && !strcmp("-pre", argv[par])) {
| ^
source/smart.c:593:9: note: 'par' is < 'argc'
593 | if (par < argc && !strcmp("-dif", argv[par])) {
| ^~~
source/smart.c:593:9: note: Left side of '&&' is true
source/smart.c:593:23: note: Assuming the condition is false
593 | if (par < argc && !strcmp("-dif", argv[par])) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
source/smart.c:593:5: note: Taking false branch
593 | if (par < argc && !strcmp("-dif", argv[par])) {
| ^
source/smart.c:597:9: note: 'par' is < 'argc'
597 | if (par < argc && !strcmp("-txt", argv[par])) {
| ^~~
source/smart.c:597:9: note: Left side of '&&' is true
source/smart.c:597:23: note: Assuming the condition is false
597 | if (par < argc && !strcmp("-txt", argv[par])) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
source/smart.c:597:5: note: Taking false branch
597 | if (par < argc && !strcmp("-txt", argv[par])) {
| ^
source/smart.c:601:9: note: 'par' is < 'argc'
601 | if (par < argc && !strcmp("-std", argv[par])) {
| ^~~
source/smart.c:601:9: note: Left side of '&&' is true
source/smart.c:601:23: note: Assuming the condition is false
601 | if (par < argc && !strcmp("-std", argv[par])) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
source/smart.c:601:5: note: Taking false branch
601 | if (par < argc && !strcmp("-std", argv[par])) {
| ^
source/smart.c:605:9: note: 'par' is < 'argc'
605 | if (par < argc && !strcmp("-all", argv[par])) {
| ^~~
source/smart.c:605:9: note: Left side of '&&' is true
source/smart.c:605:23: note: Assuming the condition is false
605 | if (par < argc && !strcmp("-all", argv[par])) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
source/smart.c:605:5: note: Taking false branch
605 | if (par < argc && !strcmp("-all", argv[par])) {
| ^
source/smart.c:609:9: note: 'par' is < 'argc'
609 | if (par < argc && !strcmp("-tex", argv[par])) {
| ^~~
source/smart.c:609:9: note: Left side of '&&' is true
source/smart.c:609:23: note: Assuming the condition is false
609 | if (par < argc && !strcmp("-tex", argv[par])) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
source/smart.c:609:5: note: Taking false branch
609 | if (par < argc && !strcmp("-tex", argv[par])) {
| ^
source/smart.c:613:9: note: 'par' is < 'argc'
613 | if (par < argc && !strcmp("-php", argv[par])) {
| ^~~
source/smart.c:613:9: note: Left side of '&&' is true
source/smart.c:613:23: note: Assuming the condition is false
613 | if (par < argc && !strcmp("-php", argv[par])) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
source/smart.c:613:5: note: Taking false branch
613 | if (par < argc && !strcmp("-php", argv[par])) {
| ^
source/smart.c:617:9: note: 'par' is < 'argc'
617 | if (par < argc && !strcmp("-short", argv[par])) {
| ^~~
source/smart.c:617:9: note: Left side of '&&' is true
source/smart.c:617:5: note: Taking true branch
617 | if (par < argc && !strcmp("-short", argv[par])) {
| ^
source/smart.c:621:9: note: Assuming 'par' is >= 'argc'
621 | if (par < argc && !strcmp("-vshort", argv[par])) {
| ^~~~~~~~~~
source/smart.c:621:20: note: Left side of '&&' is false
621 | if (par < argc && !strcmp("-vshort", argv[par])) {
| ^
source/smart.c:625:9: note: 'par' is >= 'argc'
625 | if (par < argc && strcmp("-text", argv[par]) != 0 &&
| ^~~
source/smart.c:625:20: note: Left side of '&&' is false
625 | if (par < argc && strcmp("-text", argv[par]) != 0 &&
| ^
source/smart.c:438:3: note: Loop condition is false. Execution continues on line 638
438 | while (par < argc) {
| ^
source/smart.c:638:7: note: Assuming the condition is false
638 | if (strcmp(filename, "") && options.simple) {
| ^~~~~~~~~~~~~~~~~~~~
source/smart.c:638:28: note: Left side of '&&' is false
638 | if (strcmp(filename, "") && options.simple) {
| ^
source/smart.c:643:7: note: Assuming the condition is false
643 | if (!strcmp(filename, "") && !options.simple) {
| ^~~~~~~~~~~~~~~~~~~~~
source/smart.c:643:29: note: Left side of '&&' is false
643 | if (!strcmp(filename, "") && !options.simple) {
| ^
source/smart.c:655:7: note: Assuming field 'simple' is 0
655 | if (options.simple) {
| ^~~~~~~~~~~~~~
source/smart.c:655:3: note: Taking false branch
655 | if (options.simple) {
| ^
source/smart.c:685:14: note: Assuming the condition is true
685 | } else if (strcmp(filename, "all") != 0) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
source/smart.c:685:10: note: Taking true branch
685 | } else if (strcmp(filename, "all") != 0) {
| ^
source/smart.c:687:9: note: Assuming the condition is false
687 | if (system("./logo"))
| ^~~~~~~~~~~~~~~~
source/smart.c:687:5: note: Taking false branch
687 | if (system("./logo"))
| ^
source/smart.c:697:21: note: Assuming 'k' is < 'num_buffers'
697 | for (int k = 0; k < num_buffers; k++) {
| ^~~~~~~~~~~~~~~
source/smart.c:697:5: note: Loop condition is true. Entering loop body
697 | for (int k = 0; k < num_buffers; k++) {
| ^
source/smart.c:703:17: note: Calling 'getText'
703 | if (!(n = getText(T, fullpath, FREQ, TSIZE))) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
source/function.h:271:8: note: Assuming 'index' is non-null
271 | if ((index = fopen(indexfilename, "r"))) {
| ^~~~~
source/function.h:271:3: note: Taking true branch
271 | if ((index = fopen(indexfilename, "r"))) {
| ^
source/function.h:273:12: note: 'i' is < 'TSIZE'
273 | while (i < TSIZE && (c = getc(index)) != EOF) {
| ^
source/function.h:273:12: note: Left side of '&&' is true
source/function.h:273:5: note: Loop condition is true. Entering loop body
273 | while (i < TSIZE && (c = getc(index)) != EOF) {
| ^
source/function.h:274:11: note: Assuming the condition is true
274 | if (c == '#') {
| ^~~~~~~~
source/function.h:274:7: note: Taking true branch
274 | if (c == '#') {
| ^
source/function.h:279:21: note: Assuming this stream operation fails
279 | while ((c = getc(index)) != '#')
| ^~~~~~~~~~~
source/function.h:279:9: note: Loop condition is true. Entering loop body
279 | while ((c = getc(index)) != '#')
| ^
source/function.h:279:16: note: Assuming the condition is false
279 | while ((c = getc(index)) != '#')
| ^~~~~~~~~~~~~~~~~~~~~~~~
source/function.h:279:9: note: Loop condition is false. Execution continues on line 281
279 | while ((c = getc(index)) != '#')
| ^
source/function.h:284:14: note: Assuming 'input' is null
284 | if ((input = fopen(filename, "r"))) {
| ^~~~~
source/function.h:284:9: note: Taking false branch
284 | if ((input = fopen(filename, "r"))) {
| ^
source/function.h:273:12: note: 'i' is < 'TSIZE'
273 | while (i < TSIZE && (c = getc(index)) != EOF) {
| ^
source/function.h:273:12: note: Left side of '&&' is true
source/function.h:273:30: note: File position of the stream might be 'indeterminate' after a failed operation. Can cause undefined behavior
273 | while (i < TSIZE && (c = getc(index)) != EOF) {
| ^~~~~~~~~~~
source/function.h:273:30: warning: Read function called when stream is in EOF state. Function has no effect [clang-analyzer-unix.Stream]
273 | while (i < TSIZE && (c = getc(index)) != EOF) {
| ^
source/smart.c:429:7: note: Assuming 'argc' is not equal to 1
429 | if (argc == 1) {
| ^~~~~~~~~
source/smart.c:429:3: note: Taking false branch
429 | if (argc == 1) {
| ^
source/smart.c:433:7: note: Assuming the condition is false
433 | if (!strcmp("-h", argv[1])) {
| ^~~~~~~~~~~~~~~~~~~~~~
source/smart.c:433:3: note: Taking false branch
433 | if (!strcmp("-h", argv[1])) {
| ^
source/smart.c:438:10: note: 'par' is < 'argc'
438 | while (par < argc) {
| ^~~
source/smart.c:438:3: note: Loop condition is true. Entering loop body
438 | while (par < argc) {
| ^
source/smart.c:439:9: note: 'par' is < 'argc'
439 | if (par < argc && !strcmp("-pset", argv[par])) {
| ^~~
source/smart.c:439:9: note: Left side of '&&' is true
source/smart.c:439:23: note: Assuming the condition is false
439 | if (par < argc && !strcmp("-pset", argv[par])) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
source/smart.c:439:5: note: Taking false branch
439 | if (par < argc && !strcmp("-pset", argv[par])) {
| ^
source/smart.c:452:9: note: 'par' is < 'argc'
452 | if (par < argc && !strcmp("-alpha", argv[par])) {
| ^~~
source/smart.c:452:9: note: Left side of '&&' is true
source/smart.c:452:23: note: Assuming the condition is false
452 | if (par < argc && !strcmp("-alpha", argv[par])) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
source/smart.c:452:5: note: Taking false branch
452 | if (par < argc && !strcmp("-alpha", argv[par])) {
| ^
source/smart.c:469:9: note: 'par' is < 'argc'
469 | if (par < argc && !strcmp("-tsize", argv[par])) {
| ^~~
source/smart.c:469:9: note: Left side of '&&' is true
source/smart.c:469:23: note: Assuming the condition is false
469 | if (par < argc && !strcmp("-tsize", argv[par])) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
source/smart.c:469:5: note: Taking false branch
469 | if (par < argc && !strcmp("-tsize", argv[par])) {
| ^
source/smart.c:483:9: note: 'par' is < 'argc'
483 | if (par < argc && !strcmp("-tb", argv[par])) {
| ^~~
source/smart.c:483:9: note: Left side of '&&' is true
source/smart.c:483:23: note: Assuming the condition is false
483 | if (par < argc && !strcmp("-tb", argv[par])) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
source/smart.c:483:5: note: Taking false branch
483 | if (par < argc && !strcmp("-tb", argv[par])) {
| ^
source/smart.c:496:9: note: 'par' is < 'argc'
496 | if (par < argc && !strcmp("-text", argv[par])) {
| ^~~
source/smart.c:496:9: note: Left side of '&&' is true
source/smart.c:496:23: note: Assuming the condition is false
496 | if (par < argc && !strcmp("-text", argv[par])) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
source/smart.c:496:5: note: Taking false branch
496 | if (par < argc && !strcmp("-text", argv[par])) {
| ^
source/smart.c:504:9: note: 'par' is < 'argc'
504 | if (par < argc && !strcmp("-plen", argv[par])) {
| ^~~
source/smart.c:504:9: note: Left side of '&&' is true
source/smart.c:504:23: note: Assuming the condition is false
504 | if (par < argc && !strcmp("-plen", argv[par])) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
source/smart.c:504:5: note: Taking false branch
504 | if (par < argc && !strcmp("-plen", argv[par])) {
| ^
source/smart.c:562:9: note: 'par' is < 'argc'
562 | if (par < argc && !strcmp("-simple", argv[par])) {
| ^~~
source/smart.c:562:9: note: Left side of '&&' is true
source/smart.c:562:23: note: Assuming the condition is false
562 | if (par < argc && !strcmp("-simple", argv[par])) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
source/smart.c:562:5: note: Taking false branch
562 | if (par < argc && !strcmp("-simple", argv[par])) {
| ^
source/smart.c:585:9: note: 'par' is < 'argc'
585 | if (par < argc && !strcmp("-occ", argv[par])) {
| ^~~
source/smart.c:585:9: note: Left side of '&&' is true
source/smart.c:585:23: note: Assuming the condition is false
585 | if (par < argc && !strcmp("-occ", argv[par])) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
source/smart.c:585:5: note: Taking false branch
585 | if (par < argc && !strcmp("-occ", argv[par])) {
| ^
source/smart.c:589:9: note: 'par' is < 'argc'
589 | if (par < argc && !strcmp("-pre", argv[par])) {
| ^~~
source/smart.c:589:9: note: Left side of '&&' is true
source/smart.c:589:23: note: Assuming the condition is false
589 | if (par < argc && !strcmp("-pre", argv[par])) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
source/smart.c:589:5: note: Taking false branch
589 | if (par < argc && !strcmp("-pre", argv[par])) {
| ^
source/smart.c:593:9: note: 'par' is < 'argc'
593 | if (par < argc && !strcmp("-dif", argv[par])) {
| ^~~
source/smart.c:593:9: note: Left side of '&&' is true
source/smart.c:593:23: note: Assuming the condition is false
593 | if (par < argc && !strcmp("-dif", argv[par])) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
source/smart.c:593:5: note: Taking false branch
593 | if (par < argc && !strcmp("-dif", argv[par])) {
| ^
source/smart.c:597:9: note: 'par' is < 'argc'
597 | if (par < argc && !strcmp("-txt", argv[par])) {
| ^~~
source/smart.c:597:9: note: Left side of '&&' is true
source/smart.c:597:23: note: Assuming the condition is false
597 | if (par < argc && !strcmp("-txt", argv[par])) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
source/smart.c:597:5: note: Taking false branch
597 | if (par < argc && !strcmp("-txt", argv[par])) {
| ^
source/smart.c:601:9: note: 'par' is < 'argc'
601 | if (par < argc && !strcmp("-std", argv[par])) {
| ^~~
source/smart.c:601:9: note: Left side of '&&' is true
source/smart.c:601:23: note: Assuming the condition is false
601 | if (par < argc && !strcmp("-std", argv[par])) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
source/smart.c:601:5: note: Taking false branch
601 | if (par < argc && !strcmp("-std", argv[par])) {
| ^
source/smart.c:605:9: note: 'par' is < 'argc'
605 | if (par < argc && !strcmp("-all", argv[par])) {
| ^~~
source/smart.c:605:9: note: Left side of '&&' is true
source/smart.c:605:23: note: Assuming the condition is false
605 | if (par < argc && !strcmp("-all", argv[par])) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
source/smart.c:605:5: note: Taking false branch
605 | if (par < argc && !strcmp("-all", argv[par])) {
| ^
source/smart.c:609:9: note: 'par' is < 'argc'
609 | if (par < argc && !strcmp("-tex", argv[par])) {
| ^~~
source/smart.c:609:9: note: Left side of '&&' is true
source/smart.c:609:23: note: Assuming the condition is false
609 | if (par < argc && !strcmp("-tex", argv[par])) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
source/smart.c:609:5: note: Taking false branch
609 | if (par < argc && !strcmp("-tex", argv[par])) {
| ^
source/smart.c:613:9: note: 'par' is < 'argc'
613 | if (par < argc && !strcmp("-php", argv[par])) {
| ^~~
source/smart.c:613:9: note: Left side of '&&' is true
source/smart.c:613:23: note: Assuming the condition is false
613 | if (par < argc && !strcmp("-php", argv[par])) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
source/smart.c:613:5: note: Taking false branch
613 | if (par < argc && !strcmp("-php", argv[par])) {
| ^
source/smart.c:617:9: note: 'par' is < 'argc'
617 | if (par < argc && !strcmp("-short", argv[par])) {
| ^~~
source/smart.c:617:9: note: Left side of '&&' is true
source/smart.c:617:5: note: Taking true branch
617 | if (par < argc && !strcmp("-short", argv[par])) {
| ^
source/smart.c:621:9: note: Assuming 'par' is >= 'argc'
621 | if (par < argc && !strcmp("-vshort", argv[par])) {
| ^~~~~~~~~~
source/smart.c:621:20: note: Left side of '&&' is false
621 | if (par < argc && !strcmp("-vshort", argv[par])) {
| ^
source/smart.c:625:9: note: 'par' is >= 'argc'
625 | if (par < argc && strcmp("-text", argv[par]) != 0 &&
| ^~~
source/smart.c:625:20: note: Left side of '&&' is false
625 | if (par < argc && strcmp("-text", argv[par]) != 0 &&
| ^
source/smart.c:438:3: note: Loop condition is false. Execution continues on line 638
438 | while (par < argc) {
| ^
source/smart.c:638:7: note: Assuming the condition is false
638 | if (strcmp(filename, "") && options.simple) {
| ^~~~~~~~~~~~~~~~~~~~
source/smart.c:638:28: note: Left side of '&&' is false
638 | if (strcmp(filename, "") && options.simple) {
| ^
source/smart.c:643:7: note: Assuming the condition is false
643 | if (!strcmp(filename, "") && !options.simple) {
| ^~~~~~~~~~~~~~~~~~~~~
source/smart.c:643:29: note: Left side of '&&' is false
643 | if (!strcmp(filename, "") && !options.simple) {
| ^
source/smart.c:655:7: note: Assuming field 'simple' is 0
655 | if (options.simple) {
| ^~~~~~~~~~~~~~
source/smart.c:655:3: note: Taking false branch
655 | if (options.simple) {
| ^
source/smart.c:685:14: note: Assuming the condition is true
685 | } else if (strcmp(filename, "all") != 0) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
source/smart.c:685:10: note: Taking true branch
685 | } else if (strcmp(filename, "all") != 0) {
| ^
source/smart.c:687:9: note: Assuming the condition is false
687 | if (system("./logo"))
| ^~~~~~~~~~~~~~~~
source/smart.c:687:5: note: Taking false branch
687 | if (system("./logo"))
| ^
source/smart.c:697:21: note: Assuming 'k' is < 'num_buffers'
697 | for (int k = 0; k < num_buffers; k++) {
| ^~~~~~~~~~~~~~~
source/smart.c:697:5: note: Loop condition is true. Entering loop body
697 | for (int k = 0; k < num_buffers; k++) {
| ^
source/smart.c:703:17: note: Calling 'getText'
703 | if (!(n = getText(T, fullpath, FREQ, TSIZE))) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
source/function.h:271:8: note: Assuming 'index' is non-null
271 | if ((index = fopen(indexfilename, "r"))) {
| ^~~~~
source/function.h:271:3: note: Taking true branch
271 | if ((index = fopen(indexfilename, "r"))) {
| ^
source/function.h:273:12: note: 'i' is < 'TSIZE'
273 | while (i < TSIZE && (c = getc(index)) != EOF) {
| ^
source/function.h:273:12: note: Left side of '&&' is true
source/function.h:273:5: note: Loop condition is true. Entering loop body
273 | while (i < TSIZE && (c = getc(index)) != EOF) {
| ^
source/function.h:274:11: note: Assuming the condition is true
274 | if (c == '#') {
| ^~~~~~~~
source/function.h:274:7: note: Taking true branch
274 | if (c == '#') {
| ^
source/function.h:279:21: note: Assuming stream reaches end-of-file here
279 | while ((c = getc(index)) != '#')
| ^~~~~~~~~~~
source/function.h:279:9: note: Loop condition is true. Entering loop body
279 | while ((c = getc(index)) != '#')
| ^
source/function.h:279:16: note: Assuming the condition is false
279 | while ((c = getc(index)) != '#')
| ^~~~~~~~~~~~~~~~~~~~~~~~
source/function.h:279:9: note: Loop condition is false. Execution continues on line 281
279 | while ((c = getc(index)) != '#')
| ^
source/function.h:284:14: note: Assuming 'input' is null
284 | if ((input = fopen(filename, "r"))) {
| ^~~~~
source/function.h:284:9: note: Taking false branch
284 | if ((input = fopen(filename, "r"))) {
| ^
source/function.h:273:12: note: 'i' is < 'TSIZE'
273 | while (i < TSIZE && (c = getc(index)) != EOF) {
| ^
source/function.h:273:12: note: Left side of '&&' is true
source/function.h:273:30: note: Read function called when stream is in EOF state. Function has no effect
273 | while (i < TSIZE && (c = getc(index)) != EOF) {
| ^~~~~~~~~~~
source/function.h:279:21: warning: File position of the stream might be 'indeterminate' after a failed operation. Can cause undefined behavior [clang-analyzer-unix.Stream]
279 | while ((c = getc(index)) != '#')
| ^
source/smart.c:429:7: note: Assuming 'argc' is not equal to 1
429 | if (argc == 1) {
| ^~~~~~~~~
source/smart.c:429:3: note: Taking false branch
429 | if (argc == 1) {
| ^
source/smart.c:433:7: note: Assuming the condition is false
433 | if (!strcmp("-h", argv[1])) {
| ^~~~~~~~~~~~~~~~~~~~~~
source/smart.c:433:3: note: Taking false branch
433 | if (!strcmp("-h", argv[1])) {
| ^
source/smart.c:438:10: note: 'par' is < 'argc'
438 | while (par < argc) {
| ^~~
source/smart.c:438:3: note: Loop condition is true. Entering loop body
438 | while (par < argc) {
| ^
source/smart.c:439:9: note: 'par' is < 'argc'
439 | if (par < argc && !strcmp("-pset", argv[par])) {
| ^~~
source/smart.c:439:9: note: Left side of '&&' is true
source/smart.c:439:23: note: Assuming the condition is false
439 | if (par < argc && !strcmp("-pset", argv[par])) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
source/smart.c:439:5: note: Taking false branch
439 | if (par < argc && !strcmp("-pset", argv[par])) {
| ^
source/smart.c:452:9: note: 'par' is < 'argc'
452 | if (par < argc && !strcmp("-alpha", argv[par])) {
| ^~~
source/smart.c:452:9: note: Left side of '&&' is true
source/smart.c:452:23: note: Assuming the condition is false
452 | if (par < argc && !strcmp("-alpha", argv[par])) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
source/smart.c:452:5: note: Taking false branch
452 | if (par < argc && !strcmp("-alpha", argv[par])) {
| ^
source/smart.c:469:9: note: 'par' is < 'argc'
469 | if (par < argc && !strcmp("-tsize", argv[par])) {
| ^~~
source/smart.c:469:9: note: Left side of '&&' is true
source/smart.c:469:23: note: Assuming the condition is false
469 | if (par < argc && !strcmp("-tsize", argv[par])) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
source/smart.c:469:5: note: Taking false branch
469 | if (par < argc && !strcmp("-tsize", argv[par])) {
| ^
source/smart.c:483:9: note: 'par' is < 'argc'
483 | if (par < argc && !strcmp("-tb", argv[par])) {
| ^~~
source/smart.c:483:9: note: Left side of '&&' is true
source/smart.c:483:23: note: Assuming the condition is false
483 | if (par < argc && !strcmp("-tb", argv[par])) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
source/smart.c:483:5: note: Taking false branch
483 | if (par < argc && !strcmp("-tb", argv[par])) {
| ^
source/smart.c:496:9: note: 'par' is < 'argc'
496 | if (par < argc && !strcmp("-text", argv[par])) {
| ^~~
source/smart.c:496:9: note: Left side of '&&' is true
source/smart.c:496:23: note: Assuming the condition is false
496 | if (par < argc && !strcmp("-text", argv[par])) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
source/smart.c:496:5: note: Taking false branch
496 | if (par < argc && !strcmp("-text", argv[par])) {
| ^
source/smart.c:504:9: note: 'par' is < 'argc'
504 | if (par < argc && !strcmp("-plen", argv[par])) {
| ^~~
source/smart.c:504:9: note: Left side of '&&' is true
source/smart.c:504:23: note: Assuming the condition is false
504 | if (par < argc && !strcmp("-plen", argv[par])) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
source/smart.c:504:5: note: Taking false branch
504 | if (par < argc && !strcmp("-plen", argv[par])) {
| ^
source/smart.c:562:9: note: 'par' is < 'argc'
562 | if (par < argc && !strcmp("-simple", argv[par])) {
| ^~~
source/smart.c:562:9: note: Left side of '&&' is true
source/smart.c:562:23: note: Assuming the condition is false
562 | if (par < argc && !strcmp("-simple", argv[par])) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
source/smart.c:562:5: note: Taking false branch
562 | if (par < argc && !strcmp("-simple", argv[par])) {
| ^
source/smart.c:585:9: note: 'par' is < 'argc'
585 | if (par < argc && !strcmp("-occ", argv[par])) {
| ^~~
source/smart.c:585:9: note: Left side of '&&' is true
source/smart.c:585:23: note: Assuming the condition is false
585 | if (par < argc && !strcmp("-occ", argv[par])) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
source/smart.c:585:5: note: Taking false branch
585 | if (par < argc && !strcmp("-occ", argv[par])) {
| ^
source/smart.c:589:9: note: 'par' is < 'argc'
589 | if (par < argc && !strcmp("-pre", argv[par])) {
| ^~~
source/smart.c:589:9: note: Left side of '&&' is true
source/smart.c:589:23: note: Assuming the condition is false
589 | if (par < argc && !strcmp("-pre", argv[par])) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
source/smart.c:589:5: note: Taking false branch
589 | if (par < argc && !strcmp("-pre", argv[par])) {
| ^
source/smart.c:593:9: note: 'par' is < 'argc'
593 | if (par < argc && !strcmp("-dif", argv[par])) {
| ^~~
source/smart.c:593:9: note: Left side of '&&' is true
source/smart.c:593:23: note: Assuming the condition is false
593 | if (par < argc && !strcmp("-dif", argv[par])) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
source/smart.c:593:5: note: Taking false branch
593 | if (par < argc && !strcmp("-dif", argv[par])) {
| ^
source/smart.c:597:9: note: 'par' is < 'argc'
597 | if (par < argc && !strcmp("-txt", argv[par])) {
| ^~~
source/smart.c:597:9: note: Left side of '&&' is true
source/smart.c:597:23: note: Assuming the condition is false
597 | if (par < argc && !strcmp("-txt", argv[par])) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
source/smart.c:597:5: note: Taking false branch