Bikash Chandra
unread,Sep 13, 2011, 4:51:26 AM9/13/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to hampi-devel
Hi,
I am trying to generate some string lexicographically greater than or
equal to a given string. Let the given string be "C" for the moment.
The hampi code that I have written is
var v : 10;
cfg Digit := ['0'-'9'];
cfg Letter := ['a'-'z'] | ['A'-'Z'];
cfg Ascii := Letter | Digit | " " | "'";
reg Asciistar := star(Ascii);
reg Greater:= concat("C", Asciistar,"");
assert v in Greater;
Running hampi on this file throws an exception:
java.lang.NullPointerException
at
hampi.parser.HConstraintPreparer.prepareRegForVar(HConstraintPreparer.java:
171)
at
hampi.parser.HConstraintPreparer.prepareRegexp(HConstraintPreparer.java:
204)
at
hampi.parser.HConstraintPreparer.prepareRegexp(HConstraintPreparer.java:
188)
at
hampi.parser.HConstraintPreparer.prepareRegForVar(HConstraintPreparer.java:
172)
at
hampi.parser.HConstraintPreparer.prepareRegexp(HConstraintPreparer.java:
204)
at
hampi.parser.HConstraintPreparer.prepareRegexps(HConstraintPreparer.java:
214)
at
hampi.parser.HConstraintPreparer.prepareRegexp(HConstraintPreparer.java:
196)
at
hampi.parser.HConstraintPreparer.prepareRegForVar(HConstraintPreparer.java:
172)
at
hampi.parser.HConstraintPreparer.prepareIn(HConstraintPreparer.java:
144)
at hampi.parser.HConstraintPreparer.prepare(HConstraintPreparer.java:
47)
at hampi.parser.HConstraintPreparer.prepare(HConstraintPreparer.java:
34)
at hampi.Hampi.run(Hampi.java:294)
at hampi.Hampi.run(Hampi.java:270)
at hampi.Hampi.main(Hampi.java:249)
Could you please tell me what is wrong with my hampi code. I am using
the hampi code uploaded on May28,2010 which is the latest version on
svn.