Re: [CIL users] [CIL] Preventing CIL from compiling the result

2011-11-17 Thread Pavel Shved
tly call cilly.asm.exe. As far as I remember, "cilly" prints the command line that executable's invoked with. This is a "raw" cillyfier, which doesn't perform preprocessing and/or compilation. -- Pavel Shved website:

Re: [CIL users] Simplifying --dosimplify, continued (+updated patch)

2011-10-31 Thread Pavel Shved
ructures should be suppressed when using --no-convert-field- offsets, like it is in the patch. However, I do not really understand in what cases splitting structures happens. Is the situation like the one above feasible? -- Pavel Shved website: http://coldattic.info/ e-mail: pavel.sh...@gmail.com&

Re: [CIL users] Simplifying --dosimplify, continued

2011-10-30 Thread Pavel Shved
the conversion bug is still there! So, it's a generic issue with --dosimplify, rather than a bug introduced by the modification. -- Pavel Shved website: http://coldattic.info/ e-mail: pavel.sh...@gmail.com --

Re: [CIL users] Simplifying --dosimplify, continued

2011-10-30 Thread Pavel Shved
rt-field- offsets". Retaining behavior without the additional options is the primary goal here. -- Pavel Shved website: http://coldattic.info/ e-mail: pavel.sh...@gmail.com -- Get your Android app more play: Bri

Re: [CIL users] Simplifying --dosimplify, continued

2011-10-30 Thread Pavel Shved
elds. > > Besides, the behavior without this command- line option is > > retained. > > I do not like the idea of adding bugs on purpose, but I see your > point. Need to think a bit more about it. I do not approach this as "adding a bug on purpose". Rather, I think

[CIL users] Simplifying --dosimplify, continued

2011-10-27 Thread Pavel Shved
or without this command- line option is retained. -- Pavel Shved website: http://coldattic.info/ e-mail: pavel.sh...@gmail.com>From 6c3e51e7ae4882beae61e9600b6803414d9c9e23 Mon Sep 17 00:00:00 2001 From: Pavel Shved Date: Fri, 30 Sep 2011 17:00:46 +0400 Subject: [PATCH] Add --no-convert-field-o

Re: [CIL users] [PATCH] Add --no-convert-direct-calls option to Simplify

2011-09-28 Thread Pavel Shved
ons. We wanted to preserve direct calls to these functions in order to run the generated code through different static verification tools.) -- Pavel Shved ISPRAS (Institute for System Programming of Russian Academy of Sciences) Operating Systems section email: sh...@i

Re: [CIL users] [PATCH] Add --no-convert-direct-calls option to Simplify

2011-09-28 Thread Pavel Shved
Here's a sample file to test the fix. However, I'm not sure how and if it should be inserted into the CIL test suite. -- Pavel Shved ISPRAS (Institute for System Programming of Russian Academy of Sciences) Operating Systems section email: sh...@ispras.ru void good() {

[CIL users] [PATCH] Add --no-convert-direct-calls option to Simplify

2011-09-28 Thread Pavel Shved
This option prevents converting direct function calls into the calls-by-pointers if the address of the function has been taken somewhere. Calls from inside of structures are converted anyway. (A small debug print fix has been also applied) --- src/ext/simplify.ml | 14 +++--- 1 files c

[CIL users] How can I avoid calls-by-pointer generated after --dosimplify?

2011-09-22 Thread Pavel Shved
The resultant main function looks like this: int main(void) { void (*__cil_tmp1)(void) ; { { good(); __cil_tmp1 = & bad; (*__cil_tmp1)(); } return (0); } } -- Pavel Shved ISPRAS (Institute for System Programming of Russian Academy of Sciences) Operating Systems section email:

Re: [CIL users] Can't download CIL from SVN

2011-09-02 Thread Pavel Shved
ers who might have missed > it: > > git clone --recursive git://github.com/kerneis/cil.git No, we've actually set up our own Git mirror, and the commit IDs differ. Would be nice, again, to have a designated upstream, so that everybody could branch from it in a consistent

Re: [CIL users] [PATCH] Treat explicit casts from union to union normally

2011-09-02 Thread Pavel Shved
ody of function main falls-through. Adding a return statement Error: Cabs2cil had some errors Fatal error: exception Errormsg.Error After the patch, the error is gone, and the generated code contains the original assignment. -- Pavel Shved ISPRAS (Instutute for System Programming of Russian Acad

[CIL users] [PATCH] Treat explicit casts from union to union normally

2011-09-02 Thread Pavel Shved
Do not try to approach them as "field-to-union" casts --- src/frontc/cabs2cil.ml | 19 ++- 1 files changed, 14 insertions(+), 5 deletions(-) diff --git a/src/frontc/cabs2cil.ml b/src/frontc/cabs2cil.ml index 6c3d692..7833095 100644 --- a/src/frontc/cabs2cil.ml +++ b/src/frontc/c

[CIL users] Can't download CIL from SVN

2011-09-01 Thread Pavel Shved
ver? Or is our host banned (we had a nightly mirroring script that updated from the repository each night)? -- Pavel Shved ISPRAS (Instutute for System Programming of Russian Academy of Sciences) Operating Systems section email: