1 # Makefile.in generated by automake 1.6.3 from Makefile.am.
4 # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
5 # Free Software Foundation, Inc.
6 # This Makefile.in is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
19 top_srcdir = @top_srcdir@
22 exec_prefix = @exec_prefix@
26 libexecdir = @libexecdir@
28 sysconfdir = @sysconfdir@
29 sharedstatedir = @sharedstatedir@
30 localstatedir = @localstatedir@
34 includedir = @includedir@
35 oldincludedir = /usr/include
36 pkgdatadir = $(datadir)/@PACKAGE@
37 pkglibdir = $(libdir)/@PACKAGE@
38 pkgincludedir = $(includedir)/@PACKAGE@
44 AUTOHEADER = @AUTOHEADER@
46 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
48 INSTALL_PROGRAM = @INSTALL_PROGRAM@
49 INSTALL_DATA = @INSTALL_DATA@
50 install_sh_DATA = $(install_sh) -c -m 644
51 install_sh_PROGRAM = $(install_sh) -c
52 install_sh_SCRIPT = $(install_sh) -c
53 INSTALL_SCRIPT = @INSTALL_SCRIPT@
54 INSTALL_HEADER = $(INSTALL_DATA)
55 transform = @program_transform_name@
62 build_alias = @build_alias@
63 build_triplet = @build@
64 host_alias = @host_alias@
66 target_alias = @target_alias@
67 target_triplet = @target@
71 PATH_SEPARATOR = @PATH_SEPARATOR@
82 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
86 LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
94 am__include = @am__include@
95 am__quote = @am__quote@
96 install_sh = @install_sh@
98 AUTOMAKE_OPTIONS = 1.5 foreign
104 #drl 3/27/2002 get the test suit to print a warning when splint is built under /usr/
106 #SPLINT = valgrind --leak-resolution=high --num-callers=20 --show-reachable=no --leak-check=no $(top_builddir)/src/splint$(EXEEXT)
107 SPLINT = $(top_builddir)/src/splint$(EXEEXT)
109 ### These are shell-specific
111 ### This is horrible! Can't we make top_builddir absolute?
112 #SPLINTNEST = valgrind --leak-resolution=high --num-callers=20 --show-reachable=no --leak-check=no ../$(top_builddir)/src/splint$(EXEEXT)
113 SPLINTNEST = ../$(top_builddir)/src/splint$(EXEEXT)
114 SPLINTPNEST = @$(SPLINTNEST) -nof
115 SPLINTP = @$(SPLINT) -nof
117 # Make sure .splintrc files are not used so test results do not
118 # depend on local settings.
119 SPLINTRN = $(SPLINTP) -hints -booltype "bool"
120 SPLINTR = $(SPLINTRN) -exportlocal +debugfcnconstraint
122 SPLINTRNNEST = $(SPLINTPNEST) -hints -booltype "bool"
123 SPLINTRNEST = $(SPLINTRNNEST) -exportlocal +debugfcnconstraint
127 ### rcfiles not included becuase file names will not match exactly
131 abstptr abstract alias alttypes ansireserved argorder \
132 args arraydims arrayinit arraylit blocks break cases cast chararraylit charlit clauses commentchar compdestroy \
133 compoundliterals compoundstmt constannot controldepth csyntax czechnames czechoslovaknames deadparam \
134 decl divzero enum enumtag exports external fields flags forbody format freearray \
135 funcpointer functionmacro glob globals impabstract info init inparam internal iter keep libs \
136 linked lintcomments list longint loopexec looptesteffect \
137 macros macrosef merge mergenull modifies modtest moduncon \
138 mongoincludes mystrncat noeffect null nullret nullassign numabstract observer oldstyle outglob outparam \
139 parentype postnotnull preds prefixes printflike rc refcounts release repexpose \
140 returned sharing shifts sizesigns slovaknames \
142 special stack staticarray strings \
144 structassign typequals typeof ud ulstypes union unioninit \
145 unnamedsu unreachable unsignedcompare \
146 unused ullint utypes void widestrings
148 UNITEXPECTS = $(addsuffix .expect, $(UNITTESTS))
151 ### warnuse doesn't work yet!
152 SUBDIRTESTS = metastate mergestate tainted fileio \
153 simplebufferConstraintTests moreBufferTests moreBufferTests2 globalbufferannotation \
154 maxset strchr sizeoftest for manual\
155 tests2.2 tests2.4 tests2.5 db1 db2 db3
157 SPLINTTESTS = $(UNITTESTS) $(SUBDIRTESTS)
161 CLEANOUTPUT = $(GREP) -v "Splint 3." | $(GREP) -v "$(SPLINT)" | $(GREP) -v "^make.*\[[1-9]*\]:" | $(GREP) -v "^gmake.*\[[1-9]*\]:" | $(GREP) -v "^gmake -e" | $(GREP) -v "^make -e" |$(GREP) -v "config.status: creating test/Makefile" | $(GREP) -v "cd .. && " | $(GREP) -v "CONFIG_HEADERS=" | $(GREP) -v "CONFIG_FILES="
164 #drl 12/07/2002 These rules for .c and .expect files don't make sense
165 # and they are confusing make dist so I'm taking them out.
168 # $(MAKE) $* |& $(CLEANOUTPUT) >$*.expect && cat $*.expect
171 # $(MAKE) $* |& $(CLEANOUTPUT) >$*.out && diff $*.expect $*.out
173 #drl temporally take this out.
176 # @echo "Saving old expects..."; \
177 # cat *.expect >expects-`date +"%y-%m-%d-%H"`
178 # @for TEST in $(UNITTESTS) $(INTEGTESTS); do \
179 # echo "Making $$TEST.expect..."; \
180 # $(MAKE) $$TEST 2>&1 | $(CLEANOUTPUT) >$$TEST.expect; \
181 # cat $$TEST.expect; \
183 CheckSystemDir = (pwd | grep -q "/usr" && echo "Warning tests which not run correctly when splint is built in /usr or a subdirectory under /usr. Build splint in a different directory or disregard test failures." )
185 #drl 11/29/2001 This is a very ugly hack to get make dist to work
186 EXTRA_DIST = ./abst_t.lcl \
232 ./repexpose.lh.expect \
246 ./globalbufferannotation/.splintrc \
249 ./tests2.2/bool.lcl \
250 ./tests2.4/subdir/main.lcl \
291 ./compoundliterals.c ./compoundliterals.expect \
292 ./compoundstmt.c ./compoundstmt.expect \
313 ./czechoslovaknames.c \
430 ./unsignedcompare.c \
434 ./conditions/miroslaw.c \
435 ./conditions/releases.c \
437 ./fileio/filebranch.c \
440 ./globalbufferannotation/globalvariable.c \
441 ./maxset/maxsetannotations.c \
442 ./maxset/maxsetnoannotations.c \
443 ./mergestate/taintednm.c \
445 ./metastate/file1.c \
446 ./metastate/file2.c \
447 ./metastate/file3.c \
448 ./metastate/file4.c \
449 ./metastate/file5.c \
450 ./metastate/file6.c \
451 ./metastate/file7.c \
452 ./metastate/filebad.c \
453 ./metastate/global.c \
454 ./metastate/nullbranch.c \
455 ./metastate/nullbranch2.c \
456 ./metastate/nullret.c \
458 ./metastate/sockets.c \
459 ./metastate/sockets2.c \
460 ./metastate/struct.c \
462 ./metastate/voidptr.c \
463 ./moreBufferTests/initialization.c \
464 ./moreBufferTests/simplifyTest.c \
465 ./moreBufferTests/strncatNotReallyGood.c \
466 ./moreBufferTests/strncatReallyGood.c \
467 ./moreBufferTests/strrchr.c \
468 ./moreBufferTests/unrecogCall.c \
469 ./nullterminatedtest/buggy1.c \
470 ./nullterminatedtest/buggy_support1.c \
471 ./nullterminatedtest/buggy_support_fmakeword.c \
472 ./nullterminatedtest/test1.c \
473 ./nullterminatedtest/test3.c \
474 ./simplebufferConstraintTests/m.c \
475 ./simplebufferConstraintTests/sizeof.c \
476 ./simplebufferConstraintTests/test3.c \
477 ./simplebufferConstraintTests/test7.c \
478 ./sizeoftest/sizeof.c \
479 ./sizeoftest/sizeofConst.c \
480 ./sizeoftest/Makefile \
482 ./suppressfile/test.c \
483 ./tainted/sprintf.c \
485 ./tainted/tainted.c \
486 ./tainted/tainted2.c \
487 ./tainted/tainted3.c \
488 ./tainted/tainted4.c \
489 ./tainted/tainted5.c \
490 ./tainted/taintedimplicit.c \
491 ./tainted/taintedmerge.c \
492 ./tainted/taintedx.c \
494 ./tclauses/globals.c \
496 ./tclauses/modifies.c \
497 ./tclauses/struct.c \
499 ./tests2.2/arbints.c \
500 ./tests2.2/arrayfcn.c \
501 ./tests2.2/booldef.c \
502 ./tests2.2/boolenum.c \
503 ./tests2.2/boolops.c \
505 ./tests2.2/bstring.c \
507 ./tests2.2/enumbool.c \
508 ./tests2.2/extension.c \
509 ./tests2.2/libraries.c \
510 ./tests2.2/modarray.c \
511 ./tests2.2/nestext.c \
512 ./tests2.2/offsetof.c \
514 ./tests2.2/realloc.c \
516 ./tests2.2/sizeofarray.c \
517 ./tests2.2/struct.c \
518 ./tests2.2a/addassign.c \
519 ./tests2.2a/arrayparam.c \
520 ./tests2.2a/bitops.c \
521 ./tests2.2a/boolcomp.c \
522 ./tests2.2a/boolenum.c \
526 ./tests2.2a/floatdouble.c \
527 ./tests2.2a/florian.c \
529 ./tests2.2a/isalpha.c \
530 ./tests2.2a/notreached.c \
531 ./tests2.2a/obviousloop.c \
532 ./tests2.2a/popik.c \
533 ./tests2.2a/sizeof.c \
534 ./tests2.2a/toralf.c \
535 ./tests2.4/subdir/main.c \
536 ./tests2.4/alignof.c \
538 ./tests2.4/bitfields.c \
543 ./tests2.4/cpptest.c \
544 ./tests2.4/driverstub.c \
546 ./tests2.4/emptycase.c \
547 ./tests2.4/enumtest.c \
550 ./tests2.4/flagequal.c \
551 ./tests2.4/forward.c \
553 ./tests2.4/hexconstants.c \
554 ./tests2.4/innercomment.c \
555 ./tests2.4/komazi.c \
556 ./tests2.4/longlong.c \
558 ./tests2.4/nothing.c \
559 ./tests2.4/offsetof.c \
562 ./tests2.4/syncomment.c \
563 ./tests2.4/syslog.c \
567 ./tests2.4/timecard.c \
568 ./tests2.4/toothman.c \
569 ./tests2.4/ulrich.c \
570 ./tests2.5/badcomment.c \
571 ./tests2.5/boolbad.c \
573 ./tests2.5/booltest.c \
574 ./tests2.5/dummyfile.c \
576 ./tests2.5/immutable.c \
577 ./tests2.5/impabsmodule.c \
578 ./tests2.5/literals.c \
581 ./tests2.5/testalt.c \
582 ./tests2.5/testimmutable.c \
583 ./tests2.5/uconstants.c \
585 ./warnuse/warnflags.c \
586 ./warnuse/warngets.c \
587 ./warnuse/warnuse.c \
588 ./moreBufferTests2/unknownsize.c \
589 ./moreBufferTests2/arrayConstExpr.c \
594 ansireserved.expect \
605 chararraylit.expect \
611 controldepth.expect \
614 czechoslovaknames.expect \
633 globalbufferannotation.expect \
644 lintcomments.expect \
646 longconstants.expect \
656 mongoincludes.expect \
657 moreBufferTests.expect \
658 moreBufferTests2.expect \
663 nullterminatedtest.expect \
676 repexpose.lh.expect \
679 simplebufferConstraintTests.expect \
689 structassign.expect \
703 unsignedcompare.expect \
742 ./metastate/global.h \
743 ./suppressfile/test.h \
745 ./tests2.4/forward.h \
747 ./tests2.4/timecard.h \
749 ./tests2.5/bimbim.h \
750 ./tests2.5/immutable.h \
751 ./tests2.5/impabsmodule.h \
752 ./tests2.5/socket.h \
757 ./conditions/Makefile \
760 ./globalbufferannotation/Makefile \
762 ./mergestate/Makefile \
763 ./metastate/Makefile \
764 ./moreBufferTests/Makefile \
765 ./simplebufferConstraintTests/Makefile \
769 ./tests2.2/Makefile \
770 ./tests2.2/Makefile-tests2.2.os2 \
771 ./tests2.4/Makefile \
772 ./tests2.4/Makefile-tests2.4.os2 \
773 ./tests2.5/Makefile \
777 ./moreBufferTests2/Makefile \
778 ./fileio/eof.mts ./fileio/file.mts ./fileio/filerw.mts ./mergestate/tainted.mts ./mergestate/taintednm.mts ./metastate/file.mts ./metastate/nullterminated.mts ./metastate/sockets.mts ./tainted/tainted-bad.mts ./tainted/tainted.mts ./fileio/file.xh ./fileio/filerw.xh ./mergestate/tainted.xh ./mergestate/taintednm.xh ./metastate/file.xh ./tainted/tainted.xh \
779 db2.old-expect union.pp warnuse.old-expect \
780 ./tests2.5/badcomment ./tests2.5/boolbad ./tests2.5/booltest ./tests2.5/uconstants loopexec.expect mergenull.expect shifts.expect looptesteffect.expect \
781 unioninit.expect unioninit.c utypes.c \
782 utypes.expect widestrings.expect widestrings.c \
783 functionmacro.expect functionmacro.c info.c info.expect \
784 longint.c loopexec.c looptesteffect.c mergenull.c shifts.c \
785 longint.expect nullret.expect numabstract.expect \
786 sizesigns.expect typeof.expect \
787 manual.expect ./manual/Makefile \
788 ./manual/annotglobs.c ./manual/bool.c ./manual/bool.h ./manual/clauses.c ./manual/employee.h ./manual/exposure.c ./manual/globals.c ./manual/ignore.c ./manual/implicit.c ./manual/intSet.h ./manual/list.c ./manual/loop.c ./manual/macros.c ./manual/modify.c ./manual/mstring.c ./manual/mstring.h ./manual/mstringnn.c ./manual/multiError.c ./manual/names.c ./manual/noeffect.c ./manual/null.c ./manual/only.c ./manual/order.c ./manual/palindrome.c ./manual/palindrome.h ./manual/refs.c ./manual/returned.c ./manual/rgb.c ./manual/rstring.c ./manual/rstring.h ./manual/sample.c ./manual/setChar.c ./manual/setname.c ./manual/setname.h ./manual/special.c ./manual/stack.c ./manual/sumsquares.c ./manual/switch.c ./manual/testpal.c ./manual/types.c ./manual/unique.c ./manual/usedef.c ./manual/bounds.c \
789 arraydims.expect arraydims.c \
790 moreBufferTests2/fixedArrayType.c oldstyle2.c \
791 divzero.expect parentype.expect \
792 divzero.c parentype.c \
793 stringliteral.expect stringliteral.c \
794 numabstract.c sizesigns.c typeof.c nullassign.expect
797 mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
798 CONFIG_HEADER = $(top_builddir)/config.h
801 DIST_COMMON = Makefile.am Makefile.in
805 $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.ac $(ACLOCAL_M4)
806 cd $(top_srcdir) && \
807 $(AUTOMAKE) --foreign test/Makefile
808 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
809 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
814 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
817 distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
819 distdir: $(DISTFILES)
820 $(mkinstalldirs) $(distdir)/./conditions $(distdir)/./db1 $(distdir)/./db2 $(distdir)/./db3 $(distdir)/./fileio $(distdir)/./for $(distdir)/./globalbufferannotation $(distdir)/./manual $(distdir)/./maxset $(distdir)/./mergestate $(distdir)/./metastate $(distdir)/./moreBufferTests $(distdir)/./moreBufferTests2 $(distdir)/./nullterminatedtest $(distdir)/./simplebufferConstraintTests $(distdir)/./sizeoftest $(distdir)/./strchr $(distdir)/./suppressfile $(distdir)/./tainted $(distdir)/./tclauses $(distdir)/./temp $(distdir)/./tests2.2 $(distdir)/./tests2.2a $(distdir)/./tests2.4 $(distdir)/./tests2.4/subdir $(distdir)/./tests2.5 $(distdir)/./warnuse $(distdir)/moreBufferTests2
821 @list='$(DISTFILES)'; for file in $$list; do \
822 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
823 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
824 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
826 $(mkinstalldirs) "$(distdir)$$dir"; \
830 if test -d $$d/$$file; then \
831 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
832 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
834 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
836 test -f $(distdir)/$$file \
837 || cp -p $$d/$$file $(distdir)/$$file \
848 install-exec: install-exec-am
849 install-data: install-data-am
850 uninstall: uninstall-am
853 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
855 installcheck: installcheck-am
857 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
858 INSTALL_STRIP_FLAG=-s \
859 `test -z '$(STRIP)' || \
860 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
866 -rm -f Makefile $(CONFIG_CLEAN_FILES)
868 maintainer-clean-generic:
869 @echo "This command is intended for maintainers to use"
870 @echo "it deletes files that may require special tools to rebuild."
873 clean-am: clean-generic clean-local mostlyclean-am
875 distclean: distclean-am
877 distclean-am: clean-am distclean-generic
891 install-info: install-info-am
897 maintainer-clean: maintainer-clean-am
899 maintainer-clean-am: distclean-am maintainer-clean-generic
901 mostlyclean: mostlyclean-am
903 mostlyclean-am: mostlyclean-generic
905 uninstall-am: uninstall-info-am
907 .PHONY: all all-am check check-am clean clean-generic clean-local \
908 distclean distclean-generic distdir dvi dvi-am info info-am \
909 install install-am install-data install-data-am install-exec \
910 install-exec-am install-info install-info-am install-man \
911 install-strip installcheck installcheck-am installdirs \
912 maintainer-clean maintainer-clean-generic mostlyclean \
913 mostlyclean-generic uninstall uninstall-am uninstall-info-am
921 -$(SPLINT) -help version
927 -@LARCH_PATH=/dev/null; $(SPLINT) -nof empty.lcl
930 -@$(SPLINTP) +boolint +boolint
931 -@$(SPLINT) -help flags alpha
933 #commenting these out for the release because they will almost always fail
934 #since the default will only fit one system
935 #Don't want to panic the user...
936 # -@$(SPLINT) -help flags all | $(GREP) -v "^larchpath <path> " | $(GREP) -v "^lclimportdir <directory> " | $(GREP) -v " Path argument. Default: " | $(GREP) -v " Directory argument. Default: " | $(GREP) -v " lclimportdir <directory> "
937 # -@$(SPLINT) -help flags full | $(GREP) -v "^larchpath <path> " | $(GREP) -v "^lclimportdir <directory> " | $(GREP) -v " Path argument. Default: " | $(GREP) -v " Directory argument. Default: " | $(GREP) -v " lclimportdir <directory> "
938 # -@$(SPLINT) -help flags manual | $(GREP) -v "^larchpath <path> " | $(GREP) -v "^lclimportdir <directory> " | $(GREP) -v " Path argument. Default: " | $(GREP) -v " Directory argument. Default: " | $(GREP) -v " lclimportdir <directory> "
940 #larch and lclimportdir have different hardcoded default paths so don't include the path in the output..
944 -rm -f *~ #*# *.o *.lcs a.out
947 -cd db1; $(MAKE) clean
948 -cd db2; $(MAKE) clean
949 -cd db3; $(MAKE) clean
951 $(SPLINTTESTS): $(SPLINT)
954 cd $(top_builddir)/src; $(MAKE)
959 @for TEST in $(QUICKTESTS); do \
960 echo "Checking $$TEST..."; \
961 $(MAKE) $$TEST 2>&1 | $(CLEANOUTPUT) >$$TEST.out && \
962 $(DIFF) $(DIFFFLAGS) $$TEST.expect $$TEST.out || \
963 echo "*** FAIL ***"; \
968 @echo "Testing $(PACKAGE) $(VERSION)..."
970 @echo "Version Info:"
971 @$(SPLINT) -help version
972 @$(SPLINT) -help vars
976 @for TEST in $(SPLINTTESTS); do \
977 echo "Checking $$TEST..."; \
978 $(MAKE) $$TEST 2>&1 | $(CLEANOUTPUT) >$$TEST.out && \
979 $(DIFF) $(DIFFFLAGS) $$TEST.expect $$TEST.out || \
980 echo "*** FAIL ***"; \
983 ### Rules for tests start here
987 -$(SPLINTR) abstptr -expect 9
988 -$(SPLINTR) abstptr +voidabstract -expect 6
992 -$(SPLINTR) abst_t.lcl commentcmd.c -expect 15
997 -$(SPLINTR) mut alias +globalias -expect 19
998 -$(SPLINTR) mut alias2 +globalias -expect 17
999 -$(SPLINTR) +lh alias3 -expect 14
1000 -$(SPLINTR) +lh alias4 +boolint
1001 -$(SPLINTR) alias4 -pred +retalias -expect 6
1002 -$(SPLINTR) +lh alias5 +memchecks -null -specundef -expect 5
1006 -$(SPLINTR) alttypes.c -expect 2
1009 ### evans 2001-06-07 - updated nameCheck.c to reflect C9X.
1010 ### Reports one new errors for ansireserved.c - wctomb is bad even as a local
1011 ### variable (could be a macro?)
1012 ### Reports 3 additional errors for +checks; no longer suppresses name errors
1013 ### in the presense of other errors.
1016 .PHONY: ansireserved
1018 -$(SPLINTR) ansireserved.c +ansireserved -nolib -expect 9
1019 -$(SPLINTR) ansireserved.c +ansireserved +ansireservedlocal -nolib -expect 11
1020 -$(SPLINTRN) ansireserved.c +checks -exportlocal -exportheadervar -exportheader -expect 12
1021 -$(SPLINTR) ansireserved2.c +ansireserved -expect 1
1025 -$(SPLINTR) argorder.c -expect 4
1026 -$(SPLINTR) argorder2 -expect 5
1027 -$(SPLINTR) argorder3.c -expect 8
1028 -$(SPLINTR) argorder4 -expect 9
1029 -$(SPLINTR) argorder4 -evalorder -expect 1
1030 -$(SPLINTR) argorder5.c +evalorderuncon -expect 3
1034 -$(SPLINTR) args -noeffect -expect 12
1038 -$(SPLINTR) arraydims.c -varuse -expect 2
1039 -$(SPLINTR) arraydims.c -initsize -varuse
1043 -$(SPLINTR) arrayinit.c -expect 9
1047 -$(SPLINTR) arraylit.c -expect 2
1048 -$(SPLINTR) arraylit.c +stringliteralsmaller -expect 4
1052 -$(SPLINTR) blocks.c -expect 4
1053 -$(SPLINTR) blocks.c +ifblock +elseifcomplete -expect 7
1054 -$(SPLINTR) blocks.c -ifempty +whileempty +whileblock -expect 3
1055 -$(SPLINTR) blocks.c -ifempty +forempty +forblock -expect 3
1056 -$(SPLINTR) blocks.c +allempty -expect 6
1057 -$(SPLINTRN) blocks.c +strict -exportlocal +partial -exportheader -expect 11
1061 -$(SPLINTR) break.c -expect 4
1062 -$(SPLINTR) break.c +deepbreak -expect 6
1063 -$(SPLINTR) break.c +deepbreak -looploopbreak -expect 5
1067 -$(SPLINTR) cases.c -expect 5
1068 -$(SPLINTR) cases2.c -expect 2
1069 -$(SPLINTRN) cases2.c +checks -exportlocal -exportheader -expect 3
1070 -$(SPLINTRN) cases2.c +checks -exportlocal -exportheader -branchstate -expect 3
1074 -$(SPLINTR) cast -accessmodule -expect 20
1075 -$(SPLINTRN) cast2.c +checks -exportlocal -exportheader -expect 3
1077 .PHONY: chararraylit
1079 -$(SPLINTR) chararraylit.c -expect 2
1081 ### Two addition errors detected with 2.5 with -numliteral.
1083 ### evans 2002-12-15: finds one more but in charlit
1086 -$(SPLINTR) +hints charlit.c -expect 4
1087 -$(SPLINTR) +hints -numliteral charlit.c -expect 6
1088 -$(SPLINTR) +hints charlit.c +charintliteral +ignoresigns -expect 1
1092 -$(SPLINTR) clauses.c +memchecks -expect 4
1093 -$(SPLINTR) clauses2.c +memchecks
1094 -$(SPLINTR) clauses3.c +memchecks -expect 2
1095 -$(SPLINTR) clauses3.c +memchecks +unixlib -expect 3
1099 -$(SPLINTR) commentchar.c -expect 4
1100 -$(SPLINTR) -commentchar '#' commentchar.c -expect 4
1102 .PHONY: controldepth
1104 -$(SPLINTR) +hints -controlnestdepth 2 controldepth.c -expect 2
1105 -$(SPLINTR) +hints -controlnestdepth 1 controldepth.c -expect 2
1109 -$(SPLINTRN) compdestroy.c +checks -exportlocal -exportheader -expect 1
1110 -$(SPLINTRN) compdestroy.c +checks -exportlocal -exportheader +strictdestroy -expect 2
1111 -$(SPLINTRN) compdestroy.c +checks -exportlocal -exportheader +strictdestroy +strictusereleased -expect 3
1112 -$(SPLINTRN) compdestroy.c +strict +partial -exportheader -expect 3
1114 .PHONY: compoundliterals
1116 ${SPLINTRN} compoundliterals.c
1118 .PHONY: compoundstmt
1120 ${SPLINTRN} compoundstmt.c -expect 3
1124 ${SPLINTRN} constannot.c +boundswrite -exportlocal -expect 2
1128 -$(SPLINTR) +quiet -incondefs csyntax.c -expect 1
1129 -$(SPLINTR) +quiet csyntax2.c -expect 2
1130 -$(SPLINTR) +quiet csyntax3.c -expect 1
1131 -$(SPLINTR) +quiet -incondefs csyntax4.c
1132 -$(SPLINTR) +quiet csyntax5.c
1133 -$(SPLINTR) +quiet csyntax6.c
1134 -$(SPLINTR) +quiet csyntax7.c
1135 -$(SPLINTR) +quiet csyntax8.c
1136 -$(SPLINTR) +quiet csyntax9.c
1137 -$(SPLINTR) +quiet csyntax10.c
1138 -$(SPLINTR) +quiet csyntax11.c
1139 -$(SPLINTR) +quiet csyntax12.c
1140 -$(SPLINTR) +quiet csyntax13.c -expect 1
1141 -$(SPLINTR) +quiet csyntax14.c
1142 -$(SPLINTR) +quiet csyntax15.c
1143 -$(SPLINTR) +quiet csyntax16.c -expect 2
1144 -$(SPLINTR) +quiet csyntax17.c -expect 3
1148 -$(SPLINTR) czechnames.c
1149 -$(SPLINTR) +hints +czech czechnames.c -expect 2
1150 -$(SPLINTR) +hints +czech -czechvars czechnames.c -expect 1
1151 -$(SPLINTR) +hints +czech -accessczech czechnames.c -expect 6
1153 .PHONY: czechoslovaknames
1155 -$(SPLINTR) +hints +czechoslovak czechnames.c -expect 1
1156 -$(SPLINTR) +hints +czechoslovak slovaknames.c -expect 1
1157 -$(SPLINTR) +hints +czechoslovak +slovakvars slovaknames.c -expect 2
1160 ### deadparam added 2001-05-27
1165 ${SPLINTR} deadparam.c -expect 3
1168 # Was expect 3 before 2.4. Earlier versions did not handle implicit
1169 # function pointers correctly.
1174 -$(SPLINTR) decl.c -expect 2
1175 -$(SPLINTRN) decl.c +strict -exportlocal -expect 5
1176 -$(SPLINTR) decl2 -expect 4
1180 -$(SPLINTR) divzero.c -varuse -expect 0
1184 -$(SPLINTR) enum -expect 16
1185 -$(SPLINTR) enum -misscase -expect 14
1189 -$(SPLINTR) enumtag.c -expect 2
1193 -$(SPLINTR) exports.c +exporttype +exportvar +exportfcn +topuse +typeuse -expect 6
1194 -$(SPLINTR) exports.c +exportany -expect 3
1195 -$(SPLINTR) exports.c
1199 -$(SPLINTR) external.c +partial
1200 -$(SPLINTR) external.c +partial +distinctexternalnames +ansi89limits -expect 2
1201 -$(SPLINTR) external.c -nolib +partial -externalnamelength 3 -expect 3
1202 -$(SPLINTR) external.c -nolib +partial -externalnamelength 3 +externalnamecaseinsensitive -expect 3
1203 -$(SPLINTR) external.c +partial -externalnamelength 3 -expect 4
1207 -$(SPLINTR) fields.c +memchecks -expect 6
1208 -$(SPLINTR) fields2.c +memchecks -expect 5
1209 -$(SPLINTR) fields3.c +memchecks
1213 -$(SPLINTR) flags.c -expect 8
1214 -$(SPLINTR) +nocomments flags.c -expect 2
1216 ### Added 2001-06-02
1220 ${SPLINTR} forbody.c -expect 2
1222 ### Added 2001-06-03
1225 ${SPLINTR} format.c -expect 3
1226 ${SPLINTR} format.c -formatconst
1228 # two new errors (invalid lhs)
1232 -$(SPLINTR) +memchecks +noparams funcpointer.c -expect 18
1234 .PHONY: functionmacro
1236 -$(SPLINTR) functionmacro.c -expect 2
1240 -$(SPLINTR) glob -expect 4
1241 -$(SPLINTR) glob -globuse -expect 3
1242 -$(SPLINTR) glob +globunspec -expect 6
1246 -$(SPLINTR) -modifies globals.c -expect 5
1247 -$(SPLINTR) -modifies globals.c +allglobals -expect 6
1248 -$(SPLINTR) -modifies globals.c +impcheckedglobals -expect 6
1249 -$(SPLINTR) -modifies globals.c -globals -checkstrictglobals -expect 2
1250 -$(SPLINTR) -modifies globals.c +globunspec -expect 6
1251 -$(SPLINTR) -modifies globals.c +globunspec +allglobals -expect 8
1256 -$(SPLINTR) -accessmodule impabstract.c
1257 -$(SPLINTR) -accessmodule +hints +impabstract impabstract.c -expect 2
1258 -$(SPLINTR) -accessmodule +hints +impabstract impabstract -expect 4
1261 ### evans 2001-12-30: Handle unrecognized pre-processor directives
1262 ### (Reported by Pierluigi Sanzani)
1266 ${SPLINTR} info.c -expect 4
1268 ### evans 2001-10-14: Expected errors updated
1271 -$(SPLINTR) init.c -expect 14
1272 -$(SPLINTRN) init.c +checks -exportlocal -exportheadervar -expect 17
1276 -$(SPLINTR) inparam.c -expect 2
1277 -$(SPLINTR) +impouts inparam.c -expect 1
1281 -$(SPLINTR) internal.c -expect 1
1282 -$(SPLINTR) internal.c +distinctinternalnames -expect 1
1283 -$(SPLINTR) internal.c +distinctinternalnames +ansi89limits -expect 2
1284 -$(SPLINTR) internal.c -internalnamelen 28 -expect 3
1285 -$(SPLINTR) internal.c +internalnamecaseinsensitive -expect 3
1286 -$(SPLINTR) internal.c +internalnamecaseinsensitive +internalnamelookalike -expect 11
1290 ### 2001-06-06: Error message for iter.lcl:3,6 fixed to iter.lcl:3:6
1295 -$(SPLINTR) iter -expect 14 -lclexpect 1
1296 -$(SPLINTR) iter2.c -expect 12
1300 -$(SPLINTR) keep.c +memchecks -expect 6
1303 ### 2001-05-22: 2 new errors found (fixed spec of signal)
1304 ### 2001-05-30: 3 new errors found (formatconst)
1305 ### 2002-07-08: 2 new errors found (getc modifies errno)
1309 -$(SPLINTR) libs.c +longunsignedunsignedintegral -expect 18
1310 -$(SPLINTR) libs.c -expect 22
1311 -$(SPLINTR) libs.c +globunspec +modunspec -expect 25
1312 -$(SPLINTR) libs.c +strictlib +globunspec +modunspec -expect 44
1314 .PHONY: lintcomments
1316 -$(SPLINTR) lintcomments.c -expect 5
1317 -$(SPLINTR) lintcomments.c -warnlintcomments -expect 1
1318 -$(SPLINTR) lintcomments.c -lintcomments -expect 4
1322 -$(SPLINTR) list.c -expect 3
1325 ### 2002-12-12: Added test case for +longint and +shortint flags
1330 -$(SPLINTR) longint.c -expect 3
1331 -$(SPLINTR) longint.c +longint -expect 2
1332 -$(SPLINTR) longint.c +shortint -expect 2
1333 -$(SPLINTR) longint.c +shortint +longint -expect 0
1336 ### 2002-01-01: Added test case for obvious loop execution.
1341 -$(SPLINTR) loopexec.c -expect 1
1342 -$(SPLINTR) loopexec.c -obviousloopexec -expect 3
1344 .PHONY: looptesteffect
1346 -$(SPLINTR) looptesteffect.c -expect 1
1350 -$(SPLINTR) macros -expect 17
1351 -$(SPLINTR) macros.c +allmacros -expect 34
1352 -$(SPLINTR) macros.c +fcnmacros -expect 31
1356 -$(SPLINTR) macrosef -expect 4
1357 -$(SPLINTR) macrosef.c +allmacros -expect 3
1358 -$(SPLINTR) macrosef.c +allmacros +sefuncon -expect 4
1362 -$(SPLINTRN) merge.c +checks -exportlocal -exportheadervar -exportheader -expect 3
1366 -$(SPLINTRN) mergenull.c
1370 -$(SPLINTR) modifies.c modclient.c +impcheckedstatics +mustmod -expect 7
1374 -$(SPLINTR) modtest -expect 10
1375 -$(SPLINTR) modtest +modunspec -expect 13
1376 -$(SPLINTR) modtest +mustmod -expect 14
1380 -$(SPLINTR) moduncon.c +moduncon -memchecks -expect 4
1381 -$(SPLINTRN) moduncon.c +strict -exportlocal -expect 22
1383 .PHONY: mongoincludes
1385 -$(SPLINTR) mongoincludes.c -includenest 1 -expect 19
1386 -$(SPLINTR) mongoincludes.c -includenest 2 -expect 10
1387 -$(SPLINTR) mongoincludes.c -includenest 3 -expect 4
1388 -$(SPLINTR) mongoincludes.c -includenest 4 -expect 1
1389 -$(SPLINTR) mongoincludes.c -includenest 5 -expect 0
1393 -$(SPLINTR) mystrncat.c +boundsread +boundswrite -expect 4
1397 ${SPLINTP} noeffect.c +allmacros +checks -expect 3
1400 ### 2002-01-01: null1.c: expect increased to 15 because out must be defined
1401 ### checking detects one new error
1406 -$(SPLINTR) null1.c -expect 15
1407 -$(SPLINTR) null1.c -null -mustdefine -expect 4
1408 -$(SPLINTR) null2.c -expect 11
1409 -$(SPLINTR) null3.c -expect 15
1410 -$(SPLINTR) null3.c -warnunixlib +unixlib -expect 16
1411 -$(SPLINTR) null4.c -expect 1
1412 -$(SPLINTR) null5.c -expect 4
1413 -$(SPLINTR) null6 -expect 4
1414 -$(SPLINTR) +quiet null6.lcl -dump null6
1415 -$(SPLINTR) null6.c -load null6 -expect 4
1417 ### Added for 3.0 (bugs reported by Kevin Broady)
1421 -$(SPLINTR) nullret.c -expect 2
1422 -$(SPLINTR) -nullret nullret.c -expect 0
1426 -$(SPLINTR) nullassign.c -expect 2
1427 -$(SPLINTR) -nullassign nullassign.c -expect 1
1429 ### Added for 3.1 - evans 2002-12-14
1433 -$(SPLINTR) numabstract.c -expect 11
1434 -$(SPLINTR) numabstract.c +numabstractlit -expect 9
1435 -$(SPLINTR) numabstract.c -numabstractcast -expect 10
1438 # Before 2.4, expected one more because error was reported both as
1439 # dependent and observer.
1444 -$(SPLINTRN) observer +checks -exportlocal -exportheader -expect 9
1445 -$(SPLINTRN) observer.c +checks -exportlocal -exportheader -expect 8
1446 -$(SPLINTR) observer.c -expect 7
1450 -$(SPLINTR) oldstyle oldstyle2.c -expect 5
1454 -$(SPLINTR) outglob -expect 10
1458 -$(SPLINTR) outparam -expect 12
1460 ### evans 2001-08-26: postnotnull new
1464 ${SPLINTR} postnotnull.c -expect 1
1466 ### evans 2002-02-09: added parentype.c
1469 ${SPLINTR} parentype.c
1472 # Four new +fcnuse errors for -strict (evans 2001-07-22)
1477 -$(SPLINTR) +hints preds.c -expect 6
1478 -$(SPLINTRN) +hints preds.c -weak -expect 1
1479 -$(SPLINTRN) +hints preds.c -strict -exportlocal -exportheader -expect 12
1483 -$(SPLINTR) prefixes.c +partial
1484 -$(SPLINTRN) prefixes.c +allmacros +checks -exportlocal +partial -exportheader -exportheadervar -expect 4
1485 -$(SPLINTR) prefixes.c -typeprefix "T" -expect 2
1486 -$(SPLINTR) prefixes.c -typeprefix "^" -expect 1
1487 -$(SPLINTR) prefixes.c -typeprefix "^*" -expect 2
1488 -$(SPLINTR) prefixes.c -typeprefix "^%*" -expect 2
1489 -$(SPLINTR) prefixes.c -typeprefix "^~*" -expect 2
1490 -$(SPLINTR) prefixes.c -typeprefix "^" +typeprefixexclude -expect 7
1491 -$(SPLINTR) prefixes.c -filestaticprefix "^^" -expect 4
1492 -$(SPLINTR) prefixes.c -filestaticprefix "^#" -expect 5
1493 -$(SPLINTR) prefixes.c -filestaticprefix "^?&x" -expect 5
1494 -$(SPLINTR) prefixes.c -globalprefix "G" -expect 1
1495 -$(SPLINTR) prefixes.c -globalprefix "&G?_^" -expect 1
1496 -$(SPLINTR) prefixes.c -externalprefix "G" -expect 5
1497 -$(SPLINTR) prefixes.c -typeprefix "T" -externalprefix "G" -expect 4
1498 -$(SPLINTR) prefixes.c -localprefix "?*" +localprefixexclude -expect 13
1502 -$(SPLINTR) printflike.c -expect 6
1503 -$(SPLINTR) printflike.c -warnlintcomments -expect 5
1507 -$(SPLINTR) -DMYSTERY='"a flag\"wicked cool"' rc.c -expect 1
1508 -$(SPLINTR) -DMYSTERY=12 rc.c -expect 1
1509 -$(SPLINTR) -f rc1.splintrc rc.c -expect 1
1510 -$(SPLINTR) -UMYSTERY -f rc1.splintrc rc.c -expect 1
1511 -$(SPLINTR) -f rc3.splintrc rc.c -expect 1
1515 cd rcfiles; ${MAKE} SPLINT="-$(SPLINTPNEST)"
1519 -$(SPLINTR) refcounts.c -expect 7
1523 -$(SPLINTR) release.c +memchecks -expect 1
1527 -$(SPLINTR) +lh repexpose +memchecks -expect 12
1528 -$(SPLINTR) repexpose +memchecks +retalias -expect 15
1529 -$(SPLINTRN) repexpose +checks -exportlocal -expect 27
1531 ### returned added 2001-05-27
1532 ### (Bug discovered checking splint sources.)
1536 ${SPLINTR} returned.c -expect 1
1540 -$(SPLINTR) sharing1.c -expect 21
1541 -$(SPLINTR) sharing3.c -expect 3
1542 -$(SPLINTR) sharing4.c -expect 13
1543 -$(SPLINTR) sharing4.c -paramimptemp -expect 12
1544 -$(SPLINTR) sharing5.c -expect 6
1548 -$(SPLINTR) shifts.c -expect 4
1549 -$(SPLINTR) shifts.c -shiftimplementation -expect 3
1550 -$(SPLINTR) shifts.c -shiftnegative -expect 1
1552 #drl comment this out until sizesigns is added to cvs
1554 ### evans - added 2002-08-17: check warnings with arbitrary integral types
1556 -$(SPLINTR) +strict sizesigns.c -expect 5
1557 -$(SPLINTR) +strict +matchanyintegral sizesigns.c -expect 4
1561 -$(SPLINTR) +hints slovaknames.c -expect 1
1562 -$(SPLINTR) +hints slovaknames.c +accessslovak
1563 -$(SPLINTR) +hints +slovak slovaknames.c -expect 3
1564 -$(SPLINTR) +hints +slovak -slovakvars slovaknames.c -expect 2
1565 -$(SPLINTR) +hints +slovak -accessslovak slovaknames.c -expect 7
1569 -$(SPLINTR) specclauses.c -expect 6
1570 -$(SPLINTR) specclauses2.c -expect 8
1571 -$(SPLINTR) specclauses3.c -expect 5
1572 -$(SPLINTR) specclauses4.c -expect 3
1573 -$(SPLINTR) specclauses5.c -expect 3
1575 .PHONY: specclauses1
1577 -$(SPLINTR) specclauses.c -expect 6
1579 .PHONY: specclauses2
1581 -$(SPLINTR) specclauses2.c -expect 8
1583 .PHONY: specclauses3
1585 -$(SPLINTR) specclauses3.c -expect 6
1587 .PHONY: specclauses4
1589 -$(SPLINTR) specclauses4.c -expect 3
1591 .PHONY: specclauses5
1593 -$(SPLINTR) specclauses5.c -expect 3
1597 -$(SPLINTR) special -expect 20
1598 -$(SPLINTR) special -relaxquals -expect 22
1602 -$(SPLINTR) stack.c -expect 5
1603 -$(SPLINTR) stack.c -stackref
1607 -$(SPLINTR) staticarray.c -expect 3
1610 ### evans 2002-03-16: Default setting of stringliteralnoroomfinalnull changed
1613 .PHONY: stringliteral
1615 -$(SPLINTR) stringliteral.c -stringliteralnoroomfinalnull -expect 3
1616 -$(SPLINTR) stringliteral.c -expect 4
1620 -$(SPLINTR) strings.c -expect 3
1621 -$(SPLINTR) -readonlystrings -expect 1 strings.c
1622 -$(SPLINTR) +modobserverstrict -maintype -expect 4 strings.c
1624 .PHONY: structassign
1626 -$(SPLINTR) structassign.c -expect 4
1630 -$(SPLINTR) typeof.c -expect 2
1634 -$(SPLINTR) typequals.c tq.lcl -expect 5
1635 -$(SPLINTR) typequals.c -expect 2
1639 -$(SPLINTR) ud.c -expect 9
1640 -$(SPLINTR) ud2 -specundef -expect 3
1644 -$(SPLINTR) ulstypes.c -expect 8
1645 -$(SPLINTR) ulstypes.c +ignorequals
1646 -$(SPLINTRN) ulstypes.c +strict -exportheader -exportheadervar -expect 28
1648 # 3 more detected with version 2.5 (change in -numliteral setting)
1652 -$(SPLINTR) +memchecks union.c -expect 8
1655 ### Added 2001-12-30: fixed union initializer checking in response to
1656 ### bug report from Jim Zelenka.
1661 -$(SPLINTR) unioninit.c -expect 2
1665 -$(SPLINTR) unnamedsu.c -expect 0
1669 -$(SPLINTR) unreachable.c -expect 5
1670 -$(SPLINTR) -unreachable unreachable.c -expect 2
1671 -$(SPLINTR) switch.c -expect 4
1673 .PHONY: unsignedcompare
1675 ${SPLINTR} +posixlib unsignedcompare.c -expect 4
1678 ### 2001-06-08 evans: 2 new errors after fixing ansireserved name checks
1683 -$(SPLINTRN) unused.c +checks -exportlocal -expect 5
1684 -$(SPLINTRN) unused.c +checks -exportlocal +topuse -expect 8
1687 ### 2001-06-10: Provided by Jim Zalenka
1692 ${SPLINTRN} ullint.c -expect 5
1693 ${SPLINTRN} ullint.c +charint +charintliteral -expect 2
1696 ### 2001-12-30: Poor warnings reported by Peter Deutsch
1698 ### 2002-07-03: removed warnings for datatype/macro definitions
1703 ${SPLINTRN} utypes.c -expect 2
1709 ${SPLINTRN} void.c -expect 2
1712 ### 2001-12-30: Problems with wide character strings reported by Nelson Beebe
1717 ${SPLINTRN} widestrings.c -expect 2
1725 ${SPLINTR} linked.c -expect 4
1726 ${SPLINTR} linked2.c -expect 3
1727 ${SPLINTR} linked3.c -expect 5
1728 ${SPLINTR} linked4.c -expect 6
1729 ${SPLINTR} linked5.c -expect 4
1730 ${SPLINTR} linked6.c -expect 4
1734 ${SPLINTR} freearray.c -expect 1
1738 -$(SPLINTR) +bounds sizeof.c -expect 1
1742 -$(SPLINTR) +bounds buffertest1.c -expect 5
1744 .PHONY: $(SUBDIRTESTS)
1746 cd $@; $(MAKE) SPLINT="$(SPLINTRNNEST)"
1748 # sizesigns.c sizesigns.expect \
1749 # Tell versions [3.59,3.63) of GNU make to not export all variables.
1750 # Otherwise a system limit (for SysV at least) may be exceeded.