Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Division by zero error
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Edward Schwartz  
View profile  
 More options Mar 24 2012, 3:19 pm
From: Edward Schwartz <edmc...@cmu.edu>
Date: Sat, 24 Mar 2012 15:19:10 -0400
Local: Sat, Mar 24 2012 3:19 pm
Subject: Division by zero error

The attached stp formula produces the following error:

   Fatal Error: BVConstEvaluator:division by zero error

There is division in the formula, but the divisor is symbolic, and
does not have to be zero.  I think it is a bug.

Thanks,

Ed

  divzerobug.stp
< 1K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Trevor Hansen  
View profile  
 More options Mar 25 2012, 8:45 pm
From: Trevor Hansen <than...@csse.unimelb.edu.au>
Date: Sun, 25 Mar 2012 17:45:11 -0700 (PDT)
Local: Sun, Mar 25 2012 8:45 pm
Subject: Re: Division by zero error

Hi Edward,

> The attached stp formula produces the following error:
>    Fatal Error: BVConstEvaluator:division by zero error

Thanks for the bug report.

STP's implementation of division in the CVC language is to not allow
division by zero. That is, STP produces an error if a division by zero
occurs in the counter-example.  I don't know what the semantics should be
for the language. In the CVC3 user guide  (
http://www.cs.nyu.edu/acsys/cvc3/doc/user_doc.html ), when x is a real,  
they evaluate x/0 to zero. So maybe we should do the same for bit-vectors,
I've not changed the semantics for division by zero because I don't know if
anyone relies on the current semantics.

For input in the SMT-LIB1 and SMT-LIB2 languages, STP breaks with the
official semantics and defines x/0 as 1, and x%0 as x.

If these semantics don't seem right to you, let me know what you think they
should be,

Best,

Trevor.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ed Schwartz  
View profile  
 More options Mar 25 2012, 11:26 pm
From: Ed Schwartz <edmc...@gmail.com>
Date: Sun, 25 Mar 2012 23:26:20 -0400
Local: Sun, Mar 25 2012 11:26 pm
Subject: Re: Division by zero error
On Sun, Mar 25, 2012 at 8:45 PM, Trevor Hansen

Hi Trevor,

I think these semantics are okay; there does not seem to be a "right"
semantics for this.  However, maybe the error message should specify
that division by zero is an error in the semantics.   I was expecting
smtlib/cvc3 semantics for division, so when I saw the BVConstEvaluator
message, I thought it was a bug, rather than a semantics decision.

Thanks,
Edward


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »