aboutsummaryrefslogtreecommitdiffstats
path: root/examples/aiger/demo.v
blob: b98287424ea2e73e0793cc254f86f1cc10de03d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
module demo(input clk, reset, ctrl);
  localparam NBITS = 10;
  reg [NBITS-1:0] counter;
  initial counter[NBITS-2] = 0;
  initial counter[0] = 1;
  always @(posedge clk) begin
    counter <= reset ? 1 : ctrl ? counter + 1 : counter - 1;
    assume(counter != 0);
    assume(counter != 1 << (NBITS-1));
    assert(counter != (1 << NBITS)-1);
  end
endmodule
* "Be conservative in what you do, be liberal in what you accept from others." If it's non-zero, we mark only out of window RST segments as INVALID. */ @@ -524,6 +527,9 @@ static bool tcp_in_window(const struct n s16 receiver_offset; bool res; + if (nf_ct_tcp_no_window_check) + return true; + /* * Get the required data from the packet. */ @@ -1321,6 +1327,13 @@ static struct ctl_table tcp_sysctl_table .proc_handler = proc_dointvec, }, { + .procname = "nf_conntrack_tcp_no_window_check", + .data = &nf_ct_tcp_no_window_check, + .maxlen = sizeof(unsigned int), + .mode = 0644, + .proc_handler = proc_dointvec, + }, + { .procname = "nf_conntrack_tcp_be_liberal", .data = &nf_ct_tcp_be_liberal, .maxlen = sizeof(unsigned int),