<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to bugs</title><link href="https://sourceforge.net/p/ctool/bugs/" rel="alternate"/><link href="https://sourceforge.net/p/ctool/bugs/feed.atom" rel="self"/><id>https://sourceforge.net/p/ctool/bugs/</id><updated>2006-01-11T08:56:23Z</updated><subtitle>Recent changes to bugs</subtitle><entry><title>local variables with register storage class fail to parse</title><link href="https://sourceforge.net/p/ctool/bugs/8/" rel="alternate"/><published>2006-01-11T08:56:23Z</published><updated>2006-01-11T08:56:23Z</updated><author><name>Daniel Kroening</name><uri>https://sourceforge.net/u/kroening/</uri></author><id>https://sourceforge.net44f235db821f3f4ff9511614d831587ea6c1ba0f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;This fails to parse:&lt;/p&gt;
&lt;p&gt;int main()&lt;br /&gt;
{&lt;br /&gt;
register char *p;&lt;br /&gt;
register char **mvp;&lt;br /&gt;
char **pvp;&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;Error:&lt;/p&gt;
&lt;p&gt;Invalid use of local storage type:&lt;br /&gt;
register char *p;&lt;br /&gt;
^&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>ll suffix in integer constants</title><link href="https://sourceforge.net/p/ctool/bugs/7/" rel="alternate"/><published>2005-10-19T03:46:32Z</published><updated>2005-10-19T03:46:32Z</updated><author><name>Daniel Kroening</name><uri>https://sourceforge.net/u/kroening/</uri></author><id>https://sourceforge.netb2b1757f5b62e7d7084e3c1e47a031965dd84054</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;ctool fails to tokenize integers with "ll" token, e.g.,&lt;br /&gt;
0LL.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>register keyword in function argument list</title><link href="https://sourceforge.net/p/ctool/bugs/6/" rel="alternate"/><published>2005-10-19T03:41:07Z</published><updated>2005-10-19T03:41:07Z</updated><author><name>Daniel Kroening</name><uri>https://sourceforge.net/u/kroening/</uri></author><id>https://sourceforge.netb875d5cbea0e9d77c39f3db6ca7aadde27530c8f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;ctool fails to parse function declarations with the&lt;br /&gt;
register keyword in the argument list, e.g.:&lt;/p&gt;
&lt;p&gt;void f(register int i)&lt;br /&gt;
{&lt;br /&gt;
}&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>ctool compiled with bison-1.875 (latest) fails to parse </title><link href="https://sourceforge.net/p/ctool/bugs/5/" rel="alternate"/><published>2004-12-22T18:07:39Z</published><updated>2004-12-22T18:07:39Z</updated><author><name>Benny Godlin</name><uri>https://sourceforge.net/u/bennygodlin/</uri></author><id>https://sourceforge.netfbdd541fd5c6dda023ff9bce42f25145495c7de2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi&lt;br /&gt;
I use ctool to build a regression verification tool base on &lt;br /&gt;
Daniel Kroening's CBMC.&lt;br /&gt;
When I compile ctool (on linux) with bison-1.875 &lt;br /&gt;
it fails it generates parse errors no matter what&lt;br /&gt;
C code I try to parse with ctool (see errors below).&lt;br /&gt;
When I compile ctool with bison-1.25 on Linux&lt;br /&gt;
or SunOS everything goes OK.&lt;/p&gt;
&lt;p&gt;Did anybody else tried to use compile ctool with  bison-&lt;br /&gt;
1.875 and use it ?&lt;br /&gt;
Does anybody know what in (the structure) of &lt;br /&gt;
ctool/src/gram.y may cause the new version of bison to &lt;br /&gt;
generate bad parsers ?&lt;/p&gt;
&lt;p&gt;Currently I work totally OK with bison-1.25&lt;br /&gt;
but I am not sure we want ctool to stay confined&lt;br /&gt;
to old version of bison.&lt;/p&gt;
&lt;p&gt;Thanks&lt;br /&gt;
benny&lt;/p&gt;
&lt;p&gt;The errors I got:&lt;/p&gt;
&lt;p&gt;../rv_structs.h:25: Error (syntax error) before 'char'&lt;br /&gt;
char* cond;&lt;br /&gt;
^&lt;br /&gt;
../rv_structs.h:27: Warning - old-style declaration or &lt;br /&gt;
incorrect type:&lt;br /&gt;
} DCP;&lt;br /&gt;
^&lt;br /&gt;
../rv_structs.h:29: Error (syntax error) before 'Identifier'&lt;br /&gt;
CHANNEL RV_DEF_CHANNEL = { 4 };&lt;br /&gt;
^&lt;br /&gt;
../rv_structs.h:29: Warning - old-style declaration or &lt;br /&gt;
incorrect type:&lt;br /&gt;
CHANNEL RV_DEF_CHANNEL = { 4 };&lt;br /&gt;
^&lt;br /&gt;
tst1.rv:4: Unknown parameter: SIDE0_CHECK_POINTS:&lt;br /&gt;
SIDE0_CHECK_POINTS() {&lt;br /&gt;
^&lt;br /&gt;
tst1.rv:4: Error (syntax error) before 'Identifier'&lt;br /&gt;
SIDE0_CHECK_POINTS() {&lt;br /&gt;
^&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>'make depend', *.l can't find std libs. Also __STDC__ prob.</title><link href="https://sourceforge.net/p/ctool/bugs/4/" rel="alternate"/><published>2004-07-15T18:00:56Z</published><updated>2004-07-15T18:00:56Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net69e501faefdb0544cf82601a7459358eca42040a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I'm compiling ctool on cygwin over WinXP Pro, using gcc&lt;br /&gt;
version 3.3.1.  With versions of flex 2.5.4, and also&lt;br /&gt;
2.5.31,&lt;br /&gt;
I am getting the same following errors (and I don't&lt;br /&gt;
know of any flex versions I *don't* get the errors with):&lt;/p&gt;
&lt;p&gt;1)First problem:&lt;br /&gt;
After doing ./config, 'make depend' spits out lots of&lt;br /&gt;
warnings, all about std lib files (and I have all the&lt;br /&gt;
'using namespace std' in the *.cpp/*.h/*.l/*.y files&lt;br /&gt;
after they include std lib files).&lt;br /&gt;
Warnings look like:&lt;br /&gt;
makedepend: warning:  lexer.l (reading context.h, line&lt;br /&gt;
36): cannot find include file "cstdio"&lt;br /&gt;
not in ./cstdio&lt;br /&gt;
not in /usr/local/lib/gcc-include/cstdio&lt;br /&gt;
not in /usr/include/cstdio&lt;br /&gt;
not in /usr/include/w32api/cstdio&lt;br /&gt;
not in&lt;br /&gt;
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/include/cstdio&lt;/p&gt;
&lt;p&gt;My PATH environment includes the path to the 'missing'&lt;br /&gt;
files:&lt;br /&gt;
/usr/include/c++/3.3.1/&lt;/p&gt;
&lt;p&gt;And, if I leave flex out of the compilation process,&lt;br /&gt;
there are no warning messages about missing std lib&lt;br /&gt;
files (even though many other files in the project&lt;br /&gt;
include them).&lt;/p&gt;
&lt;p&gt;2) 2nd problem:&lt;br /&gt;
After compiling (the compilation completes, despite the&lt;br /&gt;
warning messages about std library files), all the&lt;br /&gt;
tests in the regression directory fail.  The output&lt;br /&gt;
looks as on the bottom of this post (only more of it).&lt;/p&gt;
&lt;p&gt;Thank you in advance, for any fixes!&lt;br /&gt;
Sincerely,&lt;br /&gt;
Lori&lt;br /&gt;
(handle is debian_usr at sourceforge )&lt;/p&gt;
&lt;p&gt;Test message output:&lt;br /&gt;
-----------------------------------------&lt;br /&gt;
Test Suite output from suite accept0&lt;/p&gt;
&lt;p&gt;Test started at: Thu Jul 15 13:50:40 PST 2004&lt;/p&gt;
&lt;p&gt;Testing the 8q program...&amp;lt;command line&amp;gt;:10:1: warning:&lt;br /&gt;
"__STDC__" redefined&lt;br /&gt;
run/8q.c:44: Error (syntax error) before 'Identifier'&lt;br /&gt;
typedef __builtin_va_list __gnuc_va_list;&lt;br /&gt;
^&lt;br /&gt;
assertion "err_top_level || ! IsTypedefDeclCtxt()"&lt;br /&gt;
failed: file "context.cpp", line 321&lt;br /&gt;
Signal 6&lt;br /&gt;
done.&lt;br /&gt;
Testing the bug1 program...&amp;lt;command line&amp;gt;:10:1:&lt;br /&gt;
warning: "__STDC__" redefined&lt;br /&gt;
done.&lt;br /&gt;
Testing the bug2 program...&amp;lt;command line&amp;gt;:10:1:&lt;br /&gt;
warning: "__STDC__" redefined&lt;br /&gt;
done.&lt;br /&gt;
Testing the bug3 program...&amp;lt;command line&amp;gt;:10:1:&lt;br /&gt;
warning: "__STDC__" redefined&lt;br /&gt;
done.&lt;br /&gt;
Testing the bug4 program...&amp;lt;command line&amp;gt;:10:1:&lt;br /&gt;
warning: "__STDC__" redefined&lt;br /&gt;
done.&lt;br /&gt;
Testing the bug5 program...&amp;lt;command line&amp;gt;:10:1:&lt;br /&gt;
warning: "__STDC__" redefined&lt;br /&gt;
done.&lt;br /&gt;
Testing the bug7 program...&amp;lt;command line&amp;gt;:10:1:&lt;br /&gt;
warning: "__STDC__" redefined&lt;br /&gt;
run/bug7.c:60: Error (syntax error) before '#line'&lt;br /&gt;
# 61 "run/bug7.c"&lt;br /&gt;
^&lt;br /&gt;
run/bug7.c:66: Warning - old-style declaration or&lt;br /&gt;
incorrect type:&lt;br /&gt;
} myBar;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>ctool 2.11 fails to compile on FreeBSD 4.7-R</title><link href="https://sourceforge.net/p/ctool/bugs/3/" rel="alternate"/><published>2003-04-12T20:21:59Z</published><updated>2003-04-12T20:21:59Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net504e20b7257cad3d1cf26458827e0849b886706f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have not been able to compile ctool under FreeBSD 4.7-RELEASE with gcc 2.95.4.  See below.&lt;/p&gt;
&lt;p&gt;[njyoder@topcat ~/work/ctool/ctool-2.11/src]$ uname -a&lt;br /&gt;
FreeBSD topcat.mine.nu 4.7-RELEASE-p6 FreeBSD 4.7-RELEASE-p6 #21: Sat Mar  1 06:07:58 EST 2003     njyoder@topcat.mine.nu:/usr/obj/usr/src/sys/TOPCAT  i386&lt;br /&gt;
[njyoder@topcat ~/work/ctool/ctool-2.11/src]$ make&lt;br /&gt;
c++ -c -g -Wall -I.  -DUSE_GCC_4_CPP  -DDEBUG -DLIB_CPP=\&amp;amp;amp;quot;/usr/bin/cpp\&amp;amp;amp;quot; ctdemo.cpp&lt;br /&gt;
In file included from context.h:40,&lt;br /&gt;
from parseenv.h:42,&lt;br /&gt;
from ctool.h:46,&lt;br /&gt;
from ctdemo.cpp:41:&lt;br /&gt;
decl.h: In method `class Type * Type::extend(Type *)':&lt;br /&gt;
decl.h:216: warning: control reaches end of non-void function `Type::extend(Type *)'&lt;br /&gt;
decl.h: In method `class Type * BaseType::extend(Type *)':&lt;br /&gt;
decl.h:263: warning: control reaches end of non-void function `BaseType::extend(Type *)'&lt;br /&gt;
In file included from ctool.h:51,&lt;br /&gt;
from ctdemo.cpp:41:&lt;br /&gt;
express.h: At top level:&lt;br /&gt;
express.h:226: syntax error before `val'&lt;br /&gt;
express.h:232: syntax error before `;'&lt;br /&gt;
express.h:233: base `Constant' with only non-default constructor&lt;br /&gt;
express.h:233: in class without a constructor&lt;br /&gt;
*** Error code 1&lt;/p&gt;
&lt;p&gt;Stop in /home/njyoder/work/ctool/ctool-2.11/src.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>duplicate variable declarations</title><link href="https://sourceforge.net/p/ctool/bugs/2/" rel="alternate"/><published>2003-01-14T22:30:13Z</published><updated>2003-01-14T22:30:13Z</updated><author><name>Daniel Kroening</name><uri>https://sourceforge.net/u/kroening/</uri></author><id>https://sourceforge.net5e2a1c65912fd7be06efd680e2b969a279dce54d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;ANSI-C allows duplicate variable declarations, but ctool &lt;br /&gt;
complains about this, e.g.:&lt;/p&gt;
&lt;p&gt;extern int test;&lt;br /&gt;
int test;&lt;/p&gt;
&lt;p&gt;/tmp/aa.c:2: Symbol name duplicated: test:&lt;br /&gt;
int test;&lt;br /&gt;
^&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Compilation error on G++ 3.0.1</title><link href="https://sourceforge.net/p/ctool/bugs/1/" rel="alternate"/><published>2002-09-16T16:53:33Z</published><updated>2002-09-16T16:53:33Z</updated><author><name>Flavio Lerda</name><uri>https://sourceforge.net/u/flerda/</uri></author><id>https://sourceforge.netf152ba6c8493bb669010fb7b2258cdcbd9436d2f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I tried to compile ctool 2.11 as is but I had to fix&lt;br /&gt;
the following.&lt;/p&gt;
&lt;p&gt;decl.cpp:131&lt;br /&gt;
- cout needs to be std::cout&lt;/p&gt;
&lt;p&gt;lexer.l:580&lt;br /&gt;
- string needs to be std::string&lt;/p&gt;
&lt;p&gt;regards,&lt;br /&gt;
-Flavio Lerda&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>