//
// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
// Copyright (C) 2010-2010 - DIGITEO - Bruno JOFRET
//
// This file must be used under the terms of the CeCILL.
// This source file is licensed as described in the file COPYING, which
// you should have received as part of this distribution.  The terms
// are also available at
// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
//
//
// <-- ENGLISH IMPOSED -->
// <-- JVM NOT MANDATORY -->
global SCI2CHOME;
scilab2c(SCI2CHOME+"/tests/unit_tests/double/test_Disp.sci", TMPDIR);
 
 -----------------------------------   
 
 --- Executing your SCILAB code. ---   
 
 -----------------------------------   
 
    4.5  
 
    4. + 3.i  
 
 a   
 
    1.    2.    3.    4.    5.   
    6.    7.    8.    9.    10.  
 
    i      2.i    3.i    4.i    5.i   
    6.i    7.i    8.i    9.i    10.i  
 
 plop   
 
 ------------------------------------------   
 
 --- End Execution of your SCILAB code. ---   
 
 ------------------------------------------   
 
          ==> SCI2C hArtes/POLIBA Tool!!!   
 
 Removing directory: TMPDIR/SCI2CTmpResultsReports   
 
 Removing directory: TMPDIR   
 
          ==> Initialize SCI2C and USER2C Libraries.   
 
          ==> Load SCI2C and USER2C Libraries.   
 
          ==> Start translation of function "test_Disp"   
Warning: file 'TMPDIR/SCI2CTmpResultsReports/test_Disp/test_Disp_copy.sci' already opened in Scilab.
Warning: file 'TMPDIR/SCI2CTmpResultsReports/test_Disp/test_Disp_copy.sci' already opened in Scilab.
 
          ==> Generate the AST.   
 
          ==> Generate C code in TMPDIR/main.c   
 
    /*SCI2C: ########################################################## 
      ########                                                          
 
      SCI2C:    
 
      SCI2C: ########################################################## 
      ########*/                                                        
 
    /*SCI2C: ########################################################## 
      ########                                                          
 
      SCI2C: 	disp(4.5);   
 
      SCI2C: ########################################################## 
      ########*/                                                        
 
    /*SCI2C: ########################################################## 
      ########                                                          
 
      SCI2C: 	disp(4+3*%i);   
 
      SCI2C: ########################################################## 
      ########*/                                                        
 
    /*SCI2C: ########################################################## 
      ########                                                          
 
      SCI2C: 	disp("a");   
 
      SCI2C: ########################################################## 
      ########*/                                                        
 
    /*SCI2C: ########################################################## 
      ########                                                          
 
      SCI2C:    
 
      SCI2C: ########################################################## 
      ########*/                                                        
 
    /*SCI2C: ########################################################## 
      ########                                                          
 
      SCI2C: 	disp([1 2 3 4 5 ; 6 7 8 9 10]);   
 
      SCI2C: ########################################################## 
      ########*/                                                        
 
    /*SCI2C: ########################################################## 
      ########                                                          
 
      SCI2C: 	disp(%i*[1 2 3 4 5 ; 6 7 8 9 10]);   
 
      SCI2C: ########################################################## 
      ########*/                                                        
 
    /*SCI2C: ########################################################## 
      ########                                                          
 
      SCI2C: 	disp("plop");   
 
      SCI2C: ########################################################## 
      ########*/                                                        
 
    /*SCI2C: ########################################################## 
      ########                                                          
 
      SCI2C:    
 
      SCI2C: ########################################################## 
      ########*/                                                        
 
    /*SCI2C: ########################################################## 
      ########                                                          
 
      SCI2C:    
 
      SCI2C: ########################################################## 
      ########*/                                                        
 
    /*SCI2C: ########################################################## 
      ########                                                          
 
      SCI2C: endfunction    
 
      SCI2C: ########################################################## 
      ########*/                                                        
 
    /*SCI2C: ########################################################## 
      ########                                                          
 
      SCI2C:    
 
      SCI2C: ########################################################## 
      ########*/                                                        
 
    /*SCI2C: ########################################################## 
      ########                                                          
 
      SCI2C:    
 
      SCI2C: ########################################################## 
      ########*/                                                        
 
          ==> Copying sources   
 
          ==> Copying headers   
 
          ==> Copying interfaces   
 
          ==> Generating Builder TMPDIR/Makefile   
 
          ==> Translation Successfully Completed!!!   
fd = mopen(TMPDIR+"/main.c");
mgetl(fd)
 ans  =
 
!/*                                                                    !
!                                                                      !
!** ************************************************                   !
!                                                                      !
!** This file has been generated using                                 !
!                                                                      !
!**      Scilab2C (Version 2.0)                                        !
!                                                                      !
!**                                                                    !
!                                                                      !
!** Please visit following links for more informations:                !
!                                                                      !
!** Atoms Module: http://atoms.scilab.org/toolboxes/scilab2c           !
!                                                                      !
!** Scilab2C Forge: http://forge.scilab.org/index.php/p/scilab2c/      !
!                                                                      !
!** Scilab2C ML: http://forge.scilab.org/index.php/p/scilab2c/         !
!                                                                      !
!** ************************************************                   !
!                                                                      !
!*/                                                                    !
!                                                                      !
!                                                                      !
!                                                                      !
!                                                                      !
!                                                                      !
!/*                                                                    !
!                                                                      !
!** -----------------                                                  !
!                                                                      !
!** --- Includes. ---                                                  !
!                                                                      !
!** -----------------                                                  !
!                                                                      !
!*/                                                                    !
!                                                                      !
!#include "main.h"                                                     !
!                                                                      !
!/*                                                                    !
!                                                                      !
!** ---------------------                                              !
!                                                                      !
!** --- End Includes. ---                                              !
!                                                                      !
!** ---------------------                                              !
!                                                                      !
!*/                                                                    !
!                                                                      !
!                                                                      !
!                                                                      !
!                                                                      !
!                                                                      !
!                                                                      !
!                                                                      !
!/*                                                                    !
!                                                                      !
!** -------------------------------------                              !
!                                                                      !
!** --- Global Variables Declaration. ---                              !
!                                                                      !
!** -------------------------------------                              !
!                                                                      !
!*/                                                                    !
!                                                                      !
!                                                                      !
!                                                                      !
!                                                                      !
!                                                                      !
!/*                                                                    !
!                                                                      !
!** -----------------------------------------                          !
!                                                                      !
!** --- End Global Variables Declaration. ---                          !
!                                                                      !
!** -----------------------------------------                          !
!                                                                      !
!*/                                                                    !
!                                                                      !
!                                                                      !
!                                                                      !
!/*                                                                    !
!                                                                      !
!  SCI2C: -------------------------------------------------------------!
!     -----                                                            !
!                                                                      !
!  SCI2C: function test_Disp ()                                        !
!                                                                      !
!  SCI2C: -------------------------------------------------------------!
!     -----                                                            !
!                                                                      !
!*/                                                                    !
!                                                                      !
!int main()                                                            !
!                                                                      !
!{                                                                     !
!                                                                      !
!/*                                                                    !
!                                                                      !
!** -----------------------------                                      !
!                                                                      !
!** --- Variable Declaration. ---                                      !
!                                                                      !
!** -----------------------------                                      !
!                                                                      !
!*/                                                                    !
!                                                                      !
!                                                                      !
!                                                                      !
!   double ans1;                                                       !
!                                                                      !
!                                                                      !
!                                                                      !
!   doubleComplex __temp1;                                             !
!                                                                      !
!                                                                      !
!                                                                      !
!   doubleComplex __temp2;                                             !
!                                                                      !
!                                                                      !
!                                                                      !
!   double ans2;                                                       !
!                                                                      !
!                                                                      !
!                                                                      !
!   char __temp3[1*2] = {"a"};                                         !
!                                                                      !
!   int ____temp3Size[2] = {1,2};                                      !
!                                                                      !
!                                                                      !
!                                                                      !
!   double ans3;                                                       !
!                                                                      !
!                                                                      !
!                                                                      !
!   double __temp4[1 * 2];                                             !
!                                                                      !
!   int ____temp4Size[2] = {1, 2};;                                    !
!                                                                      !
!                                                                      !
!                                                                      !
!   double __temp5[1 * 3];                                             !
!                                                                      !
!   int ____temp5Size[2] = {1, 3};;                                    !
!                                                                      !
!                                                                      !
!                                                                      !
!   double __temp6[1 * 4];                                             !
!                                                                      !
!   int ____temp6Size[2] = {1, 4};;                                    !
!                                                                      !
!                                                                      !
!                                                                      !
!   double __temp7[1 * 5];                                             !
!                                                                      !
!   int ____temp7Size[2] = {1, 5};;                                    !
!                                                                      !
!                                                                      !
!                                                                      !
!   double __temp8[1 * 2];                                             !
!                                                                      !
!   int ____temp8Size[2] = {1, 2};;                                    !
!                                                                      !
!                                                                      !
!                                                                      !
!   double __temp9[1 * 3];                                             !
!                                                                      !
!   int ____temp9Size[2] = {1, 3};;                                    !
!                                                                      !
!                                                                      !
!                                                                      !
!   double __temp10[1 * 4];                                            !
!                                                                      !
!   int ____temp10Size[2] = {1, 4};;                                   !
!                                                                      !
!                                                                      !
!                                                                      !
!   double __temp11[1 * 5];                                            !
!                                                                      !
!   int ____temp11Size[2] = {1, 5};;                                   !
!                                                                      !
!                                                                      !
!                                                                      !
!   double __temp12[2 * 5];                                            !
!                                                                      !
!   int ____temp12Size[2] = {2, 5};;                                   !
!                                                                      !
!                                                                      !
!                                                                      !
!   double ans4;                                                       !
!                                                                      !
!                                                                      !
!                                                                      !
!   double __temp13[1 * 2];                                            !
!                                                                      !
!   int ____temp13Size[2] = {1, 2};;                                   !
!                                                                      !
!                                                                      !
!                                                                      !
!   double __temp14[1 * 3];                                            !
!                                                                      !
!   int ____temp14Size[2] = {1, 3};;                                   !
!                                                                      !
!                                                                      !
!                                                                      !
!   double __temp15[1 * 4];                                            !
!                                                                      !
!   int ____temp15Size[2] = {1, 4};;                                   !
!                                                                      !
!                                                                      !
!                                                                      !
!   double __temp16[1 * 5];                                            !
!                                                                      !
!   int ____temp16Size[2] = {1, 5};;                                   !
!                                                                      !
!                                                                      !
!                                                                      !
!   double __temp17[1 * 2];                                            !
!                                                                      !
!   int ____temp17Size[2] = {1, 2};;                                   !
!                                                                      !
!                                                                      !
!                                                                      !
!   double __temp18[1 * 3];                                            !
!                                                                      !
!   int ____temp18Size[2] = {1, 3};;                                   !
!                                                                      !
!                                                                      !
!                                                                      !
!   double __temp19[1 * 4];                                            !
!                                                                      !
!   int ____temp19Size[2] = {1, 4};;                                   !
!                                                                      !
!                                                                      !
!                                                                      !
!   double __temp20[1 * 5];                                            !
!                                                                      !
!   int ____temp20Size[2] = {1, 5};;                                   !
!                                                                      !
!                                                                      !
!                                                                      !
!   double __temp21[2 * 5];                                            !
!                                                                      !
!   int ____temp21Size[2] = {2, 5};;                                   !
!                                                                      !
!                                                                      !
!                                                                      !
!   doubleComplex __temp22[2 * 5];                                     !
!                                                                      !
!   int ____temp22Size[2] = {2, 5};;                                   !
!                                                                      !
!                                                                      !
!                                                                      !
!   double ans5;                                                       !
!                                                                      !
!                                                                      !
!                                                                      !
!   char __temp23[1*5] = {"plop"};                                     !
!                                                                      !
!   int ____temp23Size[2] = {1,5};                                     !
!                                                                      !
!                                                                      !
!                                                                      !
!   double ans6;                                                       !
!                                                                      !
!                                                                      !
!                                                                      !
!                                                                      !
!                                                                      !
!                                                                      !
!                                                                      !
!                                                                      !
!                                                                      !
!/*                                                                    !
!                                                                      !
!** ---------------------------------                                  !
!                                                                      !
!** --- End Variable Declaration. ---                                  !
!                                                                      !
!** ---------------------------------                                  !
!                                                                      !
!*/                                                                    !
!                                                                      !
!/*                                                                    !
!                                                                      !
!** ---------------                                                    !
!                                                                      !
!** --- C code. ---                                                    !
!                                                                      !
!** ---------------                                                    !
!                                                                      !
!*/                                                                    !
!                                                                      !
!                                                                      !
!                                                                      !
!   /*SCI2C: ##########################################################!
!     ########                                                         !
!                                                                      !
!     SCI2C:                                                           !
!                                                                      !
!     SCI2C: ##########################################################!
!     ########*/                                                       !
!                                                                      !
!                                                                      !
!                                                                      !
!   /*SCI2C: ##########################################################!
!     ########                                                         !
!                                                                      !
!     SCI2C: 	disp(4.5);                                               !
!                                                                      !
!     SCI2C: ##########################################################!
!     ########*/                                                       !
!                                                                      !
!   ans1 = d0dispd0(4.5);                                              !
!                                                                      !
!                                                                      !
!                                                                      !
!   /*SCI2C: ##########################################################!
!     ########                                                         !
!                                                                      !
!     SCI2C: 	disp(4+3*%i);                                            !
!                                                                      !
!     SCI2C: ##########################################################!
!     ########*/                                                       !
!                                                                      !
!   __temp1 = d0z0OpStarz0(3,DoubleComplex(0,1));                      !
!                                                                      !
!   __temp2 = d0z0OpPlusz0(4,__temp1);                                 !
!                                                                      !
!   ans2 = z0dispd0(__temp2);                                          !
!                                                                      !
!                                                                      !
!                                                                      !
!   /*SCI2C: ##########################################################!
!     ########                                                         !
!                                                                      !
!     SCI2C: 	disp("a");                                               !
!                                                                      !
!     SCI2C: ##########################################################!
!     ########*/                                                       !
!                                                                      !
!   ans3 = g2dispd0(__temp3,  ____temp3Size);                          !
!                                                                      !
!                                                                      !
!                                                                      !
!   /*SCI2C: ##########################################################!
!     ########                                                         !
!                                                                      !
!     SCI2C:                                                           !
!                                                                      !
!     SCI2C: ##########################################################!
!     ########*/                                                       !
!                                                                      !
!                                                                      !
!                                                                      !
!   /*SCI2C: ##########################################################!
!     ########                                                         !
!                                                                      !
!     SCI2C: 	disp([1 2 3 4 5 ; 6 7 8 9 10]);                          !
!                                                                      !
!     SCI2C: ##########################################################!
!     ########*/                                                       !
!                                                                      !
!   d0d0OpRcd2(1,2,__temp4);                                           !
!                                                                      !
!   d2d0OpRcd2(__temp4,  ____temp4Size,3,__temp5);                     !
!                                                                      !
!   d2d0OpRcd2(__temp5,  ____temp5Size,4,__temp6);                     !
!                                                                      !
!   d2d0OpRcd2(__temp6,  ____temp6Size,5,__temp7);                     !
!                                                                      !
!   d0d0OpRcd2(6,7,__temp8);                                           !
!                                                                      !
!   d2d0OpRcd2(__temp8,  ____temp8Size,8,__temp9);                     !
!                                                                      !
!   d2d0OpRcd2(__temp9,  ____temp9Size,9,__temp10);                    !
!                                                                      !
!   d2d0OpRcd2(__temp10,  ____temp10Size,10,__temp11);                 !
!                                                                      !
!   d2d2OpCcd2(__temp7,  ____temp7Size,__temp11,  ____temp11Size,__temp!
!     12);                                                             !
!                                                                      !
!   ans4 = d2dispd0(__temp12,  ____temp12Size);                        !
!                                                                      !
!                                                                      !
!                                                                      !
!   /*SCI2C: ##########################################################!
!     ########                                                         !
!                                                                      !
!     SCI2C: 	disp(%i*[1 2 3 4 5 ; 6 7 8 9 10]);                       !
!                                                                      !
!     SCI2C: ##########################################################!
!     ########*/                                                       !
!                                                                      !
!   d0d0OpRcd2(1,2,__temp13);                                          !
!                                                                      !
!   d2d0OpRcd2(__temp13,  ____temp13Size,3,__temp14);                  !
!                                                                      !
!   d2d0OpRcd2(__temp14,  ____temp14Size,4,__temp15);                  !
!                                                                      !
!   d2d0OpRcd2(__temp15,  ____temp15Size,5,__temp16);                  !
!                                                                      !
!   d0d0OpRcd2(6,7,__temp17);                                          !
!                                                                      !
!   d2d0OpRcd2(__temp17,  ____temp17Size,8,__temp18);                  !
!                                                                      !
!   d2d0OpRcd2(__temp18,  ____temp18Size,9,__temp19);                  !
!                                                                      !
!   d2d0OpRcd2(__temp19,  ____temp19Size,10,__temp20);                 !
!                                                                      !
!   d2d2OpCcd2(__temp16,  ____temp16Size,__temp20,  ____temp20Size,__te!
!     mp21);                                                           !
!                                                                      !
!   z0d2OpStarz2(DoubleComplex(0,1),__temp21,  ____temp21Size,__temp22)!
!     ;                                                                !
!                                                                      !
!   ans5 = z2dispd0(__temp22,  ____temp22Size);                        !
!                                                                      !
!                                                                      !
!                                                                      !
!   /*SCI2C: ##########################################################!
!     ########                                                         !
!                                                                      !
!     SCI2C: 	disp("plop");                                            !
!                                                                      !
!     SCI2C: ##########################################################!
!     ########*/                                                       !
!                                                                      !
!   ans6 = g2dispd0(__temp23,  ____temp23Size);                        !
!                                                                      !
!                                                                      !
!                                                                      !
!   /*SCI2C: ##########################################################!
!     ########                                                         !
!                                                                      !
!     SCI2C:                                                           !
!                                                                      !
!     SCI2C: ##########################################################!
!     ########*/                                                       !
!                                                                      !
!                                                                      !
!                                                                      !
!   /*SCI2C: ##########################################################!
!     ########                                                         !
!                                                                      !
!     SCI2C:                                                           !
!                                                                      !
!     SCI2C: ##########################################################!
!     ########*/                                                       !
!                                                                      !
!                                                                      !
!                                                                      !
!   /*SCI2C: ##########################################################!
!     ########                                                         !
!                                                                      !
!     SCI2C: endfunction                                               !
!                                                                      !
!     SCI2C: ##########################################################!
!     ########*/                                                       !
!                                                                      !
!                                                                      !
!                                                                      !
!   /*SCI2C: ##########################################################!
!     ########                                                         !
!                                                                      !
!     SCI2C:                                                           !
!                                                                      !
!     SCI2C: ##########################################################!
!     ########*/                                                       !
!                                                                      !
!                                                                      !
!                                                                      !
!   /*                                                                 !
!                                                                      !
!   ** ---------------------                                           !
!                                                                      !
!   ** --- Free Section. ---                                           !
!                                                                      !
!   ** ---------------------                                           !
!                                                                      !
!   */                                                                 !
!                                                                      !
!   /*                                                                 !
!                                                                      !
!   ** -------------------------                                       !
!                                                                      !
!   ** --- End Free Section. ---                                       !
!                                                                      !
!   ** -------------------------                                       !
!                                                                      !
!   */                                                                 !
!                                                                      !
!                                                                      !
!                                                                      !
!   return(0);                                                         !
!                                                                      !
!                                                                      !
!                                                                      !
!   /*SCI2C: ##########################################################!
!     ########                                                         !
!                                                                      !
!     SCI2C:                                                           !
!                                                                      !
!     SCI2C: ##########################################################!
!     ########*/                                                       !
!                                                                      !
!}                                                                     !
!                                                                      !
!                                                                      !
mclose(fd);