Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
[ANN]BrainScan - A source-code model checker for BrainF*ck
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
  2 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
 
Yoriyuki Yamagata  
View profile  
 More options Sep 23 2006, 2:09 pm
Newsgroups: fa.caml
From: "Yoriyuki Yamagata" <yoriyuk...@gmail.com>
Date: Sat, 23 Sep 2006 18:09:14 UTC
Local: Sat, Sep 23 2006 2:09 pm
Subject: [Caml-list] [ANN]BrainScan - A source-code model checker for BrainF*ck
BrainScan is a simple source-code model checker for BrainF*ck.  It
uses depth-first search with states in the buffer cells represented as
sets of integer intervals.

To compile, you need OCaml, findlib, and extlib.
$ make
This create a binary called brainscan.  Then you can give BrainF*ck
program as the argument.

$ ./brainscan '+[]!'
$

BrainScan checks the following condition and prints the command trace
if such conditions could arise.

1. Underflow of the pointer
2. Overflow (> 255) and Underflow (<0) of a buffer-cell value.  (Only
with -R or --range option.)
3. Reach the positions marked by !

In the case above, the program infinitely loops between [ and ].
Hence it never reaches !.  BrainScan understands this, and terminates
without error messages.  On the other hand,

$ ./brainscan ',[]!'
! reached.
        0: ,
        1: [
        3: !

this program may reach ! depending on the input at the ",".

Enjoy!
--
Yamagata Yoriyuki

_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs


 
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.
Yoriyuki Yamagata  
View profile  
 More options Sep 23 2006, 2:10 pm
Newsgroups: fa.caml
From: "Yoriyuki Yamagata" <yoriyuk...@gmail.com>
Date: Sat, 23 Sep 2006 18:10:27 UTC
Local: Sat, Sep 23 2006 2:10 pm
Subject: [Caml-list] Re: [ANN]BrainScan - A source-code model checker for BrainF*ck
2006/9/24, Yoriyuki Yamagata <yoriyuk...@gmail.com>:

> BrainScan is a simple source-code model checker for BrainF*ck.  It
> uses depth-first search with states in the buffer cells represented as
> sets of integer intervals.

I forgot the URL.  You can obtain BrainScan from
http://www15.ocn.ne.jp/~rodinia/brainscan.tar.gz

--
Yamagata Yoriyuki

_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs


 
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 »