loop assigns crash
ID0000658:
**This issue was created automatically from Mantis Issue 658. Further discussion may take place here.**
---
| **Id** | **Project** | **Category** | **View** | **Due Date** | **Updated** |
| --- | --- | --- | --- | --- | --- |
| ID0000658 | Frama-C | Plug-in > jessie | public | 2010-12-29 | 2012-06-10 |
| | | | | | |
| --- | --- | --- | --- | --- | --- |
| **Reporter** | evdenis | **Assigned To** | cmarche | **Resolution** | open |
| **Priority** | normal | **Severity** | feature | **Reproducibility** | always |
| **Platform** | - | **OS** | - | **OS Version** | - |
| **Product Version** | Frama-C Boron-20100401 | **Target Version** | - | **Fixed in Version** | - |
### Description :
void
test( const unsigned char * const pattern, const unsigned int plen )
{
long int bad_character[256];
/*@
@ loop invariant 0 <= i <= plen;
@ loop variant plen - i;
@ loop assigns *( bad_character + { pattern[k] | integer k ; 0 <= k < i } );
@*/
for( unsigned int i = 0; i < plen; ++i ) {
bad_character[pattern[i]] = i;
}
}
tester@ubuntu-fm:~/workspace/test6$ frama-c -jessie -jessie-atp gui test1.c
[kernel] preprocessing with "gcc -C -E -I. -dD test1.c"
[jessie] Starting Jessie translation
test1.c:10:[jessie] failure: Unexpected exception.
Please submit bug report (Ref. "Extlib.NotYetImplemented("Interp.terms Tcomprehension")").
[kernel] The full backtrace is:
Raised at file "src/kernel/log.ml", line 506, characters 30-31
Called from file "src/kernel/log.ml", line 500, characters 2-9
Re-raised at file "src/kernel/log.ml", line 503, characters 8-9
Called from file "src/lib/type.ml", line 746, characters 40-45
Called from file "queue.ml", line 134, characters 6-20
Called from file "src/kernel/boot.ml", line 50, characters 4-20
Called from file "src/kernel/cmdline.ml", line 170, characters 4-8
Plug-in jessie aborted because of an internal error.
Please report as 'crash' at http://bts.frama-c.com
## Attachments
- [test1.c](/uploads/996f5cc431726301acf612c5af20ee4f/test1.c)
issue