Giter Site home page Giter Site logo

Comments (4)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 20, 2024
another example 


Original comment by [email protected] on 21 Feb 2010 at 4:42

Attachments:

from hampi.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 20, 2024
badcase1 reduced:
var string:6;
cfg q1 := "Ap";
cfg q2 := "Mo";
cfg q3 := "Sa";
cfg qx :=  q1 q2 q3;
assert string in qx;
Still gives UNSAT

Original comment by [email protected] on 26 Feb 2010 at 6:59

from hampi.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 20, 2024
As discovered by Devdatta, the problem is in PigeonHoleDistributor, line: if
(is.contains(i)) continue firstHoleAllocation;

So, for bound 6, lowers [1,1,1] uppers[4,4,4], it will first generate 
permutations
[1,4,1], [1,1,4], [1,2,3], [1,3,2] and then skip [2,2,2] because it thinks that 
2 is
already taken care of.

The fix would be to simply remove the broken 'optimization' - the perf impact 
on the
tests is so severe that tests stop working. This bugs must to be fixed with or 
after
issue#3.

Original comment by [email protected] on 26 Feb 2010 at 7:58

from hampi.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 20, 2024
The workaround for now is to inline the constant string, eg for badcase1:
cfg q3 := [\032 - \126];
cfg q4 := (q3)*;
cfg q6 := [\032 - \126];
cfg q7 := (q6)*;
cfg q1 := "Apple" q4 "Mobile" q7 "Safari";
cfg flax0 := q1;


Original comment by [email protected] on 26 Feb 2010 at 8:12

from hampi.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.