generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 142
Closed
Labels
[C] BugThis is a bug. Something isn't working.This is a bug. Something isn't working.
Description
I tried this code:
fn main() {
let a: bool = __nondet();
let b: bool = __nondet();
let c = a ^ b;
assert!((a == b && !c) || (a != b && c));
}and it crashed with the following message:
thread 'rustc' panicked at 'BinaryOperation Expression does not typecheck Xor Expr { value: Symbol { identifier: "main::1::var_5" }, typ: CInteger(Bool), location: None } Expr { value: Symbol { identifier: "main::1::var_6" }, typ: CInteger(Bool), location: None }', compiler/rustc_codegen_llvm/src/gotoc/cbmc/goto_program/expr.rs:863:9
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
[C] BugThis is a bug. Something isn't working.This is a bug. Something isn't working.