File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
csharp/ql/src/experimental/ir/implementation Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -152,6 +152,12 @@ class IRIntegerType extends IRNumericType {
152152 this = TIRSignedIntegerType ( byteSize ) or
153153 this = TIRUnsignedIntegerType ( byteSize )
154154 }
155+
156+ /** Holds if this integer type is signed. */
157+ predicate isSigned ( ) { none ( ) }
158+
159+ /** Holds if this integer type is unsigned. */
160+ predicate isUnsigned ( ) { none ( ) }
155161 // Don't override `getByteSize()` here. The optimizer seems to generate better code when this is
156162 // overridden only in the leaf classes.
157163}
@@ -169,6 +175,8 @@ class IRSignedIntegerType extends IRIntegerType, TIRSignedIntegerType {
169175
170176 pragma [ noinline]
171177 final override int getByteSize ( ) { result = byteSize }
178+
179+ override predicate isSigned ( ) { any ( ) }
172180}
173181
174182/**
@@ -184,6 +192,8 @@ class IRUnsignedIntegerType extends IRIntegerType, TIRUnsignedIntegerType {
184192
185193 pragma [ noinline]
186194 final override int getByteSize ( ) { result = byteSize }
195+
196+ override predicate isUnsigned ( ) { any ( ) }
187197}
188198
189199/**
You can’t perform that action at this time.
0 commit comments