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 403
    • Issues 403
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • sac-group
  • sac2csac2c
  • Issues
  • #1892
Closed
Open
Created Apr 19, 2013 by Robert Bernecky@rbeDeveloper

sac2c doesn't know beans from scientific notation

Bugzilla Link 1064
Created on Apr 19, 2013 21:05
Resolution FIXED
Resolved on Jul 11, 2014 08:45
Version svn
OS Linux
Architecture PC

Extended Description

int main()
{
  A = iota( 1000000);
  B = iota( 1e6);
  StdIO::print( shape( A));
  StdIO::print( shape( B));
  return( 0);
}
This prints the following, when compiled:
sac2c crud2.sac -v1 
sac@rattler:~/sac/demos/benchmarks/livermore_loops/for_comparison/loop15$ a.out
Dimension:  1
Shape    : <  1>
<1000000 > 
Dimension:  1
Shape    : <  1>
< 1 > 
sac@rattler:~/sac/demos/benchmarks/livermore_loops/for_comparison/loop15$ sac2c -V
sac2c v1.00-beta (Haggis And Apple)
 developer rev 18093 linux-gnu_x86_64
 (Fri Apr 19 15:27:48 EDT 2013 by sac)
I consider the second result to be incorrect.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking