Re: [CIL users] Parsing coreutils

2015-10-07 Thread ThanhVu (Vu) Nguyen
I am wondering if this code H.add h "_Static_assert" (voidType, [ TInt (IBool, []); charConstPtrType ], false); will match _Static_assert ((*sizeof* (backup_args) / *sizeof* *(backup_args)) == ( *sizeof* (backup_types) / *sizeof* *(backup_types)) + 1, "verify (" "ARRAY_CARDINALITY (backup_args) =

Re: [CIL users] Parsing coreutils

2015-10-06 Thread ThanhVu (Vu) Nguyen
I've added this line right above H.add h "__builtin___fprintf_chk" (intType, [ voidPtrType; intType; charConstPtrType ], true) (* first argument is really FILE*, not void*, but we don't want to build in th ... Then recompile cil, then recompile coreutils but still got the same error at the same

Re: [CIL users] Parsing coreutils

2015-10-06 Thread Gabriel Kerneis
Le 2015-10-06 20:55, ThanhVu (Vu) Nguyen a écrit : > _Static_assert ((SIZEOF (backup_args) / SIZEOF *(backup_args)) == > (SIZEOF (backup_types) / SIZEOF *(backup_types)) + 1, "verify (" > "ARRAY_CARDINALITY (backup_args) == ARRAY_CARDINALITY (backup_types) > + > 1" ")"); _Static_assert seems to b

Re: [CIL users] Parsing coreutils

2015-10-06 Thread ThanhVu (Vu) Nguyen
Hi Grabiel, it expands to _Static_assert ((*sizeof* (backup_args) / *sizeof* *(backup_args)) == ( *sizeof* (backup_types) / *sizeof* *(backup_types)) + 1, "verify (" "ARRAY_CARDINALITY (backup_args) == ARRAY_CARDINALITY (backup_types) + 1" ")"); in the .i file Vu On Tue, Oct 6, 2015 at 2:45

[CIL users] Parsing coreutils

2015-10-05 Thread ThanhVu (Vu) Nguyen
Hi, I am trying to parse the coreutils 8.25 using CIL 1.7.3 (on a Debian 8 64 bit machine) but so far has no success. This is what I've done: 1. Run ./configure in coreutils-8.23 dir to create Makefile 2. Edit the generated Makefile in coreutils-8.23 dir and replace CC, CPP, and AR wit