File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -326,6 +326,12 @@ export class Z3ExpressionTransformer {
326326
327327 let left = this . transform ( expr . left ) ;
328328 let right = isBooleanLiteral ( expr . right ) ? `${ expr . right . value } ` : this . transform ( expr . right ) ;
329+
330+ // TODO: improve handling of null expressions
331+ if ( isNullExpr ( expr . right ) ) {
332+ return `${ this . withArgs ( left ) } ${ expr . operator } ${ right } ` ;
333+ }
334+
329335 // if (isMemberAccessExpr(expr.left) && !isAuthInvocation(expr.left)) {
330336 // left = `args.${left}`;
331337 // }
@@ -344,7 +350,7 @@ export class Z3ExpressionTransformer {
344350 ? `(${ left } ?.id)`
345351 : `((${ this . withArgs ( left ) } ?.id || ${ this . withArgs ( left ) } Id))` ;
346352 right = isAuthInvocation ( expr . right )
347- ? `(${ right } .id)`
353+ ? `(${ right } ? .id)`
348354 : `((${ this . withArgs ( right ) } ?.id || ${ this . withArgs ( right ) } Id))` ;
349355 let assertion = `${ left } ${ expr . operator } ${ right } ` ;
350356
You can’t perform that action at this time.
0 commit comments