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 {
152
152
this = TIRSignedIntegerType ( byteSize ) or
153
153
this = TIRUnsignedIntegerType ( byteSize )
154
154
}
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 ( ) }
155
161
// Don't override `getByteSize()` here. The optimizer seems to generate better code when this is
156
162
// overridden only in the leaf classes.
157
163
}
@@ -169,6 +175,8 @@ class IRSignedIntegerType extends IRIntegerType, TIRSignedIntegerType {
169
175
170
176
pragma [ noinline]
171
177
final override int getByteSize ( ) { result = byteSize }
178
+
179
+ override predicate isSigned ( ) { any ( ) }
172
180
}
173
181
174
182
/**
@@ -184,6 +192,8 @@ class IRUnsignedIntegerType extends IRIntegerType, TIRUnsignedIntegerType {
184
192
185
193
pragma [ noinline]
186
194
final override int getByteSize ( ) { result = byteSize }
195
+
196
+ override predicate isUnsigned ( ) { any ( ) }
187
197
}
188
198
189
199
/**
You can’t perform that action at this time.
0 commit comments