Skip to content

Commit 53905f1

Browse files
committed
Update the py script to remove the extra info
regarding the new bounded types.
1 parent 117bb16 commit 53905f1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

gnat2goto/ireps/ireps_generator.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2055,6 +2055,16 @@ def generate_code(self, optimize, schema_file_names):
20552055
with indent(b):
20562056
write(b, "return Make_Floatbv_Type (Get_Subtype (I), Get_Width (I), Get_F (I));")
20572057
write(b, "end if;")
2058+
write(b, "")
2059+
write(b, "if Kind (I) = I_Bounded_Unsignedbv_Type then")
2060+
with indent(b):
2061+
write(b, "return Make_Unsignedbv_Type (Get_Subtype (I), Get_Width (I));")
2062+
write(b, "end if;")
2063+
write(b, "")
2064+
write(b, "if Kind (I) = I_Bounded_Mod_Type then")
2065+
with indent(b):
2066+
write(b, "return Make_Unsignedbv_Type (Get_Subtype (I), Get_Width (I));")
2067+
write(b, "end if;")
20582068
write(b, "if Kind (I) = I_Ada_Mod_Type then")
20592069
with indent(b):
20602070
write(b, "return Make_Unsignedbv_Type (Make_Nil_Type, Get_Width (I));")

0 commit comments

Comments
 (0)