@@ -29,47 +29,47 @@ std::vector<typet> parse_list_types(
29
29
const char opening_bracket,
30
30
const char closing_bracket);
31
31
32
- typet java_int_type ()
32
+ signedbv_typet java_int_type ()
33
33
{
34
34
return signedbv_typet (32 );
35
35
}
36
36
37
- typet java_void_type ()
37
+ void_typet java_void_type ()
38
38
{
39
39
return void_typet ();
40
40
}
41
41
42
- typet java_long_type ()
42
+ signedbv_typet java_long_type ()
43
43
{
44
44
return signedbv_typet (64 );
45
45
}
46
46
47
- typet java_short_type ()
47
+ signedbv_typet java_short_type ()
48
48
{
49
49
return signedbv_typet (16 );
50
50
}
51
51
52
- typet java_byte_type ()
52
+ signedbv_typet java_byte_type ()
53
53
{
54
54
return signedbv_typet (8 );
55
55
}
56
56
57
- typet java_char_type ()
57
+ unsignedbv_typet java_char_type ()
58
58
{
59
59
return unsignedbv_typet (16 );
60
60
}
61
61
62
- typet java_float_type ()
62
+ floatbv_typet java_float_type ()
63
63
{
64
64
return ieee_float_spect::single_precision ().to_type ();
65
65
}
66
66
67
- typet java_double_type ()
67
+ floatbv_typet java_double_type ()
68
68
{
69
69
return ieee_float_spect::double_precision ().to_type ();
70
70
}
71
71
72
- typet java_boolean_type ()
72
+ c_bool_typet java_boolean_type ()
73
73
{
74
74
// The Java standard doesn't really prescribe the width
75
75
// of a boolean. However, JNI suggests that it's 8 bits.
@@ -638,23 +638,23 @@ char java_char_from_type(const typet &type)
638
638
if (id==ID_signedbv)
639
639
{
640
640
const size_t width=to_signedbv_type (type).get_width ();
641
- if (to_signedbv_type ( java_int_type ()) .get_width ()== width)
641
+ if (java_int_type ().get_width () == width)
642
642
return ' i' ;
643
- else if (to_signedbv_type ( java_long_type ()) .get_width ()== width)
643
+ else if (java_long_type ().get_width () == width)
644
644
return ' l' ;
645
- else if (to_signedbv_type ( java_short_type ()) .get_width ()== width)
645
+ else if (java_short_type ().get_width () == width)
646
646
return ' s' ;
647
- else if (to_signedbv_type ( java_byte_type ()) .get_width ()== width)
647
+ else if (java_byte_type ().get_width () == width)
648
648
return ' b' ;
649
649
}
650
650
else if (id==ID_unsignedbv)
651
651
return ' c' ;
652
652
else if (id==ID_floatbv)
653
653
{
654
654
const size_t width (to_floatbv_type (type).get_width ());
655
- if (to_floatbv_type ( java_float_type ()) .get_width ()== width)
655
+ if (java_float_type ().get_width () == width)
656
656
return ' f' ;
657
- else if (to_floatbv_type ( java_double_type ()) .get_width ()== width)
657
+ else if (java_double_type ().get_width () == width)
658
658
return ' d' ;
659
659
}
660
660
else if (id==ID_c_bool)
0 commit comments