From: Arnaud Spiwack <aspiwack@lix.polytechnique.fr>
To: Claire Dross <claire.dross@lri.fr>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Problem with the compiler 3.12.1
Date: Wed, 18 Apr 2012 11:04:13 +0200 [thread overview]
Message-ID: <CAMoPVjecV+A+d_Cr=1kfR0JFXPU13XiLW3CzhbJXOj79ivhKyA@mail.gmail.com> (raw)
In-Reply-To: <4F8C4054.6010407@lri.fr>
[-- Attachment #1: Type: text/plain, Size: 1403 bytes --]
Hi Claire,
Without much confidence, I would start by checking matchpats for uses of
fmt.
On 16 April 2012 17:52, Claire Dross <claire.dross@lri.fr> wrote:
> Hello,
>
> I am new to caml-list, so sorry in advance if it is not the right place to
> make this post. In a quite important piece of ocaml code, I have a function:
>
> let matching_term terms env uf id (pats, subst) (seen, forms) =
> match pats, subst with
> | _, [] | [], _ -> seen, forms
> | t :: pats, _ -> fprintf fmt " %a@." T.print t;
> let acc = matchpats env terms uf (subst, seen, id+1) t in
> let acc, seen, _ = List.fold_left (matchpats env env.fils uf)
> acc pats in
> seen, List.rev_append acc forms
>
> Removing the print in the second case of the match changes the result of
> the compiled file (compiler 3.12.1) on one of my tests. T.print does not
> have side effects, it recursively prints a hashconsed term structure.
>
> Do you have any idea of what the problem is ?
>
> Thanks a lot,
>
> Claire Dross
>
> --
> Caml-list mailing list. Subscription management and archives:
> https://sympa-roc.inria.fr/**wws/info/caml-list<https://sympa-roc.inria.fr/wws/info/caml-list>
> Beginner's list: http://groups.yahoo.com/group/**ocaml_beginners<http://groups.yahoo.com/group/ocaml_beginners>
> Bug reports: http://caml.inria.fr/bin/caml-**bugs<http://caml.inria.fr/bin/caml-bugs>
>
>
[-- Attachment #2: Type: text/html, Size: 1938 bytes --]
next prev parent reply other threads:[~2012-04-18 9:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-16 15:52 Claire Dross
2012-04-18 9:04 ` Arnaud Spiwack [this message]
2012-04-25 8:04 ` Claire Dross
2012-04-27 10:54 ` Claire Dross
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='CAMoPVjecV+A+d_Cr=1kfR0JFXPU13XiLW3CzhbJXOj79ivhKyA@mail.gmail.com' \
--to=aspiwack@lix.polytechnique.fr \
--cc=caml-list@inria.fr \
--cc=claire.dross@lri.fr \
/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