mirror of
https://github.com/arnaucube/circom.git
synced 2026-02-06 18:56:40 +01:00
Fix undefined if
This commit is contained in:
14
test/circuits/undefinedif.circom
Normal file
14
test/circuits/undefinedif.circom
Normal file
@@ -0,0 +1,14 @@
|
||||
template X() {
|
||||
signal input i;
|
||||
signal input j;
|
||||
signal output out;
|
||||
|
||||
if (i == 0) {
|
||||
out <-- i;
|
||||
}
|
||||
else {
|
||||
out <-- j;
|
||||
}
|
||||
}
|
||||
|
||||
component main = X();
|
||||
Reference in New Issue
Block a user