Frama-C-discuss mailing list archives
This page gathers the archives of the old Frama-C-discuss archives, that was hosted by Inria's gforge before its demise at the end of 2020. To search for mails newer than September 2020, please visit the page of the new mailing list on Renater.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Frama-c-discuss] operator %
- Subject: [Frama-c-discuss] operator %
- From: omar.chebaro at cea.fr (Omar Chebaro)
- Date: Mon, 06 Apr 2009 11:10:16 +0200
Hello, This program is intended to produce a table showing modular arithmetic, unfortunately this program is bugged, analyzing it with frama-c (jessie and value analysis), I was expecting a division by zero warning or message, but frama-c completely ignored that fact. am I missing something ? the program is : void print_mod(int i, int n) { int ans = 0; if( n == 0 && i == 0 ) return; ans = i % n; printf( "%d mod %d == %d\n", i, n, ans ); } int main() { int i, j; for( i = 0; i < 10; i++ ) for(j = 0; j < 10; j++ ) print_mod( i, j ); return 0; } Regards Omar
- Follow-Ups:
- [Frama-c-discuss] operator %
- From: benjamin.monate at cea.fr (Benjamin Monate)
- [Frama-c-discuss] operator %
- Prev by Date: [Frama-c-discuss] Solution to yesterday's quizz
- Next by Date: [Frama-c-discuss] operator %
- Previous by thread: [Frama-c-discuss] Frama-C: GUI's response time
- Next by thread: [Frama-c-discuss] operator %
- Index(es):