caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Drup <drupyog+caml@zoho.com>
To: Kenneth Adam Miller <kennethadammiller@gmail.com>,
	 Ashish Agarwal <agarwal1975@gmail.com>
Cc: caml users <caml-list@inria.fr>
Subject: Re: [Caml-list] Mathematical Expression Library
Date: Thu, 02 Apr 2015 23:41:33 +0200	[thread overview]
Message-ID: <551DB78D.1040705@zoho.com> (raw)
In-Reply-To: <CAK7rcp9HWw6A8FWzRKXAT_Vgo-FWtwDQS2qA=TuEvf5fKsebkA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1667 bytes --]

If I may, "simplifications" on the formula (eliminating dead variables 
and constant folding for example) is completely unimportant. Z3 is going 
to do it for you.

The actual shape of your formula is much more important and you should 
care of that when generating your formula (while you still have semantic 
informations), not after it's done.

Le 02/04/2015 21:47, Kenneth Adam Miller a écrit :
> I predominantly need to simplify expressions before I submit them to 
> SMT solvers. I'm quite concerned about not reimplementing a difficult 
> and already solved problem, and I'm pretty sure that this is part of 
> work of the solvers. I'm pretty sure that Z3 provides a simplify 
> function. Would it be better to cache the result of the simplify function?
>
> On Thu, Apr 2, 2015 at 3:36 PM, Ashish Agarwal <agarwal1975@gmail.com 
> <mailto:agarwal1975@gmail.com>> wrote:
>
>     If you don't find anything else, maybe some of our old code from
>     PADL 2010 can help as a starting point [1]. Probably it'll be
>     easier to put something together from scratch, assuming you don't
>     care about performance or need variables.
>
>     [1] http://ashishagarwal.org/2010/01/18/automating-mp-transformations/
>
>
>     On Thu, Apr 2, 2015 at 1:16 PM, Kenneth Adam Miller
>     <kennethadammiller@gmail.com <mailto:kennethadammiller@gmail.com>>
>     wrote:
>
>         Is there a library somewhere where I can represent and
>         simplify simple bit operation expressions? Add, subtract,
>         exclusive or, or, and, divide, multiply, modulus, composed
>         recursively, and operations on the expression type, such as
>         simplify?
>
>
>


[-- Attachment #2: Type: text/html, Size: 3540 bytes --]

  parent reply	other threads:[~2015-04-02 21:41 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-02 17:16 Kenneth Adam Miller
2015-04-02 19:36 ` Ashish Agarwal
2015-04-02 19:47   ` Kenneth Adam Miller
2015-04-02 19:57     ` Ashish Agarwal
2015-04-02 20:05       ` Kenneth Adam Miller
2015-04-02 20:14         ` Ashish Agarwal
2015-04-02 20:19           ` Ivan Gotovchits
2015-04-02 20:21             ` Kenneth Adam Miller
2015-04-02 21:41     ` Drup [this message]
     [not found]       ` <CAK7rcp_yb_gb4uziNkDHMBZFSCt_om85JWZ8p_bi94eDpB1AgA@mail.gmail.com>
     [not found]         ` <CAK7rcp_CT-meuKnqmgeNE-Gj6t4iR+_N829TZibHm7DbX6sh_A@mail.gmail.com>
2015-04-02 22:18           ` Drup
2015-04-07  6:37 ` Markus Weißmann
2015-04-07 14:16   ` Kenneth Adam Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=551DB78D.1040705@zoho.com \
    --to=drupyog+caml@zoho.com \
    --cc=agarwal1975@gmail.com \
    --cc=caml-list@inria.fr \
    --cc=kennethadammiller@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).