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
  • #1102
Closed
Open
Created Dec 22, 2011 by Robert Bernecky@rbeDeveloper

APEX UTBaseValue unit test dies in WLSB due to NULL N_part, N_code

Bugzilla Link 895
Created on Dec 22, 2011 21:35
Version svn
OS Linux
Architecture PC

Extended Description

The following code dies as noted above:
use Array:{genarray};
int main()
{ 
 y = [1,2,3];
 z = with {
         (. <= iv <= .)
                 : genarray([0], _sel_VxA_( iv, y));
   } : genarray(_shape_A_(y), [:int]);
 StdIO::print(z);
 return(0);
}
The code is, basically, a compress, but with a degenerate 
control argument that is all zeros. Compress can be thought of 
as this "where" expression:
 z =  where( booleanvector, intvector, [:int]);
For example, compress( text != ' '), text) would remove
all blanks from text.
I am not sure who is to blame here. The underlying problem,
I think, is that of variable-shape cells in a WL.
What I find strange is that this code did work at one point in
time....
sac2c -V
sac2c v1.00-beta (Haggis And Apple)
 developer rev 17714:MODIFIED linux-gnu_x86_64
 (Tue Dec 20 16:34:06 EST 2011 by sac)
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking