Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • sac2c sac2c
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 394
    • Issues 394
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 16
    • Merge requests 16
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • sac-group
  • sac2csac2c
  • Issues
  • #2121
Closed
Open
Created Jan 19, 2013 by Robert Bernecky@rbeDeveloper

degenerate WL crashes sac2c while generating full WL partitions

Bugzilla Link 1044
Created on Jan 19, 2013 21:11
Resolution FIXED
Resolved on Apr 27, 2013 22:24
Version svn
OS Linux
Architecture PC

Extended Description

And the same sort of thing also crashes wlt, if the degenerate WL
appears during optimization...
sac2c -V
sac2c v1.00-beta (Haggis And Apple)
 product rev 18052 linux-gnu_x86_64
 (Fri Jan 18 17:57:42 EST 2013 by sac)
Here's the failing code:
use Array:all;
int main()
{
  x = [:int];
  z = with {
        ( 0 * _shape_A_( x) <= iv < _shape_A_( x)) : 42;
        } : modarray(x);
 StdIO::print(z);
 return(0);
}
sac2c crud.sac 
...** 10: Enhancing with-loops ...
  **** Introducing explicit accumulators ...
  **** Adding default partitions ...
  **** Applying constant folding ...
  **** Applying common subexpression elimination ...
  **** Generating full with-loop partitions ...
OOOOOOOPS, your program crashed the compiler 8-((
I don't have time to look into these failures.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking