Skip to content

Commit 002f930

Browse files
committed
C#: Sync identical files
1 parent 85a8280 commit 002f930

File tree

1 file changed

+10
-0
lines changed
  • csharp/ql/src/experimental/ir/implementation

1 file changed

+10
-0
lines changed

csharp/ql/src/experimental/ir/implementation/IRType.qll

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff 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
/**

0 commit comments

Comments
 (0)