1 /*
2  *  Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3  *  Copyright (C) 2014-2015 - Scilab Enterprises - Calixte DENIZET
4  *
5  * Copyright (C) 2012 - 2016 - Scilab Enterprises
6  *
7  * This file is hereby licensed under the terms of the GNU GPL v2.0,
8  * pursuant to article 5.3.4 of the CeCILL v.2.1.
9  * This file was originally licensed under the terms of the CeCILL v2.1,
10  * and continues to be available under such terms.
11  * For more information, see the COPYING file which you should have received
12  * along with this program.
13  *
14  */
15 
16 // This file has been generated, so don't modify it by hand !!
17 
18 #include "checkers/Checkers.hxx"
19 
20 namespace analysis
21 {
check_uint16(GVN & gvn,const TIType & in0)22 TIType Checkers::check_uint16(GVN & gvn, const TIType & in0)
23 {
24     switch (in0.type)
25     {
26         case TIType::EMPTY :
27         {
28             return in0;
29         }
30         case TIType::DOUBLE :
31         {
32             return TIType(gvn, TIType::UINT16, in0.rows, in0.cols);
33         }
34         case TIType::INT16 :
35         {
36             return TIType(gvn, TIType::UINT16, in0.rows, in0.cols);
37         }
38         case TIType::INT32 :
39         {
40             return TIType(gvn, TIType::UINT16, in0.rows, in0.cols);
41         }
42         case TIType::INT64 :
43         {
44             return TIType(gvn, TIType::UINT16, in0.rows, in0.cols);
45         }
46         case TIType::INT8 :
47         {
48             return TIType(gvn, TIType::UINT16, in0.rows, in0.cols);
49         }
50         case TIType::UINT16 :
51         {
52             return in0;
53         }
54         case TIType::UINT32 :
55         {
56             return TIType(gvn, TIType::UINT16, in0.rows, in0.cols);
57         }
58         case TIType::UINT64 :
59         {
60             return TIType(gvn, TIType::UINT16, in0.rows, in0.cols);
61         }
62         case TIType::UINT8 :
63         {
64             return TIType(gvn, TIType::UINT16, in0.rows, in0.cols);
65         }
66         default :
67             return TIType(gvn);
68     }
69 }
70 
71 } // namespace analysis